/* ========================================
   AI Freeview - Modern Korean Corporate Style
   ======================================== */

:root {
    /* Colors - Cyan/Teal Theme matching logo */
    --primary: #00d4aa;
    --primary-light: #00f5c4;
    --primary-dark: #00b894;
    --secondary: #00b4d8;
    --accent: #7c3aed;
    --accent-light: #a78bfa;

    /* ✅ LOGO SIZE CONTROL (원본 파일은 그대로, 화면 표시만 확대) */
    --logo-height: 78px;
    /* 기본 네비 로고 높이 */
    --logo-height-scrolled: 78px;
    /* 스크롤 시 로고 높이 */
    --logo-height-mobile: 47px;
    /* 모바일 기본 로고 높이 */
    --logo-height-scrolled-mobile: 47px;
    /* 모바일 스크롤 로고 높이 */
    --logo-scale: 1;
    /* 로고가 여백 때문에 작아 보이면 1.1~1.3 */

    /* Backgrounds */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-card: rgba(20, 20, 20, 0.8);
    --bg-card-hover: rgba(30, 30, 30, 0.9);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(0, 212, 170, 0.5);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4aa 0%, #00b4d8 100%);
    --gradient-purple: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    --gradient-glow: radial-gradient(600px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 212, 170, 0.15), transparent 40%);

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ✅ 로고 클릭 영역/정렬/크기(원본 파일 그대로) */
.logo-link {
    display: flex;
    align-items: center;
    height: var(--logo-height);
    line-height: 0;
    /* img baseline 여백 제거 */
}

.navbar.scrolled .logo-link {
    height: var(--logo-height-scrolled);
}

/* ✅ 로고 “표시 크기” 지정 (원본 이미지 수정 X) */
.logo {
    height: var(--logo-height);
    width: auto;
    max-height: var(--logo-height);
    display: block;
    object-fit: contain;
    transform: scale(var(--logo-scale));
    transform-origin: left center;
}

.navbar.scrolled .logo {
    height: var(--logo-height-scrolled);
    max-height: var(--logo-height-scrolled);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-normal);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.98);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 24px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--primary);
}

/* Highlight Nav Link */
.nav-link-highlight {
    color: var(--primary) !important;
    font-weight: 600;
}

.nav-link-highlight::after {
    width: 100%;
    background: var(--gradient-primary);
}

.mobile-nav-highlight {
    color: var(--primary) !important;
    font-weight: 700;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 170, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 180, 216, 0.1), transparent),
        radial-gradient(ellipse 40% 30% at 20% 80%, rgba(124, 58, 237, 0.08), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    font-size: clamp(42px, 8vw, 80px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.desktop-only {
    display: inline;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    box-shadow: 0 4px 24px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 212, 170, 0.4);
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: var(--transition-fast);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 0.8s ease 0.5s both;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        height: 60px;
    }

    50% {
        opacity: 1;
        height: 80px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Sections Common
   ======================================== */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ========================================
   Cards Grid
   ======================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Card */
.card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    transition: var(--transition-normal);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: var(--transition-normal);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.card:hover::before {
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
}

.card-glow.purple {
    background: var(--gradient-purple);
}

.card:hover .card-glow {
    opacity: 1;
    box-shadow: 0 0 40px 10px rgba(0, 212, 170, 0.3);
}

.card:hover .card-glow.purple {
    box-shadow: 0 0 40px 10px rgba(124, 58, 237, 0.3);
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.card-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--primary);
}

.card-icon.voice-icon {
    background: rgba(0, 212, 170, 0.1);
    border-color: rgba(0, 212, 170, 0.2);
}

.card-icon.voice-icon svg {
    stroke: var(--primary);
}

.card-icon.image-icon {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.2);
}

.card-icon.image-icon svg {
    stroke: var(--accent);
}

.card-badge {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    background: rgba(0, 212, 170, 0.15);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-badge.new {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.card-badge.free {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-features {
    list-style: none;
    margin-bottom: 24px;
}

.card-features li {
    position: relative;
    padding-left: 20px;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.card-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.card-link.purple {
    color: var(--accent-light);
}

.card-link svg {
    width: 16px;
    height: 16px;
    transition: var(--transition-fast);
}

.card-link:hover {
    gap: 12px;
}

.card-link:hover svg {
    transform: translate(4px, -4px);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.cta-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.cta-input::placeholder {
    color: var(--text-tertiary);
}

.cta-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    height: 36px;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: var(--text-tertiary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-tertiary);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 13px;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

/* Footer Company Info */
.footer-company-info {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.footer-company-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.footer-company-info strong {
    color: var(--text-primary);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    /* ✅ 모바일 로고 크기 */
    .logo-link {
        height: var(--logo-height-mobile);
    }

    .logo {
        height: var(--logo-height-mobile);
        max-height: var(--logo-height-mobile);
    }

    .navbar.scrolled .logo-link {
        height: var(--logo-height-scrolled-mobile);
    }

    .navbar.scrolled .logo {
        height: var(--logo-height-scrolled-mobile);
        max-height: var(--logo-height-scrolled-mobile);
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 16px;
    }

    .desktop-only {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        flex: 0 0 calc(33.33% - 16px);
    }

    .scroll-indicator {
        display: none;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 24px;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .cta-form {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 48px;
    }

    .footer-links {
        gap: 48px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 15px;
    }

    .stat-number {
        font-size: 24px;
    }

    .section-title {
        font-size: 28px;
    }

    .card-title {
        font-size: 20px;
    }

    .cta-title {
        font-size: 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }
}

/* ========================================
   Animation & Polish
   ======================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Smooth appearance for cards on scroll */
.card {
    animation: fadeInUp 0.6s ease both;
}

.cards-grid .card:nth-child(1) {
    animation-delay: 0.1s;
}

.cards-grid .card:nth-child(2) {
    animation-delay: 0.2s;
}

.cards-grid .card:nth-child(3) {
    animation-delay: 0.3s;
}