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

:root {
    --viz-black: #08080E;
    --viz-deep: #0D0B1A;
    --viz-violet: #7C3AED;
    --viz-magenta: #C026D3;
    --viz-cyan: #06B6D4;
    --viz-amber: #F59E0B;
    --viz-white: #F0ECFF;
    --viz-muted: rgba(240,236,255,0.55);
    --viz-glass: rgba(13,11,26,0.72);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--viz-black);
    color: var(--viz-white);
    line-height: 1.65;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    height: 60px;
    background: rgba(8,8,14,0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(124,58,237,0.18);
}
.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--viz-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-logo-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--viz-violet);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    font-size: 0.875rem;
    color: var(--viz-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--viz-white); }

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
#vizCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.85;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 55%, transparent 0%, rgba(8,8,14,0.65) 100%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 120px 2rem 80px;
    text-align: center;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--viz-cyan);
    margin-bottom: 1.5rem;
    padding: 6px 14px;
    border: 1px solid rgba(6,182,212,0.3);
    border-radius: 100px;
    background: rgba(6,182,212,0.08);
}
.hero-eyebrow-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--viz-cyan);
    animation: pulse-dot 1.4s ease-in-out infinite;
}
h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--viz-white);
    margin-bottom: 1.5rem;
}
h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--viz-violet), var(--viz-magenta), var(--viz-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 1.125rem;
    color: var(--viz-muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* ── DOWNLOAD BUTTON ── */
.download-wrapper {
    display: inline-flex;
    align-items: stretch;
    border-radius: 12px;
    overflow: visible;
    position: relative;
    gap: 2px;
}
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--viz-violet);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 10px 0 0 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
}
.download-btn:hover { background: #6d28d9; transform: translateY(-1px); }
.download-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.download-toggle {
    background: rgba(124,58,237,0.7);
    border: none;
    border-left: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 14px 14px;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    font-size: 0.7rem;
    transition: background 0.2s;
}
.download-toggle:hover { background: rgba(124,58,237,0.9); }
.download-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: #18152a;
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: 10px;
    overflow: hidden;
    z-index: 50;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}
.download-menu.open { display: block; }
.download-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    color: var(--viz-white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s;
}
.download-menu a:hover { background: rgba(124,58,237,0.2); }
.download-menu a .os-icon { font-size: 1rem; width: 18px; text-align: center; }

.download-menu{
    min-width: 110% !important;
}

.platform-hint {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: rgba(240,236,255,0.4);
}

/* ── STATS BAR ── */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 4rem;
}
.stat-item {
    padding: 0 2.5rem;
    border-right: 1px solid rgba(240,236,255,0.1);
    text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--viz-white);
    display: block;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--viz-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── SCROLL INDICATOR ── */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(240,236,255,0.3);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}
.scroll-arrow {
    width: 20px; height: 20px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    animation: bounce-arrow 1.8s ease-in-out infinite;
}
@keyframes bounce-arrow {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.3; }
    50% { transform: rotate(45deg) translateY(4px); opacity: 0.8; }
}

/* ── SECTION SHARED ── */
section { padding: 7rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--viz-violet);
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--viz-white);
    margin-bottom: 1rem;
    line-height: 1.15;
}
.section-lead {
    font-size: 1.05rem;
    color: var(--viz-muted);
    max-width: 540px;
    margin-bottom: 3.5rem;
    line-height: 1.7;
}

/* ── WHY / POSITIONING ── */
.why-section {
    background: var(--viz-deep);
    border-top: 1px solid rgba(124,58,237,0.12);
    border-bottom: 1px solid rgba(124,58,237,0.12);
}
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: rgba(124,58,237,0.1);
    border-radius: 16px;
    overflow: hidden;
}
.why-card {
    background: var(--viz-deep);
    padding: 2.5rem;
}
.why-card:nth-child(1) { border-radius: 16px 0 0 0; }
.why-card:nth-child(2) { border-radius: 0 16px 0 0; }
.why-card:nth-child(3) { border-radius: 0 0 0 16px; }
.why-card:nth-child(4) { border-radius: 0 0 16px 0; }
.why-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--viz-cyan);
    line-height: 1;
    margin-bottom: 1rem;
}
.why-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--viz-white);
    margin-bottom: 0.65rem;
}

.why-card p {
    font-size: 0.92rem;
    color: var(--viz-muted);
    line-height: 1.6;
}

/* ── FEATURES ── */
.features-section { background: var(--viz-black); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5px;
    background: rgba(240,236,255,0.06);
    border: 1px solid rgba(240,236,255,0.06);
    border-radius: 16px;
    overflow: hidden;
}
.feature-card {
    background: #0a0a12;
    padding: 2.25rem;
    transition: background 0.2s;
}
.feature-card:hover { background: #0f0d1e; }
.feature-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.1rem;
}
.feat-violet { background: rgba(124,58,237,0.15); }
.feat-cyan   { background: rgba(6,182,212,0.12); }
.feat-mag    { background: rgba(192,38,211,0.12); }
.feat-amber  { background: rgba(245,158,11,0.12); }
.feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--viz-white);
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.875rem;
    color: var(--viz-muted);
    line-height: 1.6;
}

.feature-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #7C3AED;
    line-height: 1;
    margin-bottom: 1rem;
}

/* ── HOW IT WORKS ── */
.how-section {
    background: var(--viz-deep);
    border-top: 1px solid rgba(6,182,212,0.1);
}
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 640px;
}
.step {
    display: flex;
    gap: 1.75rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(240,236,255,0.06);
}
.step:last-child { border-bottom: none; }
.step-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--viz-cyan);
    width: 32px;
    flex-shrink: 0;
    padding-top: 0.15rem;
}
.step-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--viz-white);
    margin-bottom: 0.4rem;
}
.step-body p {
    font-size: 0.9rem;
    color: var(--viz-muted);
    line-height: 1.6;
}

/* ── SCREENSHOTS ── */
.screenshots-section { background: var(--viz-black); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.gallery-grid img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(124,58,237,0.2);
    filter: brightness(0.85) saturate(1.1);
    transition: filter 0.25s, transform 0.25s;
}
.gallery-grid img:hover { filter: brightness(1) saturate(1.2); transform: scale(1.02); }

/* ── CTA ── */
.cta-section {
    background: var(--viz-deep);
    border-top: 1px solid rgba(124,58,237,0.15);
    text-align: center;
}
.cta-section .section-title { margin-bottom: 1.2rem; }
.cta-section .section-lead { margin: 0 auto 2.5rem; }
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--viz-violet), var(--viz-magenta));
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 15px 32px;
    border-radius: 10px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
}
.cta-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── FOOTER ── */
footer {
    padding: 2.5rem 2rem;
    border-top: 1px solid rgba(240,236,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--viz-white);
    text-decoration: none;
}
footer p {
    font-size: 0.82rem;
    color: rgba(240,236,255,0.3);
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}
.footer-links a {
    font-size: 0.82rem;
    color: rgba(240,236,255,0.35);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--viz-white); }

.vizwiz-logo {
    width: clamp(2rem, 3vw, 2.5rem);
    margin: 0.5rem;
}

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.nav-hamburger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.license{
    font-family: 'Space Grotesk', sans-serif;
    color: var(--viz-white);
    text-decoration: none;
}

#mobileText{ display: none;}


/* Mobile layout */
@media (max-width: 768px) {
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
    .hero-content{
        padding: 0;
    }
    .download-wrapper{ display: none; }
    #mobileText{ display: block;}
    #platformText{ display: none;}
    .why-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .stats-bar { flex-wrap: wrap; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(240,236,255,0.1); padding: 1rem 1.5rem; }
    .stat-item:last-child { border-bottom: none; }
    nav { padding: 0 1.25rem; }
    .nav-links { gap: 1.2rem; }
    footer { flex-direction: column; align-items: flex-start; }
    .nav-hamburger {display: block;}
    .nav-links {
        position: absolute;
        top: 70px;
        right: 20px;
        left: 20px;
        flex-direction: column;
        gap: 16px;
        background: rgba(10, 10, 20, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px;
        border-radius: 16px;
        display: none; /* hidden by default */
    }

    .nav-links.open {
        display: flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-logo-dot, .hero-eyebrow-dot, .scroll-arrow { animation: none; }
}
