/* ════════════════════════════════════════════════
   Flipped — visual system
   ════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* accent */
  --o-400: #fb923c;
  --o-500: #f97316;
  --o-600: #ea580c;
  --o-700: #c2410c;
  --amber: #fbbf24;

  /* surfaces */
  --bg:      #050507;
  --bg-deep: #0a0a0d;
  --card:    #0e0e11;
  --card-2:  #141418;

  /* lines */
  --line:    rgba(255,255,255,0.07);
  --line-2:  rgba(255,255,255,0.12);
  --hair:    rgba(255,255,255,0.18);

  /* type */
  --fg:   #f5f5f5;
  --fg-2: rgba(245,245,245,0.62);
  --fg-3: rgba(245,245,245,0.34);

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 24px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: clip;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: rgba(249,115,22,0.32); color: #fff; }

:focus-visible {
  outline: 2px solid var(--o-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ── Lucide icon sizing ─────────────────────────── */
[data-lucide] { display: block; }

/* ── Ambient glow + grid layer ──────────────────── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient::before {
  content: '';
  position: absolute;
  top: -280px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
              rgba(249,115,22,0.13) 0%,
              rgba(249,115,22,0.05) 40%,
              transparent 72%);
  filter: blur(20px);
}
.ambient::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.024) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, #000 0%, transparent 75%);
}

/* ── Scroll reveal ──────────────────────────────── */
.js [data-reveal] {
  opacity: 0;
  translate: 0 22px;
  transition: opacity .7s cubic-bezier(.2,.65,.25,1), translate .7s cubic-bezier(.2,.65,.25,1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].in { opacity: 1; translate: 0 0; }

/* ═══════════════ NAV ═══════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(5,5,7,0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--line);
  transition: background .2s, box-shadow .2s;
}
.nav.scrolled {
  background: rgba(5,5,7,0.86);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

/* Brand mark — SVG lightning */
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--o-400), var(--o-600));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 2px 12px rgba(249,115,22,0.4);
  flex-shrink: 0;
}
.brand-mark svg { color: #fff; display: block; }

/* The real logo is already an orange mark on transparent, so it sits on its
   own rather than inside the gradient tile. */
.brand-mark.is-logo {
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.brand-mark.is-logo img,
.wc-logo.is-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.wc-logo.is-logo {
  background: none;
  border-radius: 0;
}

.nav-links { display: flex; gap: 2px; }
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--fg); background: rgba(255,255,255,0.05); }
.nav-links a.on    { color: var(--fg); background: rgba(255,255,255,0.07); }

.nav-right { display: flex; align-items: center; gap: 8px; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.nav-toggle span {
  width: 16px; height: 2px;
  border-radius: 2px;
  background: var(--fg-2);
  transition: transform .22s, opacity .22s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 62px; left: 0; right: 0;
  z-index: 190;
  flex-direction: column;
  gap: 2px;
  padding: 10px 18px 16px;
  background: rgba(5,5,7,0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-2);
}
.mobile-menu a:hover,
.mobile-menu a.on { color: var(--fg); background: rgba(255,255,255,0.06); }
.mobile-menu .mm-cta {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.mobile-menu .mm-cta a { flex: 1; text-align: center; }

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 9px;
  transition: all .18s cubic-bezier(.3,.8,.4,1);
  white-space: nowrap;
  position: relative;
}

.btn-glow {
  color: #1a0a00;
  font-weight: 700;
  background: linear-gradient(180deg, var(--o-400) 0%, var(--o-500) 45%, var(--o-600) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    0 2px 10px rgba(249,115,22,0.3),
    0 0 0 1px rgba(249,115,22,0.4);
}
.btn-glow:hover {
  background: linear-gradient(180deg, #fdb571 0%, var(--o-400) 45%, var(--o-500) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 4px 18px rgba(249,115,22,0.45),
    0 0 0 1px rgba(249,115,22,0.55);
  transform: translateY(-1px);
}

.btn-quiet {
  color: var(--fg-2);
  background: rgba(255,255,255,0.03);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-quiet:hover {
  color: var(--fg);
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.btn-lg { padding: 12px 24px; font-size: 14px; border-radius: 11px; }

/* ═══════════════ ANNOUNCEMENT ═══════════════ */
.annc {
  position: relative;
  z-index: 150;
  margin-top: 62px;
  padding: 9px 20px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  background: linear-gradient(180deg, rgba(249,115,22,0.10), rgba(249,115,22,0.04));
  border-bottom: 1px solid rgba(249,115,22,0.14);
}
.annc a { color: var(--o-400); font-weight: 600; }
.annc a:hover { text-decoration: underline; }

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 96px 32px 40px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 9px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: rgba(255,255,255,0.72);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.07);
  margin-bottom: 28px;
}
.eyebrow .pip {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--o-500);
  box-shadow: 0 0 8px var(--o-500);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity:1 } 50% { opacity:.35 } }

h1.display {
  font-size: clamp(40px, 6.6vw, 74px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: 22px;
}
.gradtext {
  background: linear-gradient(105deg, #ffd4a8 0%, var(--o-400) 30%, var(--o-500) 55%, #ffd4a8 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradtext-shine 9s linear infinite;
}
@keyframes gradtext-shine {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.dimtext { color: rgba(245,245,245,0.35); }

.lede {
  font-size: 16.5px;
  color: var(--fg-2);
  max-width: 500px;
  margin: 0 auto 34px;
  line-height: 1.68;
}

.hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }

.chips { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; align-items: center; }
.chips-label { font-size: 12px; color: var(--fg-3); margin-right: 2px; }
.chip {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fg-2);
  padding: 4px 11px;
  border-radius: 100px;
  background: rgba(255,255,255,0.035);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color .18s, box-shadow .18s;
}
.chip:hover {
  color: var(--fg);
  box-shadow: inset 0 0 0 1px rgba(249,115,22,0.35);
}

/* ═══════════════ VS CODE PRODUCT SHOT ═══════════════ */
.hero-shot {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 32px 0;
}
.shot-glow {
  position: absolute;
  left: 50%; bottom: -40px;
  transform: translateX(-50%);
  width: 900px; height: 260px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(249,115,22,0.22) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.win {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0c0c0f;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.09),
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 30px 90px rgba(0,0,0,0.65),
    0 2px 0 rgba(249,115,22,0.25);
  animation: win-rise .8s cubic-bezier(.2,.65,.25,1) both .15s;
}
@keyframes win-rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.win-tls { display: flex; gap: 7px; flex-shrink: 0; }
.win-tls span {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.win-tls span:nth-child(1) { background: #ff5f57; }
.win-tls span:nth-child(2) { background: #febc2e; }
.win-tls span:nth-child(3) { background: #28c840; }
.win-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.win-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: #86efac;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(34,197,94,0.08);
  box-shadow: inset 0 0 0 1px rgba(34,197,94,0.18);
  flex-shrink: 0;
}

.win-body {
  display: grid;
  grid-template-columns: 44px 168px 1fr 248px;
  height: 452px;
}

/* activity bar */
.win-activity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,0.012);
}
.wa-ico {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--fg-3);
  position: relative;
}
.wa-ico.on { color: var(--fg); background: rgba(255,255,255,0.06); }
.wa-ico.on::before {
  content: '';
  position: absolute;
  left: -4px; top: 50%;
  transform: translateY(-50%);
  width: 2px; height: 16px;
  border-radius: 2px;
  background: var(--o-500);
}

/* explorer sidebar */
.win-files {
  padding: 12px 10px;
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.wf-head {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  margin-bottom: 10px;
}
.wf-proj {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-2);
  padding: 5px 6px;
  border-radius: 6px;
  margin-bottom: 4px;
}
.wf-file {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--fg-3);
  padding: 4px 6px 4px 22px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 1px;
}
.wf-file.on {
  color: var(--fg);
  background: rgba(249,115,22,0.1);
  box-shadow: inset 0 0 0 1px rgba(249,115,22,0.16);
}
.wf-file svg { flex-shrink: 0; color: var(--fg-3); }
.wf-file.on svg { color: var(--o-400); }

/* editor */
.win-editor {
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(249,115,22,0.035) 0%, transparent 55%),
    #0a0a0c;
}
.we-tabs {
  display: flex;
  gap: 2px;
  height: 36px;
  border-bottom: 1px solid var(--line);
  padding: 0 10px;
}
.we-tabs span {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fg-3);
  padding: 0 12px;
  line-height: 36px;
  border-bottom: 2px solid transparent;
}
.we-tabs span.on {
  color: var(--fg);
  border-bottom-color: var(--o-500);
}
.we-code {
  padding: 16px 18px;
  font-family: ui-monospace, 'Cascadia Code', 'JetBrains Mono', Consolas, monospace;
  font-size: 12px;
  line-height: 1.85;
  color: #d4d4d4;
  overflow: hidden;
  white-space: pre;
}
.tk-kw  { color: #c586c0; }
.tk-fn  { color: #dcdcaa; }
.tk-str { color: #ce9178; }
.tk-num { color: #b5cea8; }
.tk-ty  { color: #4ec9b0; }
.tk-cm  { color: #6a9955; font-style: italic; }
.tk-vr  { color: #9cdcfe; }
.tk-pn  { color: #808080; }

/* chat panel */
.win-chat {
  border-left: 1px solid var(--line);
  background: #101014;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.wc-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.wc-logo {
  width: 20px; height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--o-400), var(--o-600));
  color: #fff;
  flex-shrink: 0;
}
.wc-head .wc-name { flex: 1; }
.wc-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--o-400);
  padding: 2px 7px;
  border-radius: 100px;
  background: rgba(249,115,22,0.1);
  box-shadow: inset 0 0 0 1px rgba(249,115,22,0.22);
}
.wc-msgs {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: hidden;
}
.wc-msg {
  font-size: 11.5px;
  line-height: 1.55;
  padding: 9px 11px;
  border-radius: 10px;
}
.wc-user {
  color: var(--fg-2);
  background: rgba(255,255,255,0.05);
  box-shadow: inset 0 0 0 1px var(--line);
  border-bottom-right-radius: 3px;
  align-self: flex-end;
  max-width: 92%;
}
.wc-ai {
  color: var(--fg-2);
  background: rgba(249,115,22,0.07);
  box-shadow: inset 0 0 0 1px rgba(249,115,22,0.14);
  border-bottom-left-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.wc-line {
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.09), rgba(255,255,255,0.2), rgba(255,255,255,0.09));
  background-size: 200% 100%;
  animation: wc-shimmer 1.8s ease-in-out infinite;
}
.wc-line.short { width: 60%; }
@keyframes wc-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.wc-ai-code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  color: #ffd4a8;
  background: rgba(0,0,0,0.35);
  border-radius: 7px;
  padding: 7px 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wc-acts { display: flex; gap: 6px; }
.wc-acts span {
  font-size: 10px;
  font-weight: 700;
  color: var(--fg-3);
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  box-shadow: inset 0 0 0 1px var(--line);
}
.wc-acts .wc-apply {
  color: #1a0a00;
  background: linear-gradient(180deg, var(--o-400), var(--o-600));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.wc-input {
  margin: 0 12px 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 11.5px;
  color: var(--fg-3);
  background: rgba(255,255,255,0.035);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ═══════════════ STATS PILLS ═══════════════ */
.stats-pills {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 68px;
  padding: 20px 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.018), transparent);
  flex-wrap: wrap;
}
.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
}
.stat-pill-n {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(160deg, #fff 0%, var(--o-400) 120%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-pill-l { font-size: 12.5px; color: var(--fg-3); font-weight: 500; }
.stat-pill-div {
  width: 1px;
  height: 18px;
  background: var(--line);
  flex-shrink: 0;
}

/* ═══════════════ SECTIONS ═══════════════ */
.wrap { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 96px 32px; }
.wrap.tight { padding-top: 72px; padding-bottom: 72px; }
.center { text-align: center; }
.center .kicker { justify-content: center; }
.center .sub    { margin-left: auto; margin-right: auto; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--o-500);
  margin-bottom: 16px;
}
.kicker::before {
  content: '';
  width: 18px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--o-500));
}

h2.head {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.07;
  margin-bottom: 13px;
}
.sub { font-size: 15.5px; color: var(--fg-2); max-width: 480px; line-height: 1.68; }

/* ═══════════════ CARD (shared glossy base) ═══════════════ */
.glass {
  position: relative;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,0.055) 0%, transparent 55%),
    linear-gradient(180deg, #131317 0%, #0b0b0e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.09),
    inset 0 0 0 1px rgba(255,255,255,0.055),
    0 12px 40px rgba(0,0,0,0.5);
  transition: box-shadow .22s, transform .22s;
}
.glass:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 0 0 1px rgba(255,255,255,0.09),
    0 18px 52px rgba(0,0,0,0.6);
  transform: translateY(-2px);
}

/* ── Icon badge ── */
.f-ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--o-400);
  background: linear-gradient(160deg, rgba(249,115,22,0.16), rgba(249,115,22,0.05));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 0 0 1px rgba(249,115,22,0.2);
}

/* ═══════════════ FEATURES ═══════════════ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 48px;
}
.bento .glass { padding: 30px 26px; }
.bento .wide  { grid-column: span 2; grid-row: span 2; }
.bento h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 9px; }
.bento p  { font-size: 13.5px; color: var(--fg-2); line-height: 1.7; }

/* ═══════════════ STEPS ═══════════════ */
.band {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #08080b, #050507);
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; }
.steps .glass { padding: 26px 24px; }
.s-n {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--o-400);
  margin-bottom: 15px;
  background: linear-gradient(160deg, rgba(249,115,22,0.16), rgba(249,115,22,0.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 0 0 1px rgba(249,115,22,0.2);
}
.steps h3 { font-size: 14.5px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.steps p  { font-size: 13px; color: var(--fg-2); line-height: 1.65; }

/* ═══════════════ MODELS ═══════════════ */
.models { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 48px; }
.models .glass { padding: 24px 16px; text-align: center; }
.m-logo {
  width: 40px; height: 40px;
  border-radius: 11px;
  margin: 0 auto 13px;
  display: grid; place-items: center;
  color: var(--fg-2);
  background: rgba(255,255,255,0.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.m-anthropic { color: #d97757; background: rgba(217,119,87,0.12); box-shadow: inset 0 0 0 1px rgba(217,119,87,0.22); }
.m-openai    { color: #f5f5f5; background: rgba(255,255,255,0.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); }
.m-name { font-size: 12.5px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 3px; }
.m-by   { font-size: 11px; color: var(--fg-3); margin-bottom: 12px; }

.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 100px;
}
.tag-o { color: var(--o-400); background: rgba(249,115,22,0.1);  box-shadow: inset 0 0 0 1px rgba(249,115,22,0.22); }
.tag-g { color: #4ade80;     background: rgba(74,222,128,0.09);  box-shadow: inset 0 0 0 1px rgba(74,222,128,0.2); }
.tag-p { color: #c084fc;     background: rgba(192,132,252,0.09); box-shadow: inset 0 0 0 1px rgba(192,132,252,0.2); }

/* ═══════════════ PRICING ═══════════════ */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  max-width: 780px;
  margin: 40px auto 0;
  text-align: left;
}

.plan {
  position: relative;
  border-radius: var(--r-xl);
  padding: 26px 24px 28px;
  background:
    radial-gradient(130% 85% at 0% 0%, var(--tint, rgba(255,255,255,0.05)) 0%, transparent 58%),
    linear-gradient(180deg, #111115 0%, #08080b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 14px 44px rgba(0,0,0,0.5);
  transition: transform .22s cubic-bezier(.3,.8,.4,1), box-shadow .22s;
}
.plan:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 0 0 1px rgba(255,255,255,0.1),
    0 22px 60px rgba(0,0,0,0.62);
}

.plan.t-free   { --tint: rgba(96,165,250,0.14); }
.plan.t-pro    { --tint: rgba(192,132,252,0.17); }

/* popular plan highlight */
.plan.popular {
  transform: translateY(-6px);
  background:
    radial-gradient(130% 90% at 0% 0%, rgba(249,115,22,0.17) 0%, transparent 55%),
    linear-gradient(180deg, #19110b 0%, #0a0806 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 0 0 1px rgba(249,115,22,0.42),
    0 0 0 1px rgba(249,115,22,0.18),
    0 0 70px rgba(249,115,22,0.15),
    0 24px 70px rgba(0,0,0,0.6);
}
.plan.popular:hover { transform: translateY(-8px); }

.plan-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.plan-title { font-size: 16px; font-weight: 700; letter-spacing: -0.025em; }

.pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 100px;
  white-space: nowrap;
}
.pill-cur {
  color: #fff;
  background: linear-gradient(180deg, var(--o-400), var(--o-600));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 2px 8px rgba(249,115,22,0.3);
}
.pill-pop {
  color: var(--o-400);
  background: rgba(249,115,22,0.1);
  box-shadow: inset 0 0 0 1px rgba(249,115,22,0.25);
}

.plan-cost {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 22px;
}
.plan-cost em {
  font-style: normal;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: -0.01em;
}

.credits {
  width: 100%;
  text-align: center;
  padding: 11px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), inset 0 0 0 1px rgba(255,255,255,0.06);
  margin-bottom: 10px;
}

.plan-btn {
  width: 100%;
  padding: 11px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 700;
  transition: all .18s;
  display: block;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  border: 0;
}
.pb-glow {
  color: #1a0a00;
  background: linear-gradient(180deg, var(--o-400) 0%, var(--o-500) 48%, var(--o-600) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 3px 14px rgba(249,115,22,0.32),
    0 0 0 1px rgba(249,115,22,0.35);
}
.pb-glow:hover {
  background: linear-gradient(180deg, #fdb571, var(--o-400) 48%, var(--o-500));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 5px 20px rgba(249,115,22,0.45), 0 0 0 1px rgba(249,115,22,0.5);
}
.pb-mute {
  color: rgba(255,255,255,0.72);
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.pb-mute:hover { color: #fff; background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.06)); }
.pb-on {
  color: #ffd4a8;
  background: linear-gradient(180deg, rgba(249,115,22,0.2), rgba(249,115,22,0.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 0 0 1px rgba(249,115,22,0.3);
  cursor: default;
}

.incl-head {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 26px 0 14px;
}
.incl { display: flex; flex-direction: column; gap: 11px; }
.incl li { list-style: none; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--fg-2); line-height: 1.5; }
.incl .tick { color: var(--o-500); flex-shrink: 0; margin-top: 1px; }

/* ── compare table ── */
.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 40px; }
.cmp th {
  padding: 14px 18px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fg-2);
  border-bottom: 1px solid var(--line-2);
}
.cmp th:first-child { text-align: left; width: 34%; }
.cmp th.hi { color: var(--o-400); }
.cmp td {
  padding: 13px 18px;
  text-align: center;
  color: var(--fg-2);
  border-bottom: 1px solid var(--line);
}
.cmp td:first-child { text-align: left; }
.cmp tbody tr:hover td { background: rgba(255,255,255,0.018); }
.cmp .grp td {
  background: rgba(255,255,255,0.025);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  padding: 9px 18px;
}
.cmp .grp:hover td { background: rgba(255,255,255,0.025); }
.yes { color: var(--o-500); font-weight: 700; }
.no  { color: var(--fg-3); }
.strong-c { color: var(--fg); font-weight: 600; }

/* ── faq ── */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.faq .glass { padding: 24px 26px; }
.faq h3 { font-size: 14.5px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 9px; }
.faq p  { font-size: 13.5px; color: var(--fg-2); line-height: 1.7; }
.faq a  { color: var(--o-400); }

/* ═══════════════ CTA ═══════════════ */
.cta {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 100px 32px;
  text-align: center;
}
.cta h2 {
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 15px;
}
.cta p { font-size: 16px; color: var(--fg-2); margin-bottom: 32px; line-height: 1.65; }
.cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════ FOOTER ═══════════════ */
footer { position: relative; z-index: 1; border-top: 1px solid var(--line); background: #08080b; }
.foot {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 32px 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot-about p { font-size: 13px; color: var(--fg-3); margin-top: 13px; max-width: 250px; line-height: 1.7; }
.foot-col h4 { font-size: 11px; font-weight: 700; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; }
.foot-col a { display: block; font-size: 13px; color: var(--fg-2); margin-bottom: 11px; transition: color .18s; }
.foot-col a:hover { color: var(--fg); }
.foot-btm {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-3);
}

/* ═══════════════ CONSOLE ═══════════════ */
body.console-body {
  height: 100vh;
  overflow: hidden;
  display: flex;
}

/* Rail / sidebar */
.rail {
  width: 224px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: rgba(8,8,9,0.92);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(24px) saturate(1.5);
  z-index: 10;
  height: 100%;
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 22px 18px 18px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
}
.rail-brand .brand-mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--o-400), var(--o-600));
  color: #000;
  flex-shrink: 0;
}

.rail-nav {
  flex: 1;
  padding: 14px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 8px 10px 4px;
  margin-top: 6px;
}
.rail-label:first-child { margin-top: 0; }

.rail-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(245,245,245,0.5);
  cursor: pointer;
  transition: color 0.13s, background 0.13s;
  user-select: none;
}
.rail-item:hover {
  color: rgba(245,245,245,0.88);
  background: rgba(255,255,255,0.05);
}
.rail-item.active {
  color: var(--fg);
  background: rgba(255,255,255,0.08);
  font-weight: 600;
}
.rail-item [data-lucide] { flex-shrink: 0; opacity: 0.7; }
.rail-item.active [data-lucide] { opacity: 1; }

.rail-foot {
  padding: 14px 10px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.13s;
}
.rail-user:hover { background: rgba(255,255,255,0.05); }

.rail-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--o-500), var(--o-700));
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.rail-user-info { flex: 1; min-width: 0; }
.rail-user-name { font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; }
.rail-user-plan { font-size: 11px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rail-upgrade {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--o-400);
  cursor: pointer;
  transition: background 0.13s;
  margin-bottom: 2px;
}
.rail-upgrade:hover { background: rgba(249,115,22,0.07); }

/* Mobile rail drawer */
.rail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  z-index: 9;
  display: none;
}
.rail-backdrop.open { display: block; }

/* Main area */
.c-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}

.c-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 58px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  gap: 12px;
}

.c-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fg-3);
  font-weight: 500;
}
.c-breadcrumb .sep { opacity: 0.4; }
.c-breadcrumb .crumb-cur { color: var(--fg); font-weight: 600; }

.c-rail-toggle {
  display: none;
  width: 32px; height: 32px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: var(--fg-2);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
}
.c-rail-toggle:hover { color: var(--fg); background: rgba(255,255,255,0.08); }

.c-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot-live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 7px rgba(34,197,94,0.6);
  flex-shrink: 0;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--fg-3);
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 100px;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.15);
}
.status-pill span { color: #86efac; }
.status-pill .dd-chev { width: 12px; height: 12px; opacity: 0.6; }

/* Dropdown (top bar widgets) */
.c-dropdown { position: relative; }
.c-dd-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 6px;
  border-radius: 12px;
  background: linear-gradient(180deg, #141419 0%, #0c0c10 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 18px 50px rgba(0,0,0,0.6);
  z-index: 60;
  display: none;
  opacity: 0;
  translate: 0 -4px;
  transition: opacity .15s, translate .15s;
}
.c-dd-menu.open { display: block; opacity: 1; translate: 0 0; }
.c-dd-menu a, .c-dd-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-2);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .13s, background .13s;
}
.c-dd-menu a:hover, .c-dd-menu button:hover {
  color: var(--fg);
  background: rgba(255,255,255,0.06);
}
.c-dd-menu .c-dd-head {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 7px 11px 5px;
}
.c-dd-menu .c-dd-sep { height: 1px; background: var(--line); margin: 5px 8px; }
.c-dd-menu .c-dd-static {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--fg-3);
  padding: 7px 11px;
}
.c-dd-menu .c-dd-static b { color: var(--fg); font-weight: 600; }
.c-dd-menu .c-dd-static code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--o-400);
}

.c-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px 36px;
  position: relative;
  z-index: 1;
}

/* Views */
.view { display: none; }
.view.active {
  display: block;
  animation: view-in .32s cubic-bezier(.2,.65,.25,1);
}
@keyframes view-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Panel cards */
.panel {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 16px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.panel-head-left h2 { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.panel-head-left p  { font-size: 12px; color: var(--fg-3); margin: 3px 0 0; }
.panel-body { padding: 20px 22px; }

/* Stat grid */
.c-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.c-stat {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color 0.2s;
}
.c-stat:hover { border-color: rgba(217,119,6,0.2); }
.c-stat-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 8px;
}
.c-stat-val {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
}
.c-stat-sub { font-size: 11px; color: var(--fg-3); margin-top: 5px; }

/* Bar chart */
.chart-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; }
.bar {
  width: 100%;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--o-400) 0%, rgba(234,88,12,0.5) 100%);
  min-height: 4px;
  transition: opacity 0.15s;
}
.bar:hover { opacity: 0.8; }
.bar-day { font-size: 10px; color: var(--fg-3); }

/* Recent activity table */
.act-table { width: 100%; border-collapse: collapse; }
.act-table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 0 18px 12px;
}
.act-table td {
  padding: 11px 18px;
  font-size: 12.5px;
  color: var(--fg-2);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.act-table tr:hover td { background: rgba(255,255,255,0.018); }

/* Models grid */
.model-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.model-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s;
}
.model-card:hover { border-color: rgba(255,255,255,0.12); }

.model-card-top {
  display: flex;
  align-items: center;
  gap: 13px;
}
.model-logo {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.ml-anthropic { color: #d97757; background: rgba(217,119,87,0.12); box-shadow: inset 0 0 0 1px rgba(217,119,87,0.22); }
.ml-openai    { color: #f5f5f5; background: rgba(255,255,255,0.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); }
.ml-google    { color: #4285f4; background: rgba(66,133,244,0.12);  box-shadow: inset 0 0 0 1px rgba(66,133,244,0.22); }

.model-name { font-size: 13.5px; font-weight: 700; letter-spacing: -0.02em; }
.model-provider { font-size: 11px; color: var(--fg-3); margin-top: 2px; }

.model-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.mtag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.03em;
  padding: 3px 9px; border-radius: 100px;
}
.mtag-o { color: var(--o-400); background: rgba(249,115,22,0.1); box-shadow: inset 0 0 0 1px rgba(249,115,22,0.22); }
.mtag-g { color: #4ade80;     background: rgba(74,222,128,0.09); box-shadow: inset 0 0 0 1px rgba(74,222,128,0.2); }
.mtag-p { color: #c084fc;     background: rgba(192,132,252,0.09);box-shadow: inset 0 0 0 1px rgba(192,132,252,0.2); }
.mtag-b { color: #60a5fa;     background: rgba(96,165,250,0.09); box-shadow: inset 0 0 0 1px rgba(96,165,250,0.2); }

.model-desc { font-size: 12px; color: var(--fg-3); line-height: 1.55; }

.model-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--fg-3);
}
.model-avail {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #86efac;
}
.model-avail::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,0.5);
}

/* API Keys */
.key-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.key-row:last-child { border-bottom: none; }

.key-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.18);
  display: grid; place-items: center;
  color: var(--o-400);
  flex-shrink: 0;
}

.key-info { flex: 1; min-width: 0; }
.key-name { font-size: 13px; font-weight: 600; }
.key-meta { font-size: 11px; color: var(--fg-3); margin-top: 2px; }

.key-val {
  font-family: ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--fg-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 11px;
  letter-spacing: 0.04em;
}

.key-actions { display: flex; gap: 6px; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--fg-3);
}
.empty-state-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  margin: 0 auto 14px;
  color: var(--fg-3);
}
.empty-state h3 { font-size: 14px; font-weight: 700; color: var(--fg-2); margin-bottom: 6px; }
.empty-state p  { font-size: 12.5px; margin-bottom: 18px; }

/* Page header */
.c-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.c-page-head h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--fg) 50%, rgba(245,245,245,0.45));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.c-page-head p { font-size: 13px; color: var(--fg-3); margin-top: 3px; }

/* Console buttons */
.c-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: var(--fg-2);
}
.c-btn:hover { background: rgba(255,255,255,0.1); color: var(--fg); transform: translateY(-1px); }

.c-btn-primary {
  background: linear-gradient(180deg, var(--o-400) 0%, var(--o-500) 45%, var(--o-600) 100%);
  border-color: rgba(249,115,22,0.5);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 2px 10px rgba(249,115,22,0.25);
}
.c-btn-primary:hover { opacity: 0.9; }

.c-btn-sm { padding: 5px 11px; font-size: 11.5px; border-radius: 8px; }
.c-btn-danger { color: #fca5a5; border-color: rgba(239,68,68,0.2); background: rgba(239,68,68,0.07); }
.c-btn-danger:hover { background: rgba(239,68,68,0.12); color: #fca5a5; }

/* New key modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  display: none;
  z-index: 100;
  place-items: center;
}
.modal-overlay.open { display: grid; }
.modal {
  background: #111114;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 28px;
  width: 440px;
  max-width: calc(100vw - 40px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  animation: modal-in .22s cubic-bezier(.2,.65,.25,1);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.modal h2 { font-size: 16px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px; }
.modal > p { font-size: 12.5px; color: var(--fg-3); margin-bottom: 22px; }
.modal label { display: block; font-size: 12px; font-weight: 600; color: var(--fg-2); margin-bottom: 6px; }
.modal input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--fg);
  font-size: 13.5px;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.modal input:focus {
  border-color: rgba(249,115,22,0.4);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 16px);
  z-index: 500;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  background: linear-gradient(180deg, #16161a, #0d0d10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 18px 50px rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s cubic-bezier(.2,.65,.25,1);
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ═══════════════ CONSOLE: SUB-VIEWS & FORMS ═══════════════ */

/* Rail extras */
.rail-logo-img {
  width: 24px; height: 24px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.rail-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 100px;
  color: var(--o-400);
  background: rgba(249,115,22,0.1);
  box-shadow: inset 0 0 0 1px rgba(249,115,22,0.25);
}
.c-dd-trigger { display: inline-flex; align-items: center; gap: 7px; }

/* Tab bar (subscription / admin) */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-3);
  border-radius: 9px 9px 0 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.13s, border-color 0.13s;
}
.tab:hover { color: var(--fg-2); }
.tab.active {
  color: var(--fg);
  border-bottom-color: var(--o-400);
}
.sub-panel, .admin-panel { display: none; }
.sub-panel.active, .admin-panel.active {
  display: block;
  animation: view-in .32s cubic-bezier(.2,.65,.25,1);
}

/* Plan cards */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.plan-card {
  position: relative;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plan-card.active {
  border-color: rgba(249,115,22,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 40px rgba(249,115,22,0.07);
}
.plan-card-badge {
  position: absolute;
  top: -9px;
  left: 18px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, var(--o-400), var(--o-600));
  padding: 3px 10px;
  border-radius: 100px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 2px 8px rgba(249,115,22,0.3);
}
.plan-card-name { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.plan-card-price {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan-card-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  color: var(--fg-2);
}
.plan-card-features li { position: relative; padding-left: 20px; }
.plan-card-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 5px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--o-400), var(--o-600));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}
.plan-card-bar { display: flex; flex-direction: column; gap: 5px; }
.plan-card-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--fg-3);
}
.plan-card-bar-track {
  height: 6px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.plan-card-bar-fill {
  height: 6px;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--o-500), #f59e0b);
}

/* Status pills */
.pill.on {
  color: #86efac;
  background: rgba(74,222,128,0.09);
  box-shadow: inset 0 0 0 1px rgba(74,222,128,0.22);
}
.pill.off {
  color: var(--fg-3);
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.pill.plain {
  color: var(--fg-2);
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* Filter bar + inputs */
.filter-bar {
  display: flex;
  gap: 10px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.filter-bar input[type="text"] {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  color: var(--fg);
  font-size: 12.5px;
  font-family: inherit;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.filter-bar input[type="text"]::placeholder { color: var(--fg-3); }
.filter-bar input[type="text"]:focus {
  border-color: rgba(249,115,22,0.4);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}
.c-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  color: var(--fg);
  font-size: 12.5px;
  font-family: inherit;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.c-input::placeholder { color: var(--fg-3); }
.c-input:focus {
  border-color: rgba(249,115,22,0.4);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}
select.c-input { cursor: pointer; }

/* Inline & stacked forms */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.inline-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.inline-form input[type="text"] {
  flex: 1;
  min-width: 200px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  color: var(--fg);
  font-size: 13px;
  font-family: inherit;
  padding: 9px 13px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.inline-form input[type="text"]:focus {
  border-color: rgba(249,115,22,0.4);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}
.stack label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-2);
}
.stack label small { font-weight: 400; color: var(--fg-3); }
.stack textarea, .stack input, .stack select { width: 100%; }

/* Referral / secret value */
.secret-value {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px 8px 14px;
}
.secret-value code {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: var(--fg-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Notice */
.c-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.c-notice.good {
  color: #86efac;
  background: rgba(74,222,128,0.08);
  box-shadow: inset 0 0 0 1px rgba(74,222,128,0.2);
}

/* Admin toolbar */
.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Admin data table (kv) */
.data-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.data-table tr + tr td { border-top: 1px solid var(--line); }
.data-table td { padding: 10px 14px; font-size: 12.5px; }
.data-table td:first-child {
  width: 40%;
  color: var(--fg-3);
  background: rgba(255,255,255,0.02);
  font-weight: 600;
}
.data-table td:last-child {
  color: var(--fg);
  font-weight: 600;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* Announcement preview */
.annc-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.72);
  background: linear-gradient(180deg, rgba(249,115,22,0.10), rgba(249,115,22,0.04));
  border: 1px solid rgba(249,115,22,0.14);
  border-radius: 10px;
}
.annc-preview a { color: var(--o-400); font-weight: 600; }
.annc-preview a:hover { text-decoration: underline; }

/* Connection status */
.conn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.conn-icon {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.conn.on .conn-icon {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
}
.conn-text { display: flex; flex-direction: column; gap: 1px; }
.conn-text strong { font-size: 13px; }
.conn-text span { font-size: 11.5px; color: var(--fg-3); }

/* Code snippet tabs */
.code-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.code-tab {
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-3);
  border-bottom: 2px solid transparent;
  transition: color 0.13s, border-color 0.13s;
}
.code-tab:hover { color: var(--fg-2); }
.code-tab[aria-selected="true"] {
  color: var(--fg);
  border-bottom-color: var(--o-400);
}
.code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--fg-2);
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
}
.code .s { color: #86efac; }
.code .k { color: var(--o-400); }

/* Usage table status colors */
.act-table td.ok   { color: #86efac; }
.act-table td.mid  { color: #fde68a; }
.act-table td.slow { color: #fca5a5; }
.act-table td.err  { color: #fca5a5; font-weight: 600; }

/* ═══════════════ VERIFY PAGE ═══════════════ */
.verify-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 40px;
}

.verify-card {
  width: 100%;
  max-width: 460px;
  padding: 44px 40px;
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(249,115,22,0.09) 0%, transparent 60%),
    linear-gradient(180deg, #111115 0%, #08080b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 24px 80px rgba(0,0,0,0.6);
}

.verify-icon {
  width: 60px; height: 60px;
  border-radius: 17px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(249,115,22,0.18), rgba(249,115,22,0.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), inset 0 0 0 1px rgba(249,115,22,0.25);
  color: var(--o-400);
}

.verify-card h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}
.verify-card .verify-sub {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.65;
  margin-bottom: 28px;
}
.verify-card .verify-sub strong { color: var(--fg); }

.verify-form { margin-bottom: 10px; }

.verify-code-input {
  width: 100%;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 10px;
  padding: 16px 12px;
  border-radius: 12px;
  color: var(--fg);
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), inset 0 0 0 1px rgba(255,255,255,0.1);
  outline: none;
  transition: box-shadow .15s, border-color .15s;
  margin-bottom: 16px;
  box-sizing: border-box;
}
.verify-code-input:focus {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 0 0 1.5px rgba(249,115,22,0.6);
}

.verify-err {
  font-size: 13px;
  color: #fca5a5;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: 11px;
  background: rgba(239,68,68,0.12);
  box-shadow: inset 0 0 0 1px rgba(239,68,68,0.32);
  margin-bottom: 18px;
  text-align: left;
}

.resend-row {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-3);
}
.resend-row button {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--o-400);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.resend-row button:hover { color: var(--o-300); }

/* verified state */
.verify-card.verified .verify-icon {
  background: linear-gradient(160deg, rgba(74,222,128,0.18), rgba(74,222,128,0.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), inset 0 0 0 1px rgba(74,222,128,0.25);
  color: #4ade80;
}
.verify-card.verified h1 { color: var(--fg); }

.verify-footer {
  margin-top: 32px;
  font-size: 12.5px;
  color: var(--fg-3);
}
.verify-footer a { color: var(--o-400); }
.verify-footer a:hover { text-decoration: underline; }

/* ═══════════════ DOCS ═══════════════ */
.mono {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: rgba(255,255,255,0.07);
  padding: 1px 5px;
  border-radius: 4px;
}

.dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 44px;
}
.dl-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.dl-card h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.dl-card h3 small { font-size: 11px; font-weight: 500; color: var(--fg-3); }
.dl-card p { font-size: 13px; color: var(--fg-2); line-height: 1.65; }
.dl-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.dl-badge-a { background: rgba(249,115,22,0.12); border: 1px solid rgba(249,115,22,0.3); color: var(--o-400); }
.dl-badge-b { background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.3); color: #a5b4fc; }
.dl-btn { margin-top: 2px; width: fit-content; }
.dl-cmd, .dl-note { font-size: 12px; margin-top: 2px; }
.dl-cmd {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color: var(--fg-2);
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  display: block;
  width: 100%;
}
.dl-note { color: var(--fg-3); }

.tut-head { margin-top: 56px; }
.tut-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.tut-head p { font-size: 13.5px; color: var(--fg-3); margin-top: 4px; }

.tut-step { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); }
.tut-step:first-of-type { border-top: none; padding-top: 8px; }
.tut-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--o-400), var(--o-600));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 0 0 1px rgba(249,115,22,0.3);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  color: #1a0a00;
}
.tut-body h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.tut-body p { font-size: 13px; color: var(--fg-2); line-height: 1.65; }
.tut-body p + p { margin-top: 6px; }
.tut-cmd {
  display: block;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--fg-2);
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 7px;
  padding: 9px 13px;
  margin-top: 8px;
}

.docs-note {
  margin-top: 32px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.65;
  background: rgba(249,115,22,0.07);
  box-shadow: inset 0 0 0 1px rgba(249,115,22,0.2);
}
.docs-note strong { color: var(--o-400); }

.docs-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1000px) {
  .bento  { grid-template-columns: 1fr 1fr; }
  .wide   { grid-column: span 1 !important; grid-row: span 1 !important; }
  .models { grid-template-columns: repeat(3, 1fr); }
  .plans  { grid-template-columns: 1fr 1fr; }
  .steps  { grid-template-columns: 1fr 1fr; }
  .foot   { grid-template-columns: 1fr 1fr; }
  .stats  { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }

  /* hide chat panel in product shot */
  .win-body { grid-template-columns: 44px 160px 1fr; }
  .win-chat { display: none; }
}

@media (max-width: 900px) {
  .c-stats { grid-template-columns: repeat(2, 1fr); }
  .model-cards { grid-template-columns: repeat(2, 1fr); }

  /* rail becomes off-canvas drawer */
  .c-rail-toggle { display: inline-flex; }
  .rail {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(.2,.65,.25,1);
    z-index: 30;
  }
  .rail.open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,0.5); }
}

@media (max-width: 768px) {
  /* hide explorer sidebar in product shot */
  .win-body { grid-template-columns: 44px 1fr; }
  .win-files { display: none; }
}

@media (max-width: 620px) {
  .nav { padding: 0 18px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { padding: 70px 20px 40px; }
  .wrap, .cta { padding-left: 20px; padding-right: 20px; }
  .c-topbar { padding: 0 16px; }
  .c-topbar .c-breadcrumb span:not(.crumb-cur) { display: none; }
  .status-pill span { display: none; }
  .bento, .models, .plans, .steps, .faq, .foot { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot-btm { flex-direction: column; gap: 6px; padding: 16px 20px; }
  .cmp { font-size: 12px; }
  .cmp th, .cmp td { padding: 10px 8px; }
  .verify-card { padding: 32px 24px; }

  .hero-shot { padding: 20px 14px 0; }
  .win-body { grid-template-columns: 1fr; height: 320px; }
  .win-activity { display: none; }
  .win-title { display: none; }
  .win-badge { display: none; }

  .rail { width: 200px; }
  .c-body { padding: 20px 18px; }
  .model-cards { grid-template-columns: 1fr; }

  /* console sub-views */
  .c-page-head { flex-direction: column; }
  .tabs { margin-bottom: 16px; }
  .plan-card { padding: 20px 18px; }
  .panel-body { overflow-x: auto; }
  .act-table { min-width: 640px; }
  .admin-toolbar { flex-direction: column; align-items: stretch; }
  .admin-toolbar .c-input { max-width: none !important; width: 100%; }
  .inline-form input[type="text"] { min-width: 0; }
  .secret-value { flex-direction: column; align-items: stretch; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .js [data-reveal] { opacity: 1; translate: 0 0; }
}

/* ═══════════════ AUTH PAGES ═══════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 40px;
  position: relative;
  z-index: 1;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  border-radius: 24px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(249,115,22,0.09) 0%, transparent 60%),
    linear-gradient(180deg, #111115 0%, #08080b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 24px 80px rgba(0,0,0,0.6);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  text-decoration: none;
  color: var(--fg);
}

.auth-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--o-500);
  margin-bottom: 8px;
}

.auth-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 13px;
  color: var(--fg-3);
  margin-bottom: 28px;
  line-height: 1.6;
}

.auth-card .stack input,
.auth-card .stack select {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--fg);
  font-size: 13.5px;
  font-family: inherit;
  padding: 11px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.auth-card .stack input::placeholder { color: var(--fg-3); }
.auth-card .stack input:focus { border-color: rgba(249,115,22,0.4); box-shadow: 0 0 0 3px rgba(249,115,22,0.1); }

.auth-card .btn-glow {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 14px;
  border-radius: 12px;
  margin-top: 4px;
}

.notice {
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: 11px;
  margin-bottom: 18px;
}
.notice.bad  { color: #fca5a5; background: rgba(239,68,68,0.1);   box-shadow: inset 0 0 0 1px rgba(239,68,68,0.28); }
.notice.warn { color: #fde68a; background: rgba(234,179,8,0.1);   box-shadow: inset 0 0 0 1px rgba(234,179,8,0.25); }
.notice.good { color: #86efac; background: rgba(74,222,128,0.08); box-shadow: inset 0 0 0 1px rgba(74,222,128,0.2); }

.auth-links {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--fg-3);
  text-align: center;
  line-height: 2;
}
.auth-links a { color: var(--o-400); }
.auth-links a:hover { text-decoration: underline; }

/* ═══════════════ LEGAL PAGES ═══════════════ */
.legal-page { position: relative; z-index: 1; padding-top: 62px; }

.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 32px 80px;
}

.legal-wrap h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 8px; }
.legal-updated { font-size: 13px; color: var(--fg-3); margin-bottom: 48px; }

.legal-wrap h2 {
  font-size: 18px; font-weight: 700; letter-spacing: -0.025em;
  margin: 40px 0 12px; padding-top: 8px;
  border-top: 1px solid var(--line);
}
.legal-wrap h3 { font-size: 15px; font-weight: 700; margin: 24px 0 8px; }
.legal-wrap p  { font-size: 14.5px; color: var(--fg-2); line-height: 1.78; margin-bottom: 14px; }
.legal-wrap ul { padding-left: 20px; margin-bottom: 14px; }
.legal-wrap li { font-size: 14.5px; color: var(--fg-2); line-height: 1.78; margin-bottom: 6px; }
.legal-wrap a  { color: var(--o-400); text-decoration: underline; }
.legal-wrap a:hover { opacity: 0.82; }

@media (max-width: 620px) {
  .auth-card { padding: 28px 22px; }
  .legal-wrap { padding: 56px 20px 60px; }
  .legal-wrap h1 { font-size: 28px; }
}
