/* ===================================================================
   Metrics — Landing Page
   Gestão e métricas para cartórios de todo o Brasil
   =================================================================== */

:root {
  --bg: #0a1220;
  --bg-elevated: #101b2e;
  --surface: #16223880;
  --surface-solid: #16223e;
  --border: #2a3854;
  --text: #eef1f7;
  --text-dim: #9fb0c7;
  --text-faint: #64758f;

  --brand: #2f5f8f;
  --brand-2: #3f7bb0;
  --accent: #b8935a;
  --accent-2: #d4ac6e;

  --grad-brand: linear-gradient(135deg, #2f5f8f 0%, #3f7bb0 100%);
  --grad-hero: radial-gradient(60% 60% at 80% 10%, rgba(47, 95, 143, 0.22) 0%, rgba(47, 95, 143, 0) 60%),
               radial-gradient(50% 50% at 10% 20%, rgba(184, 147, 90, 0.1) 0%, rgba(184, 147, 90, 0) 60%),
               var(--bg);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.45);

  color-scheme: dark;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(184, 147, 90, 0.1);
  border: 1px solid rgba(184, 147, 90, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-top: 14px;
}

.section-head.align-left {
  margin-left: 0;
  text-align: left;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad-brand);
  color: #f4f7fb;
  box-shadow: 0 8px 24px rgba(47, 95, 143, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(47, 95, 143, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: #3d5170;
}

.btn-lg { padding: 16px 30px; font-size: 1rem; }

.btn-block { width: 100%; }

/* ---------- Navbar ---------- */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(10, 18, 32, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 18, 32, 0.85);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark svg { width: 19px; height: 19px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */

.hero {
  padding: 168px 0 120px;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}

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

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  max-width: 880px;
}

.hero h1 .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 620px;
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-visual {
  width: 100%;
  max-width: 960px;
  margin-top: 12px;
}

/* ---------- Browser mockup frame ---------- */

.mockup-frame {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #101b2e;
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #263349;
}
.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }

.mockup-url {
  margin-left: 12px;
  font-size: 0.75rem;
  color: var(--text-faint);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  flex: 1;
  max-width: 260px;
}

.mockup-body {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 420px;
}

.mockup-sidebar {
  background: #0d1729;
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mockup-sidebar .m-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 18px;
  font-weight: 700;
  font-size: 0.9rem;
}

.mockup-sidebar .m-logo .dotmark {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--grad-brand);
}

.m-item {
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 9px;
}

.m-item .ic {
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--text-faint);
  flex-shrink: 0;
}

.m-item.active {
  background: rgba(47, 95, 143, 0.14);
  color: #d9e3ee;
}
.m-item.active .ic { background: var(--brand-2); }

.mockup-main {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.m-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.m-topline h4 { font-size: 1rem; }
.m-topline span { font-size: 0.72rem; color: var(--text-faint); }

.m-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.m-stats-6 { grid-template-columns: repeat(3, 1fr); }

.m-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.m-stat .lbl { font-size: 0.68rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.m-stat .val { font-size: 1.35rem; font-weight: 800; margin-top: 6px; }
.m-stat .delta { font-size: 0.7rem; margin-top: 4px; font-weight: 600; }
.m-stat .delta.up { color: #4ade80; }
.m-stat .delta.down { color: #f87171; }

.m-panels {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  flex: 1;
}

.m-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.m-panel h5 { font-size: 0.78rem; color: var(--text-dim); font-weight: 600; margin-bottom: 14px; }

.m-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 130px;
}

.m-bars .bar {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  opacity: 0.85;
}

.m-list { display: flex; flex-direction: column; gap: 10px; }

.m-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-dim);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.m-row:last-child { border-bottom: none; padding-bottom: 0; }

.tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.tag.ok { background: rgba(74, 222, 128, 0.14); color: #4ade80; }
.tag.warn { background: rgba(251, 191, 36, 0.14); color: #fbbf24; }
.tag.risk { background: rgba(248, 113, 113, 0.14); color: #f87171; }

/* filter pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
}
.pill.active {
  background: rgba(47, 95, 143, 0.16);
  border-color: rgba(47, 95, 143, 0.4);
  color: #d9e3ee;
}

/* report stats + actions */
.rep-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.rep-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}
.rep-stat .v { display: block; font-size: 1.2rem; font-weight: 800; }
.rep-stat .l { font-size: 0.65rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.03em; }

.rep-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rep-btn {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-dim);
}

/* goal / gamification rows (real "Protocolos Encerrados Hoje" pattern) */
.tv-goals { display: flex; flex-direction: column; gap: 14px; }
.tv-goal-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.tv-goal-top span:last-child { font-weight: 700; color: var(--text); }
.tv-goal-bar { height: 7px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; }
.tv-goal-bar i { display: block; height: 100%; background: var(--grad-brand); border-radius: 999px; }
.tv-goal.complete .tv-goal-bar i { background: linear-gradient(90deg, #4ade80, #b8935a); }
.tv-goal.muted .tv-goal-top span:last-child { color: var(--text-faint); }
.tv-goal-badge { font-size: 0.66rem; font-weight: 700; color: #4ade80; margin-left: 6px; }

/* processing module cards */
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.module-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.module-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-2);
  background: rgba(47, 95, 143, 0.12);
  border-radius: 999px;
  padding: 3px 9px;
  margin-bottom: 8px;
}

.module-card h6 { font-size: 0.82rem; font-weight: 700; margin-bottom: 4px; }
.module-card p { font-size: 0.7rem; color: var(--text-faint); line-height: 1.4; }

/* ---------- Logo strip ---------- */

.proof-strip {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.proof-strip .container {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.proof-strip p {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.02);
}

.proof-pill b { color: var(--text); }

/* ---------- Problem section ---------- */

.section { padding: 110px 0; }
.section-tight { padding: 90px 0; }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.problem-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}

.problem-card .ic-wrap {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.problem-card .ic-wrap svg { width: 20px; height: 20px; color: #f87171; }

.problem-card h4 { font-size: 1rem; margin-bottom: 8px; }
.problem-card p { font-size: 0.88rem; color: var(--text-dim); }

/* ---------- Features (alternating) ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 70px 0;
  border-top: 1px solid var(--border);
}

.feature-row:first-of-type { border-top: none; }

.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }

.feature-text .eyebrow { margin-bottom: 16px; }
.feature-text h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 16px; }
.feature-text p { color: var(--text-dim); font-size: 1rem; margin-bottom: 22px; }

.feature-checks { display: flex; flex-direction: column; gap: 12px; }
.feature-checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.feature-checks svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.mini-mockup {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 20px;
}

.mini-mockup h5 { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 16px; display:flex; justify-content:space-between; }

/* TV mockup — painel em tempo real */
.tv-mockup {
  background: #060a12;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
}

.tv-screen {
  background: linear-gradient(180deg, #101b2e 0%, #0a1220 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}

.tv-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.tv-title { font-size: 0.85rem; font-weight: 700; }

.tv-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #f87171;
  letter-spacing: 0.05em;
}

.tv-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 8px #f87171;
  animation: tvPulse 1.4s ease-in-out infinite;
}

@keyframes tvPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.tv-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.tv-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.tv-stat .v {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tv-stat .l { font-size: 0.64rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }

.tv-board { display: flex; flex-direction: column; gap: 10px; }

.tv-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.tv-row.rank-1 { border-color: rgba(212, 172, 110, 0.4); background: rgba(212, 172, 110, 0.07); }

.tv-row .pos { font-size: 0.95rem; width: 20px; text-align: center; flex-shrink: 0; }

.tv-row .avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #f4f7fb;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.tv-row .name { font-size: 0.76rem; font-weight: 600; width: 108px; flex-shrink: 0; }
.tv-row .name small { display: block; font-weight: 400; color: var(--text-faint); font-size: 0.64rem; }

.tv-row .bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; }
.tv-row .bar i { display: block; height: 100%; background: var(--grad-brand); border-radius: 999px; }

.tv-row .count { font-size: 0.8rem; font-weight: 800; width: 24px; text-align: right; flex-shrink: 0; }

/* timeline mock */
.timeline-mock { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.tl-item:last-child { border-bottom: none; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.tl-dot.ok { background: #4ade80; }
.tl-dot.warn { background: #fbbf24; }
.tl-dot.pend { background: var(--text-faint); }
.tl-item .tl-title { font-size: 0.85rem; font-weight: 600; }
.tl-item .tl-sub { font-size: 0.75rem; color: var(--text-faint); margin-top: 2px; }

/* gauge mock */
.gauge-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gauge {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.gauge .ring {
  width: 64px; height: 64px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: conic-gradient(var(--brand) calc(var(--pct) * 1%), rgba(255,255,255,0.08) 0);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.gauge .ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--surface-solid);
}
.gauge .ring span { position: relative; font-size: 0.72rem; font-weight: 700; }
.gauge p { font-size: 0.72rem; color: var(--text-faint); }

/* ---------- Impact / metrics band ---------- */

.impact-band {
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.impact-card h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.impact-card .ic-wrap {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(47, 95, 143, 0.12);
  border: 1px solid rgba(47, 95, 143, 0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.impact-card .ic-wrap svg { width: 21px; height: 21px; color: var(--brand-2); }
.impact-card p { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Categories (Escrituras / Instrumentos / Processamentos) ---------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.category-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.category-card .cat-index {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.category-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.category-card p { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 18px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud span {
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* ---------- Personalization band ---------- */

.custom-band {
  text-align: center;
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg), var(--bg-elevated));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.custom-quote {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 800;
  max-width: 760px;
  margin: 20px auto;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.custom-quote .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.custom-sub {
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 44px;
  font-size: 1.02rem;
}

.custom-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.custom-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-solid);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.custom-chip svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-solid);
}

.step .num {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad-brand);
  color: #f4f7fb;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

.step h4 { font-size: 0.98rem; margin-bottom: 8px; }
.step p { font-size: 0.86rem; color: var(--text-dim); }

/* ---------- CTA ---------- */

.cta-band {
  padding: 100px 0;
  text-align: center;
}

.cta-box {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  opacity: 0.6;
  z-index: 0;
}

.cta-box > * { position: relative; z-index: 1; }

.cta-box h2 { max-width: 640px; margin: 0 auto 16px; }
.cta-box p { color: var(--text-dim); max-width: 520px; margin: 0 auto 32px; }

/* ---------- Footer ---------- */

.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p {
  margin-top: 14px;
  color: var(--text-faint);
  font-size: 0.88rem;
  max-width: 280px;
}

.footer-col h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; color: var(--text-dim); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .feature-text { order: 1; }
  .feature-row.reverse .feature-visual { order: 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-sidebar { display: none; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; flex-shrink: 0; }
  .nav-cta { display: none; }
  .hero { padding: 130px 0 80px; }
  .m-stats { grid-template-columns: repeat(2, 1fr); }
  .m-panels { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-box { padding: 48px 24px; }
}

@media (max-width: 520px) {
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .tv-stats { grid-template-columns: 1fr 1fr; }
  .tv-row .name { width: 76px; }
}
