/* NovaKey (fictional demo) — shared styles across all pages.
   Layout: dark-cosmic fintech; glass cards, aurora glow, one token system, light+dark. */
:root {
  --bg: #f6f7fb; --surface: #ffffff; --surface-2: #eef0f7; --line: #e2e5f0;
  --fg: #121725; --muted: #5b6478; --faint: #8a91a6;
  --accent: #0bb584; --accent-2: #6a5cff;
  --pos: #12a150; --neg: #e0483d;
  --glow-1: rgba(11,181,132,0.22); --glow-2: rgba(106,92,255,0.20);
  --card-shadow: 0 1px 2px rgba(18,23,37,0.04), 0 12px 32px -18px rgba(18,23,37,0.28);
  --radius: 18px; --maxw: 1140px;
  --f-display: "Sora", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0d16; --surface: #121726; --surface-2: #171d30; --line: #242c44;
    --fg: #eef1fa; --muted: #a2abc4; --faint: #707997;
    --accent: #1fd69c; --accent-2: #8b7dff; --pos: #35d07f; --neg: #ff6b5e;
    --glow-1: rgba(31,214,156,0.20); --glow-2: rgba(139,125,255,0.18);
    --card-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 18px 48px -22px rgba(0,0,0,0.75);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0d16; --surface: #121726; --surface-2: #171d30; --line: #242c44;
  --fg: #eef1fa; --muted: #a2abc4; --faint: #707997;
  --accent: #1fd69c; --accent-2: #8b7dff; --pos: #35d07f; --neg: #ff6b5e;
  --glow-1: rgba(31,214,156,0.20); --glow-2: rgba(139,125,255,0.18);
  --card-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 18px 48px -22px rgba(0,0,0,0.75);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
[hidden] { display: none !important; }
h1,h2,h3,h4 { font-family: var(--f-display); text-wrap: balance; letter-spacing: -0.02em; line-height: 1.14; margin: 0; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--accent); opacity: .7; }

.demo-banner { background: linear-gradient(90deg, var(--accent-2), var(--accent)); color: #fff; font-size: 12.5px; text-align: center; padding: 7px 16px; font-weight: 600; }

/* nav */
header.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 18px; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; gap: 24px; margin-left: 14px; font-size: 14.5px; color: var(--muted); font-weight: 600; }
.nav-links a { padding: 4px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--accent); border-color: var(--accent); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--f-body); font-weight: 700; font-size: 14.5px; cursor: pointer; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; transition: transform .15s ease, background .2s ease, border-color .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #042a1f; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle { width: 38px; height: 38px; padding: 0; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 16px; }
.menu-btn { display: none; width: 38px; height: 38px; padding: 0; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 18px; cursor: pointer; }
.mobile-menu { display: none; border-top: 1px solid var(--line); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 13px 20px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.mobile-menu a.active { color: var(--accent); }

section { padding-block: 60px; }
.sec-head { max-width: 62ch; margin-bottom: 34px; }
.sec-head.center { text-align: center; margin-inline: auto; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head h2 { font-size: clamp(26px,3.4vw,36px); font-weight: 700; margin-top: 12px; }
.sec-head p { color: var(--muted); font-size: 16px; margin: 14px 0 0; }

.glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.glow.g1 { width: 480px; height: 480px; background: var(--glow-1); top: -160px; right: -120px; }
.glow.g2 { width: 400px; height: 400px; background: var(--glow-2); bottom: -180px; left: -140px; }

/* hero */
.hero { position: relative; overflow: hidden; padding-block: 64px 48px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px,5.2vw,54px); font-weight: 700; margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { color: var(--muted); font-size: 17px; max-width: 48ch; margin: 20px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 26px; }
.pill { font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: var(--surface); }
.announce { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; color: var(--muted); }
.announce b { background: var(--surface-2); color: var(--accent); border-radius: 999px; padding: 3px 9px; font-size: 11.5px; }

.wallet-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--card-shadow); position: relative; overflow: hidden; }
.wallet-card::before { content:""; position:absolute; inset:0; background: radial-gradient(120% 80% at 80% -10%, var(--glow-1), transparent 60%); pointer-events:none; }
.wc-head { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.wc-label { font-size: 12.5px; color: var(--faint); font-weight: 600; }
.wc-total { font-family: var(--f-display); font-weight: 700; font-size: 34px; margin-top: 4px; }
.wc-chip { font-size: 11px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 999px; padding: 4px 10px; }
.asset-list { display: flex; flex-direction: column; gap: 2px; margin-top: 20px; position: relative; }
.asset { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 12px; }
.asset:hover { background: var(--surface-2); }
.coin { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; font-family: var(--f-display); flex:none; }
.asset-name { font-weight: 700; font-size: 14.5px; }
.asset-ticker { font-size: 12px; color: var(--faint); }
.asset-val { text-align: right; }
.asset-price { font-weight: 700; font-size: 14px; }
.chg { font-size: 12px; font-weight: 700; }
.chg.up { color: var(--pos); } .chg.down { color: var(--neg); }
.wc-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 18px; position: relative; }
.wc-action { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 12px; padding: 12px 4px; }
.wc-action span { display: block; font-size: 17px; margin-bottom: 3px; }

.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 54px; position: relative; z-index: 1; }
.stat { border-left: 2px solid var(--accent); padding-left: 14px; }
.stat b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 28px; }
.stat span { font-size: 13px; color: var(--muted); }

.cards-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--card-shadow); }
.card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--surface-2); margin-bottom: 16px; }
.card h3 { font-size: 18px; font-weight: 700; }
.card p { color: var(--muted); font-size: 14.5px; margin: 10px 0 0; }

.sec-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.sec-item { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.sec-item .ic { font-size: 24px; flex: none; }
.sec-item h3 { font-size: 16px; font-weight: 700; }
.sec-item p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.prose p { color: var(--muted); font-size: 15.5px; margin: 0 0 16px; max-width: 60ch; }
.prose p b { color: var(--fg); }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl { display: grid; grid-template-columns: 74px 1fr; gap: 16px; padding-bottom: 24px; position: relative; }
.tl::before { content:""; position:absolute; left: 7px; top: 8px; bottom: -4px; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl .yr { font-family: var(--f-mono); font-weight: 700; font-size: 13px; color: var(--accent); position: relative; padding-left: 22px; }
.tl .yr::before { content:""; position:absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb,var(--accent) 20%, transparent); }
.tl p { font-size: 14px; color: var(--muted); margin: 2px 0 0; }
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 10px; }

/* listing */
.list-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.search input { border: none; background: transparent; color: var(--fg); font-family: var(--f-body); font-size: 14px; width: 100%; outline: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--card-shadow); }
table.tokens { width: 100%; border-collapse: collapse; min-width: 560px; }
table.tokens th, table.tokens td { text-align: right; padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.tokens th { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
table.tokens tr:last-child td { border-bottom: none; }
table.tokens td.name, table.tokens th.name { text-align: left; }
.tok { display: flex; align-items: center; gap: 10px; }
.tok .sym { font-size: 12px; color: var(--faint); }
.tok b { font-weight: 700; }
td .mono { font-weight: 700; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.cc { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.cc .ic { font-size: 22px; flex: none; }
.cc h3 { font-size: 15.5px; font-weight: 700; }
.cc p { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
.cc .val { font-family: var(--f-mono); font-size: 13px; color: var(--accent); margin-top: 8px; user-select: all; word-break: break-all; }
form.contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 14px; }
form.contact label { font-size: 13px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 6px; }
form.contact input, form.contact textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; color: var(--fg); font-family: var(--f-body); font-size: 14px; outline: none; }
form.contact input:focus, form.contact textarea:focus { border-color: var(--accent); }
form.contact textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12.5px; color: var(--faint); }

/* app page */
.page-hero { position: relative; overflow: hidden; padding-block: 56px 12px; text-align: center; }
.page-hero .inner { position: relative; z-index: 1; }
.plat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.plat { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 22px; box-shadow: var(--card-shadow); text-align: center; display: flex; flex-direction: column; align-items: center; }
.plat .os { font-size: 30px; }
.plat h3 { font-size: 18px; font-weight: 700; margin-top: 10px; }
.plat .meta { font-size: 12.5px; color: var(--faint); margin-top: 4px; font-family: var(--f-mono); }
.plat-desc { font-size: 13.5px; color: var(--muted); margin: 16px 0 0; min-height: 40px; }
.plat .btn { margin-top: 18px; width: 100%; }
.req-wrap { max-width: 760px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); }
.req-row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 14px; }
.req-row:last-child { border-bottom: none; }
.req-row span.k { color: var(--faint); font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; align-self: center; }
.safe { max-width: 820px; margin-inline: auto; background: color-mix(in srgb, var(--accent-2) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent-2) 28%, var(--line)); border-radius: var(--radius); padding: 26px; }
.safe h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.safe ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.safe b { color: var(--fg); }

/* cta */
.cta-box { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 52px 32px; text-align: center; box-shadow: var(--card-shadow); }
.cta-box h2 { font-size: clamp(26px,3.6vw,36px); font-weight: 700; position: relative; z-index: 1; }
.cta-box p { color: var(--muted); margin: 14px auto 24px; max-width: 46ch; position: relative; z-index: 1; }
.cta-box .btn { position: relative; z-index: 1; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 44px 34px; background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: 0 0 14px; font-family: var(--f-mono); font-weight: 600; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-grid a { color: var(--muted); font-size: 14px; }
.foot-grid a:hover { color: var(--accent); }
.foot-about p { color: var(--muted); font-size: 14px; max-width: 34ch; margin: 14px 0 0; }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 12.5px; color: var(--faint); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-grid; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 24px; }
  .cards-3, .values { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
  .plat-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .wc-actions { grid-template-columns: repeat(2,1fr); }
  .req-row { grid-template-columns: 1fr; gap: 4px; }
  .values { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
