:root {
    --bg: #07111f;
    --bg-soft: #0c1728;
    --panel: rgba(13, 23, 39, 0.92);
    --panel-soft: rgba(17, 30, 51, 0.8);
    --line: rgba(125, 166, 255, 0.16);
    --line-strong: rgba(125, 166, 255, 0.24);
    --text: #edf4ff;
    --muted: #9cafcd;
    --primary: #79a8ff;
    --primary-strong: #4f90ff;
    --secondary: #79edd6;
    --success: #55d79c;
    --warning: #ffc86d;
    --error: #ff8686;
    --info: #83b8ff;
    --neutral: #d7e4fb;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --radius: 24px;
    --radius-sm: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(82, 141, 255, 0.22), transparent 22%),
        radial-gradient(circle at top right, rgba(93, 233, 190, 0.12), transparent 22%),
        radial-gradient(circle at bottom right, rgba(133, 95, 255, 0.1), transparent 18%),
        linear-gradient(180deg, #050d18, #07111f 55%, #081321 100%);
}

a { color: inherit; text-decoration: none; }
code, .mono {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.app-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 20px auto;
}

.site-header,
.site-footer,
.card,
.alert {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    background: rgba(8, 16, 29, 0.92);
    border-radius: var(--radius);
    position: sticky;
    top: 12px;
    backdrop-filter: blur(18px);
    z-index: 20;
}

.brand-wrap { display: flex; align-items: center; gap: 14px; }
.brand-badge {
    width: 50px;
    height: 50px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #08111e;
    font-weight: 800;
    font-size: 1.22rem;
}
.brand-title { font-size: 1.15rem; font-weight: 800; display: block; }
.brand-subtitle { margin: 2px 0 0; color: var(--muted); font-size: 0.93rem; }

.site-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}
.site-nav a {
    padding: 10px 14px;
    border-radius: 14px;
    color: var(--muted);
    transition: 0.2s ease;
}
.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text);
    background: rgba(121, 168, 255, 0.11);
}
.site-nav .btn-nav {
    color: #08111e;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    font-weight: 800;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 14px;
    padding: 10px 12px;
}

.main-content { padding: 24px 0; }
.card {
    background: linear-gradient(180deg, rgba(13, 23, 39, 0.97), rgba(10, 19, 32, 0.92));
    border-radius: var(--radius);
    padding: 24px;
    overflow: hidden;
}
.glass-card {
    background: linear-gradient(180deg, rgba(18, 30, 52, 0.88), rgba(11, 22, 39, 0.72));
}
.hero-surface {
    background:
        radial-gradient(circle at right top, rgba(121, 168, 255, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(15, 25, 43, 0.95), rgba(9, 18, 31, 0.93));
}
.hero-card h1,
.auth-card h1,
.card h1,
.card h2,
.card h3 { margin-top: 0; }
.hero-card h1 { font-size: clamp(2rem, 4.8vw, 3.5rem); line-height: 1.02; margin-bottom: 16px; max-width: 11ch; }
.hero-card p,
.card p,
.stack-list span,
.timeline-list span { color: #d5e2f8; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9cc6ff;
    font-size: 0.81rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 12px;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: rgba(156, 198, 255, 0.65);
}

.hero-grid,
.panel-grid {
    display: grid;
    gap: 18px;
}
.hero-grid { grid-template-columns: 1.5fr 1fr; margin-bottom: 18px; }
.compact-hero { align-items: stretch; }
.retail-hero .hero-card { min-height: 100%; }
.panel-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wide-gap { gap: 22px; }

.hero-actions,
.stat-row,
.toolbar-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.hero-actions { margin-top: 22px; }
.stat-row { margin-top: 20px; }
.stat-row.compact { gap: 10px; }
.top-gap { margin-top: 20px; }

.btn {
    border: 0;
    border-radius: 16px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.2s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: #08111f; }
.btn-secondary,
.btn-copy { background: rgba(255, 255, 255, 0.05); color: var(--text); border: 1px solid var(--line); }
.btn-copy { margin-top: 12px; padding: 10px 14px; font-size: 0.92rem; }
.text-link { color: #9cc6ff; display: inline-block; margin-top: 14px; }

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}
.compact-list { gap: 10px; }
.feature-list li {
    position: relative;
    padding-left: 28px;
    color: var(--muted);
}
.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success);
    font-weight: 800;
}

.stat-box,
.stat-card,
.meter-box,
.feature-card,
.pricing-card,
.action-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(139, 170, 255, 0.13);
    border-radius: 18px;
    padding: 18px;
}
.featured {
    border-color: rgba(121, 168, 255, 0.35);
    box-shadow: inset 0 0 0 1px rgba(121, 168, 255, 0.08);
}
.stat-box strong,
.stat-card strong,
.meter-box strong {
    display: block;
    font-size: 1.28rem;
    margin-top: 8px;
}
.stat-box span,
.stat-card span,
.meter-box span,
.info-grid span,
.form-grid span,
.toolbar-grid span {
    color: var(--muted);
    font-size: 0.88rem;
}
.stat-card small { display: block; margin-top: 8px; color: var(--muted); }

.welcome-strip {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.info-grid > div {
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(139, 170, 255, 0.11);
}
.info-grid strong { display: block; margin-top: 8px; font-size: 1rem; }
.wallet-grid { margin-top: 18px; }
.seed-box {
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px dashed rgba(139, 170, 255, 0.24);
}
.seed-box span { display: block; color: var(--muted); margin-bottom: 8px; }

.table-wrap {
    overflow: auto;
    border: 1px solid rgba(139, 170, 255, 0.12);
    border-radius: 18px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

thead { background: rgba(255, 255, 255, 0.04); }
th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(139, 170, 255, 0.08);
}
td { color: #d8e4f8; }
.positive { color: var(--success); }
.negative { color: var(--error); }

.form-grid,
.toolbar-grid {
    display: grid;
    gap: 14px;
}
.form-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.toolbar-grid { grid-template-columns: 240px minmax(0, 1fr) auto; margin-bottom: 18px; }
.form-grid label,
.toolbar-grid label {
    display: grid;
    gap: 8px;
}
.full-span { grid-column: 1 / -1; }
input, select, textarea {
    width: 100%;
    border: 1px solid rgba(139, 170, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-radius: 14px;
    padding: 13px 14px;
    outline: none;
}
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(111, 165, 255, 0.6);
    box-shadow: 0 0 0 4px rgba(111, 165, 255, 0.12);
}

.auth-shell {
    min-height: calc(100vh - 210px);
    display: grid;
    place-items: center;
}
.auth-grid {
    width: 100%;
    grid-template-columns: minmax(0, 560px) minmax(320px, 420px);
    gap: 18px;
    align-items: center;
}
.wide-grid { grid-template-columns: minmax(0, 760px) minmax(320px, 420px); }
.auth-card { width: min(560px, 100%); }
.auth-card.wide { width: min(760px, 100%); }
.auth-side-card { min-height: 100%; }
.turnstile-row { grid-column: 1 / -1; }

.alert {
    padding: 14px 18px;
    border-radius: 18px;
    margin-bottom: 16px;
}
.alert.success { background: rgba(88, 216, 154, 0.12); color: #c7ffd7; }
.alert.error { background: rgba(255, 126, 126, 0.12); color: #ffd0d0; }
.muted { color: var(--muted); }

.ad-box {
    min-height: 170px;
    border-radius: 20px;
    border: 1px dashed rgba(139, 170, 255, 0.24);
    display: grid;
    place-items: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    margin-top: 12px;
}

.consent-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(139, 170, 255, 0.12);
    margin: 20px 0;
}
.consent-box input { width: 18px; height: 18px; margin-top: 2px; }
.meter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.four-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.compact-controls { max-width: 340px; }

.section-card h2,
.section-card h1 { max-width: 18ch; }
.spotlight-card h2 { margin-bottom: 16px; }
.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.check-grid > div {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(139, 170, 255, 0.11);
}
.stack-list,
.timeline-list {
    display: grid;
    gap: 12px;
}
.stack-list > div,
.timeline-list > div {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(139, 170, 255, 0.11);
}
.compact-stack > div { gap: 4px; }
.timeline-list strong { font-size: 1.05rem; }

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
}
.pill-success { color: #d8ffe8; background: rgba(85, 215, 156, 0.15); border-color: rgba(85, 215, 156, 0.24); }
.pill-warning { color: #ffe8bc; background: rgba(255, 200, 109, 0.13); border-color: rgba(255, 200, 109, 0.22); }
.pill-info { color: #deebff; background: rgba(131, 184, 255, 0.13); border-color: rgba(131, 184, 255, 0.22); }
.pill-neutral { color: #edf4ff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.11); }

.site-footer {
    margin-top: 20px;
    padding: 18px 22px;
    border-radius: var(--radius);
    background: rgba(8, 16, 29, 0.9);
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.footer-copy { margin: 6px 0 0; }
.footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
    font-size: 0.9rem;
}

@media (max-width: 1120px) {
    .panel-grid.four,
    .auth-grid,
    .wide-grid,
    .meter-grid,
    .four-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .hero-grid,
    .panel-grid.two,
    .panel-grid.three,
    .panel-grid.four,
    .info-grid,
    .form-grid.two-col,
    .toolbar-grid,
    .check-grid,
    .auth-grid,
    .wide-grid,
    .meter-grid,
    .four-grid {
        grid-template-columns: 1fr;
    }

    .site-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .menu-toggle { display: inline-flex; }
    .site-nav {
        width: 100%;
        display: none;
        padding-top: 8px;
        justify-content: flex-start;
    }
    .site-nav.open { display: flex; }
    .welcome-strip { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    .app-shell { width: min(100% - 18px, 1280px); }
    .site-header,
    .card,
    .site-footer { padding: 18px; }
    .hero-card h1 { font-size: 2rem; }
    .brand-subtitle { display: none; }
    .site-nav { gap: 6px; }
    .site-nav a { width: 100%; }
}



.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}
.footer-links a {
    color: var(--muted);
    font-size: 0.92rem;
}
.trust-strip { margin-bottom: 18px; }
.trust-card h3 { margin: 6px 0 10px; }
.trust-card p { margin-bottom: 0; }
.trust-box {
    display: grid;
    gap: 8px;
    min-height: 110px;
    align-content: center;
}
.trust-note {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(139, 170, 255, 0.18);
    background: rgba(255, 255, 255, 0.035);
}
.faq-list {
    display: grid;
    gap: 12px;
}
.faq-item {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(139, 170, 255, 0.16);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    border-radius: 18px;
    padding: 18px;
    display: grid;
    gap: 10px;
    cursor: pointer;
}
.faq-item strong {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.faq-item strong::after {
    content: "+";
    font-size: 1.2rem;
    color: #9cc6ff;
}
.faq-item span {
    display: none;
    color: #d5e2f8;
}
.faq-item.open span {
    display: block;
}
.faq-item.open strong::after {
    content: "–";
}
.spotlight-card h2 { margin-bottom: 16px; }
code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.93em;
}
@media (max-width: 980px) {
    .footer-links {
        justify-content: flex-start;
    }
}
