/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 10px;
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

:root {
    /* Light Mode - Electric Blue & Violet Theme */
    --primary: #0066FF;
    --primary-light: #3385FF;
    --primary-dark: #0052CC;
    --accent: #8B5CF6;
    --accent-light: #A78BFA;
    --accent-dark: #7C3AED;
    --secondary: #10B981;
    --secondary-light: #34D399;

    /* Backgrounds */
    --bg-primary: #FAFBFF;
    --bg-secondary: #F0F4FF;
    --bg-tertiary: #E8EEFF;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-hover: rgba(255, 255, 255, 0.85);

    /* Text */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #94A3B8;

    /* Effects */
    --border-glass: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 1px 3px rgba(0, 102, 255, 0.03);
    --shadow-md: 0 3px 8px rgba(0, 102, 255, 0.04);
    --shadow-lg: 0 8px 16px rgba(0, 102, 255, 0.05);
    --shadow-glow: 0 0 13px rgba(0, 102, 255, 0.1);
    --shadow-glow-accent: 0 0 13px rgba(139, 92, 246, 0.1);

    /* Spacing System (8px base) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    --space-10: 80px;
    --space-12: 96px;
    --space-15: 120px;

    /* Border Radius System */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode - Linear Style */
body.dark-mode {
    --primary: #3B82F6;
    --primary-light: #60A5FA;
    --primary-dark: #2563EB;
    --accent: #A78BFA;
    --accent-light: #C4B5FD;
    --accent-dark: #8B5CF6;
    --secondary: #34D399;
    --secondary-light: #6EE7B7;

    /* Backgrounds */
    --bg-primary: #0A0A0B;
    --bg-secondary: #111113;
    --bg-tertiary: #18181B;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);

    /* Text */
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-tertiary: #64748B;

    /* Effects */
    --border-glass: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 3px 8px rgba(0, 0, 0, 0.13);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.17);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.13);
    --shadow-glow-accent: 0 0 20px rgba(167, 139, 250, 0.13);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-primary);
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* ========================================
   Global Focus & Active Styles
   ======================================== */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* Global Active State for Buttons */
button:active,
.cta-button-large:active,
.modal-button:active,
.contact-button:active,
.theme-toggle:active {
    transform: scale(0.97);
}

/* ========================================
   Reduced Motion Support
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-orb,
    .scroll-indicator,
    .graph-node,
    .connector-dot {
        animation: none !important;
    }
}

/* ========================================
   Scroll Progress Bar
   ======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 10001;
    transition: width 0.1s linear;
}

/* ========================================
   Toast Notification
   ======================================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    z-index: 10002;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    box-shadow: var(--shadow-lg);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 18px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Glass Card Style
   ======================================== */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Glow Effects
   ======================================== */
.glow-text {
    text-shadow: 0 0 20px currentColor;
}

.glow-button {
    position: relative;
    overflow: hidden;
}

.glow-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-slow);
}

.glow-button:hover::before {
    left: 100%;
}

.glow-button:hover {
    box-shadow: var(--shadow-glow);
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition);
}

body.dark-mode .header {
    background: rgba(10, 10, 11, 0.8);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* Main Navigation Menu */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-4);
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
}

/* Responsive navigation */
@media (max-width: 1200px) {
    .nav-link {
        font-size: 16px;
    }

    .nav-menu {
        gap: var(--space-2);
    }
}

@media (max-width: 1024px) {
    .nav-link {
        font-size: 14px;
    }

    .nav-menu {
        gap: var(--space-1);
    }
}

/* Hide main nav on tablet and mobile */
@media (max-width: 900px) {
    .main-nav {
        display: none;
    }
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-glass-hover);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .moon-icon {
    display: none;
}

body.dark-mode .theme-toggle .sun-icon {
    display: none;
}

body.dark-mode .theme-toggle .moon-icon {
    display: block;
}

.contact-button {
    padding: 10px 20px;
    min-height: 44px;
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-icon {
    width: 18px;
    height: 18px;
}

.contact-button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 102, 255, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(139, 92, 246, 0.12), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(16, 185, 129, 0.08), transparent);
    animation: gradientPulse 8s ease-in-out infinite;
}

body.dark-mode .hero-gradient {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.25), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(139, 92, 246, 0.2), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(16, 185, 129, 0.1), transparent);
}

@keyframes gradientPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Aurora Effect */
.aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.aurora-layer {
    position: absolute;
    width: 150%;
    height: 150%;
    opacity: 0.3;
    filter: blur(100px);
    animation: auroraFlow 15s ease-in-out infinite;
}

.aurora-1 {
    background: radial-gradient(ellipse at 30% 20%, var(--primary) 0%, transparent 60%);
    top: -25%;
    left: -25%;
    animation-duration: 18s;
}

.aurora-2 {
    background: radial-gradient(ellipse at 70% 80%, var(--accent) 0%, transparent 60%);
    top: -25%;
    left: -25%;
    animation-duration: 22s;
    animation-delay: -5s;
}

.aurora-3 {
    background: radial-gradient(ellipse at 50% 50%, var(--secondary) 0%, transparent 60%);
    top: -25%;
    left: -25%;
    animation-duration: 25s;
    animation-delay: -10s;
    opacity: 0.15;
}

@keyframes auroraFlow {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(5%, 5%) rotate(5deg) scale(1.05);
    }
    50% {
        transform: translate(-5%, 10%) rotate(-5deg) scale(0.95);
    }
    75% {
        transform: translate(10%, -5%) rotate(3deg) scale(1.02);
    }
}

/* Dark mode aurora intensity */
body.dark-mode .aurora-layer {
    opacity: 0.2;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: orbFloat 20s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 102, 255, 0.2);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(139, 92, 246, 0.2);
    top: 60%;
    right: 10%;
    animation-delay: -7s;
}

.hero-orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(16, 185, 129, 0.15);
    bottom: 20%;
    left: 30%;
    animation-delay: -14s;
}

body.dark-mode .hero-orb-1 {
    background: rgba(59, 130, 246, 0.3);
}

body.dark-mode .hero-orb-2 {
    background: rgba(139, 92, 246, 0.3);
}

body.dark-mode .hero-orb-3 {
    background: rgba(52, 211, 153, 0.2);
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 10px) scale(1.02);
    }
}

.hero-content {
    text-align: center;
    padding: 20px;
    max-width: 900px;
    z-index: 1;
}

.hero-title {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    margin-bottom: 40px;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button-large {
    padding: 18px 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
}

.cta-button-large:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

.cta-button-large .arrow {
    transition: var(--transition);
    font-size: 20px;
}

.cta-button-large:hover .arrow {
    transform: translateX(6px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
    transition: opacity 0.5s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-8px);
    }

    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-tertiary), transparent);
}

/* ========================================
   Bento Grid Features
   ======================================== */
.features {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 30% at 10% 50%, rgba(0, 102, 255, 0.05), transparent),
        radial-gradient(ellipse 40% 40% at 90% 80%, rgba(139, 92, 246, 0.05), transparent);
    pointer-events: none;
}

body.dark-mode .features::before {
    background:
        radial-gradient(ellipse 50% 30% at 10% 50%, rgba(59, 130, 246, 0.08), transparent),
        radial-gradient(ellipse 40% 40% at 90% 80%, rgba(139, 92, 246, 0.08), transparent);
}

.section-title {
    text-align: center;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
}

.bento-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
}

.bento-small {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.bento-wide {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 40px;
}

.bento-icon {
    width: 96px;
    height: 96px;
    margin-bottom: 28px;
    color: var(--primary);
    transition: var(--transition);
}

.bento-small .bento-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
}

.bento-icon svg {
    width: 100%;
    height: 100%;
}

.ai-icon {
    color: var(--primary);
}

.brain-icon {
    color: var(--accent);
}

.chart-icon {
    color: var(--secondary);
}

.science-icon {
    color: var(--primary);
}

.bento-card:hover .bento-icon {
    transform: scale(1.1);
}

.bento-card h3 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.bento-small h3 {
    font-size: 26px;
    margin-bottom: 12px;
}

.bento-card p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.bento-small p {
    font-size: 16px;
}

/* Bento Visual Effects */
.bento-visual {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 100px;
    height: 100px;
}

/* Neural Graph Animation */
.neural-graph {
    position: relative;
    width: 100%;
    height: 100%;
}

.graph-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.4);
    animation: nodePulse 3s ease-in-out infinite;
}

.node-1 {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.node-2 {
    bottom: 10%;
    left: 10%;
    background: var(--accent);
    animation-delay: 1s;
}

.node-3 {
    bottom: 10%;
    right: 10%;
    background: var(--secondary);
    animation-delay: 2s;
}

.graph-link {
    position: absolute;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.2;
    transform-origin: left center;
}

.link-1 {
    top: 16%;
    left: 50%;
    width: 56%;
    height: 2px;
    transform: rotate(115deg);
}

.link-2 {
    top: 16%;
    left: 50%;
    width: 56%;
    height: 2px;
    transform: rotate(65deg);
}

.link-3 {
    bottom: 15%;
    left: 16%;
    width: 68%;
    height: 2px;
}

@keyframes nodePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 10px rgba(0, 102, 255, 0.4);
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
        box-shadow: 0 0 20px rgba(0, 102, 255, 0.6);
    }
}

/* Bento Wide Layout */
.bento-wide .bento-icon {
    flex-shrink: 0;
}

.bento-wide-content {
    flex: 1;
}

.bento-wide-content h3 {
    margin-bottom: 8px;
}

.bento-stats {
    display: flex;
    gap: 32px;
    margin-left: auto;
}

.mini-stat {
    text-align: center;
}

.mini-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.mini-stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* ========================================
   Video Preview Section
   ======================================== */
.video-preview {
    padding: 120px 0;
    background: var(--bg-primary);
}

.video-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 960px;
    margin: 0 auto;
    background: var(--bg-tertiary);
}

.video-wrapper:hover {
    box-shadow: var(--shadow-glow);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* ========================================
   Process Section
   ======================================== */
.process {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.process-timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.process-step {
    flex: 0 0 auto;
    width: 180px;
    text-align: center;
    padding: 32px 24px;
}

.process-step:hover {
    transform: translateY(-8px);
}

.step-number {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.25);
}

.highlight-step {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    box-shadow: var(--shadow-glow-accent);
}

.process-step h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.process-step p {
    font-size: 14px;
    color: var(--text-secondary);
}

.process-connector {
    width: 60px;
    height: 2px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connector-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.3;
}

.connector-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: connectorPulse 2s infinite;
}

@keyframes connectorPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* ========================================
   Stats Section
   ======================================== */
.stats {
    padding: 120px 0;
    background: var(--bg-primary);
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(0, 102, 255, 0.05), transparent);
    pointer-events: none;
}

.stats-title {
    text-align: center;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.stat-item {
    text-align: center;
    padding: 48px 32px;
}

.stat-item:hover {
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 67%, var(--accent) 33%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    letter-spacing: -0.03em;
}

.stat-suffix {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    display: inline-block;
    vertical-align: top;
    margin-top: 12px;
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    color: var(--primary);
}

.stat-icon svg {
    width: 100%;
    height: 100%;
}

.stat-label {
    font-size: 20px;
    margin-top: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-description {
    font-size: 15px;
    margin-top: 8px;
    color: var(--text-secondary);
}

/* ========================================
   Timeline Section
   ======================================== */
.timeline-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
    padding-left: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 32px;
    width: 16px;
    height: 16px;
    background: var(--bg-tertiary);
    border: 3px solid var(--text-tertiary);
    border-radius: 50%;
    transition: var(--transition);
}

.timeline-item.active::before {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
}

/* Inactive timeline items - subtle styling */
.timeline-item:not(.active) .timeline-content {
    opacity: 0.7;
}

.timeline-item:not(.active):hover .timeline-content {
    opacity: 1;
}

.timeline-date {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.timeline-item.active .timeline-date {
    color: var(--primary);
}

.timeline-content {
    padding: 28px 32px;
    position: relative;
}

.timeline-content:hover {
    transform: translateX(8px);
}

.timeline-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 0.1em;
}

.timeline-content h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0, 102, 255, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 30% 80%, rgba(139, 92, 246, 0.06), transparent);
}

body.dark-mode .cta-gradient {
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(59, 130, 246, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 30% 80%, rgba(139, 92, 246, 0.1), transparent);
}

.cta-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.cta-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 60px 0;
    background: #FFFFFF;
    border-top: 1px solid var(--border-glass);
}

body.dark-mode .footer {
    background: #000000;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.footer-logo .logo-image {
    height: 48px;
}

.footer-text {
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.footer-copyright {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ========================================
   Modal
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-primary);
    padding: 48px 40px;
    border-radius: 28px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid var(--border-glass);
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 28px;
    font-weight: 300;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
}

.modal-close:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.modal-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.modal-content h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.modal-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.modal-info {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    margin-top: 24px;
}

.modal-info p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

.modal-button {
    display: inline-block;
    margin-top: 28px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    width: 100%;
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Contact Modal */
#contactModal .modal-content {
    max-width: 420px;
}

.email-address {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    padding: 16px 24px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    margin: 16px 0;
    word-break: break-all;
}

.email-alternatives {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
}

.alternatives-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.webmail-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.webmail-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.webmail-icon {
    width: 20px;
    height: 20px;
}

.webmail-link.gmail {
    background: #EA4335;
    color: white;
}

.webmail-link.gmail:hover {
    background: #D33426;
    transform: translateY(-2px);
}

.webmail-link.outlook {
    background: #0078D4;
    color: white;
}

.webmail-link.outlook:hover {
    background: #006ABC;
    transform: translateY(-2px);
}

.webmail-link.default {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.webmail-link.default:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ========================================
   Animation on Scroll
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.bento-grid .animate-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.bento-grid .animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.bento-grid .animate-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

.bento-grid .animate-on-scroll:nth-child(4) {
    transition-delay: 0.4s;
}

.process-timeline .animate-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.process-timeline .animate-on-scroll:nth-child(2) {
    transition-delay: 0.15s;
}

.process-timeline .animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.process-timeline .animate-on-scroll:nth-child(4) {
    transition-delay: 0.25s;
}

.process-timeline .animate-on-scroll:nth-child(5) {
    transition-delay: 0.3s;
}

.process-timeline .animate-on-scroll:nth-child(6) {
    transition-delay: 0.35s;
}

.process-timeline .animate-on-scroll:nth-child(7) {
    transition-delay: 0.4s;
}

.stats-grid .animate-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.stats-grid .animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.stats-grid .animate-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

.timeline .animate-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.timeline .animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.timeline .animate-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 300px;
    }

    .bento-wide {
        grid-column: span 2;
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .bento-stats {
        margin-left: 0;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header .container {
        padding: 12px 20px;
    }

    .logo-image {
        height: 40px;
    }

    .contact-button {
        padding: 8px 16px;
        font-size: 13px;
    }

    .hero-title {
        font-size: clamp(32px, 7vw, 48px);
    }

    .section-title {
        font-size: clamp(28px, 5vw, 36px);
        margin-bottom: 40px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bento-large,
    .bento-wide {
        grid-column: span 1;
    }

    .bento-card {
        padding: 32px 24px;
    }

    .bento-card h3 {
        font-size: 22px;
    }

    .process-timeline {
        flex-direction: column;
        gap: 0;
    }

    .process-step {
        width: 100%;
        max-width: 280px;
    }

    .process-connector {
        width: 2px;
        height: 40px;
        flex-direction: column;
    }

    .connector-line {
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg, var(--primary), var(--accent));
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-item {
        padding: 36px 24px;
    }

    .stat-number {
        font-size: 48px;
    }

    .timeline {
        padding-left: 24px;
    }

    .timeline::before {
        left: 4px;
    }

    .timeline-item {
        padding-left: 24px;
    }

    .timeline-item::before {
        left: -20px;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 24px;
    }

    .cta-button-large {
        padding: 16px 36px;
        font-size: 16px;
    }

    .features,
    .video-preview,
    .process,
    .stats,
    .timeline-section,
    .cta-section {
        padding: 80px 0;
    }

    .modal-content {
        padding: 36px 28px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .header-nav {
        gap: 8px;
    }

    .theme-toggle {
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
    }

    /* Icon-only contact button on small mobile */
    .contact-button {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        font-size: 0; /* Hide text */
        gap: 0;
    }

    .contact-button .contact-icon {
        width: 20px;
        height: 20px;
    }

    .logo-image {
        height: 36px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .cta-button-large {
        padding: 14px 28px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }

    .bento-card {
        padding: 28px 20px;
    }

    .bento-icon {
        width: 48px;
        height: 48px;
    }

    .bento-small .bento-icon {
        width: 40px;
        height: 40px;
    }

    .stat-number {
        font-size: 40px;
    }

    .stat-suffix {
        font-size: 20px;
    }

    .footer-logo .logo-image {
        height: 40px;
    }
}