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

:root {
    --bg-dark: #0a0a0f;
    --bg-section: #111118;
    --bg-card: #1a1a24;
    --accent: #34d399;
    --accent-dim: #22a87a;
    --text: #e8e8f0;
    --text-dim: #9898a8;
    --text-bright: #ffffff;
    --gradient-start: #34d399;
    --gradient-end: #3b82f6;
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    --max-width: 1100px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3 { color: var(--text-bright); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { color: var(--text-dim); font-size: 1.05rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dim); }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

section { padding: 5rem 0; }
section:nth-child(even) { background: var(--bg-section); }

/* ── Nav ── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0.8rem 0;
}
nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.1rem; color: var(--text-bright); }
.nav-brand img { width: 32px; height: 32px; border-radius: 7px; }
.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a { color: var(--text-dim); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-bright); }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1.8rem; border-radius: 12px; font-weight: 600; font-size: 1rem;
    transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); color: #000; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(52, 211, 153, 0.25); color: #000; }
.btn-secondary { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid rgba(255,255,255,0.1); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); color: var(--text-bright); }

/* ── Hero ── */
.hero {
    padding: 10rem 0 4rem;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(52, 211, 153, 0.08) 0%, transparent 60%), var(--bg-dark);
}
.hero-icon { width: 120px; height: 120px; border-radius: 26px; margin-bottom: 2rem; box-shadow: 0 0 60px rgba(52, 211, 153, 0.15); }
.hero h1 { margin-bottom: 1rem; }
.hero h1 span {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-tagline { font-size: clamp(1.1rem, 2.5vw, 1.35rem); color: var(--text-dim); max-width: 600px; margin: 0 auto 2.5rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

/* ── Hero Screenshot ── */
.hero-screenshot {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
    cursor: pointer;
}
.hero-screenshot img {
    width: 100%; height: auto; display: block;
    position: absolute; inset: 0;
    opacity: 0; transition: opacity 1s ease;
}
.hero-screenshot img:first-child { position: relative; }
.hero-screenshot img.active { opacity: 1; }

/* ── Section Headers ── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header p { max-width: 600px; margin: 1rem auto 0; }
.section-label {
    display: inline-block; font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem;
}

/* ── Color Spectrum Bar ── */
.spectrum-bar {
    display: flex; border-radius: 8px; overflow: hidden; height: 40px;
    max-width: 500px; margin: 2rem auto; box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.spectrum-bar .zone {
    flex: 1; display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; color: rgba(0,0,0,0.7);
}

/* ── Screenshot with Caption ── */
.screenshot-showcase {
    max-width: 700px;
    margin: 2.5rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
}
.screenshot-showcase img { width: 100%; height: auto; display: block; }
.viz-showcase {
    position: relative;
    max-width: 700px;
    margin: 2.5rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
    cursor: pointer;
}
.viz-showcase img {
    width: 100%; height: auto; display: block;
    position: absolute; inset: 0;
    opacity: 0; transition: opacity 1s ease;
}
.viz-showcase img:first-child { position: relative; }
.viz-showcase img.active { opacity: 1; }
.viz-showcase-label {
    text-align: center; font-size: 0.8rem; color: var(--text-dim);
    margin-top: 0.75rem; font-variant-numeric: tabular-nums;
    transition: opacity 0.4s ease;
}

/* ── Feature Grid ── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.feature-card {
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px; padding: 2rem; transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(52, 211, 153, 0.2); }
.feature-card .icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { margin-bottom: 0.6rem; }
.feature-card p { font-size: 0.95rem; }

/* ── Tip Callout ── */
.tip-callout {
    background: rgba(52, 211, 153, 0.06);
    border: 1px solid rgba(52, 211, 153, 0.15);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2.5rem auto;
    max-width: 700px;
}
.tip-callout h4 {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.tip-callout p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ── Feature card with image ── */
.feature-card-img {
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px; overflow: hidden; transition: transform 0.2s, border-color 0.2s;
}
.feature-card-img:hover { transform: translateY(-4px); border-color: rgba(52, 211, 153, 0.2); }
.feature-card-img img { width: 100%; height: auto; display: block; }
.feature-card-img .card-body { padding: 1.5rem; }
.feature-card-img h3 { margin-bottom: 0.4rem; }
.feature-card-img p { font-size: 0.9rem; }

/* ── Visualization Showcase ── */
.viz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.viz-card {
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px; overflow: hidden; transition: transform 0.2s, border-color 0.2s;
}
.viz-card:hover { transform: translateY(-4px); border-color: rgba(52, 211, 153, 0.2); }
.viz-card img { width: 100%; height: auto; display: block; }
.viz-card .viz-body { padding: 1.2rem 1.5rem; }
.viz-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.viz-card p { font-size: 0.85rem; }

/* ── Platform Grid ── */
.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.platform-card {
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px; padding: 2rem; text-align: center; transition: transform 0.2s;
}
.platform-card:hover { transform: translateY(-4px); }
.platform-card .platform-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.platform-card h3 { margin-bottom: 0.5rem; }
.platform-card p { font-size: 0.9rem; }

/* ── Platform card with image ── */
.platform-card-img {
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px; overflow: hidden; text-align: center; transition: transform 0.2s;
    display: flex; flex-direction: column;
}
.platform-card-img:hover { transform: translateY(-4px); }
.platform-card-img .platform-img-area {
    height: 260px; display: flex; align-items: center; justify-content: center;
    background: #000; overflow: hidden;
}
.platform-card-img .platform-img-area img { width: 100%; height: 100%; object-fit: contain; display: block; }
.platform-card-img .platform-body { padding: 1.5rem; }
.platform-card-img h3 { margin-bottom: 0.5rem; }
.platform-card-img p { font-size: 0.9rem; }
.platform-card-img .platform-img-area.watch-area img {
    width: 55%; height: auto; object-fit: contain;
}

/* ── Input Modes ── */
.input-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.input-mode { display: flex; gap: 1.2rem; align-items: flex-start; }
.input-mode .mode-icon { font-size: 2rem; flex-shrink: 0; }
.input-mode h3 { margin-bottom: 0.3rem; }
.input-mode p { font-size: 0.9rem; }

/* ── Challenge List ── */
.challenge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.challenge-item {
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px; padding: 1.5rem;
}
.challenge-item h3 { margin-bottom: 0.4rem; }
.challenge-item p { font-size: 0.9rem; }

/* ── Level Up Section ── */
.level-grid { grid-template-columns: 1fr 1fr; }

/* ── Session Summary ── */
.session-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}
.session-row .session-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 50px rgba(0,0,0,0.4);
    background: var(--bg);
    padding: 1rem;
    max-width: 350px;
}
.session-row .session-img img { width: 100%; height: auto; display: block; border-radius: 12px; }
.session-row .session-text h3 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.session-row .session-text p { font-size: 0.95rem; margin-bottom: 0.6rem; }
.session-row .session-text ul {
    list-style: none; padding: 0; margin-top: 0.8rem;
}
.session-row .session-text ul li {
    padding: 0.3rem 0; font-size: 0.95rem; color: var(--text-dim);
}
.session-row .session-text ul li::before {
    content: "\2713"; color: var(--accent); font-weight: 700; margin-right: 0.6rem;
}

/* ── Who For ── */
.who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.who-item {
    display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.2rem;
    background: var(--bg-card); border-radius: 12px; border: 1px solid rgba(255,255,255,0.05);
}
.who-item .who-icon { font-size: 1.5rem; flex-shrink: 0; }
.who-item p { font-size: 0.95rem; color: var(--text); }

/* ── Meter Demo ── */
.meter-demo {
    display: flex; gap: 1rem; max-width: 600px; margin: 2rem auto;
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px; padding: 1.2rem 1.5rem;
}
.meter-bar { flex: 1; display: flex; align-items: center; gap: 0.6rem; }
.meter-label {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em;
    white-space: nowrap; min-width: 5.5em; text-align: right;
    font-family: var(--font);
    transition: color 1.5s ease;
}
.meter-bar:nth-child(1) .meter-label { animation: meter-label-1 12s ease-in-out infinite; }
.meter-bar:nth-child(2) .meter-label { animation: meter-label-2 14s ease-in-out infinite; }
.meter-track {
    flex: 1; height: 14px; background: rgba(255,255,255,0.08);
    border-radius: 7px; overflow: hidden;
}
.meter-fill {
    height: 100%; border-radius: 7px;
}
.meter-bar:nth-child(1) .meter-fill { animation: meter-1 12s ease-in-out infinite; }
.meter-bar:nth-child(2) .meter-fill { animation: meter-2 14s ease-in-out infinite; }

@keyframes meter-1 {
    0%   { width: 30%; background: #ef4444; }
    15%  { width: 48%; background: #eab308; }
    40%  { width: 78%; background: #34d399; }
    65%  { width: 82%; background: #34d399; }
    80%  { width: 55%; background: #eab308; }
    90%  { width: 35%; background: #ef4444; }
    100% { width: 30%; background: #ef4444; }
}
@keyframes meter-2 {
    0%   { width: 70%; background: #34d399; }
    20%  { width: 75%; background: #34d399; }
    40%  { width: 50%; background: #eab308; }
    55%  { width: 28%; background: #ef4444; }
    70%  { width: 45%; background: #eab308; }
    85%  { width: 68%; background: #34d399; }
    100% { width: 70%; background: #34d399; }
}
@keyframes meter-label-1 {
    0%   { color: #ef4444; }
    15%  { color: #eab308; }
    40%  { color: #34d399; }
    65%  { color: #34d399; }
    80%  { color: #eab308; }
    90%  { color: #ef4444; }
    100% { color: #ef4444; }
}
@keyframes meter-label-2 {
    0%   { color: #34d399; }
    20%  { color: #34d399; }
    40%  { color: #eab308; }
    55%  { color: #ef4444; }
    70%  { color: #eab308; }
    85%  { color: #34d399; }
    100% { color: #34d399; }
}
@media (max-width: 768px) {
    .meter-demo { flex-direction: column; gap: 0.6rem; }
}

/* ── Built For Serious ── */
.specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0.8rem; }
.spec-item { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem; }
.spec-item .check { color: var(--accent); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.spec-item p { font-size: 0.95rem; color: var(--text-dim); }

/* ── Tip Browser ── */
.tip-browser {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}
.tip-browser-image {
    position: sticky;
    top: 2rem;
}
.tip-carousel {
    position: relative;
    width: 280px;
    aspect-ratio: 1290 / 2796;
}
.tip-carousel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.tip-carousel img.active { opacity: 1; }
.tip-carousel::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.12);
    pointer-events: none;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.tip-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.tip-group-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.5rem;
    padding-left: 0.4rem;
}
.tip-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.tip-group li {
    padding: 0.45rem 1rem 0.45rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    border-radius: 20px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.tip-group li::before {
    content: "\25B8";
    font-size: 0.7rem;
    color: rgba(255,255,255,0.2);
    transition: color 0.2s;
}
.tip-group li:hover {
    color: var(--text);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}
.tip-group li:hover::before {
    color: var(--text);
}
.tip-list li.active {
    color: var(--accent);
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.3);
}
.tip-list li.active::before {
    color: var(--accent);
}

/* ── Footer ── */
footer { padding: 3rem 0; border-top: 1px solid rgba(255,255,255,0.06); text-align: center; }
footer p { font-size: 0.85rem; color: var(--text-dim); }
footer a { color: var(--text-dim); }
footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 2rem; justify-content: center; margin-bottom: 1rem; flex-wrap: wrap; }

/* ── Divider Wave ── */
.wave-divider { width: 100%; overflow: hidden; line-height: 0; }
.wave-divider svg { width: 100%; height: 60px; }
.wave-divider.flip { transform: rotate(180deg); }

/* ── Legal Pages ── */
.legal-page {
    padding: 3rem 1.5rem;
}
.legal-page .container {
    max-width: 700px;
}
.legal-page h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.legal-page h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}
.legal-page p {
    font-size: 0.95rem;
    margin-top: 0.8rem;
    line-height: 1.8;
}
.legal-page ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}
.legal-page ul li {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
}
.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}
.effective-date {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

/* ── Pre-launch Page ── */
.prelaunch {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(ellipse at 50% 40%, rgba(52, 211, 153, 0.06) 0%, transparent 60%), var(--bg-dark);
}
.prelaunch-content { max-width: 520px; padding: 2rem; }
.prelaunch-icon {
    width: 140px; height: 140px; border-radius: 30px;
    margin-bottom: 2rem;
    box-shadow: 0 0 80px rgba(52, 211, 153, 0.15);
}
.prelaunch h1 { margin-bottom: 0.75rem; font-size: clamp(2rem, 4vw, 2.8rem); }
.prelaunch .tagline {
    font-size: 1.15rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}
.launch-date {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1rem 2rem;
    margin-bottom: 2.5rem;
}
.launch-date .label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.3rem;
}
.launch-date .date {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-bright);
}
.prelaunch-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.prelaunch-links a {
    font-size: 0.9rem;
    color: var(--text-dim);
    transition: color 0.2s;
}
.prelaunch-links a:hover { color: var(--accent); }
.prelaunch-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.prelaunch-footer p { font-size: 0.8rem; }
.prelaunch-footer .legal-links {
    display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 0.75rem;
}
.prelaunch-footer .legal-links a { font-size: 0.8rem; color: var(--text-dim); }
.prelaunch-footer .legal-links a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    section { padding: 3.5rem 0; }
    .hero { padding: 8rem 0 3rem; }
    .hero-icon { width: 90px; height: 90px; border-radius: 20px; }
    .feature-grid, .level-grid { grid-template-columns: 1fr; }
    .viz-grid { grid-template-columns: 1fr; }
    .platform-grid { grid-template-columns: 1fr; }
    .input-modes { grid-template-columns: 1fr; }
    .session-row { grid-template-columns: 1fr; }
    .session-row .session-img { max-width: 360px; margin: 0 auto; }
    .tip-browser { grid-template-columns: 1fr; }
    .tip-browser-image { position: static; display: flex; justify-content: center; order: -1; }
    .tip-carousel { width: 220px; }
    .prelaunch-icon { width: 110px; height: 110px; border-radius: 24px; }
}
