/* ============================================================
   LiveTranslate — Style Sheet
   Dark Cyberpunk · Glassmorphism · Teal Accents
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --bg:            #07111e;
    --bg-deep:       #050d17;
    --card-bg:       rgba(255, 255, 255, 0.04);
    --card-border:   rgba(255, 255, 255, 0.09);
    --teal:          #00d4aa;
    --teal-dim:      #00a888;
    --teal-glow:     rgba(0, 212, 170, 0.22);
    --purple:        #7c5cfc;
    --purple-dim:    #5e3de0;
    --purple-glow:   rgba(124, 92, 252, 0.22);
    --text:          #d8e5f3;
    --text-muted:    #6b8299;
    --text-faint:    #3d5269;
    --white:         #ffffff;
    --radius-sm:     8px;
    --radius-md:     14px;
    --radius-lg:     20px;
    --radius-full:   999px;
    --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main:     'Outfit', sans-serif;
    --font-body:     'Inter', sans-serif;
    --max-w:         1100px;
    --nav-h:         68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ---------- Background Effects ---------- */
.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 38px 38px;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
    z-index: 0;
    animation: blobDrift 14s ease-in-out infinite alternate;
}

.blob-1 {
    width: 560px; height: 560px;
    background: rgba(0, 212, 170, 0.13);
    top: -140px; left: -140px;
    animation-duration: 16s;
}
.blob-2 {
    width: 420px; height: 420px;
    background: rgba(124, 92, 252, 0.16);
    bottom: 80px; right: -100px;
    animation-duration: 12s;
    animation-delay: -4s;
}
.blob-3 {
    width: 280px; height: 280px;
    background: rgba(0, 168, 136, 0.10);
    top: 55%; left: 42%;
    animation-duration: 20s;
    animation-delay: -8s;
}

@keyframes blobDrift {
    0%   { transform: translate(0,0) scale(1); }
    50%  { transform: translate(30px, 40px) scale(1.08); }
    100% { transform: translate(-20px, 20px) scale(0.96); }
}

/* ---------- Containers ---------- */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section { padding: 80px 0; }
.text-center { text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.25;
    color: var(--white);
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 12px;
}

.section-sub {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--teal), #34d3be, var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: var(--transition);
    white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-sm  { font-size: 13px; padding: 8px 18px; }
.btn-lg  { font-size: 15px; padding: 13px 28px; }
.btn-xl  { font-size: 16px; padding: 16px 36px; }

.btn-primary {
    background: linear-gradient(135deg, var(--teal), var(--teal-dim));
    color: var(--bg-deep);
    box-shadow: 0 0 22px var(--teal-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 38px rgba(0, 212, 170, 0.45);
    background: linear-gradient(135deg, #1de0b5, var(--teal));
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--card-border);
}
.btn-outline:hover {
    border-color: var(--teal);
    color: var(--teal);
    box-shadow: 0 0 16px var(--teal-glow);
    transform: translateY(-2px);
}

/* ---------- Glassmorphism ---------- */
.glass {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    background: rgba(7, 17, 30, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
    background: rgba(5, 13, 23, 0.95);
    box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo-img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 0 14px var(--teal-glow);
}

.logo-text {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 19px;
    color: var(--white);
    letter-spacing: -0.3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}
.nav-links a {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
    position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--teal); }

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0; right: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--teal);
    box-shadow: 0 0 8px var(--teal-glow);
}

/* Mobile-only CTA inside dropdown — hidden on desktop */
.nav-cta-mobile { display: none; }

.nav-cta { margin-left: 8px; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- HERO ---------- */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 80px) 0 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-badges-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    color: var(--teal);
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.hero-version-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(124, 92, 252, 0.12);
    border: 1px solid rgba(124, 92, 252, 0.3);
    color: var(--purple);
    font-family: var(--font-main);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    letter-spacing: 0.3px;
}

.badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 8px var(--teal);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 18px;
    letter-spacing: -1px;
}
.brand-name {
    display: block;
    background: linear-gradient(135deg, #ffffff, #b8d4ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle-line {
    display: block;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 10px;
    letter-spacing: 0;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.hero-note {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-faint);
}

/* ---- Laptop Mockup ---- */
.hero-visual { position: relative; }

.laptop-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

.laptop {
    width: 100%;
    max-width: 480px;
    filter: drop-shadow(0 40px 60px rgba(0,0,0,0.7));
}

.laptop-screen {
    background: #111927;
    border-radius: 14px 14px 0 0;
    border: 2px solid #1e2e42;
    border-bottom: none;
    overflow: hidden;
    position: relative;
    padding-bottom: 62.5%; /* 16:10 aspect */
}

.screen-inner {
    position: absolute;
    inset: 0;
}

.screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
}

.screen-overlay-ui {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    background: linear-gradient(to top, rgba(7,17,30,0.95) 0%, rgba(7,17,30,0.1) 60%);
}

.overlay-label {
    font-family: var(--font-main);
    font-size: 11px;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
    opacity: 0.8;
}

.subtitle-line {
    font-size: 11px;
    line-height: 1.5;
    padding: 2px 0;
}
.lang-en { animation: subtitleFade 4s ease-in-out infinite alternate; }

.typewriter-fade {
    animation: typewriterFade 0.4s ease-in-out both;
}
@keyframes typewriterFade {
    0%   { opacity: 0; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}

.lang-tag {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 10px;
    margin-right: 4px;
}
.lang-en .lang-tag { color: #60a5fa; }
.lang-vi .lang-tag { color: var(--teal); }
.lang-en { color: rgba(255,255,255,0.9); }
.lang-vi  { color: rgba(0, 212, 170, 0.9); }

@keyframes subtitleFade {
    0%   { opacity: 0.7; }
    100% { opacity: 1; }
}

.laptop-body {
    background: linear-gradient(to bottom, #1a2840, #111d2e);
    height: 24px;
    border-radius: 0 0 4px 4px;
    border: 2px solid #1e2e42;
    border-top: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
.laptop-notch {
    width: 60px; height: 8px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: #0f1a28;
    border: 1.5px solid #1e2e42;
    border-top: none;
}

.laptop-glow {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 60px;
    background: var(--teal);
    filter: blur(60px);
    opacity: 0.12;
    border-radius: 50%;
}

/* ---------- STATS BAR ---------- */
.stats-bar {
    padding: 40px 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}
.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,212,170,0.03), rgba(124,92,252,0.03));
    pointer-events: none;
}

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

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 140px;
    padding: 8px 24px;
}

.stat-number {
    font-family: var(--font-main);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -1px;
}

.stat-label {
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--card-border);
    flex-shrink: 0;
}

/* ---------- LANGUAGE STRIP ---------- */
.language-strip {
    padding: 32px 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    background: rgba(0,0,0,0.25);
}

.strip-label {
    font-family: var(--font-main);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lang-pill {
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 16px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--card-border);
    color: var(--text-muted);
    cursor: default;
    transition: var(--transition);
    user-select: none;
}
.lang-pill:hover,
.lang-pill.active {
    border-color: var(--teal);
    color: var(--teal);
    background: rgba(0, 212, 170, 0.08);
    box-shadow: 0 0 12px var(--teal-glow);
}

/* ---------- FEATURES ---------- */
.features .section-title { margin-bottom: 8px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 22px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.feature-card:hover {
    border-color: rgba(0, 212, 170, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 20px var(--teal-glow);
}
.feature-card:has(.icon-purple):hover {
    border-color: rgba(124, 92, 252, 0.3);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 20px var(--purple-glow);
}

.feature-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.2);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--teal);
    transition: var(--transition);
}
.feature-icon.icon-purple {
    background: rgba(124, 92, 252, 0.1);
    border-color: rgba(124, 92, 252, 0.2);
    color: var(--purple);
}
.feature-card:hover .feature-icon {
    background: rgba(0, 212, 170, 0.18);
    box-shadow: 0 0 16px var(--teal-glow);
}
.feature-card:has(.icon-purple):hover .feature-icon {
    background: rgba(124, 92, 252, 0.18);
    box-shadow: 0 0 16px var(--purple-glow);
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.feature-body p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

.coming-soon-tag {
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-main);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(124, 92, 252, 0.15);
    border: 1px solid rgba(124, 92, 252, 0.3);
    color: var(--purple);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ---------- HOW IT WORKS ---------- */
.how-it-works { background: rgba(0,0,0,0.2); }

.section-title.text-center { margin-bottom: 8px; }

.steps-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-top: 48px;
}

.step {
    text-align: center;
    max-width: 220px;
    flex: 1;
}

.step-icon-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.step-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 2px solid var(--teal);
    background: rgba(0, 212, 170, 0.07);
    display: flex; align-items: center; justify-content: center;
    color: var(--teal);
    position: relative;
    z-index: 1;
    transition: var(--transition);
    box-shadow: 0 0 20px var(--teal-glow);
}
.step-icon svg { width: 26px; height: 26px; }

.step:hover .step-icon {
    background: rgba(0, 212, 170, 0.15);
    box-shadow: 0 0 36px rgba(0, 212, 170, 0.45);
    transform: scale(1.08);
}

.step-number {
    position: absolute;
    top: -6px; right: calc(50% - 40px);
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--bg-deep);
    font-family: var(--font-main);
    font-size: 11px;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
}

.step h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.step p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-connector {
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding-top: 32px;
    max-width: 80px;
}

.connector-line {
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        var(--teal) 0px,
        var(--teal) 6px,
        transparent 6px,
        transparent 14px
    );
    opacity: 0.4;
    animation: dashFlow 2s linear infinite;
    background-size: 200% 100%;
}
@keyframes dashFlow {
    from { background-position: 0 0; }
    to   { background-position: 100% 0; }
}

/* ---------- FAQ ---------- */
.faq { background: rgba(0,0,0,0.15); }

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color var(--transition);
}
.faq-item.open {
    border-color: rgba(0, 212, 170, 0.3);
    border-left: 3px solid var(--teal);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    color: var(--white);
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 600;
    transition: color var(--transition);
}
.faq-question:hover { color: var(--teal); }

.faq-chevron {
    width: 18px; height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform var(--transition), color var(--transition);
}
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--teal);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 22px;
}
.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 22px 20px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}
.faq-answer p strong {
    color: var(--text);
}

/* ---------- CTA BANNER ---------- */
.cta-glow-card {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.06), rgba(124, 92, 252, 0.06));
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: var(--radius-lg);
    padding: 64px 40px;
    position: relative;
    overflow: hidden;
}

/* Animated rotating border */
.cta-border-anim {
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: conic-gradient(
        from var(--angle, 0deg),
        transparent 0deg,
        var(--teal) 60deg,
        var(--purple) 120deg,
        transparent 180deg
    );
    z-index: -1;
    opacity: 0.5;
    animation: rotateBorder 6s linear infinite;
}
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes rotateBorder {
    to { --angle: 360deg; }
}

.cta-glow-card::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 300px; height: 200px;
    background: var(--teal);
    filter: blur(80px);
    opacity: 0.08;
    border-radius: 50%;
    pointer-events: none;
}

.cta-glow-card .section-title { margin-bottom: 8px; }
.cta-sub {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
}
.cta-note {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-faint);
}

/* ---------- FOOTER ---------- */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--card-border);
    background: rgba(0,0,0,0.2);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-logo {
    opacity: 0.85;
    transition: opacity var(--transition);
}
.footer-logo:hover { opacity: 1; }

.footer-links-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 24px;
}
.footer-links-row a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--transition);
}
.footer-links-row a:hover { color: var(--teal); }

.footer-social-row {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}
.social-btn svg { width: 17px; height: 17px; }
.social-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
    box-shadow: 0 0 12px var(--teal-glow);
    transform: translateY(-2px);
}

.footer-copy {
    font-size: 12px;
    color: var(--text-faint);
}

/* ---------- SCROLL TO TOP ---------- */
#scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(7, 17, 30, 0.85);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--teal);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 90;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition),
                box-shadow var(--transition), border-color var(--transition);
}
#scroll-top svg { width: 18px; height: 18px; }
#scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#scroll-top:hover {
    border-color: var(--teal);
    box-shadow: 0 0 20px var(--teal-glow);
    transform: translateY(-2px);
}

/* ---------- Scroll Animations ---------- */
.fade-in-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .menu-toggle { display: flex; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-h);
        left: 0; right: 0;
        background: rgba(5, 13, 23, 0.97);
        backdrop-filter: blur(16px);
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--card-border);
    }
    .nav-links.open a { font-size: 15px; }
    /* Show mobile CTA inside dropdown */
    .nav-links.open .nav-cta-mobile {
        display: inline-flex;
        width: 100%;
        justify-content: center;
    }

    .hero { padding-top: calc(var(--nav-h) + 24px); min-height: auto; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { order: -1; }
    .laptop { max-width: 320px; margin: 0 auto; }

    .stats-grid { gap: 0; }
    .stat-divider { display: none; }
    .stat-item { min-width: 130px; flex: none; width: 50%; padding: 12px 16px; }

    .features-grid { grid-template-columns: 1fr; }

    .steps-row {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .step { max-width: 280px; }
    .step-connector { padding-top: 0; width: 2px; height: 40px; max-width: none; flex: none; }
    .connector-line { width: 2px; height: 100%; background: repeating-linear-gradient(to bottom, var(--teal), var(--teal) 6px, transparent 6px, transparent 14px); }

    .cta-glow-card { padding: 40px 20px; }

    .section { padding: 56px 0; }

    #scroll-top { bottom: 18px; right: 18px; }
}

@media (max-width: 480px) {
    .hero-cta-group { flex-direction: column; }
    .btn-lg { width: 100%; justify-content: center; }
    .stat-item { width: 100%; }
    .stat-divider { display: block; width: 80%; height: 1px; margin: 0 auto; }
}

/* ===================== DEMO VIDEO SECTION ===================== */
.video-section {
    text-align: center;
}

.video-section .section-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0 auto 2rem;
    max-width: 560px;
}

.video-thumb-link {
    display: block;
    max-width: 860px;
    margin: 0 auto;
    text-decoration: none;
}

.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 16 / 9;
    background: #000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-thumb-link:hover .video-wrapper {
    transform: translateY(-4px);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.7);
}

.video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.88;
    transition: opacity 0.2s ease;
}

.video-thumb-link:hover .video-thumb-img {
    opacity: 1;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6));
    transition: transform 0.2s ease, filter 0.2s ease;
    pointer-events: none;
}

.video-thumb-link:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.12);
    filter: drop-shadow(0 6px 24px rgba(0,0,0,0.8));
}

.video-yt-badge {
    position: absolute;
    bottom: 14px;
    right: 16px;
    background: rgba(0,0,0,0.72);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 6px;
    pointer-events: none;
}
