/* Global section layout */
.section-head {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-head.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head .lead {
  max-width: 620px;
}

.section-head.centered .lead {
  margin-left: auto;
  margin-right: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 88px;
  background: linear-gradient(180deg, #fff 0%, var(--blue-xs) 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  top: -180px;
  right: -140px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(67, 67, 240, 0.1) 0%, transparent 68%);
}

.hero::after {
  bottom: -220px;
  left: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(67, 67, 240, 0.08) 0%, transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  max-width: 560px;
}

.hero-copy .lead {
  margin: 20px 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 20px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--body);
  font-size: 12px;
  font-weight: 600;
}

.hero-browser {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r5);
  box-shadow: var(--sh-xl);
  overflow: hidden;
}

.browser-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
  flex: 1;
  border-radius: var(--r0);
  background: #fff;
  color: var(--muted);
  padding: 6px 10px;
  font-size: 12px;
  font-family: var(--f-mono);
}

.browser-body {
  padding: 22px;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.hero-stat {
  border-radius: var(--r2);
  background: var(--bg-2);
  padding: 14px 12px;
  text-align: center;
}

.hero-stat-num {
  color: var(--blue);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.hero-stat-label {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mockup-panel {
  display: grid;
  gap: 14px;
}

.mockup-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.mockup-surface,
.mockup-side,
.mockup-terminal {
  border-radius: var(--r3);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, var(--bg-2) 100%);
}

.mockup-surface {
  padding: 18px;
  min-height: 178px;
}

.mockup-side {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.mockup-terminal {
  background: linear-gradient(180deg, #151528 0%, #20203c 100%);
  color: rgba(255, 255, 255, 0.82);
  padding: 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.8;
}

.surface-row,
.surface-chart,
.surface-badge {
  border-radius: var(--r1);
  background: var(--blue-xs);
}

.surface-row {
  height: 12px;
  margin-bottom: 10px;
}

.surface-row.short { width: 58%; }

.surface-chart {
  height: 84px;
  margin-top: 20px;
  background: linear-gradient(180deg, rgba(67, 67, 240, 0.16), rgba(67, 67, 240, 0.02));
}

.surface-badge {
  display: inline-flex;
  padding: 8px 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}

/* ═══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   1024px  Laptop
    768px  Tablet / large phone landscape
    480px  Mobile portrait
═══════════════════════════════════════════ */

/* ─── 1024px ─── */
@media (max-width: 64em) {
  .section    { padding: 80px 0; }
  .section-sm { padding: 52px 0; }
  .section-lg { padding: 96px 0; }

  .hero { padding: 52px 0 72px; }
  .hero-grid { gap: 40px; }
}

/* ─── 768px ─── */
@media (max-width: 48em) {
  .container  { padding: 0 20px; }
  .container-sm,
  .container-md { padding: 0 20px; }

  .section    { padding: 64px 0; }
  .section-sm { padding: 44px 0; }
  .section-lg { padding: 72px 0; }

  .section-head { margin-bottom: 32px; }

  /* Hero — stack to single column */
  .hero { padding: 40px 0 56px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-copy { max-width: 100%; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Browser chrome mockup moves below copy on tablet */
  .hero-browser { max-width: 540px; margin: 0 auto; }

  /* Hero stat grid stays 3 cols but tighter */
  .hero-stat { padding: 12px 8px; }
  .hero-stat-num { font-size: 20px; }
}

/* ─── 480px ─── */
@media (max-width: 30em) {
  .container  { padding: 0 16px; }
  .container-sm,
  .container-md { padding: 0 16px; }

  .section    { padding: 52px 0; }
  .section-sm { padding: 36px 0; }
  .section-lg { padding: 60px 0; }

  /* Hide browser chrome mockup on small phones — save space */
  .hero-browser { display: none; }

  .hero-trust-strip { gap: 8px; }
  .trust-badge { font-size: 11px; padding: 6px 10px; }

  /* Mockup band becomes single column */
  .mockup-band { grid-template-columns: 1fr; }

  /* Section head */
  .section-head { margin-bottom: 26px; }
  .section-head .lead { font-size: 15px; }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after { display: none; }
}
