/* ===== Reset & Base ===== */
/* Space Grotesk loaded via HTML <link> tag */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== Design System ===== */
:root {
    /* Background layers */
    --bg:           #131315;
    --bg-panel:     #1c1c1f;
    --bg-elevated:  #222226;
    --bg-input:     #18181b;
    --bg-hover:     rgba(255,255,255,.05);

    /* Borders */
    --border:       #2e2e34;
    --border-light: #3a3a42;

    /* Text */
    --text:         #e2e2e6;
    --text-muted:   #7a7a8a;
    --text-faint:   #4a4a58;

    /* Brand accent — teal */
    --accent:       #4ec9b0;
    --accent-dim:   rgba(78,201,176,.18);
    --accent-hover: #5eddc3;
    --accent-glow:  0 0 18px rgba(78,201,176,.28);

    /* Blue — primary action */
    --blue:         #2d78c8;
    --blue-hover:   #3a8fe0;
    --blue-dim:     rgba(45,120,200,.20);
    --blue-glow:    0 0 16px rgba(45,120,200,.35);

    /* Status colours */
    --red:          #f48771;
    --red-bg:       rgba(244,135,113,.12);
    --yellow:       #c9a64e;
    --green:        #4ec97a;
    --green-bg:     rgba(78,201,122,.12);

    /* Shadows */
    --shadow-sm:    0 1px 3px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.4);
    --shadow-md:    0 4px 12px rgba(0,0,0,.55), 0 2px 4px rgba(0,0,0,.3);
    --shadow-lg:    0 12px 32px rgba(0,0,0,.65), 0 4px 10px rgba(0,0,0,.4);

    /* Layout */
    --sidebar-w:    228px;
    --radius-sm:    6px;
    --radius-md:    10px;
    --radius-lg:    16px;
}

/* ===== Typography ===== */
html { font-size: 16px; }

html {
    background: var(--bg);
}

html, body {
    height: 100% !important;
    overflow: hidden !important;
    position: relative;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    background: transparent !important;
    display: flex;
}

#sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    z-index: 10;
}

#content {
    flex: 1;
    overflow-y: auto;
    height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar-header {
    padding: 22px 18px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}
.logo-icon {
    font-size: 1.4rem;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(78,201,176,.5));
}
.sidebar-header h1 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -.01em;
    white-space: nowrap;
}

.nav-links { list-style: none; padding: 0 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: background .15s, color .15s, box-shadow .15s;
}
.nav-icon {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    opacity: .7;
    transition: opacity .15s;
}
.nav-link:hover { background: var(--bg-hover); color: var(--text); }
.nav-link:hover .nav-icon { opacity: 1; }
.nav-link.active {
    background: var(--blue-dim);
    color: #fff;
    box-shadow: inset 2px 0 0 var(--blue);
}
.nav-link.active .nav-icon { opacity: 1; color: var(--accent); }

.nav-link.nav-link-disabled {
    opacity: .45;
    pointer-events: none;
    cursor: not-allowed;
}

.sidebar-footer {
    margin-top: auto;
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    border-top: 1px solid var(--border);
}

/* WASM status — tiny dot, tooltip via title attr */
.wasm-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background .4s, box-shadow .4s;
}
.wasm-dot.loading { background: var(--text-faint); }
.wasm-dot.ready   { background: var(--green); box-shadow: 0 0 6px var(--green); }
.wasm-dot.error   { background: var(--red);   box-shadow: 0 0 6px var(--red); }

.sidebar-docs-link {
    display: block;
    font-size: .8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .15s;
    white-space: nowrap;
}
.sidebar-docs-link:hover { color: var(--text); }

.sidebar-gh-badge img {
    display: block;
    height: 20px;
    opacity: .85;
    transition: opacity .15s;
    /* keep on dark bg — img has transparent bg when style=social */
    filter: invert(1) brightness(.8);
}
.sidebar-gh-badge:hover img { opacity: 1; filter: invert(1) brightness(1); }

/* ===== Pages ===== */
.page { display: none; animation: pageFadeIn .2s ease; }
.page.active { display: block; }
@keyframes pageFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-inner { max-width: 1080px; margin: 0 auto; padding: 40px 32px; }
.page-inner--wide { max-width: none; }
.page-inner h2 {
    color: var(--accent);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 4px;
}
.subtitle { color: var(--text-muted); margin-bottom: 24px; font-size: .9rem; }

/* ===== Hero (Landing) ===== */
.hero {
    padding: 12px 0 36px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 36px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-dim);
    color: var(--accent);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(78,201,176,.25);
    margin-bottom: 16px;
}
.hero h2 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--accent) 0%, #7dd6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
}
.hero .lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
    margin: 0;
}

/* ===== Cards ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 36px;
}
.card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
}
.card--step { position: relative; overflow: hidden; }
.card--step::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--blue-dim) 0%, transparent 60%);
    pointer-events: none;
}
.card-step-num {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
    opacity: .8;
}
.card h3 {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -.01em;
}
.card p { color: var(--text-muted); font-size: .875rem; line-height: 1.65; margin-bottom: 18px; }
.btn-card { margin-top: auto; }

/* ===== Info Section ===== */
.info-section {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 24px;
}
.info-section h3 {
    color: var(--yellow);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.info-section ul { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.info-section li { color: var(--text-muted); font-size: .875rem; line-height: 1.6; }
.info-section li strong { color: var(--text); font-weight: 600; }

/* ===== Two-column layout (canvas + controls) ===== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 288px;
    gap: 20px;
    align-items: stretch;
    min-height: calc(100vh - 140px);
}

.canvas-wrap {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.canvas-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: radial-gradient(ellipse at 50% 0%, rgba(78,201,176,.06) 0%, transparent 65%);
    pointer-events: none;
}
.canvas-wrap canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
    cursor: crosshair;
    border-radius: var(--radius-sm);
}

/* ===== Canvas toolbar (top-right overlay) ===== */
.canvas-toolbar {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}
.toggle-label--inline {
    background: rgba(19,19,21,.72);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 5px 12px 5px 9px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--text-muted);
    margin-bottom: 0;
    transition: border-color .15s, color .15s;
}
.toggle-label--inline:has(input:checked) {
    border-color: var(--accent);
    color: var(--accent);
}
.toggle-label--inline input[type="checkbox"] {
    width: 13px;
    height: 13px;
}

/* ===== State navigation arrows ===== */
.state-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}
.state-nav input[type="number"] {
    flex: 1;
    min-width: 0;
    text-align: center;
}
.btn-arrow {
    padding: 6px 11px;
    font-size: .95rem;
    line-height: 1;
    flex-shrink: 0;
}

/* ===== Controls Panel ===== */
.controls-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.control-group {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    transition: border-color .2s;
}
.control-group:hover { border-color: var(--border-light); }
.control-group h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .72rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
}
.cg-icon {
    font-size: .9rem;
    color: var(--accent);
    opacity: .7;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background .15s, box-shadow .15s, transform .1s, opacity .15s;
    background: var(--blue);
    color: #fff;
    box-shadow: var(--shadow-sm);
    letter-spacing: .01em;
    white-space: nowrap;
}
.btn:hover {
    background: var(--blue-hover);
    box-shadow: var(--blue-glow), var(--shadow-sm);
    transform: translateY(-1px);
}
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn:disabled {
    background: var(--border);
    color: var(--text-faint);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.btn-secondary { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border-light); }
.btn-secondary:hover { background: #2c2c30; box-shadow: var(--shadow-sm); }
.btn-danger { background: #5c1a1a; color: var(--red); border: 1px solid rgba(244,135,113,.2); }
.btn-danger:hover { background: #6e2121; box-shadow: 0 0 12px rgba(244,135,113,.25); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

.batch-controls {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.batch-progress {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
}

.batch-progress p {
    margin: 0 0 6px;
    font-size: .8rem;
}

.batch-progress progress {
    width: 100%;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
}

/* ===== Form Fields ===== */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field span {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: .02em;
    text-transform: uppercase;
}
select, input[type="number"] {
    background: var(--bg-input);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: .875rem;
    font-family: inherit;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
select:hover, input[type="number"]:hover { border-color: var(--border-light); }
select:focus, input[type="number"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

/* shot count text */
#shot-count {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* ===== Toggle ===== */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 10px;
    color: var(--text);
}
.toggle-label input[type="checkbox"] {
    accent-color: var(--accent);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* ===== Info Box ===== */
.info-box {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: .85rem;
    margin-bottom: 12px;
    min-height: 64px;
    line-height: 1.6;
}
.info-box .muted { color: var(--text-faint); font-style: italic; }
.info-box .result-line { margin-bottom: 5px; }
.info-box .value { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ===== Instructions Box ===== */
.instructions-box {
    margin-top: 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 24px;
}
.instructions-box h3 {
    color: var(--yellow);
    font-size: .95rem;
    margin-bottom: 12px;
}
.instructions-content {
    font-size: .88rem;
    line-height: 1.65;
    color: var(--text-muted);
}
.instructions-content h4 {
    color: var(--text);
    margin: 14px 0 6px;
    font-size: .92rem;
}
.instructions-content h4:first-child { margin-top: 0; }
.instructions-content p { margin-bottom: 8px; }
.instructions-content ul,
.instructions-content ol { padding-left: 20px; margin-bottom: 8px; }
.instructions-content li { margin-bottom: 4px; }
.instructions-content li strong { color: var(--text); }
.instructions-content kbd {
    display: inline-block;
    padding: 1px 6px;
    font-size: .8rem;
    font-family: inherit;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text);
}
.shortcut-table { border-collapse: collapse; margin-top: 6px; }
.shortcut-table td { padding: 3px 12px 3px 0; }

.heatmap-tooltip {
    position: fixed;
    padding: 4px 10px;
    background: rgba(30,30,30,.92);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: .8rem;
    pointer-events: none;
    white-space: nowrap;
    z-index: 90;
    transform: translate(14px, -50%);
}
.heatmap-tooltip.hidden { display: none; }

/* ===== Loading Overlay ===== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    /* Stay invisible for 500ms, then fade in */
    animation: overlayFadeIn .25s ease .5s both;
}
.overlay.hidden { display: none; }
@keyframes overlayFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Dartboard-style spinner */
.spinner {
    width: 44px;
    height: 44px;
    position: relative;
    margin-bottom: 16px;
}
.spinner::before,
.spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}
.spinner::before {
    inset: 0;
    border-top-color: var(--accent);
    animation: spin .75s linear infinite;
}
.spinner::after {
    inset: 7px;
    border-top-color: var(--blue);
    animation: spin .65s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

#loading-message {
    color: var(--text-muted);
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: .01em;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body { flex-direction: column; }

    #sidebar {
        width: 100%;
        min-width: unset;
        height: auto;
        position: sticky;
        top: 0;
        z-index: 50;
        flex-direction: row;
        align-items: center;
        border-right: none;
        border-bottom: 1px solid var(--border);
        overflow-y: visible;
        overflow-x: auto;
    }
    .sidebar-header { padding: 8px 14px; border-bottom: none; margin-bottom: 0; }
    .sidebar-header h1 { font-size: .9rem; }
    .logo-icon { font-size: 1.1rem; }

    .nav-links {
        flex-direction: row;
        padding: 6px 4px;
        gap: 2px;
    }
    .nav-link { padding: 7px 12px; white-space: nowrap; font-size: .83rem; }
    .nav-icon { display: none; }

    .sidebar-footer { margin-top: 0; margin-left: auto; padding: 8px 12px; flex-shrink: 0; }
    .status { font-size: .7rem; }

    #content { height: auto; min-height: 0; flex: 1; }

    .page-inner { padding: 24px 16px; }
    .hero h2 { font-size: 1.8rem; }

    /* Landing responsive */
    .lp-hero { min-height: 100svh; padding: 60px 20px 60px; }
    .lp-title-ayo { font-size: clamp(4rem, 18vw, 9rem); }
    .lp-intro { font-size: 1rem; }
    .lp-steps { grid-template-columns: 1fr; }
    .lp-tech-strip { gap: 12px; font-size: .78rem; }
    .lp-tech-sep { display: none; }
}

/* ═══════════════════════════════════════════════════
   LANDING PAGE — FASHION & FURY
   ═══════════════════════════════════════════════════ */

#page-landing {
    position: relative;
    background: var(--bg);
}

/* Particle layer */
#landing-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

#page-landing > *:not(#landing-particles) {
    position: relative;
    z-index: 1;
}

/* ── Hero ── */
.lp-hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px clamp(2rem, 8vw, 10rem);
    position: relative;
}



.lp-title {
    margin: 0 0 60px;
    line-height: 0.85;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
}

.lp-title-line {
    display: block;
    font-size: clamp(6.5rem, 20vw, 24rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    color: #fff;
    opacity: 0;
    text-transform: uppercase;
}

.lp-title-alt {
    color: var(--accent);
    background: linear-gradient(100deg, var(--accent) 0%, #7dd6ff 50%, var(--accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: lp-shimmer 4s linear infinite;
}

.lp-title-alt2 {
    color: transparent;
    -webkit-text-stroke: 2px rgba(255,255,255,0.2);
    transition: -webkit-text-stroke 0.4s;
}
.lp-title-alt2:hover {
    -webkit-text-stroke: 2px var(--accent);
}

@keyframes lp-shimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.lp-intro {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 1200px;
    margin-bottom: 60px;
    opacity: 0;
    font-weight: 500;
}

.lp-intro em {
    color: #fff;
    font-style: italic;
    font-weight: 700;
}

.lp-checkout {
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px dashed rgba(255,255,255,0.3);
    padding: 2px 14px;
    letter-spacing: 0.05em;
}

/* Questions */
.lp-questions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 80px;
}

.lp-q {
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text);
    opacity: 0;
    line-height: 1.1;
}

.lp-q strong { color: #fff; font-weight: 900; text-decoration: underline; text-decoration-color: var(--accent); }

.lp-q:hover { animation: lp-wiggle 0.3s ease infinite alternate; }

@keyframes lp-wiggle {
    from { transform: translateX(-5px) rotate(-1deg); }
    to   { transform: translateX(5px) rotate(1deg); }
}

/* CTAs */
.lp-ctas {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    opacity: 0;
}

.lp-btn-primary {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    padding: 20px 50px;
    border-radius: 0;
    background: #fff;
    color: #000;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    border: 2px solid #fff;
    box-shadow: 10px 10px 0 var(--accent);
}

.lp-btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    box-shadow: 0 0 0 transparent;
    transform: translate(5px, 5px);
}

.lp-btn-secondary {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    padding: 20px 50px;
    border-radius: 0;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.lp-btn-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.05);
}

/* ── Sections ── */
.lp-section {
    padding: 15vw clamp(2rem, 8vw, 10rem);
    border-top: 1px solid var(--border);
}

.lp-section-kicker {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 30px;
}

.lp-section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 10vw, 12rem);
    font-weight: 900;
    color: #fff;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.lp-section-body {
    font-size: clamp(1.2rem, 2vw, 2rem);
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 1000px;
}

/* ── New Stacked Steps ── */
.lp-steps-vertical {
    display: flex;
    flex-direction: column;
    gap: 100px;
    margin-top: 100px;
}

.lp-step-v {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    padding: 60px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    transition: all 0.4s;
    position: relative;
}

.lp-step-v:hover {
    background: rgba(78,201,176,0.04);
    border-color: var(--accent);
    transform: scale(1.02);
}

.lp-step-v-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(4rem, 12vw, 15rem);
    font-weight: 900;
    color: var(--accent);
    line-height: 0.8;
    opacity: 0.2;
    flex-shrink: 0;
}

.lp-step-v-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 6rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.lp-step-v-text {
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
}

.lp-btn-v {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.1em;
}

.lp-footnote {
    font-size: 1rem;
    color: var(--text-faint);
    margin-top: 40px;
    font-style: italic;
}

/* ── Tech Strip ── */
.lp-tech-strip {
    padding: 100px clamp(2rem, 8vw, 10rem);
    background: #000;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-faint);
}

.lp-tech-sep {
    color: var(--accent);
}

@media (max-width: 1024px) {
    .lp-step-v { flex-direction: column; gap: 20px; padding: 40px; }
    .lp-step-v-num { font-size: 8rem; opacity: 0.1; position: absolute; top: 0; right: 20px; }
}

@media (max-width: 768px) {
    .lp-hero { padding: 80px 20px; }
    .lp-title-line { font-size: 5.5rem; }
    .lp-section-heading { font-size: 4rem; }
    .lp-btn-primary, .lp-btn-secondary { width: 100%; text-align: center; }
}

/* ===== Enhanced Instructions & Pro Tips ===== */
.pro-tip {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-elevated);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-muted);
}

.pro-tip strong {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.instructions-box {
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.instructions-box::after {
    content: 'i';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 5rem;
    font-weight: 900;
    color: var(--bg-hover);
    pointer-events: none;
    font-family: 'Space Grotesk', sans-serif;
    transform: rotate(15deg);
}

.instructions-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions-content ul li::marker {
    color: var(--accent);
}

