:root {
  --bg: #0a0807;
  --bg-soft: #120e0b;
  --panel: #191310;
  --panel-2: #221a15;
  --line: #33261d;
  --line-soft: #271d17;
  --text: #f8ede4;
  --muted: #b39c8c;
  --accent: #ff8c42;
  --accent-2: #ffb26b;
  --accent-deep: #e8590c;
  --good: #4ade80;
  --warn: #facc15;
  --bad: #fb7185;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  --glow: 0 0 0 1px rgba(255, 140, 66, 0.2), 0 14px 40px rgba(232, 89, 12, 0.18);
  --ease: cubic-bezier(0.22, 0.8, 0.25, 1);
  --speed: 0.34s;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: #4a3323 var(--bg-soft);
  scrollbar-width: thin;
}

html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(900px 520px at 8% -6%, rgba(255, 140, 66, 0.17) 0%, transparent 62%),
    radial-gradient(760px 460px at 96% 6%, rgba(232, 89, 12, 0.12) 0%, transparent 58%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: pageIn 0.5s var(--ease) both;
}

::selection { background: rgba(255, 140, 66, 0.28); color: var(--text); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: #4a3323; border-radius: 999px; border: 3px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }

a { color: var(--accent); text-decoration: none; transition: color var(--speed) var(--ease); }
a:hover { color: var(--accent-2); }

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

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 12px; }
h1 { font-size: clamp(31px, 4.6vw, 48px); letter-spacing: -0.8px; }
h2 { font-size: clamp(23px, 3vw, 31px); letter-spacing: -0.4px; }
h3 { font-size: 19px; }
p { margin: 0 0 14px; }

.shell {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.shell-wide { max-width: 1320px; }

main.shell { flex: 1; padding-top: 38px; padding-bottom: 70px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { text-align: right; }
.center { text-align: center; }
.mt { margin-top: 22px; }
.mt-lg { margin-top: 40px; }

.topbar {
  position: sticky;
  top: 14px;
  z-index: 60;
  padding: 0 20px;
  margin-top: 14px;
}

.topbar .bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 64px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 12px 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(18, 14, 11, 0.74);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
  transition: height var(--speed) var(--ease), background var(--speed) var(--ease),
    border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), transform var(--speed) var(--ease);
  animation: barDrop 0.6s var(--ease) both;
}

.topbar.scrolled .bar {
  height: 56px;
  background: rgba(15, 11, 9, 0.92);
  border-color: rgba(255, 140, 66, 0.3);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.6), var(--glow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.4px;
  transition: transform var(--speed) var(--ease);
}

.brand:hover { color: var(--text); transform: translateY(-1px); }

.brand-mark {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.12), 0 6px 16px rgba(232, 89, 12, 0.35);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-12deg) scale(1.06);
  box-shadow: 0 0 0 6px rgba(255, 140, 66, 0.16), 0 8px 22px rgba(232, 89, 12, 0.55);
}

.nav {
  display: flex;
  gap: 22px;
  margin-right: auto;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 2px;
  transition: color var(--speed) var(--ease);
}

.nav a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed) var(--ease);
}

.nav a:hover { color: var(--text); }
.nav a:hover:after { transform: scaleX(1); }
.nav a.on { color: var(--text); }
.nav a.on:after { transform: scaleX(1); }

.topbar-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.nav-toggle:hover { border-color: var(--accent); transform: translateY(-1px); }

.credit-pill {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.32);
  color: var(--good);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 700;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.credit-pill:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(74, 222, 128, 0.18); }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease),
    border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), color var(--speed) var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transition: left 0.7s var(--ease);
}

.btn:hover:before { left: 130%; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-deep));
  color: #1a0c02;
  box-shadow: 0 8px 22px rgba(232, 89, 12, 0.32);
}

.btn-primary:hover {
  color: #1a0c02;
  box-shadow: 0 14px 32px rgba(232, 89, 12, 0.45);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(255, 140, 66, 0.08);
  color: var(--text);
}

.btn-soft {
  background: var(--panel-2);
  border-color: var(--line);
  color: var(--text);
}

.btn-soft:hover { border-color: var(--accent); background: rgba(255, 140, 66, 0.1); }

.btn-danger {
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.4);
  color: var(--bad);
}

.btn-danger:hover { background: rgba(251, 113, 133, 0.2); border-color: var(--bad); }

.btn-sm { padding: 7px 13px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn[disabled]:hover { transform: none; }
.btn[disabled]:before { display: none; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 46px;
  align-items: center;
  padding: 42px 0 20px;
}

.js-motion .hero > div:first-child > * { animation: riseIn 0.7s var(--ease) both; }
.js-motion .hero > div:first-child > .eyebrow { animation-delay: 0.05s; }
.js-motion .hero > div:first-child > h1 { animation-delay: 0.14s; }
.js-motion .hero > div:first-child > .lead { animation-delay: 0.22s; }
.js-motion .hero > div:first-child > .hero-actions { animation-delay: 0.3s; }
.js-motion .hero > div:first-child > .hero-points { animation-delay: 0.38s; }
.js-motion .hero > .terminal { animation: riseIn 0.8s var(--ease) 0.22s both; }

.motion-settled .hero > div:first-child > *,
.motion-settled .hero > .terminal,
.motion-settled .topbar .bar {
  animation: none;
  opacity: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(255, 140, 66, 0.1);
  border: 1px solid rgba(255, 140, 66, 0.28);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.eyebrow:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2.4s infinite;
}

.hero p.lead { font-size: 18px; color: var(--muted); max-width: 540px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.hero-points li { color: var(--muted); padding-left: 27px; position: relative; transition: color var(--speed) var(--ease); }
.hero-points li:hover { color: var(--text); }

.hero-points li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(140deg, var(--accent-2), var(--accent-deep));
  transition: transform var(--speed) var(--ease);
}

.hero-points li:hover:before { transform: rotate(45deg) scale(1.12); }

.panel {
  position: relative;
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.panel:hover { border-color: rgba(255, 140, 66, 0.32); }
.panel-flat { background: var(--panel); box-shadow: none; }

.terminal {
  background: #060403;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 13.5px;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.terminal:hover { transform: translateY(-3px); box-shadow: 0 24px 54px rgba(0, 0, 0, 0.55), var(--glow); }

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 15px;
  background: #100b08;
  border-bottom: 1px solid var(--line);
}

.dot { width: 11px; height: 11px; border-radius: 50%; transition: transform var(--speed) var(--ease); }
.dot.r { background: #fb7185; }
.dot.y { background: #facc15; }
.dot.g { background: #4ade80; }
.terminal:hover .dot { transform: scale(1.15); }
.terminal-title { margin-left: 8px; color: var(--muted); font-size: 12px; }

.terminal pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  color: #f0dccb;
  line-height: 1.65;
}

.term-c { color: var(--accent-2); }
.term-k { color: var(--good); }
.term-m { color: var(--muted); }

.caret {
  display: inline-block;
  width: 9px;
  height: 15px;
  vertical-align: -2px;
  background: var(--accent);
  animation: blink 1.1s steps(2, start) infinite;
}

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

.section { margin-top: 60px; }
.section-head { margin-bottom: 24px; max-width: 640px; }

.feature .ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 140, 66, 0.12);
  border: 1px solid rgba(255, 140, 66, 0.28);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: transform 0.5s var(--ease), background var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.feature:hover .ic {
  transform: translateY(-3px) rotate(-6deg);
  background: rgba(255, 140, 66, 0.2);
  box-shadow: 0 10px 24px rgba(232, 89, 12, 0.3);
}

.feature h3 { margin-bottom: 6px; }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 56px; }

.step:before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #1a0c02;
  background: linear-gradient(140deg, var(--accent-2), var(--accent-deep));
  box-shadow: 0 6px 16px rgba(232, 89, 12, 0.35);
  transition: transform var(--speed) var(--ease);
}

.step { padding-left: 24px; }
.step h3 { margin-left: 46px; }
.step:hover:before { transform: scale(1.08) rotate(-8deg); }

.plan-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }

.plan-filter a {
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 8px 17px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--speed) var(--ease);
}

.plan-filter a:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }
.plan-filter a.on {
  color: #1a0c02;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-deep));
  box-shadow: 0 8px 20px rgba(232, 89, 12, 0.3);
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border-radius: var(--radius);
  padding: 24px;
  overflow: hidden;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.plan:before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
}

.plan:hover {
  border-color: rgba(255, 140, 66, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5), var(--glow);
}

.plan:hover:before { opacity: 1; }

.plan-kind {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent);
}

.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 4px; }

.plan-price strong {
  font-size: 32px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--text), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spec-list { list-style: none; margin: 16px 0 20px; padding: 0; display: grid; gap: 9px; }

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
  color: var(--muted);
  border-bottom: 1px dashed var(--line-soft);
  padding-bottom: 8px;
  transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.spec-list li:hover { border-color: rgba(255, 140, 66, 0.4); }
.spec-list li span:last-child { color: var(--text); font-weight: 600; }
.plan .btn { margin-top: auto; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--panel-2);
  transition: transform var(--speed) var(--ease);
}

.tag:hover { transform: translateY(-1px); }
.tag-good { color: var(--good); border-color: rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.1); }
.tag-warn { color: var(--warn); border-color: rgba(250, 204, 21, 0.35); background: rgba(250, 204, 21, 0.1); }
.tag-bad { color: var(--bad); border-color: rgba(251, 113, 133, 0.35); background: rgba(251, 113, 133, 0.1); }
.tag-info { color: var(--accent-2); border-color: rgba(255, 140, 66, 0.38); background: rgba(255, 140, 66, 0.1); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
th { color: var(--muted); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.5px; }
tbody tr { transition: background var(--speed) var(--ease); }
tbody tr:hover { background: rgba(255, 140, 66, 0.06); }
.table-wrap { overflow-x: auto; }

form .field { margin-bottom: 17px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  width: 100%;
  background: #100b08;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) var(--ease);
}

input:hover, select:hover, textarea:hover { border-color: #4a3323; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #150e09;
  box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.16);
}

.checks { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}

.check:hover { background: rgba(255, 140, 66, 0.07); color: var(--text); }
.check input { margin-top: 4px; accent-color: var(--accent); }

.flash {
  border-radius: 13px;
  padding: 13px 17px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 14.5px;
  animation: flashIn 0.5s var(--ease) both;
}

.flash-ok { border-color: rgba(74, 222, 128, 0.4); background: rgba(74, 222, 128, 0.1); color: var(--good); }
.flash-warn { border-color: rgba(250, 204, 21, 0.4); background: rgba(250, 204, 21, 0.1); color: var(--warn); }
.flash-bad { border-color: rgba(251, 113, 133, 0.4); background: rgba(251, 113, 133, 0.1); color: var(--bad); }
.flash-info { border-color: rgba(255, 140, 66, 0.4); background: rgba(255, 140, 66, 0.1); color: var(--accent-2); }

.auth-wrap { max-width: 450px; margin: 40px auto; animation: riseIn 0.6s var(--ease) both; }

.stat {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 140, 66, 0.4);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
}

.stat b {
  display: block;
  font-size: 27px;
  letter-spacing: -0.6px;
  background: linear-gradient(135deg, var(--text), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat span { color: var(--muted); font-size: 13.5px; }

.progress {
  position: relative;
  height: 9px;
  border-radius: 999px;
  background: #100b08;
  border: 1px solid var(--line);
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-2));
  transition: width 0.9s var(--ease);
}

.progress:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-100%);
  animation: sweep 2.4s var(--ease) infinite;
}

.order-row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }

.copy-field { display: flex; gap: 8px; align-items: center; }

.copy-field code {
  flex: 1;
  background: #100b08;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 13px;
  font-size: 13.5px;
  overflow-x: auto;
  white-space: nowrap;
  transition: border-color var(--speed) var(--ease);
}

.copy-field:hover code { border-color: rgba(255, 140, 66, 0.35); }

code, pre { font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace; }

pre.code {
  background: #060403;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px;
  overflow-x: auto;
  font-size: 13.5px;
  color: #f0dccb;
  transition: border-color var(--speed) var(--ease);
}

pre.code:hover { border-color: rgba(255, 140, 66, 0.3); }

.endpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 10px;
  flex-wrap: wrap;
  transition: background var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.endpoint:hover { background: rgba(255, 140, 66, 0.06); transform: translateX(4px); }

.method {
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 8px;
  padding: 4px 9px;
  min-width: 60px;
  text-align: center;
  border: 1px solid var(--line);
  letter-spacing: 0.4px;
}

.method.get { color: var(--accent-2); border-color: rgba(255, 140, 66, 0.4); }
.method.post { color: var(--good); border-color: rgba(74, 222, 128, 0.4); }
.method.patch { color: var(--warn); border-color: rgba(250, 204, 21, 0.4); }
.method.delete { color: var(--bad); border-color: rgba(251, 113, 133, 0.4); }

.endpoint code { color: var(--text); font-size: 14px; }
.endpoint .muted { margin-left: auto; font-size: 13px; }

.faq details {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 13px;
  padding: 15px 19px;
  margin-bottom: 10px;
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.faq details:hover { border-color: rgba(255, 140, 66, 0.35); }
.faq details[open] { background: var(--panel-2); border-color: rgba(255, 140, 66, 0.3); }
.faq summary { cursor: pointer; font-weight: 600; transition: color var(--speed) var(--ease); }
.faq summary:hover { color: var(--accent-2); }
.faq details[open] p { animation: riseIn 0.4s var(--ease) both; }
.faq p { margin: 10px 0 0; color: var(--muted); }

.cta {
  position: relative;
  background: linear-gradient(140deg, rgba(255, 140, 66, 0.16), rgba(232, 89, 12, 0.08));
  border: 1px solid rgba(255, 140, 66, 0.32);
  border-radius: var(--radius-lg);
  padding: 38px;
  text-align: center;
  overflow: hidden;
}

.cta:before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: -220px;
  left: 50%;
  margin-left: -210px;
  background: radial-gradient(circle, rgba(255, 140, 66, 0.28), transparent 70%);
  animation: drift 9s ease-in-out infinite alternate;
}

.cta > * { position: relative; }

.footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(8, 6, 5, 0.7);
  padding: 46px 0 26px;
  margin-top: auto;
}

.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 26px; }
.footer h4 { font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); }
.footer a { display: block; color: var(--text); font-size: 14.5px; margin-bottom: 8px; transition: color var(--speed) var(--ease), transform var(--speed) var(--ease); }
.footer a:hover { color: var(--accent-2); transform: translateX(3px); }
.brand-footer { margin-bottom: 12px; }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  margin-top: 26px;
  padding-top: 18px;
  font-size: 13.5px;
}

.split { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }

.summary-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14.5px; }
.summary-line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 17px; font-weight: 700; }
.summary-line.total span:last-child { color: var(--accent-2); }

.badge-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--good); }

.badge-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  animation: pulseDot 2.2s infinite;
}

.reveal { opacity: 0; transform: translateY(22px); }

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes barDrop {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: none; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@keyframes flashIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 140, 66, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(255, 140, 66, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 140, 66, 0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes sweep {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

@keyframes drift {
  from { transform: translateY(-14px) scale(1); }
  to { transform: translateY(18px) scale(1.12); }
}

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .topbar { top: 10px; padding: 0 12px; }
  .topbar .bar { gap: 12px; padding: 0 10px 0 16px; }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 11, 9, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
  }

  .nav.open { display: flex; animation: riseIn 0.32s var(--ease) both; }
  .nav-toggle { display: inline-flex; }
  .topbar-side .btn-ghost { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .cta { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *:before, *:after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
  }

  .reveal { opacity: 1; transform: none; }
  .btn:hover, .plan:hover, .stat:hover, .terminal:hover { transform: none; }
}
