/* Diagnodesk landing — friendly SaaS, rounded, soft gradients */

:root {
  /* Surfaces */
  --bg: #FBFAF7;
  --bg-alt: #F4F1EA;
  --surface: #FFFFFF;
  --ink: #14171A;
  --ink-2: #3A4047;
  --muted: #6B7480;
  --line: #E9E4DA;
  --line-2: #DCD5C6;

  /* Accents */
  --mint: #B8F0D2;
  --mint-2: #7CE0AE;
  --sky: #C7E5FF;
  --sky-2: #8BC6FF;
  --peach: #FFD9C2;
  --peach-2: #FFB494;
  --lilac: #E0D6FF;

  --grad-hero: linear-gradient(135deg, #C7E5FF 0%, #B8F0D2 50%, #FFD9C2 100%);
  --grad-cta: linear-gradient(135deg, #14171A 0%, #2A2F36 100%);
  --grad-card: linear-gradient(180deg, #FFFFFF 0%, #FBFAF7 100%);

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Instrument Sans', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Density */
  --density: 1;
  --section-y: calc(120px * var(--density));
  --section-x: clamp(20px, 5vw, 80px);

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(20, 23, 26, 0.04), 0 2px 6px rgba(20, 23, 26, 0.04);
  --shadow-md: 0 4px 12px rgba(20, 23, 26, 0.06), 0 12px 32px rgba(20, 23, 26, 0.06);
  --shadow-lg: 0 12px 24px rgba(20, 23, 26, 0.08), 0 32px 80px rgba(20, 23, 26, 0.10);
}

[data-theme="dark"] {
  --bg: #0E1013;
  --bg-alt: #15181D;
  --surface: #1A1E24;
  --ink: #F5F4EF;
  --ink-2: #C7CCD3;
  --muted: #8A929B;
  --line: #262B33;
  --line-2: #333944;

  --grad-cta: linear-gradient(135deg, #F5F4EF 0%, #DDD9CD 100%);
  --grad-card: linear-gradient(180deg, #1A1E24 0%, #15181D 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3), 0 12px 32px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.4), 0 32px 80px rgba(0,0,0,0.4);
}

[data-accent="mint"] {
  --grad-hero: linear-gradient(135deg, #C7E5FF 0%, #B8F0D2 50%, #FFD9C2 100%);
}
[data-accent="sunset"] {
  --grad-hero: linear-gradient(135deg, #FFD9C2 0%, #FFB7CD 50%, #E0D6FF 100%);
}
[data-accent="forest"] {
  --grad-hero: linear-gradient(135deg, #D4F0DA 0%, #B8E0D2 50%, #FFE4B8 100%);
}
[data-accent="lavender"] {
  --grad-hero: linear-gradient(135deg, #E0D6FF 0%, #C7E5FF 50%, #D4F0DA 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01';
  overflow-x: hidden;
}

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

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Layout */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--section-x);
}

section {
  padding: var(--section-y) 0;
  position: relative;
}

/* Type */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2BB673;
  box-shadow: 0 0 0 4px rgba(43, 182, 115, 0.15);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(48px, 6.5vw, 88px); letter-spacing: -0.035em; }
h2 { font-size: clamp(36px, 4.5vw, 60px); letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2vw, 28px); }
h4 { font-size: 18px; }

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-2);
  line-height: 1.55;
  text-wrap: pretty;
  max-width: 56ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 14px 18px;
}
.btn-ghost:hover { background: rgba(20, 23, 26, 0.05); }
[data-theme="dark"] .btn-ghost:hover { background: rgba(255,255,255,0.05); }

.btn .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(180%);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--section-x);
  max-width: 1240px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--grad-hero);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
  display: grid;
  place-items: center;
}
.brand-mark svg {
  width: 22px;
  height: 22px;
}
.brand-mark path {
  stroke: var(--ink);
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 450;
}
.nav-links a:hover { color: var(--ink); background: rgba(20,23,26,0.04); }
[data-theme="dark"] .nav-links a:hover { background: rgba(255,255,255,0.05); }
.nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-cta .btn { padding: 10px 16px; font-size: 14px; }

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* Hero */
.hero {
  padding-top: calc(var(--section-y) * 0.7);
  padding-bottom: calc(var(--section-y) * 0.6);
  position: relative;
  overflow: hidden;
}
.hero-grad {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 720px;
  background: var(--grad-hero);
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
[data-theme="dark"] .hero-grad { opacity: 0.25; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-pill .tag {
  padding: 4px 10px;
  background: var(--bg-alt);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.hero h1 .accent {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-family: var(--font-display);
}
[data-theme="dark"] .hero h1 .accent {
  filter: brightness(1.3) saturate(1.2);
}

.hero-lead { margin: 28px 0 36px; }

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

.hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-meta-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="dark"] .hero-meta-num { filter: brightness(1.3) saturate(1.2); }
.hero-meta-label {
  font-size: 13px;
  color: var(--muted);
}

/* Hero visual — diagnostic check card */
.hero-visual {
  position: relative;
  perspective: 1400px;
}

.dcard {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  position: relative;
  transform: rotate(-1.5deg);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.dcard:hover { transform: rotate(0deg) translateY(-4px); }

.dcard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.dcard-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
}
.dcard-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grad-hero);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.dcard-status {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(43, 182, 115, 0.12);
  color: #16774A;
  letter-spacing: 0.04em;
}
[data-theme="dark"] .dcard-status { background: rgba(43, 182, 115, 0.18); color: #7CE0AE; }

.dcheck {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  margin-bottom: 8px;
  font-size: 14px;
  background: var(--bg);
  transition: background 0.4s ease, transform 0.4s ease;
  position: relative;
  overflow: hidden;
}
.dcheck.passing { background: linear-gradient(90deg, rgba(184, 240, 210, 0.4), transparent); }
.dcheck.checking { background: var(--bg-alt); }
.dcheck.warn { background: linear-gradient(90deg, rgba(255, 217, 194, 0.5), transparent); }

.dcheck-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.dcheck-label { flex: 1; font-weight: 500; }
.dcheck-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.dcheck-state {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.dcheck.passing .dcheck-state { background: #2BB673; color: white; }
.dcheck.warn .dcheck-state { background: #F59E0B; color: white; }
.dcheck.checking .dcheck-state {
  background: transparent;
  border: 2px solid var(--line-2);
  border-top-color: var(--ink-2);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.dcard-foot {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dcard-progress {
  flex: 1;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--line);
  overflow: hidden;
  margin-right: 16px;
}
.dcard-progress-bar {
  height: 100%;
  background: var(--grad-hero);
  border-radius: var(--r-pill);
  width: 0;
  transition: width 0.6s ease;
}
.dcard-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

/* floating side cards */
.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 12px 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 4s ease-in-out infinite;
}
.float-card-1 {
  top: -28px;
  right: -20px;
  transform: rotate(4deg);
  animation-delay: 0s;
}
.float-card-2 {
  bottom: -24px;
  left: -28px;
  transform: rotate(-3deg);
  animation-delay: 1.5s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 4deg)); }
  50% { transform: translateY(-8px) rotate(var(--r, 4deg)); }
}
.float-card-1 { --r: 4deg; }
.float-card-2 { --r: -3deg; }

.float-icon {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--grad-hero);
}
.float-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px;
}

/* Logo cloud */
.logos {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logos-label {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.logos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
}
.logo-mark {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.logo-mark:hover { opacity: 1; }
@media (max-width: 720px) {
  .logos-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Section header */
.section-head {
  text-align: center;
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.section-head .lead { text-align: center; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-num::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad-hero);
}
.step-visual {
  height: 160px;
  border-radius: var(--r-md);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.step h3 { margin-bottom: 8px; font-size: 22px; }
.step p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* Step 1 visual: link */
.step-vis-link {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.step-link-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 10px 14px 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.step-link-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #2BB673; flex-shrink: 0; }
.step-link-pill .copy {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  font-size: 11px;
  margin-left: 4px;
}

/* Step 2 visual: device scan */
.step-vis-scan {
  background: var(--grad-hero);
  position: relative;
}
.step-vis-scan::before {
  content: '';
  position: absolute;
  inset: 30px;
  border-radius: var(--r-md);
  background: var(--surface);
}
.step-vis-scan .laptop {
  position: absolute;
  inset: 30px;
  border-radius: var(--r-md);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 6px;
}
.scan-bar {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.scan-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 30%;
  border-radius: var(--r-pill);
  background: var(--grad-hero);
  animation: scan 2.4s ease-in-out infinite;
}
@keyframes scan {
  0% { left: -30%; }
  100% { left: 100%; }
}
.scan-line { height: 6px; border-radius: var(--r-pill); background: var(--bg-alt); }
.scan-line.short { width: 60%; }
.scan-line.med { width: 80%; }

/* Step 3 visual: report */
.step-vis-report {
  background: var(--bg-alt);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.report-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 11px;
  border: 1px solid var(--line);
}
.report-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.report-dot.pass { background: #2BB673; }
.report-dot.warn { background: #F59E0B; }
.report-dot.fail { background: #E0524C; }
.report-row .name { flex: 1; font-weight: 500; }
.report-row .val { font-family: var(--font-mono); color: var(--muted); }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.feature:hover { border-color: var(--line-2); }

.feature-1 { grid-column: span 7; min-height: 380px; }
.feature-2 { grid-column: span 5; min-height: 380px; }
.feature-3 { grid-column: span 4; min-height: 320px; }
.feature-4 { grid-column: span 4; min-height: 320px; }
.feature-5 { grid-column: span 4; min-height: 320px; }

@media (max-width: 980px) {
  .feature-1, .feature-2, .feature-3, .feature-4, .feature-5 {
    grid-column: span 12;
    min-height: 280px;
  }
}

.feature-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.feature h3 { margin-bottom: 10px; max-width: 22ch; }
.feature p { color: var(--ink-2); max-width: 38ch; line-height: 1.5; }

.feature-art { margin-top: 24px; }

/* feature 1: stack of pings */
.f1-art {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ping-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 13px;
  position: relative;
}
.ping-row .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2BB673;
  position: relative;
}
.ping-row .dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #2BB673;
  opacity: 0;
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}
.ping-row .name { flex: 1; font-weight: 500; }
.ping-row .val { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* feature 2: gauge */
.f2-art {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  position: relative;
  height: 200px;
}
.gauge {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: conic-gradient(from -90deg, #B8F0D2 0%, #7CE0AE 30%, #C7E5FF 60%, var(--bg-alt) 70%);
  display: grid;
  place-items: center;
  position: relative;
}
.gauge::before {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: var(--surface);
}
.gauge-num {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.gauge-label {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* feature 3: integrations */
.f3-art {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.int-tile {
  aspect-ratio: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.int-tile.accent { background: var(--grad-hero); color: var(--ink); }

/* feature 4: shield */
.f4-art {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}
.shield {
  width: 110px;
  height: 130px;
  background: var(--grad-hero);
  border-radius: 60% 60% 50% 50% / 35% 35% 60% 60%;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: var(--shadow-md);
}
.shield::after {
  content: '✓';
  font-family: var(--font-display);
  font-size: 50px;
  color: var(--ink);
  font-weight: 700;
}

/* feature 5: terminal */
.f5-art {
  background: var(--ink);
  border-radius: var(--r-md);
  padding: 14px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--bg);
  line-height: 1.7;
}
.f5-art .term-line { display: flex; gap: 8px; }
.f5-art .prompt { color: #7CE0AE; }
.f5-art .ok { color: #B8F0D2; }
.f5-art .warn { color: #FFD9C2; }
.f5-art .dim { opacity: 0.5; }

/* Stats */
.stats {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-xl);
  padding: 60px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--grad-hero);
  opacity: 0.25;
  filter: blur(60px);
  pointer-events: none;
}
.stat {
  position: relative;
  z-index: 1;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  line-height: 1;
}
.stat-label { font-size: 14px; opacity: 0.7; max-width: 22ch; }

@media (max-width: 880px) {
  .stats { grid-template-columns: repeat(2, 1fr); padding: 40px 28px; }
}

/* Testimonial */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: -40px;
  left: 32px;
  font-family: var(--font-display);
  font-size: 240px;
  color: var(--bg-alt);
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}
.t-quote {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.t-quote em {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.t-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}
.t-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-hero);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
}
.t-name { font-weight: 500; font-size: 14px; }
.t-role { font-size: 13px; color: var(--muted); }

.t-side {
  background: var(--bg-alt);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
}
.t-stat-num {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="dark"] .t-stat-num { filter: brightness(1.3); }
.t-stat-label { font-size: 13px; color: var(--ink-2); margin-top: 8px; max-width: 22ch; }

@media (max-width: 880px) {
  .testimonial { grid-template-columns: 1fr; padding: 40px 28px; gap: 32px; }
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1080px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pricing { grid-template-columns: 1fr; }
}
.plan { padding: 26px; }
.plan-price { font-size: 40px; }
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.plan.featured .plan-name,
.plan.featured .plan-price,
.plan.featured .plan-features li { color: inherit; }
.plan.featured .plan-features li { border-bottom-color: rgba(255,255,255,0.08); }
.plan.featured .plan-tag {
  background: var(--grad-hero);
  color: var(--ink);
}

.plan-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-alt);
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.plan-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.plan-tagline {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  min-height: 2.8em;
}
.plan.featured .plan-tagline { color: rgba(255,255,255,0.65); }
.plan-price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan-price .per {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.plan.featured .plan-price .per { color: rgba(255,255,255,0.6); }
.plan-features {
  list-style: none;
  margin: 28px 0;
  flex: 1;
}
.plan-features li {
  padding: 12px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.plan-features li:last-child { border-bottom: 0; }
.plan-features li {
  position: relative;
}
.plan-features li::before {
  content: '✓';
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--grad-hero);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.plan .btn {
  width: 100%;
  justify-content: center;
}
.plan.featured .btn-primary {
  background: var(--bg);
  color: var(--ink);
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--ink);
}
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.3s ease;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ink);
  border-radius: 1px;
}
.faq-icon::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 2px; height: 12px; transform: translate(-50%, -50%); transition: transform 0.3s ease; }
.faq-item.open .faq-icon { background: var(--grad-hero); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.faq-item.open .faq-a { max-height: 240px; }
.faq-a-inner {
  padding: 0 0 24px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 60ch;
}

/* CTA */
.cta-final {
  background: var(--grad-hero);
  border-radius: var(--r-xl);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.3), transparent 50%);
  pointer-events: none;
}
.cta-final h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}
.cta-final p {
  position: relative;
  z-index: 1;
  font-size: 18px;
  color: var(--ink-2);
  margin-bottom: 32px;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-final .btn { position: relative; z-index: 1; }

/* Footer */
.footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-grid-slim {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-contact a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
}
.footer-contact a:hover { color: var(--ink); }
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.footer-legal-links .sep { color: var(--ink-2); opacity: 0.5; }
@media (max-width: 720px) {
  .footer-grid-slim { grid-template-columns: 1fr; }
}
.footer-brand { max-width: 30ch; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 16px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--ink-2); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
