:root {
  --bg: #08080c;
  --bg-elevated: #101016;
  --bg-card: #131319;
  --bg-card-hover: #17171f;
  --border: #202028;
  --border-light: #2a2a35;

  --text: #d6d6de;
  --text-dim: #8a8a97;
  --text-bright: #f5f5f7;

  --accent: #7c6df2;
  --accent-2: #22d3ee;
  --accent-soft: rgba(124, 109, 242, 0.12);

  --string: #7ee3b5;
  --comment: #6a7280;

  --warn: #f2b84b;
  --warn-bg: rgba(242, 184, 75, 0.08);
  --warn-border: rgba(242, 184, 75, 0.35);

  --ok: #22d3ee;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;

  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--bg);
  min-height: 100%;
}

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

::selection {
  background: rgba(124, 109, 242, 0.35);
}

a {
  color: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  color: var(--accent-2);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  max-width: 1360px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.icon-win {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.btn-lg .icon-win {
  width: 16px;
  height: 16px;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5b4fd6);
  color: #ffffff;
  box-shadow: none;
}
.btn-primary:hover {
  box-shadow: 0 10px 28px -6px rgba(124, 109, 242, 0.7);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text-bright);
}
.btn-lg {
  padding: 13px 24px;
  font-size: 15px;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 13.5px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 8, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.brand-name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-bright);
  letter-spacing: -0.01em;
}
.brand-accent {
  color: var(--accent-2);
}
.nav-links {
  display: flex;
  gap: 22px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-links a:hover {
  color: var(--text-bright);
}
.nav-links a.active {
  color: var(--text-bright);
}
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 100px;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(124, 109, 242, 0.28), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(124, 109, 242, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}
.hero-copy h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-bright);
  margin: 0 0 20px;
  font-weight: 800;
}
.text-gradient {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 0 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-meta {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  gap: 8px;
}
.hero-meta .sep {
  color: var(--border-light);
}

/* Code window (hero + cta) */
.code-window {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.code-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.code-window-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot.red { background: #ef5a5a; }
.dot.yellow { background: #e8b339; }
.dot.green { background: #4fce7a; }
.code-window-title {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}
.terminal-tabs-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  overflow-x: auto;
}
.terminal-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.terminal-tab.is-active {
  color: var(--text-bright);
  background: var(--bg-card);
}
.tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tab-dot.dot-violet { background: var(--accent); }
.tab-dot.dot-cyan { background: var(--accent-2); }
.code-window-body {
  margin: 0;
  padding: 20px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text);
  min-height: 220px;
  white-space: pre-wrap;
  word-break: break-word;
}
.code-window-body.static {
  min-height: 0;
  color: var(--string);
}
.code-window-body .c1 {
  color: var(--comment);
  font-style: italic;
}
.term-prompt { color: var(--accent-2); }
.term-ok { color: #4fce7a; }
.term-info { color: var(--accent); }
.term-warn { color: var(--warn); }
.term-dim { color: var(--text-dim); }
.term-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--text);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: 148px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 60% 100% at 50% -20%, rgba(124, 109, 242, 0.18), transparent 70%);
}
.page-hero .kicker {
  display: block;
}
.page-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  color: var(--text-bright);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.page-hero p {
  color: var(--text-dim);
  font-size: 16.5px;
  max-width: 600px;
  margin: 0 auto;
}
.page-hero.no-divider {
  border-bottom: none;
}
.page-hero-meta {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
}
.page-hero-meta .sep {
  color: var(--border-light);
}

/* ---------- Page decoration (background accents) ---------- */
.page-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.page-decor .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.28;
}
.page-decor .blob-violet {
  top: -220px;
  left: -180px;
  width: 520px;
  height: 520px;
  background: var(--accent);
}
.page-decor .blob-cyan {
  top: 38%;
  right: -220px;
  width: 560px;
  height: 560px;
  background: var(--accent-2);
  opacity: 0.18;
}
.page-decor .blob-violet-2 {
  bottom: -260px;
  left: 30%;
  width: 620px;
  height: 620px;
  background: var(--accent);
  opacity: 0.16;
}
.page-decor .grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 30%, transparent 100%);
}

@media (max-width: 700px) {
  .page-decor .blob {
    display: none;
  }
}

/* ---------- Strip ---------- */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.strip-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 24px;
}
.strip-label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
  flex-shrink: 0;
}
.strip-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  color: var(--text-dim);
}
.pill-active {
  color: var(--accent-2);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.08);
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}
.section-providers {
  padding-top: 56px;
}
.section-how {
  padding-top: 56px;
}
.main-fit {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.main-fit > .section-how {
  flex: 1;
  display: flex;
  align-items: center;
}
.main-fit > .section-how > .container {
  width: 100%;
}
.warn-banner-section {
  padding: 8px 0 8px;
}
.section-alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head-left {
  margin: 0 0 0;
  text-align: left;
  max-width: 420px;
}
.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  color: var(--text-bright);
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  font-weight: 700;
}
.section-head p {
  color: var(--text-dim);
  font-size: 15.5px;
  margin: 0;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.feature-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.feature-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-2);
  margin-bottom: 18px;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h3 {
  font-size: 17px;
  color: var(--text-bright);
  margin: 0 0 8px;
  font-weight: 600;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.6;
}

/* Feature highlights (detailed, alternating rows) */
.feature-highlights {
  display: flex;
  flex-direction: column;
  gap: 88px;
}
.feature-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature-highlight-reverse .feature-highlight-visual {
  order: 2;
}
.feature-highlight-copy .pill {
  display: inline-block;
  margin-bottom: 18px;
}
.feature-highlight-copy h3 {
  font-size: clamp(21px, 2.4vw, 27px);
  color: var(--text-bright);
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.feature-highlight-copy > p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 22px;
}
.feature-highlight-visual .code-window,
.feature-highlight-visual .agent-feed,
.feature-highlight-visual .git-mock {
  max-width: 460px;
  margin: 0 auto;
}

/* Agent activity feed mockup */
.agent-feed {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.agent-feed-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.agent-feed-title {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  font-weight: 600;
}
.agent-feed-badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 3px 9px;
  border-radius: 999px;
}
.agent-feed-list {
  list-style: none;
  margin: 0;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.agent-feed-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 13.5px;
}
.agent-feed-time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  flex-shrink: 0;
  width: 42px;
}
.agent-feed-text {
  color: var(--text);
}

/* Git panel mockup */
.git-mock {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  font-family: var(--mono);
  font-size: 13px;
}
.git-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.git-mock-branch {
  color: var(--accent-2);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.git-mock-stats {
  flex-shrink: 0;
}
.git-mock-stats span {
  margin-left: 10px;
}
.git-mock-files {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.git-mock-file {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
}
.git-mock-file span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  flex-shrink: 0;
}
.tag-staged { background: rgba(34, 211, 238, 0.15); color: var(--accent-2); }
.tag-modified { background: rgba(242, 184, 75, 0.15); color: var(--warn); }
.tag-untracked { background: rgba(124, 109, 242, 0.15); color: var(--accent); }
.git-mock-commits {
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.git-mock-commit {
  color: var(--text-dim);
  font-size: 12.5px;
}
.git-mock-hash {
  color: var(--string);
  margin-right: 8px;
}

/* Portal cards (home) */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.portal-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.portal-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.portal-card h3 {
  font-size: 17px;
  color: var(--text-bright);
  margin: 0 0 8px;
  font-weight: 600;
}
.portal-card p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0 0 16px;
  line-height: 1.6;
}
.portal-link {
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-2);
}

/* Simple CTA panel (subpages) */
.cta-panel-simple {
  grid-template-columns: 1fr;
  text-align: center;
  padding: 56px 48px;
}
.cta-panel-simple .hero-actions {
  justify-content: center;
}

/* Legal note */
.legal-note {
  max-width: 860px;
  margin: 24px auto 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.7;
}

/* Legal document */
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
}
.legal-doc h2 {
  font-size: 19.5px;
  color: var(--text-bright);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
}
.legal-doc h2:first-child {
  margin-top: 0;
}
.legal-doc p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 14px;
}
.legal-doc p:last-of-type {
  margin-bottom: 0;
}
.legal-doc strong {
  color: var(--text);
  font-weight: 600;
}
.legal-signature {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.legal-signature-name {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text-bright);
  font-size: 15px;
  margin: 0 0 10px;
}
.legal-signature p {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0 0 10px;
}
.legal-signature p:last-child {
  margin-bottom: 0;
}
.legal-signature strong {
  color: var(--text);
}

/* Flow diagram */
.flow-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 26px;
  margin-bottom: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.flow-node {
  font-family: var(--mono);
  font-size: 13px;
  padding: 9px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  white-space: nowrap;
}
.flow-node.flow-accent {
  border-color: var(--accent);
  color: var(--accent-2);
  background: var(--accent-soft);
}
.flow-arrow {
  color: var(--text-dim);
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.step-number {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
}
.step-card h3 {
  font-size: 16.5px;
  color: var(--text-bright);
  margin: 10px 0 8px;
  font-weight: 600;
}
.step-card p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.6;
}

/* Providers */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media (max-width: 980px) {
  .provider-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 620px) {
  .provider-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 420px) {
  .provider-grid {
    grid-template-columns: 1fr;
  }
}
.provider-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease,
    border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.provider-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.provider-card:nth-child(1) { transition-delay: 0ms; }
.provider-card:nth-child(2) { transition-delay: 80ms; }
.provider-card:nth-child(3) { transition-delay: 160ms; }
.provider-card:nth-child(4) { transition-delay: 240ms; }
.provider-card:nth-child(5) { transition-delay: 320ms; }
.provider-card:hover {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 16px 36px -16px rgba(34, 211, 238, 0.25);
  transform: translateY(-4px);
}
.provider-card.is-visible:hover {
  transform: translateY(-4px);
}
.provider-card-active {
  border-color: rgba(34, 211, 238, 0.35);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.06), transparent);
}
.provider-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: #f3f3f1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-bottom: 16px;
  transition: transform 0.2s ease;
}
.provider-card:hover .provider-logo {
  transform: scale(1.08) rotate(-2deg);
}
.provider-logo svg,
.provider-logo img {
  width: 100%;
  height: 100%;
  display: block;
}
.provider-logo-text {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  color: #16161a;
}
.provider-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 3px 10px 3px 8px;
  margin-bottom: 12px;
}
.provider-card-active .provider-status {
  color: var(--accent-2);
  border-color: rgba(34, 211, 238, 0.4);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55);
  animation: status-pulse 2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}
.provider-status-pending {
  color: var(--text-dim);
}
.provider-card h3 {
  font-size: 16px;
  color: var(--text-bright);
  margin: 0 0 6px;
  font-weight: 600;
}
.provider-card p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0;
  min-height: 2.8em;
  display: flex;
  align-items: center;
}

/* Security */
.security-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}
.check-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--accent-2);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: var(--accent-soft);
  border-radius: 50%;
  padding: 3px;
  box-sizing: content-box;
}

/* Warning panel */
.warn-panel {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 860px;
  margin: 0 auto;
}
.warn-panel-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(242, 184, 75, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.warn-panel-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--warn);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.warn-panel-body h3 {
  margin: 4px 0 10px;
  font-size: 17px;
  color: var(--warn);
  font-weight: 700;
}
.warn-panel-body p {
  margin: 0;
  font-size: 14.5px;
  color: #e8d9b0;
  line-height: 1.7;
}

.warn-panel-banner {
  max-width: none;
  width: 100%;
}

@media (max-width: 700px) {
  .warn-panel-banner {
    flex-direction: column;
  }
}

/* CTA */
.section-cta {
  padding-bottom: 120px;
}
.cta-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.cta-copy h2 {
  font-size: clamp(24px, 3vw, 30px);
  color: var(--text-bright);
  margin: 0 0 12px;
  font-weight: 700;
}
.cta-copy p {
  color: var(--text-dim);
  margin: 0 0 26px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-brand {
  max-width: 280px;
}
.footer-brand .brand-logo {
  margin-bottom: 4px;
}
.footer-brand p {
  color: var(--text-dim);
  font-size: 13.5px;
  margin-top: 12px;
}
.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin: 0 0 4px;
  font-weight: 600;
}
.footer-col a {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--accent-2);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Auth forms ---------- */
.auth-shell {
  max-width: 420px;
  margin: 0 auto;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--text-bright);
  transition: border-color 0.15s ease;
}
.form-group input::placeholder {
  color: var(--text-dim);
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}
.form-hint {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.form-submit {
  width: 100%;
  margin-top: 6px;
}
.form-error {
  display: none;
  background: rgba(239, 90, 90, 0.1);
  border: 1px solid rgba(239, 90, 90, 0.35);
  color: #f29a9a;
  font-size: 13.5px;
  line-height: 1.6;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.form-error.is-visible {
  display: block;
}
.auth-switch {
  margin-top: 22px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-dim);
}
.auth-switch a {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: none;
}
.auth-switch a:hover {
  text-decoration: underline;
}
#account-root {
  opacity: 0;
  transition: opacity 0.15s ease;
}
#account-root.is-ready {
  opacity: 1;
}
.account-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.account-row:last-of-type {
  border-bottom: none;
}
.account-row-label {
  font-size: 13px;
  color: var(--text-dim);
}
.account-row-value {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-bright);
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
  }
  .security-inner {
    grid-template-columns: 1fr;
  }
  .cta-panel {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .feature-highlight {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature-highlight-reverse .feature-highlight-visual {
    order: 0;
  }
  .feature-highlights {
    gap: 56px;
  }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .navbar-actions .btn-sm {
    display: none;
  }
  .hero {
    padding: 128px 0 72px;
  }
}

@media (max-width: 520px) {
  .warn-panel {
    flex-direction: column;
  }
}
