/* Atomik link page. Values come from the app's glass tokens (src/styles/tokens.js)
   and the homepage's --hs-* copy, so this page reads as the same site. */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  --bg: #000;
  --ink: #F5F7F8;
  --muted: rgba(255, 255, 255, .62);
  --faint: rgba(255, 255, 255, .4);
  --hair: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .22);
  --accent: #00C6E0;
  --accent2: #0099B8;
  --accent-text: #7FEFFF;
  --accent-soft: rgba(0, 198, 224, .12);
  --glass: rgba(14, 18, 22, .62);
  --glass-hover: rgba(22, 28, 33, .72);
  --up: #4fd1c1;
  --down: #ff7b78;
  --warn: #ffb35c;
  --violet: #c4a7ff;
  --violet-strong: #9b84ff;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r-panel: 28px;
  --r-row: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
[hidden] { display: none !important; }

/* The constellation from the site's story backgrounds, fixed behind everything,
   plus a cyan glow so the glass panels have light to bend. */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 40% at 50% -6%, rgba(0, 198, 224, .22), transparent 70%),
    radial-gradient(50% 35% at 100% 100%, rgba(0, 153, 184, .18), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .55)),
    url("/img/bg.webp") center / cover no-repeat,
    #000;
}

.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: max(40px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
}

/* ── Profile ─────────────────────────────────────────── */
.profile { text-align: center; margin-bottom: 26px; }

.mark {
  position: relative;
  display: inline-block;
  animation: rise .9s var(--ease) both;
}
.mark::after { /* soft cyan halo behind the mark */
  content: "";
  position: absolute;
  inset: 8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 198, 224, .28), transparent);
  filter: blur(14px);
}
.mark svg { width: 112px; height: 112px; }

/* The site's loader animation (src/components/common/AtomikLoaderMark.js), unchanged:
   the core charges, a pulse runs down each trace in turn, the pad catches it. */
.alm{--alm-loop:3s;--alm-stagger:.5s;--alm-idle:.4;--alm-pulse-len:20;--alm-glow:.35;display:block;stroke-linecap:round;stroke-linejoin:round}
.alm-dim{opacity:var(--alm-idle)}
.alm-glow{opacity:var(--alm-glow)}
.alm-core{opacity:.45;animation:alm-core var(--alm-loop) ease-in-out infinite}
.alm-coreglow{opacity:0;animation:alm-coreglow var(--alm-loop) ease-in-out infinite}
.alm-flare{opacity:0;animation:alm-flare var(--alm-loop) ease-in-out infinite}
.alm-pulse{stroke-dasharray:var(--alm-pulse-len) 100;stroke-dashoffset:var(--alm-pulse-len);opacity:0;animation:alm-pulse var(--alm-loop) linear infinite}
.alm-trail{stroke-dasharray:100 100;stroke-dashoffset:100;opacity:0;animation:alm-trail var(--alm-loop) linear infinite}
.alm-pad{transform-box:fill-box;transform-origin:center;animation:alm-pad var(--alm-loop) ease-in-out infinite}
.alm-padlit{opacity:0;animation:alm-padlit var(--alm-loop) ease-in-out infinite}
.alm-padhi{opacity:0;animation:alm-pad var(--alm-loop) ease-in-out infinite,alm-padhi var(--alm-loop) ease-in-out infinite}
.alm-halo{transform-box:fill-box;transform-origin:center;opacity:0;animation:alm-halo var(--alm-loop) ease-out infinite}
.alm-s2{animation-delay:calc(var(--alm-stagger) - var(--alm-loop))}
.alm-s3{animation-delay:calc(2*var(--alm-stagger) - var(--alm-loop))}
@keyframes alm-core{0%,80%,100%{opacity:.45}6.67%,40%{opacity:1}}
@keyframes alm-coreglow{0%,80%,100%{opacity:0}6.67%{opacity:.8}15%{opacity:.35}23.3%{opacity:.75}32%{opacity:.3}40%{opacity:.7}52%{opacity:.2}}
@keyframes alm-flare{0%,5%,11%,22%,27.5%,38.5%,44%,100%{opacity:0}6.67%{opacity:.9}23.3%{opacity:.8}40%{opacity:.7}}
@keyframes alm-pulse{
  0%,6.67%{stroke-dashoffset:var(--alm-pulse-len);opacity:0;animation-timing-function:cubic-bezier(.4,0,.6,1)}
  9.5%{opacity:1}
  30%,100%{stroke-dashoffset:-100;opacity:1}}
@keyframes alm-trail{
  0%,6.67%{stroke-dashoffset:100;opacity:0;animation-timing-function:cubic-bezier(.4,0,.6,1)}
  8%{opacity:.6}
  27%{stroke-dashoffset:0}
  40%{opacity:.6}
  66.7%,100%{stroke-dashoffset:0;opacity:0}}
@keyframes alm-pad{0%,25.3%,37%,100%{transform:scale(1)}30%{transform:scale(1.22)}}
@keyframes alm-padhi{0%,25.3%,37%,100%{opacity:0}28.5%{opacity:1}}
@keyframes alm-padlit{0%,25.3%,66.7%,100%{opacity:0}28.5%{opacity:1}45%{opacity:.9}}
@keyframes alm-halo{0%,25%{transform:scale(1);opacity:0}25.3%{transform:scale(1);opacity:.6}40%,100%{transform:scale(1.9);opacity:0}}

.wordmark {
  margin: 14px auto 0;
  width: 200px;
  animation: rise .9s .05s var(--ease) both;
}
.wordmark img { width: 100%; height: auto; }

.headline {
  margin: 18px 0 0;
  font-size: clamp(27px, 8vw, 36px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.025em;
  animation: rise .9s .1s var(--ease) both;
}
.grad {
  background: linear-gradient(135deg, #00C6E0 0%, #0099B8 50%, #00C6E0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  max-width: 400px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 15.5px;
  text-wrap: balance;
  animation: rise .9s .15s var(--ease) both;
}
.lede b { color: var(--ink); font-weight: 600; }
.profile .lede { color: var(--ink); font-weight: 500; }
.headline { text-wrap: balance; }

/* Live CME session chip (regular Globex hours, computed in New York time). */
.session {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.session b { color: var(--ink); font-weight: 600; }
.session .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.session.open .dot { background: var(--up); box-shadow: 0 0 0 0 rgba(79, 209, 193, .6); animation: ping 2s ease-out infinite; }
.session.open b { color: var(--up); }
.session.halt .dot { background: var(--warn); }
.session.halt b { color: var(--warn); }

.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; animation: rise .9s .2s var(--ease) both; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
  transition: background .25s, border-color .25s, transform .35s var(--ease), color .25s;
}
.socials a:hover { background: var(--accent-soft); border-color: rgba(0, 198, 224, .35); color: var(--accent-text); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; fill: currentColor; }

/* ── Glass ───────────────────────────────────────────── */
/* Light edges instead of borders: a hairline rim brightest along the top. */
.card, .row {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .9);
  isolation: isolate;
}
.card::before, .row::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06) 40%, rgba(255, 255, 255, .03));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card {
  display: block;
  overflow: hidden;
  border-radius: var(--r-panel);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 28px 60px -24px rgba(0, 198, 224, .35); }
.card img { width: 100%; aspect-ratio: 40 / 21; object-fit: cover; }

.kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker.violet { color: var(--violet); }
.card h2, .card h3 { margin: 6px 0 0; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.card h2 { font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.card h3 { font-size: 19px; }
.sub { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.fine { margin: 10px 0 0; color: var(--faint); font-size: 12.5px; }
.guarantee { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0; padding: 5px 11px 5px 8px; border-radius: 999px;
  background: rgba(79, 209, 193, .12); border: 1px solid rgba(79, 209, 193, .3); color: var(--up); font-size: 13px; font-weight: 600; }
.guarantee svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

.feature { margin-bottom: 12px; animation: rise .9s .25s var(--ease) both; }
.feature-body { padding: 18px 20px 20px; }
.feature .btn { width: 100%; }
.feature .btn-p { margin-top: 16px; }
.feature .btn-g { margin-top: 10px; }
.feature .btn:hover { filter: brightness(1.08); }
.feature .btn-g:hover { background: rgba(255, 255, 255, .09); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: box-shadow .35s var(--ease), background .25s, filter .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-p { background: linear-gradient(135deg, #00C6E0, #0099B8); color: #fff; box-shadow: 0 10px 30px -10px rgba(0, 198, 224, .6); }
.card:hover .btn-p { box-shadow: 0 16px 40px -10px rgba(0, 198, 224, .75); filter: brightness(1.06); }
.btn-g { color: #fff; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); }
.card:hover .btn-g { background: rgba(255, 255, 255, .09); }
.btn-v { background: linear-gradient(135deg, #a78bfa, #7c5cff); color: #fff; box-shadow: 0 10px 30px -10px rgba(124, 92, 255, .6); }
.card:hover .btn-v { box-shadow: 0 16px 40px -10px rgba(124, 92, 255, .75); filter: brightness(1.06); }

/* ── Link rows ───────────────────────────────────────── */
.links { display: grid; gap: 10px; }
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 12px 16px 12px 12px;
  border-radius: var(--r-row);
  transition: background .25s, transform .4s var(--ease);
  animation: rise .8s var(--ease) both;
}
.row:nth-child(1) { animation-delay: .3s; }
.row:nth-child(2) { animation-delay: .34s; }
.row:nth-child(3) { animation-delay: .38s; }
.row:nth-child(4) { animation-delay: .42s; }
.row:nth-child(5) { animation-delay: .46s; }
.row:nth-child(6) { animation-delay: .5s; }
.row:nth-child(7) { animation-delay: .54s; }
.row:hover { background: var(--glass-hover); transform: translateY(-1px); }
.row:active, .card:active { transform: scale(.985); }
.ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.ico-img { width: 48px; height: 48px; padding: 0; background: none; border-radius: 13px; object-fit: cover; }
.ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.txt b { font-weight: 600; font-size: 15.5px; }
.txt small { color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 1px; }
.go {
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-top: 2px solid var(--faint);
  border-right: 2px solid var(--faint);
  transform: rotate(45deg);
  transition: border-color .25s, transform .4s var(--ease);
}
.row:hover .go { border-color: var(--accent); transform: translateX(2px) rotate(45deg); }

/* ── Products ────────────────────────────────────────── */
.section-title {
  margin: 34px 4px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.products { display: grid; gap: 14px; }
.steki { margin-top: 12px; }
.product-body { padding: 18px 20px 20px; }
.product .btn { margin-top: 16px; width: 100%; }

/* Steki: a violet orb as a placeholder until its branding arrives. */
.steki-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 40 / 17;
  overflow: hidden;
  background:
    radial-gradient(45% 80% at 50% 50%, rgba(124, 92, 255, .38), transparent 70%),
    radial-gradient(30% 60% at 20% 100%, rgba(0, 198, 224, .18), transparent 70%),
    linear-gradient(180deg, #0d0b18, #07060d);
}
.steki-art::after { /* faint grid, like the chart panes */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask: radial-gradient(70% 90% at 50% 50%, #000, transparent);
  mask: radial-gradient(70% 90% at 50% 50%, #000, transparent);
}
.orb {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  color: #fff;
  font-size: 38px;
  font-weight: 700;
  background: radial-gradient(circle at 32% 28%, #c4b5fd, #8b5cf6 45%, #5b21b6 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset, 0 10px 40px rgba(124, 92, 255, .55), 0 0 90px rgba(124, 92, 255, .35);
  animation: breathe 3.6s ease-in-out infinite;
}
.wave {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 14%;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  transform: translateX(-50%);
}
.wave i { width: 3px; height: 30%; border-radius: 3px; background: rgba(196, 167, 255, .7); animation: talk 1.2s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .1s; }
.wave i:nth-child(3) { animation-delay: .25s; }
.wave i:nth-child(4) { animation-delay: .05s; }
.wave i:nth-child(5) { animation-delay: .3s; }
.wave i:nth-child(6) { animation-delay: .15s; }
.wave i:nth-child(7) { animation-delay: .35s; }
.wave i:nth-child(8) { animation-delay: .2s; }
.wave i:nth-child(9) { animation-delay: .4s; }
.steki:hover { box-shadow: 0 28px 60px -24px rgba(124, 92, 255, .45); }

/* ── Footer ──────────────────────────────────────────── */
.foot { margin-top: 36px; text-align: center; color: var(--faint); font-size: 12.5px; line-height: 1.55; }
.foot .home { display: inline-block; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.foot .home:hover { color: var(--accent-text); }
.risk { max-width: 470px; margin: 14px auto 0; }
.legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.legal a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .2); text-underline-offset: 3px; }
.legal a:hover { color: var(--ink); }
.copy { margin: 12px 0 0; }

/* ── Motion ──────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 50% { transform: scale(1.05); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset, 0 12px 50px rgba(124, 92, 255, .7), 0 0 110px rgba(124, 92, 255, .45); } }
@keyframes talk { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(79, 209, 193, .55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(79, 209, 193, 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-motion: reduce) { /* the loader's own fallback */
  .alm-flare, .alm-coreglow, .alm-pulse, .alm-trail, .alm-padlit, .alm-padhi, .alm-halo { opacity: 0; }
  .alm-core { opacity: .8; }
}

@media (min-width: 720px) {
  .wrap { max-width: 600px; padding-top: 64px; }
}
@media (max-width: 380px) {
  .feature-body, .product-body { padding: 16px; }
  .row { padding-right: 12px; }
}
