/* ───────── Hero ───────── */
.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -10% -10% 0 -10%;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(10,10,10,0.08) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  position: relative;
}
.hero-copy h1 { margin-top: 24px; }
.hero-copy h1 .line2 { color: var(--text-muted); }
.hero-sub {
  margin-top: 22px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.55;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust {
  margin-top: 28px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted);
}
.hero-trust .stars { color: #F59E0B; letter-spacing: 2px; }
.hero-trust .sep { width: 4px; height: 4px; background: var(--border); border-radius: 50%; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* ─── Before/after chart slider ─── */
.chart-card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 14px;
  overflow: hidden;
}
.chart-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 8px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.chart-card-head .pair {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
}
.chart-card-head .dots { display: inline-flex; gap: 6px; }
.chart-card-head .dots i {
  width: 10px; height: 10px; border-radius: 50%; background: var(--surface-alt);
  display: inline-block;
}
.chart-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(180deg, #FBFBFC 0%, #F4F4F5 100%);
  user-select: none;
  touch-action: none;
}
.chart-layer {
  position: absolute; inset: 0;
}
.chart-after { clip-path: inset(0 0 0 50%); transition: clip-path 0s; }
.chart-divider {
  position: absolute; top: 0; bottom: 0;
  left: 50%;
  width: 2px; background: var(--accent);
  transform: translateX(-1px);
  cursor: ew-resize;
  box-shadow: 0 0 0 0 rgba(199, 242, 90, 0);
  transition: box-shadow 200ms ease;
}
.chart-divider.dragging {
  box-shadow: 0 0 0 6px rgba(199, 242, 90, 0.35);
}
.chart-handle {
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  font-size: 14px;
}
.chart-tag {
  position: absolute; top: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.chart-tag.left { left: 12px; }
.chart-tag.right { right: 12px; color: var(--text); }

/* ───── Social proof strip ───── */
.proof {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  background: var(--surface);
}
.proof-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: center;
}
.proof-stat { display: flex; flex-direction: column; gap: 4px; }
.proof-stat .n {
  font-family: var(--font-display);
  font-weight: 600; font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.03em;
}
.proof-stat .l {
  font-size: 12px; color: var(--text-muted);
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em;
}
@media (max-width: 720px) {
  .proof-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ───── Problem → solution ───── */
.ps-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  align-items: stretch;
}
.ps-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
}
.ps-col.solution { background: var(--accent); color: #fff; border-color: var(--accent); }
.ps-col h3 {
  font-size: 13px; font-family: var(--font-mono); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 24px;
}
.ps-col.solution h3 { color: rgba(255,255,255,0.55); }
.ps-col h2 { margin-bottom: 28px; }
.ps-col.solution h2 strong { color: var(--highlight); font-weight: inherit; }
.ps-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.ps-list li {
  display: flex; gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
}
.ps-list li:first-child { border-top: none; padding-top: 0; }
.ps-col.solution .ps-list li { border-color: rgba(255,255,255,0.10); }
.ps-list .ico {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center;
  background: rgba(239,68,68,0.10);
  color: var(--danger); font-weight: 600; font-size: 13px;
}
.ps-col.solution .ps-list .ico {
  background: rgba(199, 242, 90, 0.18);
  color: var(--highlight);
}
@media (max-width: 820px) {
  .ps-grid { grid-template-columns: 1fr; }
}

/* ───── Feature grid ───── */
.features-head { text-align: center; margin-bottom: 56px; }
.features-head p { color: var(--text-muted); max-width: 56ch; margin: 14px auto 0; }
.feat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  min-height: 168px;
  display: flex; flex-direction: column; gap: 16px;
}
.feat:hover {
  transform: translateY(-4px);
  border-color: #c8c8cd;
  box-shadow: var(--shadow-md);
}
.feat .ic {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface-alt);
  display: grid; place-items: center;
  color: var(--text);
}
.feat h4 { font-size: 16px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.feat p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.feat .idx {
  margin-top: auto;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.06em;
}
@media (max-width: 1024px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .feat-grid { grid-template-columns: 1fr; } }

/* ─── Chart expand / fullscreen controls ─── */
.chart-actions { display: inline-flex; gap: 6px; }
.chart-btn {
  appearance: none; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 13px; line-height: 1; cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}
.chart-btn:hover { background: var(--surface-alt); border-color: #c8c8cd; transform: translateY(-1px); }
.chart-btn:active { transform: translateY(0); }

/* Expanded (larger overlay, centered) */
.chart-card.expanded {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(1100px, 92vw);
  height: min(78vh, 820px);
  z-index: 1000;
  margin: 0;
  background: var(--surface);
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.35);
}
.chart-card.expanded .chart-wrap,
.chart-card.fullscreen .chart-wrap {
  aspect-ratio: auto;
  flex: 1;
  height: 100%;
}

/* Fullscreen overlay (edge-to-edge) */
.chart-card.fullscreen {
  position: fixed; inset: 0;
  z-index: 1000;
  margin: 0;
  background: var(--surface);
  display: flex; flex-direction: column;
  border-radius: 0;
}
body.chart-fs-open { overflow: hidden; }
.chart-fs-backdrop {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(10, 10, 10, 0.55);
}

.chart-card.expanded .chart-layer,
.chart-card.fullscreen .chart-layer {
  object-fit: contain !important;
  background: #fff;
}
