/* =====================
   TOKENS
   ===================== */
:root {
  --green-50:  #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-900: #14532d;

  --white:     #ffffff;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-300:  #cbd5e1;
  --gray-400:  #94a3b8;
  --gray-500:  #64748b;
  --gray-700:  #334155;
  --gray-800:  #1e293b;
  --gray-900:  #0f172a;

  --dark-0:    #07100e;
  --dark-1:    #0d1a14;
  --dark-border:        rgba(255,255,255,0.08);
  --dark-border-strong: rgba(255,255,255,0.13);

  --bg:           var(--gray-50);
  --surface:      var(--white);
  --ink:          var(--gray-900);
  --ink-soft:     var(--gray-700);
  --muted:        var(--gray-500);
  --border:       var(--gray-200);
  --border-strong: var(--gray-300);
  --brand:        var(--green-600);
  --brand-bright: var(--green-500);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.11), 0 8px 20px rgba(0,0,0,0.05);
  --shadow-xl: 0 32px 80px rgba(0,0,0,0.15), 0 12px 30px rgba(0,0,0,0.07);

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --max:  1180px;
  --font: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =====================
   RESET
   ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
p   { margin-top: 0; }
h1, h2, h3 { margin-top: 0; font-weight: 800; }

h1 {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 14px;
}

h3 {
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--ink);
}

/* =====================
   UTILS
   ===================== */
.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-200%);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 700;
  font-size: 14px;
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* =====================
   PILL BADGES
   ===================== */
.pill-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.pill-badge--dark {
  border: 1px solid rgba(255,255,255,0.18);
  color: #a3f0b8;
  background: rgba(255,255,255,0.07);
}

.pill-badge--light {
  border: 1px solid var(--green-200);
  color: var(--green-700);
  background: var(--green-50);
}

/* =====================
   HEADER
   ===================== */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  width: min(var(--max), calc(100% - 32px));
  margin: 14px auto 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 0 10px 0 18px;
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.06), 0 1px 0 rgba(0,0,0,0.03);
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

.site-header.is-scrolled {
  border-color: var(--border-strong);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.legal-header {
  width: min(var(--max), calc(100% - 32px));
  min-height: 68px;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 14px auto 0;
  padding: 0 10px 0 18px;
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand img { width: 128px; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.nav-links a,
.link-button,
.nav-action {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  transition: color 140ms ease, background 140ms ease;
}

.nav-links a:hover,
.link-button:hover,
.nav-action:hover {
  color: var(--ink);
  background: var(--gray-100);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =====================
   BUTTONS
   ===================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-1px); }

.button-primary {
  color: var(--white);
  background: var(--brand);
  box-shadow: 0 3px 14px rgba(22,163,74,0.3), 0 1px 3px rgba(22,163,74,0.18);
}
.button-primary:hover {
  background: var(--green-700);
  box-shadow: 0 6px 22px rgba(22,163,74,0.4);
}

.button-ghost {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
}
.button-ghost:hover {
  border-color: rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.1);
}

.button-lg {
  height: 50px;
  padding: 0 26px;
  font-size: 15px;
  border-radius: var(--radius);
}

/* =====================
   DECORATIVE DOTS
   ===================== */
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-red   { background: #ff5f57; }
.dot-amber { background: #febc2e; }
.dot-green { background: #28c840; }

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  background: var(--dark-0);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 700px;
  background: radial-gradient(ellipse at center,
    rgba(22,163,74,0.16) 0%,
    rgba(22,163,74,0.05) 45%,
    transparent 70%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 110px 0 0;
}

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

.hero-lede {
  max-width: 600px;
  margin: 0 auto 32px;
  color: rgba(255,255,255,0.62);
  font-size: 18px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(680px, 100%);
  margin: 52px 0 0;
  border: 1px solid var(--dark-border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark-border-strong);
}

.hero-stats div {
  padding: 20px 14px;
  background: rgba(255,255,255,0.034);
  text-align: center;
}

.hero-stats dt {
  color: var(--white);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-stats dd {
  margin: 7px 0 0;
  color: rgba(255,255,255,0.46);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero visual — browser mockup */
.hero-visual {
  position: relative;
  width: min(1040px, 92%);
  margin-top: 52px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 160px;
  background: radial-gradient(ellipse at center,
    rgba(22,163,74,0.28) 0%,
    transparent 70%);
  filter: blur(24px);
  z-index: -1;
}

.hero-visual-frame {
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  box-shadow:
    0 -8px 60px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.04) inset;
}

.hero-visual-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  background: #111c17;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.hero-visual-url {
  margin-left: 10px;
  color: rgba(255,255,255,0.32);
  font-size: 12px;
  font-weight: 600;
  font-family: ui-monospace, monospace;
}

.hero-visual-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* =====================
   METHOD BAND
   ===================== */
.method-band {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.method-band-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  width: 100%;
}

.band-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0 24px;
}

.marquee-track {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%);
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%);
}

.marquee-content {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-content img {
  width: 82px;
  height: 50px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: var(--surface);
  object-fit: contain;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================
   SECTION COMMON
   ===================== */
.section {
  padding: 96px 0;
  scroll-margin-top: 112px;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px;
}

.section-header--split {
  text-align: left;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
  gap: 32px;
  align-items: end;
  margin-inline: 0;
}

.section-header p,
.workflow-header p,
.developer-copy p,
.pricing-card p,
.legal-article p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
  margin-bottom: 0;
}

/* =====================
   PRODUCT / BENTO
   ===================== */
.product-section {
  background: var(--bg);
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.bento-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bento-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.bento-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.bento-wide {
  grid-column: span 2;
}

.bento-img-wrap {
  overflow: hidden;
  background: var(--gray-100);
}

.bento-img-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  display: block;
  transition: transform 320ms ease;
}

.bento-card:hover .bento-img-wrap img {
  transform: scale(1.018);
}

.bento-card figcaption {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bento-card figcaption strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.bento-card figcaption span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* =====================
   GATEWAYS
   ===================== */
.gateway-section { background: var(--surface); }

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gateway-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  overflow: hidden;
  transition: box-shadow 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.gateway-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-bright) 100%);
}

.gateway-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.gateway-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.gateway-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid var(--green-200);
  background: var(--green-50);
  color: var(--green-700);
  font-size: 11px;
  font-weight: 800;
  margin-top: 1px;
}

.gateway-card h3 {
  font-size: 15px;
  margin-bottom: 0;
  flex: 1;
}

.gateway-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 18px;
}

.mini-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.mini-logos img {
  width: 100%;
  height: 44px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  object-fit: contain;
}

/* =====================
   WORKFLOW
   ===================== */
.workflow-section {
  background: var(--dark-0);
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}

.workflow-section h2,
.workflow-section h3 {
  color: var(--white);
}

.workflow-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 56px;
}

.workflow-header p {
  color: rgba(255,255,255,0.58);
  font-size: 17px;
  line-height: 1.72;
  margin-bottom: 0;
}

.workflow-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}

.workflow-step {
  padding: 26px 22px;
  border: 1px solid var(--dark-border-strong);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.038);
  transition: background 200ms ease, border-color 200ms ease;
}

.workflow-step:hover {
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.2);
}

.workflow-arrow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 36px;
  padding-top: 33px;
  color: rgba(255,255,255,0.22);
  font-size: 20px;
  font-weight: 300;
}

.workflow-arrow::before {
  content: "→";
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: rgba(34,197,94,0.13);
  border: 1px solid rgba(34,197,94,0.24);
  color: var(--brand-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.workflow-step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.workflow-step p {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  line-height: 1.62;
  margin-bottom: 0;
}

/* =====================
   DEVELOPER
   ===================== */
.developer-section { background: var(--bg); }

.developer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 52px;
  align-items: center;
}

.developer-copy h2 { color: var(--ink); }

.developer-copy code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.87em;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--gray-100);
  color: var(--green-700);
}

.module-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.module-chips span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

/* Code window */
.code-window {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: var(--shadow-xl);
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #16241d;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.code-window-label {
  margin-left: 8px;
  color: rgba(255,255,255,0.4);
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
}

.code-window pre {
  margin: 0;
  padding: 24px 26px;
  background: #07100e;
  color: #d4fde4;
  font: 600 13.5px/1.8 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-x: auto;
  white-space: pre;
}

.tok-key   { color: #93c5fd; }
.tok-colon { color: rgba(255,255,255,0.3); }
.tok-str   { color: #86efac; }
.tok-num   { color: #fbbf24; }
.tok-brace { color: rgba(255,255,255,0.45); }
.tok-punct { color: rgba(255,255,255,0.3); }

/* =====================
   PRICING
   ===================== */
.pricing-section {
  background: var(--dark-0);
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}

.pricing-wrap {
  display: flex;
  justify-content: center;
}

.pricing-card {
  width: min(580px, 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 52px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: center;
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  margin-bottom: 20px;
  border-radius: 100px;
  border: 1px solid rgba(34,197,94,0.28);
  background: rgba(34,197,94,0.1);
  color: var(--brand-bright);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.pricing-card h2 {
  color: var(--white);
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 12px;
}

.pricing-card p {
  font-size: 16px;
  color: rgba(255,255,255,0.58);
  margin-bottom: 30px;
}

.pricing-features {
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  font-weight: 600;
}

.pricing-features li::before {
  content: "";
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background-color: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.26);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8l2.5 2.5L12 5.5' stroke='%2322c55e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: #030a07;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 112px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand img {
  width: 118px;
  filter: brightness(0) invert(1);
  opacity: 0.55;
}

.footer-brand p {
  margin: 0;
  color: rgba(255,255,255,0.32);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 2px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.46);
  font-size: 14px;
  font-weight: 700;
  transition: color 140ms ease, background 140ms ease;
}

.footer-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.footer-copy {
  margin: 0;
  color: rgba(255,255,255,0.28);
  font-size: 13px;
  white-space: nowrap;
}

/* =====================
   LEGAL PAGES
   ===================== */
.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--green-700);
}

.eyebrow.dark { color: rgba(255,255,255,0.5); }

.legal-main { padding: 56px 0 80px; }

.legal-article {
  max-width: 860px;
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.legal-article h1 {
  max-width: 700px;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.04;
  margin-bottom: 8px;
}

.legal-article h2 {
  font-size: 20px;
  margin: 30px 0 8px;
}

.legal-article a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-updated {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

/* =====================
   REVEAL ANIMATION
   ===================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 480ms ease, transform 480ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   FOCUS
   ===================== */
:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =====================
   RESPONSIVE — 1040px
   ===================== */
@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
  }
  .nav-links { display: none; }

  .section-header--split {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gateway-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-steps {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .workflow-arrow { display: none; }

  .developer-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* =====================
   RESPONSIVE — 700px
   ===================== */
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }

  .site-header,
  .legal-header {
    width: calc(100% - 20px);
    min-height: 60px;
    gap: 8px;
    margin-top: 10px;
    padding: 0 10px 0 14px;
    border-radius: 10px;
  }

  .site-header { top: 10px; }
  .brand img   { width: 110px; }

  .header-actions .link-button { display: none; }

  .button    { height: 40px; padding: 0 16px; }
  .button-lg { height: 46px; padding: 0 22px; font-size: 14px; }

  .hero-inner { padding: 80px 0 0; }
  .hero-lede  { font-size: 16px; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual { width: 100%; }

  .section { padding: 60px 0; }

  .section-header { margin-bottom: 36px; }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }

  .gateway-grid { grid-template-columns: 1fr; }

  .workflow-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pricing-card { padding: 28px 24px; }
  .pricing-features { grid-template-columns: 1fr; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 0;
    min-height: unset;
  }

  .footer-copy { white-space: normal; }

  .legal-article { padding: 24px; }
}

/* =====================
   REDUCED MOTION
   ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-content { animation: none; }
}
