/* ============================================================
   Mail Engine — marketing site
   Dark aurora design system · fluid from 320px to 4K
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

:root {
  --bg: #06060b;
  --bg-soft: #090911;
  --bg-panel: #0d0d19;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4fb;
  --muted: #a7a7c2;
  --muted-dim: #7b7b96;
  --accent: #8b5cf6;
  --accent-bright: #a78bfa;
  --accent-blue: #3b82f6;
  --accent-cyan: #38bdf8;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --gradient: linear-gradient(100deg, #d8ccff 0%, #a78bfa 42%, #38bdf8 100%);
  --gradient-btn: linear-gradient(135deg, #7c3aed 0%, #4f46e5 55%, #2563eb 100%);
  --radius-xs: 8px;
  --radius-sm: 11px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.8);
  --shadow-accent: 0 18px 50px -16px rgba(124, 58, 237, 0.55);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --container: 1180px;
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 26px);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.is-menu-open { overflow: hidden; }

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

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

ul, ol { list-style: none; }

code, pre { font-family: var(--font-mono); }

::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------
   Layout primitives
   ------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 14px; }

.inline-code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: #c4b5fd;
  font-size: 0.88em;
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(6, 6, 11, 0.8);
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-mark { filter: drop-shadow(0 4px 14px rgba(139, 92, 246, 0.45)); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  margin-inline: auto;
  font-size: 0.9rem;
  min-width: 0;
}
.nav-links a {
  position: relative;
  color: var(--muted);
  padding-block: 4px;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--text); }

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

.gh-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.gh-link:hover { color: var(--text); }
.gh-stars {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.5;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  flex: none;
}
.nav-toggle span {
  display: block;
  height: 1.8px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 16, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu:not([hidden]) { display: block; }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-block: 12px 22px;
}
.mobile-menu a:not(.btn) {
  padding: 13px 4px;
  font-size: 1rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-menu a:not(.btn):hover { color: var(--text); padding-left: 8px; }
.mobile-menu .btn { margin-top: 16px; justify-content: center; width: 100%; }

/* ------------------------------------------------------------
   Buttons & badges
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  min-height: 46px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: translateY(1px) scale(0.995); }

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: var(--shadow-accent);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.btn-primary:hover {
  box-shadow: 0 22px 60px -14px rgba(124, 58, 237, 0.75);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
}

.btn-sm { padding: 9px 17px; min-height: 38px; font-size: 0.86rem; border-radius: 9px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-bright);
  font-weight: 500;
  font-size: 0.94rem;
  transition: gap 0.2s ease, color 0.2s ease;
}
.text-link:hover { gap: 10px; color: #c4b5fd; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

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

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 84px));
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  z-index: -2;
  top: -360px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 160vw);
  height: 860px;
  background:
    radial-gradient(ellipse 42% 48% at 34% 42%, rgba(124, 58, 237, 0.36), transparent 70%),
    radial-gradient(ellipse 38% 44% at 70% 32%, rgba(37, 99, 235, 0.26), transparent 70%),
    radial-gradient(ellipse 30% 30% at 55% 68%, rgba(56, 189, 248, 0.13), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 62% at 50% 26%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 26%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(48px, 6vw, 76px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 22px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.08);
  color: #cfc6ff;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pulse-dot {
  position: relative;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  line-height: 1.05;
  margin-bottom: 22px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 560px;
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 26px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Hero mail preview */

.hero-visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 440px;
}

.mail-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(165deg, #12121f 0%, #0b0b15 55%, #0a0a12 100%);
  box-shadow: var(--shadow), 0 0 90px -30px rgba(124, 58, 237, 0.45);
  overflow: hidden;
  transform: rotate(-1.2deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-visual:hover .mail-card { transform: rotate(0deg) translateY(-4px); }

.mail-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
}
.chrome-dot, .flow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
.chrome-dot.red, .flow-dot.red { background: rgba(248, 113, 113, 0.7); }
.chrome-dot.amber, .flow-dot.amber { background: rgba(251, 191, 36, 0.7); }
.chrome-dot.green, .flow-dot.green { background: rgba(52, 211, 153, 0.7); }
.chrome-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted-dim);
  letter-spacing: 0.02em;
}

.mail-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mail-avatar {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gradient-btn);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}
.mail-meta { min-width: 0; }
.mail-from {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mail-from span { color: var(--muted-dim); font-weight: 400; }
.mail-subject {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mail-time {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--muted-dim);
  flex: none;
}

.mail-body {
  padding: 24px 24px 26px;
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(139, 92, 246, 0.09), transparent 60%),
    #0c0c16;
}

.mail-brandbar {
  width: 34px;
  height: 4px;
  border-radius: 99px;
  background: var(--gradient);
  margin-bottom: 18px;
}

.mail-h {
  font-size: 1.24rem;
  margin-bottom: 9px;
  letter-spacing: -0.02em;
}
.mail-p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.otp {
  display: flex;
  gap: 7px;
  margin-bottom: 10px;
}
.otp span {
  flex: 1;
  display: grid;
  place-items: center;
  height: 46px;
  border-radius: 9px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background: rgba(139, 92, 246, 0.1);
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2.6vw, 1.18rem);
  font-weight: 700;
  color: #ddd6fe;
}

.mail-note {
  font-size: 0.71rem;
  color: var(--muted-dim);
  margin-bottom: 18px;
}

.mail-btn {
  display: block;
  width: fit-content;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--gradient-btn);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 10px 26px -10px rgba(124, 58, 237, 0.8);
}

.mail-foot {
  padding: 13px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.66rem;
  color: var(--muted-dim);
  text-align: center;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(14, 14, 24, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.76rem;
  color: var(--muted);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.85);
  animation: float 6s ease-in-out infinite;
  white-space: nowrap;
}
.float-chip strong { color: var(--text); font-weight: 600; }
.float-chip svg { color: var(--green); flex: none; }

.chip-status { top: 72px; right: -22px; }
.chip-provider { bottom: 72px; left: -26px; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.provider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
  flex: none;
}

/* Provider strip */

.provider-strip {
  padding-block: 28px 44px;
  border-top: 1px solid var(--border);
}
.provider-label {
  text-align: center;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 18px;
}
.provider-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}
.provider-list li {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.provider-list li:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

/* ------------------------------------------------------------
   Sections & shared
   ------------------------------------------------------------ */

.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 108px);
}
.section-alt {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(139, 92, 246, 0.06), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 4.5vw, 56px);
  text-align: center;
}
.section-head-left {
  margin: 0 0 36px;
  text-align: left;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.section-tag > span {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding-inline: 6px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.1);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  margin-bottom: 16px;
}

.section-sub {
  font-size: clamp(0.96rem, 1.2vw, 1.04rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 640px;
}
.section-head:not(.section-head-left) .section-sub { margin-inline: auto; }

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   Features
   ------------------------------------------------------------ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  padding: 28px 26px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.feature-card:hover {
  border-color: rgba(167, 139, 250, 0.34);
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.075), rgba(255, 255, 255, 0.02));
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(167, 139, 250, 0.26);
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.11);
  color: var(--accent-bright);
}
.feature-icon svg { width: 21px; height: 21px; }

.feature-card h3 {
  font-size: 1.06rem;
  margin-bottom: 9px;
  letter-spacing: -0.015em;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.step {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.step:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.step-num {
  display: inline-block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { font-size: 0.89rem; color: var(--muted); line-height: 1.65; }

.flow-panel {
  max-width: 900px;
  margin-inline: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #08080f;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.flow-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}
.flow-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted-dim);
}
.flow-body { padding: 10px 0; }
.flow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.flow-row:last-child { border-bottom: 0; }
.flow-row-final { background: rgba(52, 211, 153, 0.045); }
.flow-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted-dim);
  flex: none;
}
.flow-node { color: var(--text); font-weight: 500; }
.flow-arrow { color: var(--muted-dim); margin-left: auto; }
.flow-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  text-align: right;
  min-width: 210px;
}
.flow-ok { color: var(--green); }

/* ------------------------------------------------------------
   Stats
   ------------------------------------------------------------ */

.stats-band {
  border-block: 1px solid var(--border);
  background:
    radial-gradient(ellipse 50% 120% at 50% 50%, rgba(139, 92, 246, 0.1), transparent 70%),
    var(--bg);
  padding-block: clamp(30px, 4vw, 42px);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  border-right: 1px solid var(--border);
  padding-inline: 8px;
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }

/* ------------------------------------------------------------
   Quick start
   ------------------------------------------------------------ */

.qs-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
  counter-reset: qs;
}
.qs-step {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 20px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.22s ease, background 0.22s ease;
}
.qs-step:hover { border-color: rgba(167, 139, 250, 0.3); background: var(--surface-hover); }
.qs-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.32);
  background: rgba(139, 92, 246, 0.12);
  color: #cfc6ff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
}
.qs-step h3 { font-size: 0.95rem; margin-bottom: 5px; }
.qs-step p { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }
.qs-step code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8em;
  color: #c4b5fd;
}

.qs-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.terminal {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #08080f;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}
.terminal-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}
.terminal-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.terminal-head .copy-btn { margin-left: auto; }
.terminal-body {
  padding: 20px 20px;
  font-size: 0.8rem;
  line-height: 1.75;
  color: #d5dbe8;
  overflow-x: auto;
  max-height: 430px;
  overflow-y: auto;
}
.terminal-body code { white-space: pre; }
.t-comment { color: #6b7280; }
.t-str { color: #86efac; }

.copy-btn {
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s ease, border-color 0.2s ease;
  flex: none;
  white-space: nowrap;
}
.copy-btn:hover { color: var(--text); border-color: var(--border-strong); }
.copy-btn.is-copied { color: var(--green); border-color: rgba(52, 211, 153, 0.4); }

.env-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 0;
}
.env-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.env-card-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, 0.26);
  background: rgba(139, 92, 246, 0.11);
  color: var(--accent-bright);
}
.env-card-icon svg { width: 18px; height: 18px; }
.env-card-head h3 { font-size: 0.96rem; margin-bottom: 3px; }
.env-card-head p { font-size: 0.78rem; color: var(--muted-dim); line-height: 1.5; }

.env-table-wrap { overflow-x: auto; margin-block: 4px 16px; }
.env-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.77rem;
  min-width: 100%;
}
.env-table th {
  text-align: left;
  padding: 8px 0;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dim);
  border-bottom: 1px solid var(--border);
}
.env-table th:last-child, .env-table td:last-child { text-align: right; }
.env-table td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  vertical-align: middle;
}
.env-table tr:last-child td { border-bottom: 0; }
.env-table code { font-size: 0.72rem; color: #c9c9e4; white-space: nowrap; }
.pill-req, .pill-opt {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 600;
  white-space: nowrap;
}
.pill-req { background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.24); color: #6ee7b7; }
.pill-opt { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--muted-dim); }

/* GitHub repo card */

.repo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 26px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 80% 140% at 8% 0%, rgba(139, 92, 246, 0.12), transparent 60%),
    var(--bg-panel);
  box-shadow: var(--shadow);
}
.repo-main { min-width: 0; }
.repo-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 9px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.repo-title svg { color: var(--muted); flex: none; }
.repo-title a { transition: color 0.2s ease; }
.repo-title a:hover { color: var(--accent-bright); }
.repo-visibility {
  padding: 1px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted-dim);
}
.repo-desc {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: 14px;
}
.repo-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 0.78rem;
  color: var(--muted-dim);
}
.repo-meta li { display: inline-flex; align-items: center; gap: 7px; }
.repo-lang {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3178c6;
  box-shadow: 0 0 8px rgba(49, 120, 198, 0.7);
}
.repo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  font-size: 0.8rem;
}
.repo-links a { color: var(--muted); transition: color 0.2s ease; }
.repo-links a:hover { color: var(--text); }
.repo-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: none;
}
.repo-actions .btn { white-space: nowrap; }

/* ------------------------------------------------------------
   Templates
   ------------------------------------------------------------ */

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr));
  gap: 16px;
}

.template-card {
  position: relative;
  padding: 22px 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}
.template-card:hover {
  border-color: rgba(167, 139, 250, 0.35);
  background: var(--surface-hover);
  transform: translateY(-3px);
}
.template-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.2);
  color: #c4b5fd;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.template-card h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.template-card p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.template-card code {
  font-size: 0.72rem;
  color: var(--muted-dim);
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.template-note {
  margin-top: 26px;
  padding: 16px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.9;
}
.template-note strong { color: var(--text); font-weight: 600; }
.template-note code {
  padding: 2px 6px;
  margin: 0 2px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.76rem;
  color: #c4b5fd;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   API / code
   ------------------------------------------------------------ */

.code-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.code-panel {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #08080f;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 0;
}
.code-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 8px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  overflow-x: auto;
  scrollbar-width: none;
}
.code-tabs::-webkit-scrollbar { display: none; }
.code-tab {
  flex: none;
  padding: 9px 14px;
  border-radius: 8px 8px 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted-dim);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.code-tab:hover { color: var(--muted); background: rgba(255, 255, 255, 0.03); }
.code-tab.is-active {
  color: var(--text);
  background: rgba(139, 92, 246, 0.1);
  border-bottom-color: var(--accent);
}
.code-tabs .copy-btn { margin-left: auto; margin-bottom: 3px; }

.code-body { min-height: 352px; }
.code-pane pre {
  padding: 22px;
  overflow-x: auto;
  font-size: 0.79rem;
  line-height: 1.75;
  color: #cbd5e1;
  tab-size: 2;
}
.code-pane pre code { white-space: pre; }

.response-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  min-width: 0;
}
.response-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
}
.status-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
}
.response-title { font-size: 0.78rem; color: var(--muted-dim); }
.response-body {
  padding: 18px;
  font-size: 0.74rem;
  line-height: 1.8;
  color: #a7f3d0;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}
.response-body code { white-space: pre; }

.endpoints { padding: 16px 18px 19px; }
.endpoints h3 {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 11px;
  font-family: var(--font-body);
  font-weight: 600;
}
.endpoints ul { display: flex; flex-direction: column; gap: 8px; }
.endpoints li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.75rem;
  min-width: 0;
}
.endpoints code {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.method {
  flex: none;
  width: 38px;
  text-align: center;
  padding: 2px 0;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.method.get { color: #7dd3fc; background: rgba(56, 189, 248, 0.1); }
.method.post { color: #c4b5fd; background: rgba(139, 92, 246, 0.14); }

/* ------------------------------------------------------------
   Security
   ------------------------------------------------------------ */

.security-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
.security-copy h2 { margin-bottom: 14px; }
.security-copy .section-sub { margin-bottom: 28px; }

.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}
.check-list svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  box-sizing: content-box;
}

.security-card {
  padding: 22px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 100% 70% at 50% -20%, rgba(139, 92, 246, 0.14), transparent 70%),
    var(--bg-panel);
  box-shadow: var(--shadow);
}
.security-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.shield {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.28);
  color: var(--accent-bright);
  flex: none;
}
.shield svg { width: 20px; height: 20px; }
.security-card-top p {
  font-size: 0.86rem;
  font-weight: 600;
  font-family: var(--font-display);
}
.security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.81rem;
  color: var(--muted);
}
.badge-ok {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.22);
  color: #6ee7b7;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}
.security-foot {
  margin-top: 15px;
  font-size: 0.74rem;
  color: var(--muted-dim);
  line-height: 1.55;
}

/* ------------------------------------------------------------
   Docs
   ------------------------------------------------------------ */

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 15px;
}

.doc-card {
  position: relative;
  display: block;
  padding: 22px 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}
.doc-card:hover {
  border-color: rgba(167, 139, 250, 0.35);
  background: var(--surface-hover);
  transform: translateY(-3px);
}
.doc-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-bright);
}
.doc-icon svg { width: 18px; height: 18px; }
.doc-card h3 { font-size: 0.97rem; margin-bottom: 5px; }
.doc-card p { font-size: 0.83rem; color: var(--muted); line-height: 1.55; padding-right: 18px; }
.doc-arrow {
  position: absolute;
  right: 20px;
  bottom: 22px;
  color: var(--muted-dim);
  transition: transform 0.2s ease, color 0.2s ease;
}
.doc-card:hover .doc-arrow { transform: translateX(3px); color: var(--accent-bright); }

.docs-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.docs-foot p { font-size: 0.87rem; color: var(--muted); }
.docs-foot-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}
.faq-layout .section-head-left { position: sticky; top: calc(var(--header-h) + 24px); }

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

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq-item[open] { border-color: rgba(167, 139, 250, 0.28); background: rgba(139, 92, 246, 0.045); }
.faq-item:hover { border-color: var(--border-strong); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-bright); }

.faq-icon {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--muted);
  border-radius: 2px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.faq-icon::before { width: 12px; height: 1.6px; }
.faq-icon::after { width: 1.6px; height: 12px; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::before { background: var(--accent-bright); }

.faq-item p {
  padding: 0 20px 18px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

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

.cta-section { padding-block: clamp(60px, 8vw, 100px); }

.cta-panel {
  position: relative;
  padding: clamp(38px, 6vw, 64px) clamp(22px, 4vw, 40px);
  border: 1px solid rgba(167, 139, 250, 0.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 55% 100% at 50% 0%, rgba(139, 92, 246, 0.2), transparent 70%),
    linear-gradient(180deg, #10101d 0%, #0a0a13 100%);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-glow {
  position: absolute;
  z-index: -1;
  bottom: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 120vw);
  height: 460px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.22), transparent 65%);
  pointer-events: none;
}
.cta-panel h2 { margin-bottom: 14px; }
.cta-panel > p:not(.eyebrow):not(.cta-note) {
  max-width: 560px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
}
.cta-note {
  margin-top: 24px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted-dim);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding-top: clamp(44px, 6vw, 64px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  max-width: 320px;
  margin-top: 16px;
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.65;
}
.footer-mit {
  font-size: 0.78rem !important;
  color: var(--muted-dim) !important;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.footer-social a:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-hover); }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 6px;
}
.footer-col a {
  width: fit-content;
  font-size: 0.87rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  font-size: 0.79rem;
  color: var(--muted-dim);
}
.footer-bottom a { transition: color 0.2s ease; }
.footer-bottom a:hover { color: var(--text); }

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

@media (max-width: 1080px) {
  .nav-links { gap: 16px; font-size: 0.86rem; }
  .hero-inner { grid-template-columns: 1fr 0.95fr; gap: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .qs-steps { grid-template-columns: repeat(2, 1fr); }
  .qs-layout { grid-template-columns: 1fr; }
  .code-layout { grid-template-columns: 1fr; }
  .code-body { min-height: 0; }
  .security-layout { gap: 36px; }
  .faq-layout { gap: 36px; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .gh-link span:not(.gh-stars) { display: none; }
  .gh-link { gap: 0; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: clamp(40px, 7vw, 56px);
  }
  .hero-copy { max-width: 680px; }
  .hero-visual { justify-self: center; max-width: 460px; }

  .security-layout,
  .faq-layout { grid-template-columns: 1fr; }
  .faq-layout .section-head-left { position: static; }
  .security-copy { max-width: 720px; }

  .repo-card { flex-direction: column; align-items: flex-start; gap: 20px; }
  .repo-actions { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .repo-actions .btn { flex: 1; min-width: 150px; }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; }

  .steps { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
  .stat:nth-child(2) { border-right: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }

  .flow-node { font-size: 0.8rem; }
  .flow-code { min-width: 170px; font-size: 0.7rem; }

  .hero-badges { gap: 7px; }
  .badge { font-size: 0.72rem; padding: 4px 10px; }

  .docs-foot { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .container { padding-inline: 18px; }

  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero h1 { font-size: clamp(2.05rem, 9vw, 2.7rem); }
  .lede { font-size: 1rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }

  .hero-visual { max-width: 100%; }
  .mail-card { transform: none; }
  .float-chip { font-size: 0.68rem; padding: 7px 10px; gap: 6px; }
  .chip-status { top: auto; bottom: 16px; right: 6px; }
  .chip-provider { bottom: 62px; left: 6px; }
  .mail-body { padding: 20px 18px 22px; }
  .otp { gap: 5px; }
  .otp span { height: 42px; }

  .eyebrow { font-size: 0.66rem; padding: 5px 11px 5px 9px; letter-spacing: 0.01em; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 24px 20px 26px; }

  .qs-steps { grid-template-columns: 1fr; gap: 10px; }
  .qs-step { padding: 16px; }

  .terminal-body { font-size: 0.73rem; padding: 16px 14px; max-height: 340px; }
  .terminal-head { padding: 9px 10px 9px 12px; }
  .terminal-title { display: none; }
  .env-card { padding: 18px 16px; }

  .repo-card { padding: 20px 18px; }
  .repo-meta { gap: 7px 14px; font-size: 0.74rem; }
  .repo-actions { flex-direction: column; }
  .repo-actions .btn { width: 100%; }

  .template-grid { grid-template-columns: 1fr; }
  .template-note { text-align: left; font-size: 0.8rem; }
  .template-note code { display: inline-block; margin: 2px 1px; }

  .code-layout { gap: 14px; }
  .code-pane pre { padding: 16px 14px; font-size: 0.72rem; }
  .code-tab { padding: 8px 11px; font-size: 0.74rem; }
  .response-body { padding: 16px 14px; font-size: 0.71rem; }
  .endpoints { padding: 14px 16px 17px; }

  .flow-row { flex-wrap: wrap; gap: 4px 10px; padding: 10px 16px; }
  .flow-arrow { display: none; }
  .flow-code { min-width: 0; width: 100%; text-align: left; }

  .stats-inner { gap: 22px 12px; }
  .stat { border-right: 0; padding-inline: 0; }
  .stat-num { font-size: 1.7rem; }
  .stat-label { font-size: 0.72rem; }

  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }

  .footer-grid { gap: 28px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  .section-head { margin-bottom: 32px; }
  .section-head-left { margin-bottom: 28px; }
  .faq-layout { gap: 28px; }
}

@media (max-width: 420px) {
  .container { padding-inline: 15px; }
  .header-actions .btn { display: none; }
  .header-inner { gap: 10px; }
  .hero h1 { font-size: clamp(1.85rem, 8.8vw, 2.3rem); }
  .gh-stars { display: none; }
  .badge { font-size: 0.68rem; }
  .mail-chrome { padding: 11px 14px; }
  .mail-head { padding: 14px 14px 12px; }
  .mail-body { padding: 18px 14px 20px; }
  .mail-foot { font-size: 0.6rem; padding: 11px 14px; }
  .chip-status { display: none; }
  .section-tag { font-size: 0.68rem; letter-spacing: 0.1em; }
  .docs-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-brand { grid-column: auto; }
  .repo-links { gap: 12px; font-size: 0.76rem; }
  .code-tabs { padding-inline: 6px; }
  .docs-foot-actions { width: 100%; }
  .docs-foot-actions .btn { flex: 1; }
}

/* Landscape phones: keep the hero from feeling cramped */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding-top: calc(var(--header-h) + 32px); }
  .mail-body { padding: 16px; }
  .mobile-menu { max-height: calc(100vh - var(--header-h)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .mobile-menu, .float-chip, .copy-btn, .cta-section, .site-footer { display: none !important; }
  body { background: #fff; color: #111; }
  .section { padding-block: 20px; break-inside: avoid; }
}
