/* Public landing page. Built on the MailSetu tokens in main.css so light and dark themes stay consistent.
   Motion is decorative only: every animation is disabled under prefers-reduced-motion, and content
   is visible without JavaScript (reveal effects start only once home.js marks the page as ready). */

:root {
  --code-bg: #0b1020;
  --code-text: #d7def0;
  --code-muted: #7d89a6;
  --code-green: #6ee7b7;
  --code-violet: #c4b5fd;
  --code-amber: #fcd34d;
  --glow: rgba(67, 56, 202, 0.18);
}
:root[data-theme="dark"] { --glow: rgba(139, 140, 247, 0.22); }

body.home {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow-x: hidden;
}

.home-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-5);
  box-sizing: border-box;
}

/* Header */
.home-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.home-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.home-links {
  display: flex;
  gap: 4px;
}
.home-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color .2s ease, background-color .2s ease;
}
.home-links a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.home-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.home-nav .btn,
.home-nav .icon-btn { cursor: pointer; }

main#home-main {
  flex: 1;
  /* clips the decorative hero glow, which is wider than the viewport */
  overflow-x: clip;
}

/* Hero */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 56px;
  position: relative;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: -120px -20% auto;
  height: 520px;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
  z-index: -1;
}
.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 var(--ok);
  animation: pulse 2s ease-out infinite;
}
.home-title {
  text-wrap: balance;
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.07;
  letter-spacing: -0.03em;
  font-weight: 750;
}
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, #7c3aed 55%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
:root[data-theme="dark"] .grad {
  background-image: linear-gradient(100deg, #a5b4fc 0%, #c4b5fd 55%, #7dd3fc 100%);
}
.home-lead {
  margin: 0 0 28px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 540px;
}
.home-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.home-actions .btn svg,
.home-hero .btn svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
  transition: transform .25s ease;
}
.home-actions .btn:hover svg { transform: translateX(3px); }
.hero-points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14.5px;
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 16px; height: 16px; color: var(--ok); flex-shrink: 0; }

/* Hero visual: flow + code window */
.hero-visual {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.flow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.flow-node {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  padding: 10px 8px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.flow-node .icon { width: 20px; height: 20px; color: var(--muted); }
.flow-node.is-brand { background: var(--accent); color: var(--accent-ink); }
.flow-node.is-brand .icon { color: var(--accent-ink); }
.flow-line {
  position: relative;
  flex: 1 1 auto;
  height: 2px;
  min-width: 16px;
  background: linear-gradient(90deg, var(--border-strong), var(--border-strong));
  border-radius: 2px;
  overflow: hidden;
}
.flow-dot {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: travel 2.4s ease-in-out infinite;
}
.flow-dot.d2 { animation-delay: 1.2s; }

.code-window {
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: var(--radius-lg);
  border: 1px solid #1f2a44;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-width: 0;
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid #1f2a44;
  background: #0f1630;
}
.code-bar-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a3658;
}
.code-bar em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--code-muted);
}
.code-body {
  margin: 0;
  padding: 18px 18px 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
  color: var(--code-text);
  background: transparent;
}
.code-body code { font-family: inherit; }
.code-window .tk-l1,
.code-window .tk-l2,
.code-window .tk-l3,
.code-window .tk-l4,
.code-window .tk-l5 {
  display: block;
  opacity: 0;
  transform: translateY(4px);
  animation: line-in .5s ease forwards;
}
.code-window .tk-l2 { animation-delay: .35s; }
.code-window .tk-l3 { animation-delay: .7s; }
.code-window .tk-l4 { animation-delay: 1.5s; }
.code-window .tk-l5 { animation-delay: 1.85s; }
.code-window .tk-out { color: var(--code-green); }
.code-window .tk-l1 { color: var(--code-text); }

/* Limits strip */
.limits {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.limits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-top: 8px;
  padding-bottom: 8px;
}
.limit {
  padding: 22px 18px;
  display: grid;
  gap: 4px;
}
.limit + .limit { border-left: 1px solid var(--border); }
.limit strong {
  font-size: 1.6rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
}
.limit span { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* Section headings */
.section-kicker {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.home-section-title {
  text-wrap: balance;
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Features */
.home-features,
.home-steps-wrap {
  padding-top: 88px;
  padding-bottom: 72px;
}
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.home-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.home-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.home-card h3 {
  margin: 14px 0 8px;
  font-size: 1.05rem;
}
.home-card p {
  margin: 0;
  line-height: 1.55;
}
.home-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
}
.home-icon .icon { width: 21px; height: 21px; }

/* API section */
.api-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
  padding-bottom: 88px;
}
.api-intro p.muted { line-height: 1.65; }
.api-intro .home-section-title { margin-bottom: 14px; }
.api-notes {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
  font-size: 14.5px;
  color: var(--muted);
}
.api-notes li { display: flex; gap: 10px; align-items: flex-start; }
.api-notes .icon { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.api-notes code,
.api-intro code,
.home-steps code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text);
}

.code-panel {
  background: var(--code-bg);
  border: 1px solid #1f2a44;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-width: 0;
}
.tablist {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 8px 0;
  background: #0f1630;
  border-bottom: 1px solid #1f2a44;
  overflow-x: auto;
}
.tab {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--code-muted);
  font: 600 13px var(--font);
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
  white-space: nowrap;
}
.tab:hover { color: var(--code-text); }
.tab[aria-selected="true"] {
  background: var(--code-bg);
  color: var(--code-text);
  box-shadow: inset 0 2px 0 var(--accent);
}
.copy-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin-bottom: 4px;
  padding: 0 12px;
  border: 1px solid #2a3658;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--code-text);
  font: 600 12.5px var(--font);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.copy-btn:hover { background: #17203b; border-color: #3a4a74; }
.copy-btn .icon { width: 15px; height: 15px; }
.copy-btn.is-copied { color: var(--code-green); border-color: #2f6b55; }
.code-panel .tabpanel .code-body { padding: 20px 20px 22px; font-size: 13.5px; }
.code-panel .tabpanel[hidden] { display: none; }

/* Steps */
.home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  position: relative;
}
.step {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.step h3 { margin: 2px 0 6px; font-size: 1.02rem; }
.step p { margin: 0; line-height: 1.55; }
.step-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 15px;
}
.home-note {
  margin: 20px 0 0;
  font-size: 0.92rem;
  max-width: 720px;
}

/* CTA band */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 88px;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
}
.cta-band h2 {
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  letter-spacing: -0.02em;
}
.cta-band p { margin: 0; }

/* Footer */
.home-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.home-foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.home-foot-links { display: flex; gap: 16px; }
.home-foot-links a { color: inherit; }

/* Scroll reveal: only when home.js has set .js-ready, so content is never hidden without JavaScript */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.js-ready .reveal.is-in {
  opacity: 1;
  transform: none;
}
.js-ready .reveal.home-card.is-in:hover { transform: translateY(-3px); }

/* Motion keyframes */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@keyframes travel {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}
@keyframes line-in {
  to { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .home-hero,
  .api-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .home-hero { padding-top: 40px; }
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .limits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .limit:nth-child(3) { border-left: 0; }
  .limit:nth-child(n+3) { border-top: 1px solid var(--border); }
  .home-steps { grid-template-columns: 1fr; }
  .home-links { display: none; }
}

@media (max-width: 600px) {
  .home-wrap { padding-left: var(--space-4); padding-right: var(--space-4); }
  .home-grid { grid-template-columns: 1fr; }
  .home-actions .btn { flex: 1 1 100%; justify-content: center; min-height: 44px; }
  .home-bar { gap: 8px; }
  /* Sign in is in the hero on small screens, so the header keeps one row */
  .home-nav .btn-ghost { display: none; }
  .home-nav .btn-sm { min-height: 40px; }
  .code-body { font-size: 12px; padding: 14px; }
  .btn-lg { min-height: 48px; }
  .flow-node { min-width: 60px; font-size: 11px; padding: 8px 6px; }
  .flow-line { min-width: 8px; }
  .limits-grid { grid-template-columns: 1fr; }
  .limit + .limit { border-left: 0; border-top: 1px solid var(--border); }
  .limit:nth-child(n+2) { border-top: 1px solid var(--border); }
  .cta-band { padding: 26px; }
  .home-features, .home-steps-wrap { padding-top: 64px; padding-bottom: 56px; }
  .copy-btn span { display: none; }
  .tab { padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .code-window .tk-l1,
  .code-window .tk-l2,
  .code-window .tk-l3,
  .code-window .tk-l4,
  .code-window .tk-l5 { opacity: 1; transform: none; }
  .js-ready .reveal { opacity: 1; transform: none; }
  .home-card:hover { transform: none; }
}

/* Home polish & copyright footer */
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--border-strong) 55%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 80%);
  pointer-events: none;
  z-index: -2;
}
.home-card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.home-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: var(--shadow-lg); }
.home-foot-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.home-foot-brand strong { color: var(--text); }
@media (max-width: 600px) {
  .home-foot-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .home-foot-links { flex-wrap: wrap; gap: 12px 16px; }
}


/* ===== Hero Live Code Switcher & Feature Card Polish ===== */
.code-window {
  background: #141724;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.35), 0 0 0 1px rgba(99, 102, 241, 0.12);
}
.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  background: #1b1f31;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  padding: 10px 14px;
}
.code-bar-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.code-bar-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
}
.code-bar-dots span:nth-child(1) { background: #f87171; }
.code-bar-dots span:nth-child(2) { background: #fbbf24; }
.code-bar-dots span:nth-child(3) { background: #34d399; }
.hero-code-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.55);
  padding: 3px;
  border-radius: 8px;
}
.hero-code-tab {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.hero-code-tab[aria-selected="true"] {
  background: #4338ca;
  color: #ffffff;
}
.hero-copy-btn {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.hero-copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.home-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}
.home-card .home-badge {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}


/* ===== UI/UX Pro Max Home Polish ===== */
.home-hero {
  background-image:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--border-strong) 45%, transparent) 1px, transparent 0);
  background-size: 28px 28px;
}
.flow {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.flow-node {
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.flow-node:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}
.provider-list li {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.provider-list li:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  color: var(--text);
  transform: translateY(-1px);
}
.feature {
  position: relative;
  border-radius: var(--radius-lg);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}
.feature-new {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, var(--surface)) 0%, var(--surface) 100%);
}
.feature-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.feature-icon {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface-2)), var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
}
.step {
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.step:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}
.cta-band {
  background:
    radial-gradient(600px circle at 15% 50%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  box-shadow: var(--shadow-lg);
}


/* ===== Complete Layout Rules for Updated home.html Classes ===== */
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 56px;
}
.home-menu-btn { display: none; }
.home-menu-btn[aria-expanded="false"] .menu-icon-close { display: none; }
.home-menu-btn[aria-expanded="true"] .menu-icon-open { display: none; }
.home-menu {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 14px 0 18px;
}
.home-menu[hidden] { display: none; }
.home-menu-inner {
  display: grid;
  gap: 10px;
}
.home-menu-inner a:not(.btn) {
  padding: 8px 4px;
  color: var(--text);
  font-weight: 500;
}

/* Providers strip */
.providers {
  padding-top: 24px;
  padding-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.providers-label {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}
.provider-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Sections & Feature Grid */
.home-section {
  padding-top: 72px;
  padding-bottom: 72px;
}
.section-head {
  margin-bottom: 28px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature {
  position: relative;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 10px;
  align-content: start;
}
.feature-new {
  padding-top: 28px;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  color: var(--accent);
}
.feature-icon .icon { width: 20px; height: 20px; }
.feature h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
  line-height: 1.3;
  padding-right: 54px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.feature code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text);
}

/* Code Panel Header */
.code-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px 0 8px;
  background: #0f1630;
  border-bottom: 1px solid #1f2a44;
}
.code-panel-head .tablist {
  border-bottom: 0;
  padding: 0;
  background: transparent;
}
.api-lead {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.step {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 10px;
  align-content: start;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 750;
  font-size: 14px;
}
.step h3 { margin: 2px 0 0; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.step code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text);
}
.home-note {
  margin: 20px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* CTA Band */
.cta-band {
  margin-bottom: 64px;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.cta-copy h2 { margin: 0 0 6px; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.cta-copy p { margin: 0; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 960px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .home-links,
  .home-cta-desktop { display: none; }
  .home-menu-btn { display: inline-flex; }
  .feature-grid { grid-template-columns: 1fr; }
  .home-section { padding-top: 48px; padding-bottom: 48px; }
  .cta-band { padding: 24px 20px; margin-bottom: 40px; }
}
