/* ==== aican.trade — main stylesheet ==== */
:root {
  --bg: #0a0a0c;
  --panel: #16161a;
  --panel-2: #1c1c22;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.18);
  --ink: #ffffff;
  --ink-2: #c8c8d0;
  --ink-3: #8a8a96;
  --ink-4: #54545e;
  --accent: #00E0B8;
  --accent-2: #FF3D6E;
  --font-display: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ==== Background grid + bloom (page-level) ==== */
.page-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1200px 600px at 80% 0%, rgba(0,224,184,0.10), transparent 60%),
    radial-gradient(1000px 500px at 0% 30%, rgba(255,61,110,0.10), transparent 60%),
    radial-gradient(800px 400px at 50% 90%, rgba(0,224,184,0.06), transparent 60%);
}
.page-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.page-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay; opacity: 0.6;
}

/* ==== Nav ==== */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  backdrop-filter: blur(12px);
  background: rgba(10,10,12,0.5);
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.3px; }
.nav-logo img { width: 28px; height: 28px; }
.nav-logo .nav-dot { color: var(--accent); }
.nav-links { display: flex; gap: 28px; font-size: 13px; color: var(--ink-3); }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 8px;
  background: var(--ink); color: var(--bg);
  font-size: 13px; font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,224,184,0.25); }
.nav-cta .arrow { display: inline-block; transition: transform 0.2s; }
.nav-cta:hover .arrow { transform: translateX(2px); }

/* ==== Hero ==== */
.hero {
  position: relative; z-index: 1;
  padding: 80px 32px 60px;
  max-width: 1400px; margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(0,224,184,0.06);
  border: 1px solid rgba(0,224,184,0.25);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); letter-spacing: 1.2px;
}
.hero-eyebrow .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0,224,184,0.5);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,224,184,0.6); }
  100% { box-shadow: 0 0 0 10px rgba(0,224,184,0); }
}

.hero-title {
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 22px 0 24px;
  text-wrap: balance;
}
.hero-title .grad-text {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-title .caret {
  display: inline-block; width: 0.5ch; height: 0.85em;
  transform: translateY(0.08em);
  background: var(--accent);
  margin-left: 4px;
  animation: blink 1s steps(2) infinite;
  vertical-align: baseline;
}
.hero-title .caret-2 { background: var(--accent-2); }
.hero-title .type-line { display: inline-block; min-height: 1em; }
#hl1, #hl2 { display: inline; }
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  max-width: 640px;
  font-size: 19px; line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 36px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 22px; border-radius: 10px;
  background: var(--accent); color: #0a0a0c;
  font-weight: 600; font-size: 15px;
  border: none; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 0 1px rgba(0,224,184,0.4), 0 10px 30px -10px rgba(0,224,184,0.6);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(0,224,184,0.6), 0 14px 36px -10px rgba(0,224,184,0.8); }
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary .dl-icon { width: 16px; height: 16px; display: inline-block; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 20px; border-radius: 10px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong);
  font-weight: 500; font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(0,224,184,0.05); }

.hero-microcopy {
  margin-top: 18px; display: flex; gap: 18px; flex-wrap: wrap;
  color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
}
.hero-microcopy span::before { content: "▸ "; color: var(--accent); }

/* ==== Hero stage — desktop app parallax ==== */
.hero-stage {
  position: relative;
  margin-top: 80px;
  perspective: 1800px;
  perspective-origin: 50% 30%;
}
.hero-stage-glow {
  position: absolute; inset: -10% -5% 0;
  background: radial-gradient(60% 70% at 50% 30%, rgba(0,224,184,0.18), transparent 70%);
  z-index: 0; pointer-events: none;
}
.hero-stage-inner {
  position: relative; z-index: 1;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

/* floating tiles around the desktop window */
.float-tile {
  position: absolute; padding: 12px 14px;
  background: linear-gradient(180deg, rgba(28,28,34,0.95), rgba(20,20,26,0.95));
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-2);
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.8);
  animation: floaty 6s ease-in-out infinite;
}
.float-tile.t1 { top: -20px; left: -30px; transform: translateZ(40px); animation-delay: 0s; }
.float-tile.t2 { bottom: 60px; right: -40px; transform: translateZ(60px); animation-delay: -2s; }
.float-tile.t3 { top: 50%; left: -60px; transform: translateZ(80px); animation-delay: -4s; }
@keyframes floaty {
  0%, 100% { transform: translateZ(var(--z, 40px)) translateY(0); }
  50% { transform: translateZ(var(--z, 40px)) translateY(-8px); }
}
.float-tile .ft-label { color: var(--ink-3); display: block; margin-bottom: 4px; letter-spacing: 1px; }
.float-tile .ft-value { color: var(--ink); font-size: 16px; font-weight: 600; }
.float-tile .ft-value.up { color: var(--accent); }
.float-tile .ft-value.down { color: var(--accent-2); }

/* ==== Desktop app window (matches real aican.trade UI) ==== */
.da-window {
  position: relative;
  width: 100%; max-width: 1280px;
  margin: 0 auto;
  background: #0b0b10;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 80px 120px -40px rgba(0,0,0,0.85),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 -1px 0 rgba(0,224,184,0.15);
  font-family: var(--font-display);
  font-size: 12px;
}
.da-chrome {
  display: grid; grid-template-columns: 80px 1fr 80px;
  align-items: center;
  padding: 10px 14px; height: 36px;
  background: #1a1a22;
  border-bottom: 1px solid var(--line);
}
.da-traffic { display: flex; gap: 7px; }
.da-traffic span { width: 11px; height: 11px; border-radius: 50%; }
.da-title { font-size: 12px; color: var(--ink-3); text-align: center; }

/* Top header bar */
.da-topbar {
  display: grid; grid-template-columns: 280px 1fr auto;
  align-items: center;
  padding: 10px 16px;
  background: #0d0d14;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.da-brand { display: flex; align-items: center; gap: 10px; }
.da-brand-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(0,224,184,0.05); border: 1px solid rgba(0,224,184,0.2);
  display: inline-flex; align-items: center; justify-content: center;
}
.da-brand-name { font-size: 14px; font-weight: 600; }
.da-brand-sub { font-size: 10px; color: var(--ink-4); }
.da-idle { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); margin-left: 12px; }
.da-idle-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); }

.da-stats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.da-stat-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  font-size: 11px; color: var(--ink-2);
}
.da-stat-pill.active, .da-stat-pill:nth-child(2) { border-color: rgba(0,224,184,0.3); }
.da-stat-icon { color: var(--ink-3); }
.da-stat-val strong { font-weight: 600; color: var(--ink); }
.da-stat-val em { color: var(--ink-4); font-style: normal; }
.da-news-pill {
  display: inline-block; min-width: 16px; padding: 1px 5px;
  border-radius: 8px; font-size: 10px; font-weight: 600;
  color: #0a0a0c; text-align: center;
}
.da-news-pill.amber { background: #ffb627; }

.da-top-right { display: flex; align-items: center; gap: 8px; }
.da-icon-btn {
  width: 32px; height: 32px; border-radius: 8px;
  background: transparent; border: 1px solid var(--line); color: var(--ink-3);
  cursor: pointer; font-size: 14px;
}
.da-live-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 8px;
  background: rgba(0,224,184,0.06);
  border: 1px solid var(--accent);
  color: var(--accent); font-size: 12px; font-weight: 600;
  cursor: pointer;
}
.da-live-dot { width: 6px; height: 6px; border-radius: 50%; animation: pulse 1.6s ease-out infinite; }

/* Body */
.da-body {
  display: grid; grid-template-columns: 280px 1fr 320px;
  min-height: 720px;
}
.da-side {
  border-right: 1px solid var(--line);
  padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  background: #0a0a10;
}
.da-mt5 {
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.da-mt5-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.da-wifi { font-size: 16px; }
.da-mt5-title { font-size: 13px; font-weight: 600; }
.da-mt5-acct { font-size: 11px; color: var(--ink-4); }
.da-mt5-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 6px currentColor; }
.da-balance-l { font-family: var(--font-mono); font-size: 10px; color: var(--ink-4); letter-spacing: 1.5px; }
.da-balance-v { font-family: var(--font-mono); font-size: 22px; font-weight: 600; margin-top: 4px; }

.da-budget {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px; letter-spacing: 1px;
}
.da-budget-r { color: var(--ink-3); }

.da-perf-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--ink-3); letter-spacing: 1px;
  padding: 0 4px;
}
.da-perf-icon { margin-right: 4px; }
.da-reset { color: var(--ink-4); cursor: pointer; }

.da-perf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.da-perf-cell {
  padding: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.da-perf-l { font-size: 9px; color: var(--ink-4); letter-spacing: 1px; }
.da-perf-v { font-family: var(--font-mono); font-size: 16px; font-weight: 600; margin-top: 6px; }

.da-active-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--ink-3); letter-spacing: 1px;
  padding: 0 4px; margin-top: 4px;
}
.da-active-pill {
  min-width: 18px; padding: 1px 7px; border-radius: 9px;
  font-size: 10px; font-weight: 700; color: #0a0a0c;
}
.da-active-card {
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.da-active-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; }
.da-active-row.sub { color: var(--ink-4); }
.da-active-bar {
  height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.06); overflow: hidden;
}
.da-active-bar span { display: block; height: 100%; }
.da-active-line {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-4); padding-top: 2px;
}
.da-active-line strong { color: var(--ink-2); font-weight: 500; }

.da-pair-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.da-pair-spark { color: var(--ink-3); font-size: 16px; }
.da-pair-body { flex: 1; }
.da-pair-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.da-pair-side { padding: 1px 6px; border-radius: 4px; font-size: 9px; font-weight: 700; color: #0a0a0c; letter-spacing: 1px; }
.da-pair-sub { font-size: 10px; color: var(--ink-4); }

/* Center */
.da-center {
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 14px;
  min-width: 0; background: #0b0b12;
}
.da-live-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 8px;
  background: rgba(0,224,184,0.06);
  border: 1px solid rgba(0,224,184,0.2);
  color: var(--accent); font-size: 12px; font-weight: 500;
  align-self: flex-start;
}
.da-trademode {
  padding: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.da-tm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 11px; color: var(--ink-3); letter-spacing: 1px; }
.da-resume {
  padding: 5px 10px; border-radius: 6px;
  background: rgba(0,224,184,0.06);
  border: 1px solid var(--accent);
  font-size: 11px; cursor: pointer;
}
.da-tm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.da-tm-card {
  padding: 14px; border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 6px;
  transition: all 0.2s;
}
.da-tm-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.da-tm-active { font-size: 10px; font-family: var(--font-mono); letter-spacing: 1px; }
.da-tm-running { font-size: 11px; color: var(--ink-4); }

/* Live chart */
.da-livechart {
  padding: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 10px;
}
.da-lc-title { font-size: 18px; font-weight: 600; margin: 0; }
.da-lc-sub { font-size: 11px; color: var(--ink-4); }
.da-lc-toolbar { display: flex; align-items: center; gap: 8px; }
.da-lc-tab {
  padding: 4px 12px; border-radius: 6px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 12px; font-weight: 500; cursor: pointer;
}
.da-lc-tab.active { border-color: var(--accent); }
.da-lc-tf { font-size: 11px; color: var(--ink-3); margin-left: 8px; display: inline-flex; align-items: center; gap: 6px; }
.da-lc-tf-pill { padding: 3px 8px; border-radius: 4px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); font-family: var(--font-mono); }
.da-lc-clock { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-left: 4px; }
.da-lc-refresh { margin-left: auto; padding: 4px 10px; border-radius: 6px; background: transparent; border: 1px solid var(--line); color: var(--ink-3); font-size: 11px; cursor: pointer; }

.da-lc-chart {
  position: relative;
  height: 220px;
  background: #07070c;
  border-radius: 6px;
  overflow: hidden;
}
.da-fibs {
  position: absolute; top: 8px; right: 4px;
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--font-mono); font-size: 9px;
  z-index: 2;
}
.da-fib {
  display: flex; gap: 8px; padding: 2px 6px;
  border-radius: 2px;
  font-weight: 600; min-width: 110px; justify-content: space-between;
}
.da-fib-pause {
  position: absolute; top: 28px; right: 122px;
  width: 18px; height: 18px; border-radius: 4px;
  background: #0d0d0f; border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--ink-2);
}

.da-rsi {
  position: relative;
  height: 110px;
  background: #07070c;
  border-radius: 6px;
  overflow: hidden;
}
.da-rsi-labels {
  position: absolute; top: 8px; right: 4px;
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--font-mono); font-size: 9px;
}
.da-rsi-labels > div {
  padding: 2px 6px; border-radius: 2px;
  font-weight: 600; min-width: 56px; text-align: right;
}

/* Right rail */
.da-right {
  border-left: 1px solid var(--line);
  padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  background: #0a0a10;
  overflow-y: hidden;
}
.da-news {
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.da-news-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; }
.da-news-hi { padding: 1px 6px; border-radius: 4px; font-size: 9px; color: #0a0a0c; margin-left: 4px; letter-spacing: 1px; }
.da-news-toggle {
  width: 28px; height: 16px; border-radius: 8px;
  position: relative;
}
.da-news-toggle::after {
  content: ""; position: absolute; right: 2px; top: 2px;
  width: 12px; height: 12px; border-radius: 50%; background: #fff;
}
.da-news-banner { font-size: 11px; margin: 8px 0; font-weight: 500; }
.da-news-text { font-size: 11px; color: var(--ink-3); line-height: 1.5; }
.da-news-impact {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 8px; align-items: center;
  font-size: 11px; color: var(--ink-3);
  margin: 12px 0 10px;
}
.da-impact-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.06); overflow: hidden; }
.da-impact-bar span { display: block; height: 100%; border-radius: 2px; }
.da-news-list { display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow: hidden; }
.da-news-row {
  display: grid; grid-template-columns: 6px 50px 28px 1fr 36px;
  gap: 6px; align-items: center;
  font-family: var(--font-mono); font-size: 10px;
}
.da-news-bullet { width: 6px; height: 6px; border-radius: 50%; }
.da-news-t { color: var(--ink-3); }
.da-news-cur { color: var(--ink-2); font-weight: 600; }
.da-news-name { color: var(--ink-2); font-family: var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.da-news-val { text-align: right; }
.da-news-legend {
  display: flex; gap: 12px; margin-top: 10px;
  font-size: 10px; color: var(--ink-3);
}
.da-news-legend .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; }

.da-comm {
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.da-comm-head { font-size: 11px; color: var(--ink-3); letter-spacing: 1px; margin-bottom: 8px; }
.da-comm-row {
  display: flex; justify-content: space-between;
  padding: 4px 0;
  font-size: 12px;
}
.da-comm-row strong { font-family: var(--font-mono); font-weight: 500; }
.da-comm-warn {
  margin-top: 10px; padding: 8px 10px;
  background: rgba(255,182,39,0.06);
  border: 1px solid rgba(255,182,39,0.2);
  border-radius: 6px;
  font-size: 11px;
}

.da-license {
  padding: 12px;
  background: rgba(0,224,184,0.04);
  border: 1px solid;
  border-radius: 10px;
}
.da-license-head { font-size: 11px; color: var(--ink-3); letter-spacing: 1px; margin-bottom: 10px; }
.da-license-body { display: flex; gap: 10px; }
.da-license-check { font-size: 24px; line-height: 1; }
.da-license-title { font-size: 14px; font-weight: 600; }
.da-license-key { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.da-license-exp { font-size: 11px; color: var(--ink-3); margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.da-days { padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 600; }

/* ==== Ticker ==== */
.ticker-wrap {
  position: relative; z-index: 1;
  margin: 80px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.3);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: inline-flex; gap: 48px; padding: 14px 0;
  white-space: nowrap;
  animation: tk-scroll 60s linear infinite;
}
@keyframes tk-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk { display: inline-flex; gap: 10px; align-items: baseline; font-family: var(--font-mono); font-size: 13px; }
.tk-sym { color: var(--ink-3); }
.tk-px { color: var(--ink); }
.tk-ch { font-weight: 600; }

/* ==== Section scaffolding ==== */
.section { position: relative; z-index: 1; padding: 120px 32px; max-width: 1400px; margin: 0 auto; }
.section-head { max-width: 760px; margin: 0 0 60px; }
.section-eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); letter-spacing: 2px;
}
.section-title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02; letter-spacing: -0.03em;
  font-weight: 600; margin: 14px 0 18px;
  text-wrap: balance;
}
.section-sub { font-size: 18px; color: var(--ink-2); line-height: 1.5; margin: 0; max-width: 600px; }
.grad-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Scroll-reveal */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ==== Stats ==== */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 36px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat-v { font-size: 46px; font-weight: 600; letter-spacing: -0.03em; font-family: var(--font-mono); }
.stat-l { font-size: 13px; color: var(--ink-3); margin-top: 8px; }

/* ==== How it works ==== */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how-step {
  position: relative;
  padding: 32px 24px;
  background: linear-gradient(180deg, rgba(28,28,34,0.6), rgba(20,20,26,0.6));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.how-step:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.how-n { font-family: var(--font-mono); font-size: 14px; letter-spacing: 2px; }
.how-t { font-size: 24px; font-weight: 600; margin: 16px 0 10px; letter-spacing: -0.02em; }
.how-d { color: var(--ink-2); line-height: 1.55; font-size: 15px; margin: 0; }
.how-line {
  position: absolute; inset: auto 0 0 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s ease;
}
.how-step:hover .how-line { transform: scaleX(1); }

/* ==== Agent cards ==== */
.ac-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.ac-card {
  position: relative;
  padding: 28px 26px 24px;
  background: linear-gradient(180deg, rgba(28,28,34,0.6), rgba(20,20,26,0.6));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  --mx: 50%; --my: 50%;
}
.ac-card:hover { transform: translateY(-3px); border-color: rgba(0,224,184,0.35); }
.ac-spotlight {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(0,224,184,0.10), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.ac-card:hover .ac-spotlight { opacity: 1; }
.ac-glyph {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,224,184,0.15), rgba(255,61,110,0.15));
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 22px; font-weight: 600;
  background-clip: padding-box;
  margin-bottom: 16px;
}
.ac-glyph span {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ac-code { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); letter-spacing: 1.5px; }
.ac-name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 4px 0 6px; }
.ac-tag { color: var(--ink-2); font-size: 14px; margin: 0 0 14px; line-height: 1.4; }
.ac-desc { color: var(--ink-3); font-size: 13px; line-height: 1.55; margin: 0 0 20px; }
.ac-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ac-stats > div { display: flex; flex-direction: column; gap: 4px; }
.ac-stats > div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.ac-stats span { font-size: 10px; color: var(--ink-4); font-family: var(--font-mono); letter-spacing: 1.2px; }
.ac-stats strong { font-size: 16px; font-family: var(--font-mono); font-weight: 500; }
.ac-pulse { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.ac-pulse-dot { width: 6px; height: 6px; border-radius: 50%; animation: pulse 1.6s ease-out infinite; }
.ac-pulse-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; color: var(--ink-3); }
.ac-pulse-bars { display: inline-flex; gap: 2px; align-items: flex-end; margin-left: auto; height: 18px; }
.ac-pulse-bars span {
  display: inline-block; width: 2px; border-radius: 1px;
  animation: bar-pulse 1.2s ease-in-out infinite;
}
@keyframes bar-pulse {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* ==== Download ==== */
.dl-block {
  padding: 60px 48px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(0,224,184,0.10), transparent 70%),
    linear-gradient(180deg, rgba(28,28,34,0.6), rgba(20,20,26,0.6));
  border: 1px solid var(--line);
  border-radius: 18px;
  position: relative; overflow: hidden;
}
.dl-block::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at top, #000, transparent 80%);
  pointer-events: none;
}
.dl-headline { position: relative; text-align: center; max-width: 720px; margin: 0 auto 40px; }
.dl-eyebrow { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 2px; }
.dl-title { font-size: clamp(36px, 5vw, 56px); font-weight: 600; letter-spacing: -0.03em; margin: 14px 0 14px; line-height: 1.05; }
.dl-sub { color: var(--ink-2); font-size: 17px; margin: 0; }
.dl-platforms { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 900px; margin: 0 auto; }
.dl-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 40px 1fr auto;
  grid-template-areas: "icon text arrow" "icon size arrow";
  gap: 4px 14px; align-items: center;
  padding: 18px 20px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.3s, background 0.3s;
}
.dl-card.hover, .dl-card:hover { transform: translateY(-2px); border-color: var(--accent); background: rgba(0,224,184,0.04); }
.dl-os-icon { grid-area: icon; font-size: 26px; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.dl-os-text { grid-area: text; }
.dl-os { font-size: 16px; font-weight: 600; }
.dl-os-sub { font-size: 12px; color: var(--ink-3); }
.dl-size { grid-area: size; font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); }
.dl-arrow { grid-area: arrow; width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: #0a0a0c; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; transition: transform 0.2s; }
.dl-card:hover .dl-arrow { transform: translateY(2px); }
.dl-shimmer {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(0,224,184,0.15) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform 0.7s;
}
.dl-card:hover .dl-shimmer { transform: translateX(100%); }
.dl-foot { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 28px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.dl-foot a { color: var(--accent); }
.dl-blink { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; animation: pulse 1.6s ease-out infinite; vertical-align: middle; }

/* App icon — Apple/Windows logo glyphs */
.os-glyph { width: 22px; height: 22px; }

/* ==== Footer ==== */
.footer {
  position: relative; z-index: 1;
  padding: 60px 32px 28px;
  border-top: 1px solid var(--line);
  margin-top: 60px;
  background: rgba(0,0,0,0.3);
}
.footer-inner { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-inner-simple { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); letter-spacing: 2px; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer li a { color: var(--ink-3); font-size: 14px; }
.footer li a:hover { color: var(--ink); }
.footer-brand img { width: 32px; height: 32px; }
.footer-brand p { color: var(--ink-3); font-size: 13px; margin: 14px 0 0; max-width: 320px; line-height: 1.5; }
.footer-legal { max-width: 1400px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); letter-spacing: 1px; }

/* ==== Responsive ==== */
@media (max-width: 900px) {
  .hero { padding: 40px 20px 30px; }
  .da-body { grid-template-columns: 1fr; height: auto; }
  .da-side, .da-flow { display: none; }
  .da-agents { grid-template-columns: repeat(2, 1fr); }
  .stats-strip, .how-grid, .ac-grid, .dl-platforms, .footer-inner { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .float-tile { display: none; }
}
