/* ==========================================================================
   PeakView — landing proposal
   One stylesheet, no frameworks. Arabic RTL first, English mirror shares it.
   Palette: dark olive ground, warm paper ink, brand red/green kept for data.
   ========================================================================== */

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("fonts/cairo-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("fonts/cairo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "PeakViewMark";
  src: url("fonts/peakview-mark.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --ground: #0b0d07;
  --ground-2: #0e110a;
  --panel: #12150c;
  --panel-2: #171b10;
  --panel-3: #1d2214;
  --line: rgba(243, 240, 228, 0.10);
  --line-2: rgba(243, 240, 228, 0.18);
  --ink: #f3f0e4;
  --ink-2: #cfccbb;
  --muted: #9b9d88;
  --dim: #71745f;
  --green: #4fd1a0;
  --green-deep: #2f8f63;
  --red: #e2837f;
  --ma-1: #e6e1cd;
  --ma-2: #9ba87e;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --pad: clamp(20px, 4.6vw, 64px);
  --sp: clamp(64px, 8.5vw, 128px);
  --ease: cubic-bezier(0.22, 0.7, 0.28, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* a faint chart-paper grid over the whole ground */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(243, 240, 228, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(243, 240, 228, 0.028) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 75%);
}
body > * { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { margin: 0; }

::selection { background: rgba(79, 209, 160, 0.28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1328px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.num { font-variant-numeric: tabular-nums; }

/* ---------- small type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(79, 209, 160, 0.12);
}

.sec-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
}
.sec-label::after {
  content: "";
  height: 1px;
  width: 56px;
  background: var(--line-2);
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
  will-change: transform;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--ink);
  --btn-fg: #10130a;
  --btn-bd: var(--ink);
  box-shadow: 0 10px 30px -14px rgba(243, 240, 228, 0.55);
}
.btn--primary:hover { box-shadow: 0 16px 40px -16px rgba(243, 240, 228, 0.6); }

.btn--ghost:hover { background: rgba(243, 240, 228, 0.06); border-color: rgba(243, 240, 228, 0.32); }

.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; border-radius: 10px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.link-arrow:hover { color: var(--ink); border-color: var(--line-2); }
.link-arrow svg { width: 16px; height: 16px; }

/* ==========================================================================
   header
   ========================================================================== */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(11, 13, 7, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-head.is-stuck { border-bottom-color: var(--line); background: rgba(11, 13, 7, 0.9); }
.head-in {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.brand span {
  font-family: "PeakViewMark", "Cairo", sans-serif;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.01em;
  direction: ltr;
  transform: translateY(1px);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-inline: auto;
  font-size: 15px;
  color: var(--ink-2);
}
.nav a { position: relative; padding-block: 6px; transition: color 0.2s; }
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.head-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.lang:hover { border-color: var(--line-2); color: var(--ink); background: rgba(243, 240, 228, 0.04); }

/* ==========================================================================
   hero
   ========================================================================== */
.hero {
  padding-block: clamp(44px, 6vw, 76px) clamp(56px, 7vw, 96px);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -20% auto -20%;
  height: 70%;
  background: radial-gradient(60% 60% at 62% 0%, rgba(79, 209, 160, 0.10), transparent 70%),
              radial-gradient(50% 50% at 20% 10%, rgba(226, 131, 127, 0.07), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-grid {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}
.hero-copy { max-width: 620px; }

.hero h1 {
  font-size: clamp(2.05rem, 3.5vw, 3.15rem);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: 0;
  margin-block: 20px 0;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
  position: relative;
}
.hero-lead {
  margin-top: 22px;
  max-width: 50ch;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.95;
  color: var(--ink-2);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--dim);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; opacity: 0.7; }

.hero-visual { min-width: 0; position: relative; }

/* a single product moment floating over the panel: a price alert arriving */
.hero-toast {
  position: absolute;
  inset-block-start: 116px;
  inset-inline-start: -22px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 14px;
  border: 1px solid rgba(243, 240, 228, 0.14);
  border-radius: 14px;
  background: rgba(20, 24, 15, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.95);
  font-size: 13px;
  color: var(--ink-2);
  z-index: 3;
}
.hero-toast .ic {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(79, 209, 160, 0.12);
  border: 1px solid rgba(79, 209, 160, 0.3);
  color: var(--green);
  flex: none;
}
.hero-toast .ic svg { width: 16px; height: 16px; }
.hero-toast b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-toast small { display: block; font-size: 11px; color: var(--dim); line-height: 1.4; }

/* ---------- terminal panel ---------- */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(79, 209, 160, 0.06), transparent 55%),
    linear-gradient(180deg, #151910 0%, #10130b 100%);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(243, 240, 228, 0.05);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 6, 0.35);
}
.panel-sym { display: flex; align-items: center; gap: 10px; }
.panel-sym img { width: 22px; height: 22px; border-radius: 6px; }
.panel-sym b { display: block; font-size: 14px; font-weight: 800; letter-spacing: 0.02em; direction: ltr; }
.panel-sym small { display: block; font-size: 11px; color: var(--dim); line-height: 1.2; }
.panel-px { margin-inline-start: auto; text-align: end; }
.panel-px b { display: block; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; direction: ltr; }
.panel-px small { display: block; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.tf { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: rgba(9, 11, 6, 0.5); }
.tf span {
  padding: 3px 7px;
  font-size: 11px;
  border-radius: 6px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.tf span.on { background: rgba(243, 240, 228, 0.1); color: var(--ink); }

.up { color: var(--green); }
.down { color: var(--red); }

.panel-chart { padding: 6px 4px 0; }
.panel-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
  background: rgba(9, 11, 6, 0.35);
}
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(79, 209, 160, 0.35);
  background: rgba(79, 209, 160, 0.1);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.pill-btn:hover { background: rgba(79, 209, 160, 0.18); transform: translateY(-1px); }
.pill-btn svg { width: 15px; height: 15px; }
.panel-stats { display: flex; gap: 16px; margin-inline-start: auto; font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.panel-stats b { color: var(--ink-2); font-weight: 700; }

/* ---------- charts ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart-grid line { stroke: rgba(243, 240, 228, 0.055); stroke-width: 1; }
.chart-axis text { fill: var(--dim); font-size: 10.5px; font-family: "Cairo", sans-serif; font-variant-numeric: tabular-nums; }
.chart-candles line { stroke-width: 1; }
.chart-candles .up { fill: var(--green); stroke: var(--green); }
.chart-candles .down { fill: var(--red); stroke: var(--red); }
.chart-ma { fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.ma20 { stroke: var(--ma-1); opacity: 0.55; }
.ma50 { stroke: var(--ma-2); opacity: 0.7; }
.chart-vol rect { fill: rgba(243, 240, 228, 0.09); }
.chart-last line { stroke: rgba(243, 240, 228, 0.3); stroke-width: 1; stroke-dasharray: 4 4; }
.chart-last rect { fill: var(--red); }
.chart-last text { fill: #14170e; font-size: 10.5px; font-weight: 800; font-family: "Cairo", sans-serif; }
.chart-dot { fill: var(--red); transform-box: fill-box; transform-origin: center; }
.chart--hero .chart-candles { clip-path: inset(0 0 0 100%); }
.chart--hero .chart-candles { animation: sweep 1.5s 0.15s var(--ease) forwards; }
.chart--hero .chart-ma { stroke-dasharray: 1; stroke-dashoffset: 1; pathLength: 1; }
.chart--hero .chart-ma { animation: draw 1.6s 0.9s var(--ease) forwards; }

@keyframes sweep { to { clip-path: inset(0 0 0 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* analysis overlay */
.an { opacity: 0; transition: opacity 0.35s ease; }
.an-band { fill: rgba(79, 209, 160, 0.055); stroke: rgba(79, 209, 160, 0.28); stroke-width: 1; }
.an-line { fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.an-line--trend { stroke: rgba(230, 225, 205, 0.75); }
.an-line--level { stroke-width: 1.2; stroke-dasharray: 5 5; stroke-dashoffset: 0; opacity: 0; transition: opacity 0.4s ease 0.7s; }
.an-line--level:first-of-type { stroke: var(--green); }
.an-fib line { stroke: rgba(243, 240, 228, 0.16); stroke-width: 1; stroke-dasharray: 2 6; opacity: 0; transition: opacity 0.4s ease 1s; }
.an-fib text { direction: ltr; text-anchor: start; fill: var(--dim); font-size: 10px; font-family: "Cairo", sans-serif; opacity: 0; transition: opacity 0.4s ease 1s; }
.an-label rect { fill: rgba(12, 15, 9, 0.96); stroke: rgba(243, 240, 228, 0.22); }
.an-label text { direction: rtl; text-anchor: end; fill: var(--ink); font-size: 15px; font-weight: 600; font-family: "Cairo", sans-serif; }
.an-label { opacity: 0; transform-box: fill-box; transform-origin: 0% 50%; transition: opacity 0.4s ease 1.1s; }
.an-marker { opacity: 0; transition: opacity 0.3s ease 1.3s; }
.an-marker circle { fill: none; stroke: var(--green); stroke-width: 1.5; }

.is-on .an { opacity: 1; }
.is-on .an-line { animation: draw 1.1s var(--ease) forwards; }
.is-on .an-line--level,
.is-on .an-fib line,
.is-on .an-fib text,
.is-on .an-label,
.is-on .an-marker { opacity: 1; }
.is-on .an-marker circle { animation: ping 2.2s ease-out 1.4s infinite; }

@keyframes ping {
  0% { r: 5; opacity: 1; }
  70% { r: 16; opacity: 0; }
  100% { r: 16; opacity: 0; }
}

/* ==========================================================================
   market rail
   ========================================================================== */
.rail {
  border-block: 1px solid var(--line);
  background: rgba(9, 11, 6, 0.45);
  overflow: clip;
  position: relative;
  max-width: 100%;
}
.rail::before, .rail::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.rail::before { inset-inline-start: 0; background: linear-gradient(to right, var(--ground), transparent); }
.rail::after { inset-inline-end: 0; background: linear-gradient(to left, var(--ground), transparent); }
.rail-track {
  display: flex;
  width: max-content;
  animation: marquee 68s linear infinite;
}
.rail:hover .rail-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rail-set { display: flex; }
.rail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-inline-end: 1px solid var(--line);
  white-space: nowrap;
  font-size: 13px;
}
.rail-item b { font-weight: 700; font-size: 12.5px; color: var(--ink-2); letter-spacing: 0.02em; }
.rail-item .v { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.rail-item .c { font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; }
.rail-note {
  display: flex;
  justify-content: flex-start;
  padding: 10px var(--pad) 0;
  font-size: 11.5px;
  color: var(--dim);
  max-width: 1328px;
  margin-inline: auto;
}

/* ==========================================================================
   sections
   ========================================================================== */
.sec { padding-block: var(--sp); }
.sec + .sec { padding-top: 0; }

.sec-head {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}
.sec-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
.sec-head p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
  max-width: 52ch;
}

/* ---------- features: tab list + stage ---------- */
.features {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.feat-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.feat-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: start;
  cursor: pointer;
  transition: background 0.25s;
}
.feat-list button:hover { background: rgba(243, 240, 228, 0.035); }
.feat-list .n {
  font-size: 11px;
  font-weight: 700;
  color: var(--dim);
  padding-top: 5px;
  font-variant-numeric: tabular-nums;
}
.feat-list .t { display: block; font-weight: 700; font-size: 16px; line-height: 1.5; }
.feat-list .d { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-top: 2px; }
.feat-list button[aria-selected="true"] { background: rgba(243, 240, 228, 0.05); }
.feat-list button[aria-selected="true"] .n { color: var(--green); }
.feat-list button[aria-selected="true"] .t { color: var(--ink); }

.feat-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(79, 209, 160, 0.07), transparent 70%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: clamp(20px, 3vw, 36px);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  overflow: hidden;
}
.shots { position: relative; width: 100%; display: grid; place-items: center; }
.shot {
  grid-area: 1 / 1;
  height: clamp(320px, 40vw, 540px);
  width: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  border: 1px solid rgba(243, 240, 228, 0.12);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.shot.on { opacity: 1; transform: none; }
.stage-cap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--dim);
  min-height: 20px;
}
.stage-cap b { color: var(--ink-2); font-weight: 600; }

/* ---------- analysis ---------- */
.analysis-grid {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  align-items: center;
}
.an-copy h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 18px; }
.an-copy > p { color: var(--ink-2); font-size: 16px; line-height: 1.95; max-width: 44ch; }
.an-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 0; }
.an-points li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-block: 13px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-2);
}
.an-points li:last-child { border-bottom: 1px solid var(--line); }
.an-points b { color: var(--ink); font-weight: 700; }
.an-points .k {
  font-size: 11px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  min-width: 22px;
}
.an-actions { margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.an-hint { font-size: 12.5px; color: var(--dim); }
.an-stage { position: relative; }
.an-stage .chart { padding: 8px 4px 4px; }
.an-badge {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  margin-inline: auto;
  width: fit-content;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(79, 209, 160, 0.12);
  border: 1px solid rgba(79, 209, 160, 0.3);
  color: var(--green);
  font-size: 11.5px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s ease 1.2s, transform 0.4s ease 1.2s;
}
.an-badge svg { width: 13px; height: 13px; flex: none; }
.an-badge { white-space: nowrap; font-size: 11px; padding: 5px 10px; }
.is-on .an-badge { opacity: 1; transform: none; }

/* ---------- three-up tools ---------- */
.tools { display: grid; gap: 0; border-top: 1px solid var(--line); }
.tool {
  padding: clamp(26px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line);
}
.tool .ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  color: var(--green);
  margin-bottom: 18px;
}
.tool .ico svg { width: 20px; height: 20px; }
.tool h3 { font-size: 18px; margin-bottom: 8px; }
.tool p { color: var(--muted); font-size: 14.5px; line-height: 1.8; max-width: 34ch; }

/* ---------- trust ---------- */
.trust-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.trust-item { padding: clamp(26px, 3vw, 34px) 0; border-bottom: 1px solid var(--line); }
.trust-item h3 { font-size: 17px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.trust-item h3 svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.trust-item p { color: var(--muted); font-size: 14.5px; line-height: 1.8; max-width: 36ch; }

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--dim);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.badge svg { width: 13px; height: 13px; color: var(--green); }
.badges .src { margin-inline-start: auto; }

/* ---------- install ---------- */
.install-grid { display: grid; gap: 20px; }
.install-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.install-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.install-card header svg { width: 22px; height: 22px; color: var(--ink-2); }
.install-card h3 { font-size: 19px; }
.install-card .sub { color: var(--dim); font-size: 13px; margin-bottom: 22px; }
.steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.steps li::before {
  counter-increment: s;
  content: counter(s);
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.steps b { color: var(--ink); font-weight: 700; }
.install-card .foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.install-note { font-size: 12.5px; color: var(--dim); }
.install-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.install-bar svg { width: 16px; height: 16px; color: var(--green); }

/* ---------- first 1000 ---------- */
.signup {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 85% 20%, rgba(79, 209, 160, 0.10), transparent 60%),
    linear-gradient(180deg, #141810, #0f120b);
  padding: clamp(28px, 4.5vw, 56px);
}
.signup::after {
  content: "1000";
  position: absolute;
  inset-inline-end: -0.04em;
  bottom: -0.34em;
  font-size: clamp(8rem, 22vw, 18rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 240, 228, 0.09);
  pointer-events: none;
  direction: ltr;
  user-select: none;
}
.signup-in { position: relative; z-index: 1; display: grid; gap: 26px; align-items: center; }
.signup h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.signup p { color: var(--ink-2); font-size: 15.5px; line-height: 1.9; max-width: 46ch; }
.signup .perks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 9px; font-size: 14px; color: var(--muted); }
.signup .perks li { display: flex; align-items: center; gap: 10px; }
.signup .perks svg { width: 15px; height: 15px; color: var(--green); flex: none; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 16.5px;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--green); }
.faq summary .plus {
  margin-inline-start: auto;
  width: 22px; height: 22px;
  flex: none;
  position: relative;
  transition: transform 0.3s var(--ease);
}
.faq summary .plus::before, .faq summary .plus::after {
  content: "";
  position: absolute;
  inset-inline: 4px;
  top: 50%;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq .a { padding: 0 0 24px; color: var(--muted); font-size: 14.5px; line-height: 1.9; max-width: 70ch; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 72px) 32px;
  margin-top: var(--sp);
}
.foot-grid { display: grid; gap: 36px; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { color: var(--muted); font-size: 14px; line-height: 1.85; max-width: 32ch; }
.foot-col h4 { font-size: 12px; letter-spacing: 0.18em; color: var(--dim); font-weight: 700; margin-bottom: 16px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--ink-2); font-size: 14px; transition: color 0.2s; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--dim);
}
.foot-bottom .tm { margin-inline-start: auto; display: flex; gap: 18px; align-items: center; }
.foot-bottom .tm a { color: var(--dim); }
.foot-bottom .tm a:hover { color: var(--ink-2); }

/* ==========================================================================
   reveal on scroll
   ========================================================================== */
.rv { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
html:not(.js) .rv { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.06s; }
.rv-d2 { transition-delay: 0.12s; }
.rv-d3 { transition-delay: 0.18s; }

/* ==========================================================================
   breakpoints
   ========================================================================== */
@media (min-width: 700px) {
  .sec-head { grid-template-columns: minmax(0, 0.618fr) minmax(0, 1fr); gap: 40px; align-items: end; }
  .tools { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .tool { padding-inline: 0 28px; border-bottom: 0; border-inline-start: 1px solid var(--line); padding-inline-start: 28px; }
  .tool:first-child { border-inline-start: 0; padding-inline-start: 0; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .trust-item { border-bottom: 0; border-inline-start: 1px solid var(--line); padding-inline: 0 28px; }
  .trust-item:first-child { border-inline-start: 0; padding-inline-start: 0; }
  .install-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .signup-in { grid-template-columns: 1fr auto; }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(32px, 4vw, 56px); }
  .hero-visual { margin-inline-end: calc(-1 * max(0px, (100vw - 1328px) / 2)); }
  .features { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); align-items: center; }
  .analysis-grid { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); }
  .foot-grid { gap: 48px; }
}

@media (max-width: 859px) {
  .nav { display: none; }
  .head-in { min-height: 64px; gap: 12px; }
  .head-actions { margin-inline-start: auto; }
  .brand span { font-size: 19px; }
  .panel-head { flex-wrap: wrap; gap: 10px 14px; }
  .panel-px { margin-inline-start: 0; text-align: start; }
  .tf { margin-inline-start: auto; }
  .panel-stats { display: none; }
  .rail-note { justify-content: flex-start; }
}

@media (max-width: 699px) {
  .sec + .sec { padding-top: 0; }
  .feat-list { gap: 8px; }
  .feat-list button { border: 1px solid var(--line); border-radius: 14px; background: rgba(243, 240, 228, 0.02); }
  .feat-list button[aria-selected="true"] { border-color: rgba(79, 209, 160, 0.35); }
  .feat-stage { order: -1; }
  .hero-cta .btn { flex: 1 1 100%; }
  .signup::after { font-size: 9rem; bottom: -0.3em; }
  .hero-toast {
    position: static;
    margin-top: -12px;
    margin-inline-start: 14px;
    margin-inline-end: -6px;
    width: fit-content;
    box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .rv { opacity: 1; transform: none; }
  .rail-track { animation: none; }
  .chart--hero .chart-candles { clip-path: none; }
  .chart--hero .chart-ma { stroke-dasharray: none; stroke-dashoffset: 0; }
  .an { opacity: 1; }
}

/* ---------- skip link ---------- */
.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #10130a;
  font-weight: 700;
  font-size: 14px;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

@media (max-width: 760px) { .an-label { transform: scale(1.55); } }
