/* ============================================================
   TradeCompass — Premium dark-first design system
   ============================================================ */

:root {
  /* Base surfaces */
  --bg:        #060A12;
  --bg-2:      #0A101C;
  --surface:   #0E1626;
  --surface-2: #131E33;
  --surface-3: #1A2740;
  --line:      rgba(255,255,255,.075);
  --line-2:    rgba(255,255,255,.14);

  /* Ink */
  --ink:    #E9EFFA;
  --ink-2:  #AEBDD4;
  --muted:  #6E809D;

  /* Brand */
  --teal:    #14E0C8;
  --emerald: #35E39C;
  --violet:  #7C5CFF;
  --gold:    #F5C86B;
  --grad:    linear-gradient(135deg, #14E0C8 0%, #35E39C 100%);
  --grad-ai: linear-gradient(120deg, #7C5CFF 0%, #14E0C8 52%, #35E39C 100%);

  /* Market semantics */
  --up:   #22D98A;
  --down: #FF5C72;
  --warn: #F5C86B;

  --radius:    16px;
  --radius-sm: 11px;
  --shadow:    0 1px 2px rgba(0,0,0,.5), 0 18px 48px -12px rgba(0,0,0,.7);
  --glow:      0 0 0 1px rgba(20,224,200,.35), 0 12px 40px -8px rgba(20,224,200,.28);

  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Inter", Roboto, Helvetica, Arial, sans-serif;
  --nums: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;

  /* Legacy aliases — keep older view markup correct on the dark theme */
  --navy:   #FFFFFF;   /* was heading colour on light bg */
  --navy-2: #E9EFFA;
  --teal-d: #35E39C;
  --card:   var(--surface);
  --green:  #22D98A;
  --red:    #FF5C72;
  --amber:  #F5C86B;
}

* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient aurora wash behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 600px at 12% -8%,  rgba(20,224,200,.10), transparent 60%),
    radial-gradient(900px 520px  at 92% 4%,   rgba(124,92,255,.10), transparent 62%),
    radial-gradient(800px 500px  at 50% 108%, rgba(53,227,156,.07), transparent 60%);
}

a { color: var(--teal); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--emerald); }

.container-tc { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.num { font-family: var(--nums); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ============================== Nav ============================== */
.tc-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6,10,18,.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.tc-nav .inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.tc-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.2rem; color: #fff; letter-spacing: -.02em; }
.tc-brand .logo { width: 32px; height: 32px; filter: drop-shadow(0 0 14px rgba(20,224,200,.5)); }
.tc-nav nav { display: flex; gap: 2px; margin-left: 6px; }
.tc-nav nav a {
  position: relative; color: var(--ink-2); padding: 8px 13px; border-radius: 10px;
  font-weight: 600; font-size: .925rem; letter-spacing: -.01em; white-space: nowrap;
}
.tc-nav nav a:hover { color: #fff; background: rgba(255,255,255,.055); }
.tc-nav nav a.active { color: #fff; background: rgba(20,224,200,.1); box-shadow: inset 0 0 0 1px rgba(20,224,200,.22); }
.tc-nav .spacer { flex: 1; }
.tc-auth { display: flex; align-items: center; gap: 10px; }
.tc-user { color: var(--ink-2); font-weight: 600; font-size: .9rem; }
@media (max-width: 1080px) {
  .tc-nav .inner { height: auto; padding: 12px 0; flex-wrap: wrap; }
  .tc-nav nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; }
}

/* Disclaimer ribbon */
.tc-ribbon {
  background: linear-gradient(90deg, rgba(245,200,107,.12), rgba(245,200,107,.06));
  border-bottom: 1px solid rgba(245,200,107,.2);
  color: #F0D9A8; font-size: .775rem; text-align: center; padding: 7px 14px; letter-spacing: .01em;
}

/* Live ticker tape */
.tape { border-bottom: 1px solid var(--line); background: rgba(10,16,28,.6); overflow: hidden; }
.tape-track { display: flex; gap: 34px; padding: 9px 0; width: max-content; animation: tape 44s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tape-item { display: flex; align-items: baseline; gap: 8px; font-size: .82rem; white-space: nowrap; }
.tape-item b { color: #fff; font-weight: 700; letter-spacing: .01em; }
.tape-item span { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ============================== Buttons ============================== */
.btn-tc {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 11px; padding: 10px 18px;
  font-weight: 700; font-size: .92rem; letter-spacing: -.01em; cursor: pointer;
  transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s ease, background .16s ease, border-color .16s ease;
  font-family: inherit; text-decoration: none;
}
.btn-tc:hover { transform: translateY(-1.5px); }
.btn-tc:active { transform: translateY(0); }
.btn-tc.primary { background: var(--grad); color: #04211E; box-shadow: 0 8px 26px -8px rgba(20,224,200,.6); }
.btn-tc.primary:hover { box-shadow: 0 14px 34px -8px rgba(20,224,200,.75); color: #04211E; }
.btn-tc.navy { background: var(--surface-3); color: #fff; border-color: var(--line-2); }
.btn-tc.navy:hover { background: #223454; color: #fff; }
.btn-tc.ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--ink); }
.btn-tc.ghost:hover { border-color: rgba(20,224,200,.5); color: #fff; background: rgba(20,224,200,.08); }
.btn-tc.ai { background: var(--grad-ai); color: #fff; box-shadow: 0 8px 26px -8px rgba(124,92,255,.6); }
.btn-tc.ai:hover { color: #fff; box-shadow: 0 14px 34px -8px rgba(124,92,255,.8); }
.btn-tc.buy  { background: linear-gradient(135deg,#22D98A,#12B473); color: #032015; box-shadow: 0 8px 24px -8px rgba(34,217,138,.55); }
.btn-tc.sell { background: linear-gradient(135deg,#FF6B7F,#E23B54); color: #fff; box-shadow: 0 8px 24px -8px rgba(255,92,114,.5); }
.btn-tc.sm { padding: 7px 13px; font-size: .84rem; border-radius: 9px; }
.btn-tc.block { width: 100%; }
.btn-tc:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ============================== Cards ============================== */
.card-tc {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.card-tc .pad { padding: 22px; }
.card-tc h3 { margin: 0 0 15px; font-size: 1.02rem; font-weight: 700; letter-spacing: -.015em; color: #fff; }
a.card-tc { display: block; transition: transform .18s cubic-bezier(.2,.8,.2,1), border-color .18s ease; }
a.card-tc:hover { transform: translateY(-3px); border-color: rgba(20,224,200,.38); }

/* AI-flavoured card: aurora hairline top */
.card-ai { position: relative; overflow: hidden; }
.card-ai::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1.5px;
  background: var(--grad-ai); background-size: 200% 100%; animation: shimmer 6s linear infinite;
}
@keyframes shimmer { from { background-position: 0% 0; } to { background-position: 200% 0; } }

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1000px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 720px)  { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

/* ============================== Stats ============================== */
.stat {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow); display: block;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), border-color .18s ease;
}
.stat .label { color: var(--muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.stat .value {
  font-family: var(--nums); font-variant-numeric: tabular-nums;
  font-size: 1.75rem; font-weight: 800; margin-top: 6px; color: #fff; letter-spacing: -.03em; line-height: 1.1;
}
.stat .value.up { color: var(--up); } .stat .value.down { color: var(--down); }
a.stat:hover { transform: translateY(-3px); border-color: rgba(20,224,200,.4); }

/* ============================== Badges ============================== */
.badge-tc {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px;
  font-weight: 800; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase;
}
.badge-tc.buy  { background: rgba(34,217,138,.15);  color: #5CF0AE; box-shadow: inset 0 0 0 1px rgba(34,217,138,.3); }
.badge-tc.sell { background: rgba(255,92,114,.15);  color: #FF97A6; box-shadow: inset 0 0 0 1px rgba(255,92,114,.3); }
.badge-tc.hold { background: rgba(245,200,107,.14); color: #F5D394; box-shadow: inset 0 0 0 1px rgba(245,200,107,.28); }
.badge-tc.soft { background: rgba(255,255,255,.06); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.badge-tc.ai   { background: rgba(124,92,255,.16); color: #C0B0FF; box-shadow: inset 0 0 0 1px rgba(124,92,255,.34); }

.up { color: var(--up); font-weight: 700; } .down { color: var(--down); font-weight: 700; }
.muted { color: var(--muted); }

/* Confidence bar + ring */
/* display:block is required — .conf-bar is used as a <span>, and inline elements ignore height */
.conf-bar { display: block; width: 100%; height: 7px; background: rgba(255,255,255,.07); border-radius: 999px; overflow: hidden; }
.conf-bar > span { display: block; height: 100%; background: var(--grad); border-radius: 999px; box-shadow: 0 0 14px rgba(20,224,200,.6); }
.ring { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-linecap: round; }
.ring .track { stroke: rgba(255,255,255,.08); }
.ring .bar { stroke: url(#ringGrad); transition: stroke-dashoffset 1s cubic-bezier(.2,.8,.2,1); }

/* ============================== Tables ============================== */
table.tc { width: 100%; border-collapse: collapse; }
table.tc th {
  text-align: left; font-size: .705rem; text-transform: uppercase; letter-spacing: .085em;
  color: var(--muted); font-weight: 800; padding: 11px 12px; border-bottom: 1px solid var(--line-2);
}
table.tc td {
  padding: 12px; border-bottom: 1px solid var(--line); font-size: .915rem; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
table.tc tbody tr { transition: background .14s ease; }
table.tc tbody tr:hover td { background: rgba(20,224,200,.045); color: var(--ink); }
table.tc tbody tr:last-child td { border-bottom: none; }
.sym { font-weight: 800; color: #fff; letter-spacing: -.01em; }
.table-wrap { overflow-x: auto; }

/* ============================== Forms ============================== */
.field { margin-bottom: 15px; }
.field label { display: block; font-weight: 600; font-size: .84rem; margin-bottom: 7px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font-size: .95rem; background: rgba(255,255,255,.04); color: var(--ink); font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: rgba(20,224,200,.06);
  box-shadow: 0 0 0 4px rgba(20,224,200,.12);
}
.field select option { background: var(--surface-2); color: var(--ink); }
.field input[type=checkbox] { width: auto; accent-color: var(--teal); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.form-narrow { max-width: 470px; margin: 0 auto; }

.alert-tc { padding: 12px 15px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 15px; border: 1px solid transparent; }
.alert-tc.err { background: rgba(255,92,114,.1);  color: #FFAEB9; border-color: rgba(255,92,114,.3); }
.alert-tc.ok  { background: rgba(34,217,138,.1);  color: #7EF0BE; border-color: rgba(34,217,138,.3); }
.alert-tc.warn{ background: rgba(245,200,107,.1); color: #F5D394; border-color: rgba(245,200,107,.3); }

/* ============================== Hero ============================== */
.hero { position: relative; overflow: hidden; padding: 96px 0 104px; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url('/img/hero-candles.jpg');
  background-size: cover; background-position: center 62%;
  transform: scale(1.06); animation: heroDrift 32s ease-in-out infinite alternate;
}
@keyframes heroDrift { from { transform: scale(1.06) translateX(-8px); } to { transform: scale(1.13) translateX(8px); } }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6,10,18,.97) 0%, rgba(6,10,18,.88) 40%, rgba(6,10,18,.52) 72%, rgba(6,10,18,.72) 100%),
    linear-gradient(180deg, rgba(6,10,18,.55) 0%, transparent 34%, rgba(6,10,18,.95) 100%);
}
.hero-inner { max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px); font-size: .8rem; font-weight: 700; color: var(--ink-2);
  letter-spacing: .02em; margin-bottom: 24px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 10px var(--up); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.04; margin: 0 0 20px;
  font-weight: 800; letter-spacing: -.035em; color: #fff;
}
.hero h1 .grad {
  background: var(--grad-ai); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.lede { font-size: clamp(1rem, 1.6vw, 1.16rem); color: var(--ink-2); max-width: 610px; margin: 0 0 30px; line-height: 1.62; }
.hero .cta { display: flex; gap: 13px; flex-wrap: wrap; }
.pill-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 32px; }
.pill {
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2); color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px; font-size: .84rem; font-weight: 600; backdrop-filter: blur(8px);
}

/* ============================== Sections ============================== */
.section { padding: 76px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,.018), transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section h2 { font-size: clamp(1.6rem, 2.9vw, 2.3rem); margin: 0 0 12px; color: #fff; font-weight: 800; letter-spacing: -.03em; line-height: 1.14; }
.section .sub { color: var(--ink-2); margin: 0; font-size: 1.03rem; line-height: 1.6; }
.kicker { font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.feature { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008)); transition: transform .2s cubic-bezier(.2,.8,.2,1), border-color .2s ease; }
.feature:hover { transform: translateY(-4px); border-color: rgba(20,224,200,.32); }
.feature .ico {
  width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 16px;
  background: rgba(20,224,200,.11); box-shadow: inset 0 0 0 1px rgba(20,224,200,.22);
}
.feature.ai .ico { background: rgba(124,92,255,.13); box-shadow: inset 0 0 0 1px rgba(124,92,255,.3); }
.feature h4 { margin: 0 0 8px; color: #fff; font-size: 1.04rem; font-weight: 700; letter-spacing: -.015em; }
.feature p { margin: 0; color: var(--ink-2); font-size: .92rem; line-height: 1.6; }

/* Image band */
.band { position: relative; overflow: hidden; padding: 84px 0; isolation: isolate; }
.band-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.band-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,10,18,.96) 0%, rgba(6,10,18,.8) 45%, rgba(6,10,18,.55) 100%); }

/* Split media/text */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 940px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 70px -20px rgba(0,0,0,.85); }
.shot img { width: 100%; display: block; }

/* ============================== Page shell ============================== */
.page { padding: 34px 0 60px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.8rem; margin: 0; color: #fff; font-weight: 800; letter-spacing: -.03em; }
.crumb { color: var(--muted); font-size: .875rem; }
.quick-row { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 24px; }

/* ============================== AI Copilot dock ============================== */
.ai-dock { position: fixed; right: 22px; bottom: 22px; z-index: 90; }
.ai-fab {
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad-ai); color: #fff; font-size: 1.42rem;
  box-shadow: 0 12px 36px -8px rgba(124,92,255,.75), 0 0 0 1px rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s cubic-bezier(.2,.8,.2,1);
}
.ai-fab:hover { transform: scale(1.08) rotate(6deg); }
.ai-panel {
  position: absolute; right: 0; bottom: 72px; width: min(390px, calc(100vw - 44px));
  background: rgba(14,22,38,.97); backdrop-filter: blur(20px);
  border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 30px 80px -14px rgba(0,0,0,.9);
  display: none; flex-direction: column; overflow: hidden;
}
.ai-panel.open { display: flex; animation: dockIn .22s cubic-bezier(.2,.8,.2,1); }
@keyframes dockIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.ai-panel .head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px; }
.ai-panel .head b { font-size: .95rem; color: #fff; }
.ai-panel .body { padding: 14px 16px; max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.ai-panel .foot { padding: 12px 14px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.ai-panel .foot input { flex: 1; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: var(--ink); font-family: inherit; }
.ai-panel .foot input:focus { outline: none; border-color: var(--teal); }
.msg { padding: 10px 13px; border-radius: 13px; font-size: .89rem; line-height: 1.55; max-width: 88%; white-space: pre-wrap; }
.msg.bot  { background: rgba(255,255,255,.06); color: var(--ink); align-self: flex-start; border: 1px solid var(--line); }
.msg.user { background: var(--grad); color: #04211E; align-self: flex-end; font-weight: 600; }
.msg.typing { color: var(--muted); font-style: italic; }

/* ============================== Footer ============================== */
.tc-foot { margin-top: auto; border-top: 1px solid var(--line); background: rgba(10,16,28,.7); color: var(--ink-2); padding: 40px 0 28px; font-size: .9rem; }
.tc-foot a { color: var(--ink-2); } .tc-foot a:hover { color: var(--teal); }
.tc-foot .top { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 22px; }
.tc-foot .links { display: flex; gap: 28px; flex-wrap: wrap; }
.tc-foot .disc { font-size: .765rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; line-height: 1.65; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Sparkline */
.spark { display: block; }
.spark path.line { fill: none; stroke: var(--teal); stroke-width: 1.8; }
.spark path.area { fill: url(#sparkGrad); stroke: none; }

::selection { background: rgba(20,224,200,.3); color: #fff; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #22304C; border-radius: 999px; border: 2px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: #2E4066; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ============================== Premium download / phone ============================== */
.card-premium {
  border: 1px solid rgba(20,224,200,.18);
  box-shadow: var(--shadow), 0 0 0 1px rgba(124,92,255,.08);
  background:
    linear-gradient(160deg, rgba(20,224,200,.06), transparent 42%),
    linear-gradient(320deg, rgba(124,92,255,.07), transparent 45%),
    var(--surface);
}
.code-tc {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .84em;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--teal);
}
.premium-list, .premium-steps {
  margin: 0; padding-left: 18px; color: var(--ink-2); line-height: 1.9; font-size: .95rem;
}
.premium-list li::marker, .premium-steps li::marker { color: var(--teal); }
.download-visual {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(420px 280px at 70% 40%, rgba(20,224,200,.16), transparent 70%),
    linear-gradient(180deg, rgba(10,16,28,.2), rgba(6,10,18,.55));
  padding: 28px;
}
.phone-frame {
  width: 210px; border-radius: 28px; padding: 10px;
  background: linear-gradient(160deg, #1a2740, #0a101c);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.75), inset 0 0 0 1px rgba(20,224,200,.12);
}
.phone-frame-lg { width: 230px; transform: rotate(-6deg); }
.phone-notch {
  width: 42%; height: 8px; margin: 4px auto 12px; border-radius: 999px;
  background: rgba(0,0,0,.45);
}
.phone-screen { padding: 4px 8px 14px; }
.phone-brand {
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.phone-stat { margin-bottom: 14px; }
.phone-stat span { display: block; font-size: .7rem; color: var(--muted); }
.phone-stat strong { font-size: 1.35rem; color: #fff; letter-spacing: -.03em; font-family: var(--nums); }
.phone-row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-2);
}
.hero-compact .hero-inner { max-width: 720px; }
@media (max-width: 860px) {
  .card-premium .pad[style*="grid-template-columns"],
  section .card-premium .pad { display: block !important; }
  .download-visual { min-height: 260px; }
  .phone-frame-lg { transform: none; }
}
