/* DigitalTreasury marketing — design system */
:root {
    --bg: #05070E;
    --surface: #0C111B;
    --surface-2: #111826;
    --elevated: #131b2a;
    --border: rgba(255, 255, 255, 0.08);
    --accent: #4F7CFF;
    --accent-2: #22D3EE;
    --text: #F2F5FA;
    --muted: #93A0B4;
    --faint: #5B6679;
    --success: #34D399;
    --radius: 16px;
    --maxw: 1140px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* Ambient depth */
body {
    background-image:
        radial-gradient(60% 45% at 50% -8%, rgba(79, 124, 255, 0.12), transparent 70%),
        radial-gradient(38% 28% at 92% 2%, rgba(34, 211, 238, 0.07), transparent 60%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

h1, h2, h3, .display { font-family: 'Sora', sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.accent { color: var(--accent-2); }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); background: rgba(3, 6, 15, 0.7); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px; }
.brand .dot { width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 16px var(--accent); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s; }
.btn-primary { background: linear-gradient(135deg, #3E6BFF 0%, #1E40AF 100%); color: #fff; box-shadow: 0 8px 30px rgba(37, 99, 235, .35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(37, 99, 235, .5); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }

/* Sections */
section { padding: 96px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: var(--accent-2); font-weight: 600; }
.section-title { font-size: 38px; margin: 12px 0 16px; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 64px; position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(38px, 6vw, 66px); max-width: 14ch; }
.hero p { font-size: 20px; color: var(--muted); max-width: 56ch; margin: 22px 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.glow { position: absolute; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.22), transparent 60%); top: -200px; right: -150px; filter: blur(20px); pointer-events: none; }

/* Cards / grid */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: rgba(37,99,235,.4); }
.card h3 { font-size: 20px; margin: 8px 0 10px; }
.card .icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(37,99,235,.12); color: var(--accent-2); margin-bottom: 4px; }

/* Code blocks */
.code { background: #060a15; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; font-family: 'JetBrains Mono', monospace; font-size: 13.5px; color: #c8d3e8; overflow-x: auto; white-space: pre; line-height: 1.6; }
.code .k { color: #7dd3fc; }
.code .s { color: #86efac; }
.code .c { color: #64748b; }

/* Trust bar */
.trust { display: flex; gap: 36px; flex-wrap: wrap; align-items: center; margin-top: 44px; opacity: .8; }
.trust span { font-family: 'Sora', sans-serif; font-weight: 600; color: var(--muted); font-size: 17px; }

/* Pricing */
.price-card { text-align: left; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(37,99,235,.25); }
.price { font-family: 'Sora'; font-size: 40px; font-weight: 700; }
.price small { font-size: 15px; color: var(--muted); font-weight: 400; }
.feature-list { list-style: none; padding: 0; margin: 18px 0 0; }
.feature-list li { padding: 7px 0; color: var(--muted); display: flex; gap: 10px; }
.feature-list li::before { content: "✓"; color: var(--success); font-weight: 700; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea { background: #060a15; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; color: var(--text); font-size: 15px; font-family: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.alert-success { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.4); color: #6ee7b7; padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 48px 0; color: var(--muted); font-size: 14px; }
.footer .footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }

/* Animated payment flow */
.flow-svg { width: 100%; height: auto; margin-top: 40px; }
.flow-pulse { fill: var(--accent-2); }

@media (max-width: 860px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .nav-links a:not(.btn) { display: none; }
    section { padding: 64px 0; }
}

/* ---------- Polish pass ---------- */
.hero h1 {
    background: linear-gradient(180deg, #FFFFFF 0%, #BFCBE6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.card { transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); border-color: rgba(79, 124, 255, .45); box-shadow: 0 18px 44px rgba(0, 0, 0, .4); }
.price-card.featured { box-shadow: 0 0 0 1px var(--accent), 0 24px 64px rgba(79, 124, 255, .22); }
.btn-primary { box-shadow: 0 8px 30px rgba(79, 124, 255, .35); }
.btn-primary:hover { box-shadow: 0 12px 38px rgba(79, 124, 255, .5); }
.code { background: #070b14; border: 1px solid rgba(255, 255, 255, .06); }
.eyebrow { color: var(--accent-2); }
.trust span { transition: color .2s; }
.trust span:hover { color: var(--text); }
.field input, .field select, .field textarea { background: var(--elevated); transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 3px rgba(79, 124, 255, .15); }

/* ---------- Product-site pass (design handoff: DigitalTreasuryLanding + MarketingPages) ---------- */

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.stats .stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; }
.stats .stat .n { font-family: 'Sora', sans-serif; font-size: 30px; font-weight: 700; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stats .stat .l { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* Status pills — a claim about what exists is a claim, so it is visible */
.pill { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.pill-live { background: rgba(52, 211, 153, .13); color: var(--success); }
.pill-dev { background: rgba(245, 158, 11, .13); color: #FBBF24; }
.pill-designed { background: rgba(147, 160, 180, .14); color: var(--muted); }

/* Platform layers */
.layer { display: grid; grid-template-columns: 120px 1fr; gap: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 32px; margin-top: 18px; }
.layer .no { font-family: 'Sora', sans-serif; font-size: 15px; color: var(--accent-2); font-weight: 600; }
.layer h3 { margin: 4px 0 8px; font-size: 22px; }
.layer ul { list-style: none; padding: 0; margin: 12px 0 0; color: var(--muted); }
.layer ul li { padding: 4px 0 4px 18px; position: relative; }
.layer ul li::before { content: "▪"; position: absolute; left: 0; color: var(--accent-2); }

/* Vertical tiles */
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.vtile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; border-top: 3px solid var(--vaccent, var(--accent)); transition: transform .2s, box-shadow .25s; }
.vtile:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(0,0,0,.4); }
.vtile h3 { font-size: 18px; margin: 0 0 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vtile p { color: var(--muted); font-size: 14px; margin: 0; }

/* Compliance grid */
.cgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.cgrid .ctile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.cgrid .ctile .big { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 700; color: var(--accent-2); }
.cgrid .ctile .l { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

/* Honesty box — what is simulated stays labelled */
.phase-note { background: rgba(245, 158, 11, .07); border: 1px solid rgba(245, 158, 11, .3); border-radius: 12px; padding: 18px 22px; color: #FCD34D; font-size: 14.5px; margin-top: 36px; }
.phase-note strong { color: #FDE68A; }

/* Footer columns */
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-cols h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin: 0 0 12px; }
.footer-cols a { display: block; color: var(--muted); font-size: 14px; padding: 3px 0; }
.footer-cols a:hover { color: var(--text); }
.footer-legal { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--faint); font-size: 13px; }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 20px; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 12px 0 0; max-width: 70ch; }

/* Page hero (interior pages) */
.page-hero { padding: 84px 0 48px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); max-width: 20ch; }

/* Article prose (Learn / SEO pages) */
.prose { font-size: 17px; color: var(--text); }
.prose h2 { font-family: 'Sora', sans-serif; font-size: 24px; margin: 36px 0 12px; letter-spacing: -0.01em; }
.prose p { color: #c9d3e4; margin: 0 0 16px; }
.prose a { color: var(--accent-2); }
.prose a:hover { text-decoration: underline; }
.prose ul { color: #c9d3e4; margin: 0 0 16px; padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding: 5px 0 5px 22px; }
.prose ul li::before { content: "▪"; position: absolute; left: 2px; color: var(--accent-2); }
.prose strong { color: var(--text); }
.prose em { color: var(--text); font-style: italic; }
.prose code { font-family: 'JetBrains Mono', monospace; font-size: 14px; background: var(--elevated); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: #c8d3e8; }

@media (max-width: 860px) {
    .stats, .cgrid { grid-template-columns: 1fr 1fr; }
    .vgrid { grid-template-columns: 1fr; }
    .layer { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
}
