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

:root {
    --bg:       #05050f;
    --bg2:      #09091a;
    --surface:  #0c0c1c;
    --surface2: #101024;
    --border:   rgba(255,255,255,0.06);
    --border2:  rgba(255,255,255,0.1);
    --indigo:   #6366f1;
    --indigo2:  #818cf8;
    --violet:   #a78bfa;
    --text:     #e4e6f4;
    --muted:    rgba(228,230,244,0.5);
    --dim:      rgba(228,230,244,0.28);
    --green:    #22d3a5;
    --yellow:   #fbbf24;
    --red:      #f87171;
    --r:        6px;
    --r-lg:     12px;
    --r-xl:     20px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Dot grid pattern ── */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: radial-gradient(circle, rgba(99,102,241,0.14) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* ── Top ambient glow ── */
body::after {
    content: '';
    position: fixed; top: -160px; left: 50%; transform: translateX(-50%);
    width: 1000px; height: 600px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.13) 0%, transparent 65%);
    pointer-events: none; z-index: 0;
}

.container {
    max-width: 1200px; margin: 0 auto; padding: 0 40px;
    position: relative; z-index: 1;
}

/* ─────────────────────────── NAV ── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 60px;
    background: rgba(5,5,15,0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    overflow: visible;
}
nav .container {
    height: 100%;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-links { position: absolute; left: 50%; transform: translateX(-50%); }
.nav-logo {
    display: flex; align-items: center;
    text-decoration: none;
}
.nav-logo-img { height: 28px; width: auto; display: block; }
.nav-logo-mark {
    width: 28px; height: 28px;
    background: var(--indigo); border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.82rem; font-weight: 800; color: #fff;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
    font-size: 0.85rem; color: var(--muted); text-decoration: none; transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.nav-link--active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-gh {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: var(--r);
    color: var(--dim); transition: color 0.15s, background 0.15s;
}
.nav-gh:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-gh svg { width: 17px; height: 17px; }
.nav-login-icon { display: none; }

/* ─────────────────────────── BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 16px; border-radius: var(--r);
    font-size: 0.85rem; font-weight: 500; font-family: inherit;
    cursor: pointer; text-decoration: none; border: none;
    transition: all 0.16s; white-space: nowrap; line-height: 1;
}
.btn--ghost { background: transparent; color: var(--muted); }
.btn--ghost:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.btn--outline {
    background: transparent; color: var(--text);
    border: 1px solid var(--border2);
}
.btn--outline:hover { border-color: rgba(99,102,241,0.5); color: var(--indigo2); }
.btn--primary { background: var(--indigo); color: #fff; }
.btn--primary:hover {
    background: #4f46e5;
    box-shadow: 0 0 0 1px rgba(99,102,241,0.4), 0 4px 24px rgba(99,102,241,0.35);
}
.btn--lg { padding: 10px 22px; font-size: 0.9rem; border-radius: 8px; }
.btn--xl { padding: 12px 26px; font-size: 0.9rem; border-radius: 8px; }

/* ─────────────────────────── HERO VIEWPORT ── */
.hero-viewport {
    min-height: 100vh;
    padding-top: 60px; /* clear fixed nav */
    display: flex; flex-direction: column;
}
.hero-viewport #hero { flex: 1; display: flex; flex-direction: column; }

/* ─────────────────────────── HERO ── */
#hero { padding: 0; position: relative; overflow: hidden; }
#hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.032;
    pointer-events: none;
    z-index: 0;
}
#hero .container { flex: 1; display: flex; align-items: center; position: relative; z-index: 1; }
.hero-content { max-width: 580px; padding: 80px 0; align-self: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 12px; margin-bottom: 28px;
    background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.22);
    border-radius: 999px; font-size: 0.72rem; font-weight: 500;
    color: var(--indigo2); letter-spacing: 0.01em;
    font-family: 'JetBrains Mono', monospace;
}
.hero-badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--indigo2); animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

.hero-cli-badge {
    display: inline-flex; align-items: center; gap: 6px;
    margin-bottom: 20px; margin-left: 4px;
    font-size: 0.7rem; color: var(--dim);
    font-family: 'JetBrains Mono', monospace;
}
.hero-cli-badge svg { width: 12px; height: 12px; stroke: var(--dim); flex-shrink: 0; }
.hero-cli-soon { color: var(--yellow); opacity: 0.7; }
.t-soon { color: var(--yellow); opacity: 0.6; font-size: 0.75em; }


/* ─────────────────────────── APP MOCKUP ── */
.app-mockup {
    background: #06061a;
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: var(--r-lg); overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 32px 80px rgba(0,0,0,0.7);
    font-family: 'Inter', sans-serif; font-size: 0.72rem;
}
.am-topbar {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.025);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.am-title { font-size: 0.78rem; font-weight: 600; color: #f1f5f9; }
.am-project-badge {
    font-size: 0.66rem; padding: 1px 8px; border-radius: 99px;
    background: rgba(99,102,241,0.2); color: #a5b4fc;
    border: 1px solid rgba(99,102,241,0.35);
    font-family: 'JetBrains Mono', monospace;
}
.am-spacer { flex: 1; }
.am-plan {
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.07em;
    padding: 1px 7px; border-radius: 99px;
    background: rgba(99,102,241,0.22); color: #a5b4fc;
}
.am-gear {
    width: 22px; height: 22px; border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent; color: rgba(255,255,255,0.35);
    display: flex; align-items: center; justify-content: center;
}
.am-gear svg { width: 12px; height: 12px; stroke: currentColor; fill: none; }
.am-body { display: flex; min-height: 340px; }
.am-sidebar {
    width: 180px; flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,0.07);
    padding: 12px 10px; display: flex; flex-direction: column; gap: 14px;
    align-self: stretch;
}
.am-label {
    font-size: 0.59rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: rgba(255,255,255,0.35);
    margin-bottom: 5px;
}
.am-path-item {
    display: flex; align-items: center; gap: 5px;
    padding: 4px 7px; border-radius: 5px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
}
.am-path-icon { color: #f59e0b; display: flex; }
.am-path-icon svg { width: 11px; height: 11px; fill: currentColor; }
.am-path-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem; color: #cbd5e1; flex: 1;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.am-ext-chips { display: flex; gap: 3px; flex-wrap: wrap; }
.am-ext-chip {
    padding: 1px 6px; border-radius: 99px;
    background: rgba(99,102,241,0.2); color: #a5b4fc;
    font-family: 'JetBrains Mono', monospace; font-size: 0.6rem;
}
.am-scan-btn {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    width: 100%; padding: 7px; border-radius: 6px;
    background: rgba(99,102,241,0.14);
    border: 1px solid rgba(99,102,241,0.35);
    color: #a5b4fc; font-size: 0.72rem; font-weight: 600;
}
.am-scan-btn svg { width: 11px; height: 11px; flex-shrink: 0; }
.am-main { flex: 1; overflow: hidden; }
.am-panel-head {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(0,0,0,0.18);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.am-panel-title { font-size: 0.72rem; font-weight: 600; color: #f1f5f9; flex: 1; }
.am-panel-meta { font-size: 0.63rem; color: rgba(255,255,255,0.35); }
.am-stats {
    display: flex; gap: 14px; padding: 5px 14px;
    background: rgba(0,0,0,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.62rem;
}
.am-stat--ok   { color: var(--green); }
.am-stat--warn { color: var(--yellow); }
.am-stat--err  { color: var(--red); }
.am-stat--dim  { color: rgba(255,255,255,0.28); }
.am-tree-row {
    display: flex; align-items: center; gap: 6px;
    padding: 3.5px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.025);
    font-family: 'JetBrains Mono', monospace; font-size: 0.67rem;
}
.am-tree-row svg { width: 10px; height: 10px; flex-shrink: 0; }
.am-tree-row--dir { color: #e2e8f0; font-weight: 500; }
.am-tree-row--dir svg { fill: #f59e0b; }
.am-tree-row--file { color: #94a3b8; }
.am-tree-row--file svg { fill: none; stroke: rgba(255,255,255,0.3); stroke-width: 1.8; stroke-linecap: round; }
.am-tree-name { flex: 1; }
.am-tree-size { font-size: 0.6rem; color: rgba(255,255,255,0.2); }
.am-tree-flag { font-size: 0.6rem; white-space: nowrap; }
.am-tree-flag--warn { color: var(--yellow); }
.am-tree-flag--err  { color: var(--red); }

.hero-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(3.2rem, 5.5vw, 5rem);
    font-weight: 400; font-style: italic;
    line-height: 1.06; letter-spacing: -0.01em;
    margin-bottom: 24px;
}
.hero-title mark {
    font-style: italic;
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 55%, #c084fc 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; background-color: transparent;
}
.hero-sub {
    font-size: 1.05rem; color: var(--muted); font-weight: 400;
    line-height: 1.75; max-width: 460px; margin-bottom: 40px;
}
.hero-sub code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88em;
    color: var(--indigo2);
    background: rgba(99,102,241,0.08);
    padding: 1px 5px; border-radius: 4px;
}

/* hero library picker */
.hero-libs { margin-bottom: 32px; }
.hero-libs-label {
    display: block;
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--dim);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 10px;
}
.hero-libs-list {
    list-style: none; display: flex; flex-direction: column; gap: 7px;
}
.hero-lib {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.82rem; font-family: 'JetBrains Mono', monospace;
    color: var(--muted);
}
.hero-lib-arrow { color: var(--dim); }
.hero-lib--rec .hero-lib-name { color: var(--text); font-weight: 600; }
.hero-lib-tag {
    display: inline-block; font-size: 0.62rem; font-weight: 700;
    padding: 1px 7px; border-radius: 99px;
    background: rgba(244,114,182,0.1); color: #f472b6;
    border: 1px solid rgba(244,114,182,0.2);
    letter-spacing: 0.04em;
}
.hero-lib-meta { font-size: 0.68rem; color: var(--dim); }

.hero-workspace-note {
    font-size: 0.78rem; color: var(--muted); opacity: 0.6;
    margin-top: 16px; max-width: 460px; line-height: 1.5;
}
.hero-actions { display: flex; gap: 10px; margin-bottom: 0; }
.hero-trust {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    margin-top: 18px; font-size: 0.72rem; color: var(--dim);
    font-family: 'JetBrains Mono', monospace;
}
.hero-trust span { display: flex; align-items: center; gap: 5px; }
.hero-trust svg { width: 11px; height: 11px; stroke: var(--dim); fill: none; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.hero-trust span + span::before { content: '·'; margin-right: 0; color: var(--border2); }

/* ─────────────────────────── TERMINAL ── */
.terminal-wrap { position: relative; }
.terminal-glow {
    position: absolute; inset: -60px;
    background: radial-gradient(ellipse at 50% 50%, rgba(99,102,241,0.1) 0%, transparent 65%);
    pointer-events: none; z-index: -1;
}
.terminal {
    background: #06061a;
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: var(--r-lg); overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 32px 80px rgba(0,0,0,0.7);
    font-family: 'JetBrains Mono', monospace;
}
.t-bar {
    display: flex; align-items: center; gap: 7px;
    padding: 11px 16px;
    background: rgba(255,255,255,0.025);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-dot--r { background: #ff5f57; }
.t-dot--y { background: #febc2e; }
.t-dot--g { background: #28c840; }
.t-bar-label {
    flex: 1; text-align: center;
    font-size: 0.7rem; color: var(--dim); letter-spacing: 0.03em;
}
.t-body { padding: 18px 22px 22px; font-size: 0.785rem; line-height: 1.85; }
.tl { display: flex; gap: 8px; align-items: baseline; }
.t-prompt  { color: var(--indigo2); user-select: none; flex-shrink: 0; }
.t-cmd     { color: var(--text); }
.t-flag    { color: var(--violet); }
.t-sp      { height: 6px; }
.t-cm      { color: var(--dim); flex: 1; }
.t-sep     { color: rgba(255,255,255,0.08); }
.t-ok      { color: var(--green);  flex-shrink: 0; width: 20px; }
.t-wn      { color: var(--yellow); flex-shrink: 0; width: 20px; }
.t-er      { color: var(--red);    flex-shrink: 0; width: 20px; }
.t-file    { color: var(--text); flex: 1; }
.t-res     { font-size: 0.72rem; white-space: nowrap; opacity: 0.9; }
.t-res.ok  { color: var(--green); }
.t-res.wn  { color: var(--yellow); }
.t-res.er  { color: var(--red); }
.t-kw      { color: var(--violet); }
.t-arr     { color: var(--indigo2); flex-shrink: 0; }
.t-sum {
    margin-top: 6px; padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.72rem; display: flex; gap: 20px;
    color: var(--dim);
}
.t-cursor {
    display: inline-block; width: 7px; height: 13px;
    background: var(--indigo2); vertical-align: middle;
    animation: cur 1s steps(1) infinite;
}
@keyframes cur { 0%,49%{opacity:.9} 50%,100%{opacity:0} }

/* ─────────────────────────── DIVIDER ── */
.divider {
    height: 1px; position: relative; z-index: 1;
    background: linear-gradient(90deg, transparent, var(--border2) 25%, var(--border2) 75%, transparent);
}

/* ─────────────────────────── SECTIONS ── */
.section { padding: 96px 0; }
.section-head { margin-bottom: 52px; }
.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem; color: var(--indigo2);
    letter-spacing: 0.14em; text-transform: uppercase;
    margin-bottom: 14px; display: block;
}
.section-title {
    font-size: clamp(1.65rem, 2.6vw, 2.3rem);
    font-weight: 700; letter-spacing: -0.03em;
    line-height: 1.15; margin-bottom: 12px;
}
.section-sub {
    font-size: 0.9rem; color: var(--muted); line-height: 1.75;
    max-width: 460px;
}

/* ─────────────────────────── TOOLS GRID ── */
/* ── Tools groups ── */
.tool-groups { display: flex; flex-direction: column; gap: 20px; }
.tg-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tg-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    white-space: nowrap;
}
.tg-rule { flex: 1; height: 1px; background: var(--border); }
.tg-cards {
    display: grid; gap: 1px; background: var(--border);
    border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
.tg-cards--1up { grid-template-columns: 1fr; }
.tg-cards--2up { grid-template-columns: 2fr 1fr; }
.tg-cards--3up { grid-template-columns: 1fr 1fr 1fr; }
.tool-card--primary { border-top: 2px solid var(--tc-accent, rgba(255,255,255,0.06)); }
.tool-card {
    background: var(--surface); padding: 28px 26px;
    position: relative; overflow: hidden;
    transition: background 0.18s;
}
.tool-card:hover { background: var(--surface2); }
.tool-card::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 0%, var(--g, transparent) 0%, transparent 55%);
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.tool-card:hover::after { opacity: 1; }

.t-icon {
    width: 38px; height: 38px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; border: 1px solid rgba(255,255,255,0.07);
}
.t-icon svg { width: 17px; height: 17px; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.t-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 7px; letter-spacing: -0.01em; }
.t-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.65; }
.t-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.t-badge {
    display: inline-block;
    padding: 2px 7px; border-radius: 4px;
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}
.b-free       { background: rgba(34,211,165,0.1);   color: var(--green); }
.b-pro        { background: rgba(99,102,241,0.12);  color: var(--indigo2); }
.b-enterprise { background: rgba(245,158,11,0.12);  color: #f59e0b; }
.b-soon       { background: rgba(255,255,255,0.05); color: var(--dim); }
.b-project    { background: rgba(251,146,60,0.1);   color: #fb923c; }
.b-trial      { background: rgba(244,114,182,0.1);  color: #f472b6; }
.b-alpha      { background: rgba(251,146,60,0.12);  color: #fb923c; }

.pricing-beta { text-align: center; font-size: 0.72rem; color: var(--dim); margin-top: 24px; opacity: 0.7; }

/* ─────────────────────────── PRICING / EARLY ACCESS ── */
/* ── EARLY ACCESS GRID ── */
.ea-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 800px; margin: 0 auto; }
.ea-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-xl); padding: 34px 28px;
    display: flex; flex-direction: column; gap: 0;
    transition: border-color 0.2s, transform 0.2s;
}
.ea-card:hover { transform: translateY(-3px); }
.ea-card--now { border-color: rgba(99,102,241,0.3); background: linear-gradient(160deg, rgba(99,102,241,0.07) 0%, rgba(99,102,241,0.01) 100%); }
.ea-card__badge {
    display: inline-flex; align-self: flex-start;
    padding: 3px 10px; border-radius: 99px;
    background: rgba(99,102,241,0.15); color: var(--indigo);
    font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; font-family: 'JetBrains Mono', monospace;
    margin-bottom: 14px;
}
.ea-card__badge--soon { background: rgba(148,163,184,0.1); color: var(--dim); }
.ea-card__title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.ea-card__sub { font-size: 0.8rem; color: var(--muted); margin-bottom: 20px; }
.ea-list--muted li { opacity: 0.55; }
.ea-form { display: flex; gap: 8px; margin-top: auto; padding-top: 20px; }
.ea-form__input {
    flex: 1; min-width: 0;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: 8px; padding: 9px 14px;
    font-size: 0.82rem; color: var(--text); outline: none;
    transition: border-color 0.2s;
}
.ea-form__input:focus { border-color: rgba(99,102,241,0.5); }
.ea-form__btn {
    padding: 9px 16px; border-radius: 8px;
    background: var(--indigo); color: #fff;
    font-size: 0.82rem; font-weight: 600; border: none; cursor: pointer;
    white-space: nowrap; transition: opacity 0.2s;
}
.ea-form__btn:hover { opacity: 0.85; }
/* keep p-sep / p-list shared */
.p-sep { height: 1px; background: var(--border); margin-bottom: 22px; margin-top: 0; }
.p-list {
    list-style: none; display: flex; flex-direction: column; gap: 10px;
    flex: 1; margin-bottom: 28px;
}
.p-list li {
    display: flex; align-items: flex-start; gap: 9px;
    font-size: 0.82rem; color: var(--muted);
}
.p-list li svg {
    width: 13px; height: 13px; flex-shrink: 0; margin-top: 3px;
    fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.ck { stroke: var(--green); }
.cx { stroke: var(--dim); opacity: 0.4; }

/* ─────────────────────────── CTA ── */
.cta-box {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-xl); padding: 88px 48px;
    text-align: center; position: relative; overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
    width: 700px; height: 400px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.1) 0%, transparent 65%);
    pointer-events: none;
}
.cta-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800; letter-spacing: -0.04em;
    line-height: 1.12; margin-bottom: 14px; position: relative;
}
.cta-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 36px; position: relative; }
.cta-actions { display: flex; gap: 10px; justify-content: center; position: relative; }

/* ─────────────────────────── MODALS ── */
.modal-backdrop {
    display: none;
    position: fixed; inset: 0; z-index: 900;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center; justify-content: center;
    padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
    background: #0d0d1a;
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%; max-width: 560px;
    max-height: 80vh;
    display: flex; flex-direction: column;
    box-shadow: 0 32px 80px rgba(0,0,0,0.7);
}
.modal__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
}
.modal__title { font-size: 1rem; font-weight: 600; color: var(--text); margin: 0; }
.modal__close {
    background: none; border: none; cursor: pointer;
    color: var(--dim); font-size: 1.3rem; line-height: 1;
    padding: 2px 6px; border-radius: 6px; transition: color .15s, background .15s;
}
.modal__close:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.modal__body {
    padding: 24px;
    overflow-y: auto;
    font-size: 0.85rem; color: var(--muted); line-height: 1.75;
}
.modal__body h3 { font-size: 0.875rem; color: var(--text); margin: 20px 0 6px; }
.modal__body h3:first-child { margin-top: 0; }
.modal__body p { margin: 0 0 12px; }
.modal__todo {
    margin: 16px 0 0;
    padding: 10px 14px;
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 8px;
    font-size: 0.75rem; color: #f59e0b;
    font-family: 'JetBrains Mono', monospace;
}

/* ─────────────────────────── COOKIE BANNER ── */
.cookie-banner {
    display: none;
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    z-index: 800;
    width: calc(100% - 40px); max-width: 680px;
    background: #0d0d1a;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
    align-items: center; gap: 16px; flex-wrap: wrap;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.cookie-banner.show { display: flex; }
.cookie-banner__text {
    flex: 1; min-width: 220px;
    font-size: 0.8rem; color: var(--muted); line-height: 1.6;
}
.cookie-banner__text a { color: var(--indigo2); text-decoration: none; }
.cookie-banner__text a:hover { text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn {
    padding: 7px 16px; border-radius: 8px; font-size: 0.78rem;
    font-weight: 600; cursor: pointer; border: none; transition: opacity .15s;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-btn--accept { background: var(--indigo); color: #fff; }
.cookie-btn--decline { background: rgba(255,255,255,0.07); color: var(--muted); }

/* ─────────────────────────── CHANGELOG ── */
.cl-timeline { display: flex; flex-direction: column; gap: 0; max-width: 780px; margin: 0 auto; }
.cl-entry {
    display: grid; grid-template-columns: 140px 1fr;
    gap: 0 32px; padding: 28px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.cl-entry:last-child { border-bottom: none; }
.cl-meta { padding-top: 2px; }
.cl-version {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem; font-weight: 600; color: var(--indigo2);
    margin-bottom: 4px;
}
.cl-date { font-size: 0.72rem; color: var(--dim); }
.cl-title { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.cl-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cl-list li { display: flex; align-items: baseline; gap: 8px; font-size: 0.83rem; color: var(--muted); }
.cl-list code { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--dim); background: rgba(255,255,255,0.05); padding: 1px 5px; border-radius: 4px; }
.cl-tag {
    display: inline-block; flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.04em;
    padding: 1px 6px; border-radius: 4px; text-transform: uppercase;
}
.cl-tag--feat    { background: rgba(99,102,241,0.15); color: var(--indigo2); }
.cl-tag--fix     { background: rgba(248,113,113,0.15); color: #f87171; }
.cl-tag--ui      { background: rgba(167,139,250,0.15); color: var(--violet); }
.cl-tag--refactor { background: rgba(52,211,153,0.12); color: #34d399; }

@media (max-width: 640px) {
    .cl-entry { grid-template-columns: 1fr; }
    .cl-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
}

/* ─────────────────────────── FOOTER ── */
footer {
    position: relative; z-index: 1;
    border-top: 1px solid var(--border);
    padding: 30px 0;
}
footer .container { display: flex; align-items: center; justify-content: space-between; }
.f-copy {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem; color: var(--dim);
}
.f-links { display: flex; gap: 24px; list-style: none; }
.f-links a { font-size: 0.78rem; color: var(--dim); text-decoration: none; transition: color .15s; }
.f-links a:hover { color: var(--muted); }

/* ─────────────────────────── PROJECTS ── */
.projects-layout {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 72px; align-items: center;
}
.fp-list { list-style: none; display: flex; flex-direction: column; gap: 24px; margin-top: 36px; }
.fp-item { display: flex; gap: 16px; align-items: flex-start; }
.fp-icon {
    width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
    background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.18);
    display: flex; align-items: center; justify-content: center;
}
.fp-icon svg { width: 16px; height: 16px; stroke: var(--indigo2); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fp-label { font-size: 0.875rem; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.01em; }
.fp-desc  { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

/* project workspace visual */
.pw-wrap { position: relative; }
.pw-glow {
    position: absolute; inset: -50px;
    background: radial-gradient(ellipse at 50% 50%, rgba(99,102,241,0.09) 0%, transparent 65%);
    pointer-events: none; z-index: -1;
}
.pw-card {
    background: var(--surface); border: 1px solid var(--border2);
    border-radius: var(--r-lg); overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.pw-header {
    padding: 14px 18px;
    background: rgba(255,255,255,0.025);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
}
.pw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: blink 2s infinite; }
.pw-proj-name { font-size: 0.82rem; font-weight: 600; letter-spacing: -0.01em; }
.pw-proj-sub  { font-size: 0.7rem; color: var(--dim); margin-left: auto;
    font-family: 'JetBrains Mono', monospace; }

.pw-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.pw-section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 4px; margin-top: 4px;
}
.pw-tool {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: var(--r);
    background: var(--surface2); border: 1px solid var(--border);
    transition: border-color 0.2s;
}
.pw-tool:hover { border-color: rgba(99,102,241,0.3); }
.pw-tool-icon {
    width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.pw-tool-icon svg { width: 13px; height: 13px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-tool-name { font-size: 0.8rem; font-weight: 500; flex: 1; }
.pw-tool-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem; padding: 2px 7px; border-radius: 4px;
}
.pw-tool-status.on  { background: rgba(34,211,165,0.1); color: var(--green); }
.pw-tool-status.off { background: rgba(255,255,255,0.04); color: var(--dim); }
.pw-footer {
    padding: 12px 18px; border-top: 1px solid var(--border);
    display: flex; gap: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem; color: var(--dim);
}
.pw-footer span { display: flex; align-items: center; gap: 5px; }
.pw-footer .dot-ok { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

@media (max-width: 960px) {
    .projects-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ─────────────────────────── DAPP (interactive demo) ── */
.dapp-wrap { position: relative; z-index: 1; }
.dapp {
    background: var(--surface); border: 1px solid var(--border2);
    border-radius: var(--r-lg); overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6); height: 460px;
    display: flex; flex-direction: column;
}
.dapp-bar {
    height: 40px; display: flex; align-items: center; gap: 7px;
    padding: 0 16px; background: rgba(255,255,255,0.025);
    border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.dapp-bdot { width: 10px; height: 10px; border-radius: 50%; }
.dapp-url { flex: 1; text-align: center; font-size: 0.68rem; color: var(--dim); font-family: 'JetBrains Mono', monospace; }
.dapp-body { display: flex; flex: 1; overflow: hidden; }

.dapp-side {
    width: 52px; border-right: 1px solid var(--border); flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center;
    padding: 14px 0; gap: 6px; background: rgba(0,0,0,0.2);
}
.dapp-logo {
    width: 28px; height: 28px; background: var(--indigo); border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 800; color: #fff; margin-bottom: 10px;
}
.dapp-nav {
    width: 32px; height: 32px; border-radius: 8px; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: transparent; transition: all 0.15s;
}
.dapp-nav svg { width: 15px; height: 15px; stroke: var(--dim); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dapp-nav:hover { background: rgba(255,255,255,0.07); }
.dapp-nav:hover svg { stroke: var(--muted); }
.dapp-nav.on { background: rgba(99,102,241,0.15); }
.dapp-nav.on svg { stroke: var(--indigo2); }
.dapp-nav-sep { width: 24px; height: 1px; background: var(--border); margin: 2px 0; }

.dapp-main { flex: 1; position: relative; overflow: hidden; }
.dapp-screen {
    position: absolute; inset: 0; padding: 18px 20px;
    display: flex; flex-direction: column; align-items: center;
    gap: 0; overflow-y: auto;
    opacity: 0; transform: translateX(10px); pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.dapp-screen.on { opacity: 1; transform: translateX(0); pointer-events: auto; }
/* centered inner column — mimics real app max-width page layout */
.dapp-inner {
    max-width: 560px; width: 100%; display: flex; flex-direction: column;
    gap: 12px; flex: 1; min-height: 0;
}

.ds-header { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ds-title { font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em; }
.ds-sub { font-size: 0.72rem; color: var(--dim); font-family: 'JetBrains Mono', monospace; }

/* Dashboard tool cards */
.ds-dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.ds-dash-card {
    border-radius: 10px; border: 1px solid var(--border);
    background: var(--surface2); overflow: hidden; cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}
.ds-dash-card:hover { border-color: rgba(99,102,241,0.35); transform: translateY(-1px); }
.ds-dash-card__prev { height: 52px; display: flex; align-items: center; justify-content: center; position: relative; }
.ds-dash-card__prev svg { width: 22px; height: 22px; stroke: rgba(255,255,255,0.75); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ds-dash-card__body { padding: 7px 9px 9px; }
.ds-dash-card__name { font-size: 0.72rem; font-weight: 600; color: var(--text); }
.ds-dash-card__desc { font-size: 0.61rem; color: var(--dim); margin-top: 1px; }
.ds-dash-card__badge { position: absolute; top: 5px; right: 5px; font-size: 0.5rem; font-weight: 700; padding: 1px 5px; border-radius: 99px; background: rgba(245,158,11,0.18); border: 1px solid rgba(245,158,11,0.3); color: #f59e0b; letter-spacing: 0.04em; }

/* AI agent bar */
.ds-ai-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: 9px; flex-shrink: 0; }
.ds-ai-icon { flex-shrink: 0; display: flex; color: rgba(99,102,241,0.6); }
.ds-ai-icon svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.ds-ai-placeholder { font-size: 0.7rem; color: var(--dim); flex: 1; }
.ds-ai-send { width: 24px; height: 24px; border-radius: 6px; background: rgba(99,102,241,0.12); border: none; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ds-ai-send svg { width: 10px; height: 10px; stroke: rgba(99,102,241,0.45); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Projects page header */
.ds-proj-hdr { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.ds-view-toggle { display: flex; gap: 3px; }
.ds-view-btn { width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 5px; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ds-view-btn svg { width: 10px; height: 10px; stroke: var(--dim); fill: none; stroke-width: 2; stroke-linecap: round; }
.ds-view-btn.on { background: rgba(99,102,241,.08); border-color: rgba(99,102,241,.3); }
.ds-view-btn.on svg { stroke: var(--indigo2); }

/* Project cards grid */
.ds-proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.ds-proj-card { border-radius: 10px; border: 1px solid var(--border); background: var(--surface2); overflow: hidden; cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.ds-proj-card:hover { border-color: rgba(99,102,241,0.35); transform: translateY(-1px); }
.ds-proj-card--new { border-style: dashed; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; font-size: 0.65rem; color: var(--dim); min-height: 92px; }
.ds-proj-card--new svg { width: 16px; height: 16px; stroke: var(--dim); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ds-proj-card__banner { height: 48px; display: flex; align-items: center; justify-content: center; }
.ds-proj-card__banner svg { width: 18px; height: 18px; stroke: rgba(255,255,255,0.75); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ds-proj-card__body { padding: 7px 9px 9px; }
.ds-proj-card__name { font-size: 0.72rem; font-weight: 600; color: var(--text); }
.ds-proj-card__slug { font-size: 0.59rem; color: var(--dim); font-family: 'JetBrains Mono', monospace; }

/* Back button (project detail) */
.ds-back { display: inline-flex; align-items: center; gap: 4px; font-size: 0.68rem; color: var(--dim); background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0; }
.ds-back svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ds-tc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.ds-tc {
    border-radius: 8px; border: 1px solid var(--border);
    background: var(--surface2); overflow: hidden; cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}
.ds-tc:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-1px); }
.ds-tc.active { border-color: rgba(56,189,248,0.4); background: rgba(56,189,248,0.04); }
.ds-tc-banner { height: 36px; display: flex; align-items: center; justify-content: center; }
.ds-tc-banner svg { width: 16px; height: 16px; stroke: rgba(255,255,255,0.9); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ds-tc-body { padding: 7px 8px 8px; }
.ds-tc-name { font-size: 0.72rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.ds-tc-desc { font-size: 0.62rem; color: var(--dim); }
.ds-tc-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 0.58rem; font-weight: 600; padding: 1px 5px; border-radius: 4px; margin-top: 4px; background: rgba(248,113,113,0.15); color: #f87171; border: 1px solid rgba(248,113,113,0.2); }
.ds-proj-meta-row { display: flex; align-items: center; gap: 12px; font-size: 0.68rem; color: var(--dim); flex-shrink: 0; }

/* Section title */
.ds-section-title { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--dim); flex-shrink: 0; }

/* Add tool dashed card */
.ds-tc--add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1.5px dashed rgba(255,255,255,0.14); background: transparent; cursor: pointer; min-height: 80px; transition: border-color .15s, background .15s; }
.ds-tc--add:hover { border-color: rgba(99,102,241,0.5); background: rgba(99,102,241,0.05); }
.ds-tc--add svg { width: 16px; height: 16px; color: var(--dim); }
.ds-tc--add span { font-size: 0.62rem; color: var(--dim); font-weight: 500; }

/* Global tools row */
.ds-global-row { display: flex; gap: 6px; flex-shrink: 0; }
.ds-global-card { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: border-color .15s; }
.ds-global-card:hover { border-color: rgba(255,255,255,0.15); }
.ds-global-card__icon { width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.ds-global-card__icon svg { width: 13px; height: 13px; fill: none; stroke: rgba(255,255,255,0.85); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ds-global-card span { font-size: 0.58rem; color: var(--dim); font-weight: 500; text-align: center; }

/* Modal overlay */
.ds-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(2px); display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 10; }
.ds-modal-overlay.open { opacity: 1; pointer-events: all; }
.ds-modal { width: 100%; background: #1a1f2e; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px 12px 0 0; padding: 0 0 8px; }
.ds-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 8px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.ds-modal-head span { font-size: 0.72rem; font-weight: 600; color: var(--text); }
.ds-modal-close { background: none; border: none; cursor: pointer; color: var(--dim); display: flex; align-items: center; }
.ds-modal-close svg { width: 14px; height: 14px; }
.ds-modal-list { display: flex; flex-direction: column; }
.ds-modal-item { display: flex; align-items: center; gap: 8px; padding: 7px 12px; cursor: pointer; transition: background .12s; }
.ds-modal-item:hover { background: rgba(255,255,255,0.04); }
.ds-modal-item__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.18); border: 1.5px solid rgba(255,255,255,0.25); flex-shrink: 0; transition: background .15s, border-color .15s; }
.ds-modal-item.active .ds-modal-item__dot { background: #4ade80; border-color: #16a34a; }
.ds-modal-item__name { font-size: 0.68rem; color: var(--text); flex: 1; }
.ds-modal-item__status { font-size: 0.6rem; color: var(--dim); }
.ds-modal-item.active .ds-modal-item__status { color: #4ade80; }

.ds-scan-card { padding: 10px 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; flex-shrink: 0; }
.ds-scan-rows { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow: hidden; }
.ds-scan-row { display: flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; }
.ds-scan-f { color: var(--muted); flex: 1; }
.dsc-bar { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--indigo), var(--violet)); width: 0; }
.dsc-bar.run { animation: dscfill 3s ease-out forwards 0.2s; }
@keyframes dscfill { to { width: 63%; } }

@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(99,102,241,0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(99,102,241,0); }
    100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
}
.dapp-cta-btn {
    padding: 9px 18px; border-radius: var(--r); font-size: 0.82rem; font-weight: 600;
    font-family: inherit; cursor: pointer; border: 1px solid rgba(99,102,241,0.4);
    background: rgba(99,102,241,0.12); color: var(--indigo2);
    align-self: flex-start; transition: all 0.15s; margin-top: auto; flex-shrink: 0;
    animation: pulse-ring 2s infinite;
}
.dapp-cta-btn:hover { background: rgba(99,102,241,0.22); }

.dapp-dots { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.dapp-auto-btn {
    display: flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
    font-size: 0.68rem; font-family: 'JetBrains Mono', monospace; cursor: pointer;
    border: 1px solid var(--border); color: var(--dim); background: transparent;
    transition: all 0.2s;
}
.dapp-auto-btn svg { width: 9px; height: 9px; flex-shrink: 0; }
.dapp-auto-btn.on { color: var(--indigo2); border-color: rgba(99,102,241,0.35); background: rgba(99,102,241,0.07); }
.dapp-auto-sep { width: 1px; height: 14px; background: var(--border); margin: 0 2px; }
.dapp-dot {
    padding: 4px 12px; border-radius: 999px; font-size: 0.72rem; cursor: pointer;
    font-family: 'JetBrains Mono', monospace; color: var(--dim);
    border: 1px solid var(--border); transition: all 0.2s;
}
.dapp-dot.on { color: var(--indigo2); border-color: rgba(99,102,241,0.35); background: rgba(99,102,241,0.08); }

/* ─────────────────────────── STACK BAR ── */
.stack-bar {
    position: relative; z-index: 1;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stack-inner {
    display: flex; align-items: center; justify-content: center;
    gap: 40px; padding: 18px 40px; flex-wrap: wrap;
}
@media (max-width: 640px) {
    .stack-inner {
        flex-wrap: nowrap; justify-content: flex-start;
        overflow-x: auto; gap: 28px; padding: 16px 24px;
        scrollbar-width: none; -ms-overflow-style: none;
    }
    .stack-inner::-webkit-scrollbar { display: none; }
}
.stack-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase;
    padding-right: 24px; border-right: 1px solid var(--border); white-space: nowrap;
}
.stack-item {
    display: flex; align-items: center; gap: 7px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem; font-weight: 500; color: var(--dim);
    transition: color 0.15s; white-space: nowrap;
}
.stack-item:hover { color: var(--muted); }
.s-dot { width: 7px; height: 7px; border-radius: 50%; }
@media (max-width: 640px) {
    .tg-cards--2up,
    .tg-cards--3up {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 10px;
        background: none;
        border: none;
        border-radius: 0;
        padding-bottom: 4px;
    }
    .tg-cards--2up::-webkit-scrollbar,
    .tg-cards--3up::-webkit-scrollbar { display: none; }

    .tg-cards--2up .tool-card,
    .tg-cards--3up .tool-card {
        flex: 0 0 78vw;
        scroll-snap-align: start;
        border: 1px solid var(--border);
        border-radius: var(--r-lg);
    }
}
@media (max-width: 900px) and (min-width: 641px) { .tg-cards--3up { grid-template-columns: 1fr 1fr; } }
.t-featured-label {
    display: inline-block; margin-left: 8px;
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    background: rgba(244,114,182,0.15); border: 1px solid rgba(244,114,182,0.3);
    color: #f472b6; padding: 1px 7px; border-radius: 999px; vertical-align: middle;
}

/* ─────────────────────────── DEMO ── */
.demo-layout {
    display: grid; grid-template-columns: 280px 1fr; gap: 52px; align-items: start;
}
.demo-steps { display: flex; flex-direction: column; padding-top: 4px; }
.demo-step {
    padding: 16px 0 16px 20px; border-left: 2px solid var(--border);
    cursor: pointer; position: relative;
}
.demo-step.is-active { border-left-color: var(--indigo); }
.demo-step-n {
    font-family: 'JetBrains Mono', monospace; font-size: 0.62rem;
    color: var(--dim); letter-spacing: 0.1em; margin-bottom: 6px;
}
.demo-step-t {
    font-size: 0.875rem; font-weight: 600; letter-spacing: -0.01em;
    color: var(--dim); transition: color 0.25s; margin-bottom: 0;
}
.demo-step.is-active .demo-step-t { color: var(--text); }
.demo-step-d {
    font-size: 0.78rem; color: var(--dim); line-height: 1.6;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.35s ease, opacity 0.35s, margin-top 0.35s;
}
.demo-step.is-active .demo-step-d { max-height: 80px; opacity: 0.75; margin-top: 7px; }
.demo-step-bar {
    position: absolute; left: -2px; bottom: 0; width: 2px; height: 0;
    background: var(--indigo2); transition: none;
}
.demo-step.is-active .demo-step-bar { animation: dbar 3800ms linear forwards; }
@keyframes dbar { from { height: 0 } to { height: 100%; } }

/* demo window */
.demo-win {
    background: var(--surface); border: 1px solid var(--border2);
    border-radius: var(--r-lg); overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5); position: relative; height: 420px;
}
.dw-bar {
    height: 40px; display: flex; align-items: center; gap: 7px;
    padding: 0 16px; background: rgba(255,255,255,0.025);
    border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.dw-dot { width: 10px; height: 10px; border-radius: 50%; }
.dw-dot--r{background:#ff5f57} .dw-dot--y{background:#febc2e} .dw-dot--g{background:#28c840}
.dw-title { flex: 1; text-align: center; font-size: 0.68rem; color: var(--dim); font-family: 'JetBrains Mono', monospace; }

.d-screen {
    position: absolute; inset: 0; top: 40px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(8px); overflow: hidden;
}
.d-screen.is-active { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* S1: Dashboard con progetti */
.s1 { display: flex; }
.s1-side {
    width: 172px; border-right: 1px solid var(--border); flex-shrink: 0;
    padding: 14px 10px; display: flex; flex-direction: column; gap: 4px;
    background: rgba(0,0,0,0.18);
}
.s1-logo {
    width: 24px; height: 24px; background: var(--indigo); border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 800; color: #fff; margin-bottom: 12px;
}
.s1-proj {
    padding: 7px 9px; border-radius: 6px; display: flex; flex-direction: column;
    gap: 2px; cursor: pointer;
}
.s1-proj.hi { background: rgba(99,102,241,0.12); }
.s1-proj-name { font-size: 0.72rem; font-weight: 500; color: var(--muted); }
.s1-proj.hi .s1-proj-name { color: var(--text); }
.s1-proj-meta { font-size: 0.6rem; color: var(--dim); font-family: 'JetBrains Mono', monospace; }
.s1-new {
    margin-top: 6px; padding: 7px 9px; border-radius: 6px;
    border: 1px dashed rgba(99,102,241,0.28); color: var(--indigo2);
    font-size: 0.72rem; display: flex; align-items: center; gap: 6px; cursor: pointer;
}
.s1-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.s1-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; color: var(--dim); margin-bottom: 2px; }
.s1-card {
    padding: 10px 12px; background: var(--surface2); border: 1px solid var(--border);
    border-radius: 8px; display: flex; align-items: center; gap: 10px;
}
.s1-card-icon {
    width: 26px; height: 26px; border-radius: 6px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.s1-card-icon svg { width: 12px; height: 12px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.s1-card-name { font-size: 0.75rem; font-weight: 500; flex: 1; }
.s1-card-time { font-size: 0.62rem; color: var(--dim); font-family: 'JetBrains Mono', monospace; }

/* S2: Nuovo progetto + selezione tool */
.s2 { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.s2-lbl { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; color: var(--dim); margin-bottom: 4px; }
.s2-input {
    padding: 8px 12px; border-radius: 6px; background: rgba(0,0,0,0.3);
    border: 1px solid rgba(99,102,241,0.4); color: var(--text); font-size: 0.85rem; font-family: inherit;
}
.s2-cursor { display: inline-block; width: 2px; height: 14px; background: var(--indigo2); margin-left: 1px; animation: cur 1s steps(1) infinite; vertical-align: middle; }
.s2-sep { height: 1px; background: var(--border); }
.s2-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.s2-tool {
    padding: 9px 8px; border-radius: 7px; border: 1px solid var(--border);
    background: var(--surface2); font-size: 0.7rem; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--dim);
}
.s2-tool.on { border-color: rgba(99,102,241,0.35); background: rgba(99,102,241,0.08); color: var(--indigo2); }
.s2-check { font-size: 0.65rem; }

/* S3: File Scanner running */
.s3 { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.s3-head { display: flex; align-items: center; gap: 10px; }
.s3-title { font-size: 0.82rem; font-weight: 600; flex: 1; }
.s3-badge { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; padding: 2px 8px; border-radius: 4px; background: rgba(251,191,36,0.1); color: var(--yellow); }
.s3-prog-card { padding: 10px 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; }
.s3-prog-row { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--dim); font-family: 'JetBrains Mono', monospace; margin-bottom: 8px; }
.s3-bar-bg { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.s3-bar-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--indigo), var(--violet)); width: 0; animation: s3fill 3s ease-out forwards 0.3s; }
@keyframes s3fill { to { width: 63%; } }
.s3-rows { display: flex; flex-direction: column; gap: 4px; }
.s3-row { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; font-family: 'JetBrains Mono', monospace; }
.s3-ok { color: var(--green); } .s3-wn { color: var(--yellow); } .s3-er { color: var(--red); }
.s3-fname { color: var(--muted); flex: 1; }
.s3-tag { font-size: 0.62rem; color: var(--dim); }

/* S4: PDF Editor */
.s4 { display: flex; height: 100%; }
.s4-dock {
    width: 44px; border-right: 1px solid var(--border); flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center; padding: 12px 0; gap: 8px;
    background: rgba(0,0,0,0.18);
}
.s4-btn { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.s4-btn.on { background: rgba(99,102,241,0.15); }
.s4-btn svg { width: 13px; height: 13px; stroke: var(--dim); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.s4-btn.on svg { stroke: var(--indigo2); }
.s4-main { flex: 1; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; overflow: hidden; }
.s4-toolbar { display: flex; gap: 6px; align-self: stretch; }
.s4-tbtn {
    padding: 4px 10px; border-radius: 5px; font-size: 0.65rem; font-weight: 500;
    background: var(--surface2); border: 1px solid var(--border); color: var(--muted); cursor: pointer;
}
.s4-tbtn.on { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.3); color: var(--indigo2); }
.s4-doc {
    background: #fff; border-radius: 4px; padding: 14px 16px; width: 180px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5); display: flex; flex-direction: column; gap: 7px; flex-shrink: 0;
}
.s4-line { height: 6px; background: #e5e7eb; border-radius: 2px; }
.s4-line.s { width: 55%; } .s4-line.m { width: 78%; } .s4-line.f { width: 100%; }
.s4-hl { background: rgba(99,102,241,0.15); border-left: 2px solid var(--indigo); padding-left: 6px; height: 6px; border-radius: 1px; }
.s4-sig {
    align-self: flex-start; margin-top: 4px; padding: 4px 8px; border-radius: 4px;
    border: 1px solid rgba(52,211,165,0.4); background: rgba(52,211,165,0.08);
    font-size: 0.6rem; color: var(--green); font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 960px) { .demo-layout { grid-template-columns: 1fr; } }

/* ─────────────────────────── SCROLL ANIM ── */
.js .fu { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fu.in { opacity: 1; transform: none; }

/* ─────────────────────────── RESPONSIVE ── */
@media (max-width: 960px) {
    #hero { padding: 110px 0 72px; }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .terminal-wrap { display: none; }
    .ea-grid { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .container { padding: 0 20px; }
    .cta-box { padding: 56px 24px; }
    footer .container { flex-direction: column; gap: 14px; }
}
/* tablet only: stack to 1 col grid (no snap, not yet mobile) */
@media (max-width: 960px) and (min-width: 641px) {
    .tg-cards--2up, .tg-cards--3up { grid-template-columns: 1fr; }
}

.carousel-dots { display: none; }

@media (max-width: 600px) {
    nav .nav-links { display: none; } /* hidden on mobile — drawer handles navigation */

    /* ── Tools carousel ── */
    .tools-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        gap: 12px;
        padding: 0 20px 4px;
        background: none;
        border: none;
        border-radius: 0;
    }
    .tools-grid::-webkit-scrollbar { display: none; }
    .tools-grid .tool-card {
        flex: 0 0 80vw;
        scroll-snap-align: center;
        border: 1px solid var(--border);
        border-radius: var(--r);
    }

    /* ── Early access ── */
    .ea-grid { grid-template-columns: 1fr; }
    .ea-form { flex-direction: column; }

    /* ── Dots indicator ── */
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 16px;
    }
    .carousel-dots .dot {
        width: 6px; height: 6px;
        border-radius: 50%;
        background: var(--border2);
        transition: background 0.2s, transform 0.2s;
    }
    .carousel-dots .dot.active {
        background: var(--indigo);
        transform: scale(1.3);
    }

}

/* ─────────────────────────── HAMBURGER / DRAWER ── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--r);
    cursor: pointer;
    padding: 0 8px;
    flex-shrink: 0;
}
.nav-hamburger span {
    display: block;
    height: 1.5px;
    background: var(--muted);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
    transform-origin: center;
}
/* open state — bars become X */
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Drawer */
.nav-drawer {
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(5,5,15,0.97);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 20px 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    /* hidden state */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 99;
}
.nav-drawer.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.nav-drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
}
.nav-drawer-links li a {
    display: block;
    padding: 13px 4px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.15s;
}
.nav-drawer-links li:last-child a { border-bottom: none; }
.nav-drawer-links li a:hover,
.nav-drawer-links li a.nav-link--active { color: var(--text); }
.nav-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nav-drawer-gh {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--dim);
    text-decoration: none;
    padding: 8px 4px;
    transition: color 0.15s;
}
.nav-drawer-gh svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-drawer-gh:hover { color: var(--muted); }

@media (max-width: 600px) {
    .nav-hamburger { display: flex; }
    /*.nav-actions .nav-gh { display: none; }*/
    .nav-register { display: none; }
    .nav-login { padding: 6px 8px; }
    .nav-login-label { display: none; }
    .nav-login-icon { width: 20px; height: 20px; display: block; }
    nav .container { padding: 0 40px; }
    .nav-actions { gap: 6px; }
}

/* ──────────────────────────────────── FAQ ── */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    counter-reset: faq-counter;
}
.faq-item {
    background: var(--surface);
    padding: 28px 26px;
    position: relative;
    overflow: hidden;
    transition: background 0.18s;
    counter-increment: faq-counter;
}
.faq-item::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 0%, rgba(99,102,241,0.05) 0%, transparent 55%);
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.faq-item:hover { background: var(--surface2); }
.faq-item:hover::after { opacity: 1; }
.faq-item::before {
    content: counter(faq-counter, decimal-leading-zero) '.';
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--dim);
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}
.faq-q {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 9px;
}
.faq-a {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.65;
}
.faq-a strong {
    color: var(--text);
    font-weight: 600;
}
.faq-a code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8em;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: 4px;
    padding: 1px 6px;
    color: var(--indigo2);
    white-space: nowrap;
}
@media (max-width: 600px) {
    .faq-grid { grid-template-columns: 1fr; }
}
