/* AIMLRouter Daylight Aurora Tech Theme (Exact Palette & Craft Aligned with aimlapi.com) */
:root {
  --bg: #f7f7f8;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f2f4f8;
  --line: #e5e7eb;
  --line-soft: #eef0f4;
  --line-strong: #c7d2fe;
  --ink: #0a0a0a;
  --ink-2: #1b1b22;
  --muted: #525866;
  --muted-2: #767d8c;
  --violet: #5a2fd6;
  --accent-soft: rgba(90, 47, 214, 0.09);
  --grad-hero: linear-gradient(95deg, #5a2fd6 0%, #3984ff 52%, #05c168 100%);
  --blue: #3984ff;
  --emerald: #05c168;
  --teal: #0fbefa;
  --cyan: #3984ff;
  --danger: #dc2b2b;
  --shadow-sm: 0 1px 2px rgba(20, 20, 43, 0.04), 0 4px 14px -4px rgba(20, 20, 43, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(20, 20, 43, 0.1), 0 2px 6px rgba(20, 20, 43, 0.04);
  --shadow-lg: 0 24px 56px -18px rgba(20, 20, 43, 0.14);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tech-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.app-view { display: none; }
.app-view.active { display: block; }

.tech-grid-bg { background: var(--bg); }

/* Signature aimlapi.com Top Live Rotating Theme Ribbon */
.t-ribbon {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 6px 16px; text-align: center; text-decoration: none;
  color: #ffffff; font-size: 12.5px; font-weight: 700; letter-spacing: 0.005em;
  background: radial-gradient(40% 190% at 36% 50%, rgba(138,107,255,0.48) 0%, transparent 75%), linear-gradient(90deg, #4c23bd 0%, #5a2fd6 52%, #3984ff 100%);
  transition: background 1.4s ease, filter .2s;
}
.t-ribbon:hover { filter: brightness(1.07); }
.t-ribbon-dot { width: 6px; height: 6px; border-radius: 50%; background: #ffffff; box-shadow: 0 0 8px rgba(255,255,255,0.85); flex-shrink: 0; }
#live-ribbon-text { transition: opacity .22s ease, transform .22s ease; }
#live-ribbon-text.fade { opacity: 0; transform: translateY(-3px); }

/* Floating Crisp White Glass Navbar (aimlapi.com style) */
.t-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.84); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  transition: background .25s ease, box-shadow .25s ease;
}
body.scrolled .t-nav {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px -18px rgba(15, 23, 42, 0.18);
}
.t-nav-in {
  max-width: 1160px; margin: 0 auto; padding: 0 24px; height: 66px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.t-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 16.5px; letter-spacing: -0.025em; }
.t-brand img { width: 32px; height: 32px; border-radius: 9px; display: block; box-shadow: 0 4px 12px rgba(10, 10, 10, 0.14); }
.t-links { display: flex; align-items: center; gap: 4px; }
.t-link {
  background: transparent; border: 0; color: #525866; font-size: 13.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px; cursor: pointer; transition: color .15s, background .15s;
}
.t-link:hover { color: var(--ink); background: rgba(10, 10, 10, 0.05); }
.t-link.active { color: var(--violet); background: var(--accent-soft); transition: color .8s ease, background .8s ease; }
.t-actions { display: flex; align-items: center; gap: 10px; }

/* Signature aimlapi.com Pill Buttons: Jet Black Primary + Pure White Ghost */
.btn-t {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  height: 42px; padding: 0 20px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  cursor: pointer; transition: all .18s cubic-bezier(.22,1,.36,1); text-decoration: none; border: 1px solid transparent;
}
.btn-t-sm { height: 34px; padding: 0 14px; font-size: 12.5px; }
.btn-t-primary {
  background: #0a0a0a; color: #ffffff; font-weight: 700;
  box-shadow: 0 4px 14px -4px rgba(10, 10, 10, 0.35);
}
.btn-t-primary:hover { transform: translateY(-1px); background: #23232c; box-shadow: 0 10px 24px -6px rgba(10, 10, 10, 0.4); }
.btn-t-glow {
  background: #0a0a0a; color: #ffffff; font-weight: 700;
  box-shadow: 0 8px 26px -6px rgba(90, 47, 214, 0.38), 0 2px 6px rgba(10, 10, 10, 0.25);
}
.btn-t-glow:hover { transform: translateY(-1.5px); background: #1e1b4b; box-shadow: 0 14px 32px -6px rgba(90, 47, 214, 0.45); }
.btn-t-ghost {
  background: #ffffff; color: var(--ink-2); border-color: #e2e5ec;
  box-shadow: 0 2px 8px rgba(20, 20, 43, 0.04);
}
.btn-t-ghost:hover { background: #f9fafb; color: var(--ink); border-color: #cbd5e1; transform: translateY(-1px); }

.btn-t:active, .t-tab:active, .t-seg-btn:active { transform: translateY(0) scale(0.975); }
.btn-t:focus-visible, .t-link:focus-visible, .t-tab:focus-visible, .t-seg-btn:focus-visible, .t-vbtn:focus-visible, .t-faq-item summary:focus-visible {
  outline: 2px solid var(--violet); outline-offset: 2px;
}

/* Hero w/ Live Time-Evolving Iridescent Aurora Canvas */
.t-hero {
  position: relative; padding: 68px 0 64px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f8 100%);
}
#hero-orbital-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: 1; }
.t-hero-inner { position: relative; z-index: 2; }
.t-hero-eyebrow {
  display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 22px;
}
.t-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(27, 27, 34, 0.09);
  backdrop-filter: blur(12px); font-size: 12px; font-weight: 600; color: var(--ink-2);
  box-shadow: 0 4px 16px -4px rgba(20, 20, 43, 0.08); max-width: 100%;
}
.t-scenario-seg {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(27, 27, 34, 0.1);
  backdrop-filter: blur(12px); box-shadow: 0 2px 10px -4px rgba(20, 20, 43, 0.08);
}
.t-seg-btn {
  min-height: 32px; padding: 5px 16px; border-radius: 999px; border: 0; background: transparent;
  color: var(--muted); font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background .18s cubic-bezier(.22,1,.36,1), color .18s ease, box-shadow .18s ease, transform .14s ease;
}
.t-seg-btn:hover { color: var(--ink); }
.t-seg-btn.on { background: #0a0a0a; color: #ffffff; box-shadow: 0 4px 12px -4px rgba(10, 10, 10, 0.35); }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(5, 193, 104, 0.48); } 60% { box-shadow: 0 0 0 6px rgba(5, 193, 104, 0); } }
.t-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); flex-shrink: 0; animation: pulseDot 2.4s ease-out infinite; }
.t-h1 {
  font-size: clamp(32px, 5.2vw, 62px); font-weight: 800; letter-spacing: -0.04em;
  line-height: 1.07; margin: 0 0 18px; color: var(--ink); text-wrap: balance;
}
.t-grad {
  background: var(--grad-hero);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  transition: background 1.2s ease;
}
.t-lead { font-size: 16px; line-height: 1.66; color: var(--muted); max-width: 64ch; margin: 0; text-wrap: pretty; }
.t-hero-lead { margin: 0 auto; font-size: clamp(15px, 1.45vw, 17px); max-width: 60ch; }
.t-lead b { color: var(--ink); font-weight: 700; }
.t-cta-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 28px 0 40px; }
.t-cta-main, .t-cta-sub { height: 46px; padding: 0 24px; font-size: 14.5px; }
.t-reveal { opacity: 0; transform: translateY(14px); transition: opacity .48s cubic-bezier(.22,1,.36,1), transform .48s cubic-bezier(.22,1,.36,1); }
.t-reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .t-reveal { opacity: 1; transform: none; transition: none; }
  .t-dot { animation: none; }
}
.t-metric-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 20px; overflow: hidden;
  max-width: 980px; margin: 0 auto; box-shadow: var(--shadow-lg);
}
.t-metric { background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); padding: 20px 20px; text-align: left; }
.t-metric-k { font-size: 10.5px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; }
.t-metric-v { font-size: 24px; font-weight: 800; color: var(--ink); margin-top: 5px; font-family: var(--mono); letter-spacing: -0.02em; }
.t-metric-s { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* Sections & Illustrated Cards (Daylight Pure White Cards framing 3D Artwork) */
.t-sec { padding: 80px 0; border-top: 1px solid var(--line); position: relative; scroll-margin-top: 72px; }
.t-sec-head { margin-bottom: 36px; }
.t-kicker {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 10px;
}
.t-h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.14; margin: 0 0 10px; color: var(--ink); }
.t-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.t-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.t-card:hover { border-color: #c7d2fe; transform: translateY(-3px); box-shadow: var(--shadow-md); }
.t-card.pain:hover { border-color: #fecaca; box-shadow: 0 16px 36px -14px rgba(220, 43, 43, 0.14); }
.t-illus-wrap {
  position: relative; aspect-ratio: 16 / 10; width: 100%; overflow: hidden;
  background: #0a0c10; border-bottom: 1px solid var(--line);
}
.t-illus-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.t-card:hover .t-illus-wrap img { transform: scale(1.04); }
.t-illus-wrap::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,12,16,0.12) 0%, transparent 40%, rgba(10,12,16,0.38) 100%);
}
.t-illus-hud {
  position: absolute; top: 10px; left: 12px; z-index: 2;
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(255, 255, 255, 0.95); color: #059669;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.t-card.pain .t-illus-hud { color: #dc2b2b; }
.t-card-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.t-card-h { font-size: 17.5px; font-weight: 800; margin: 0 0 8px; color: var(--ink); letter-spacing: -0.02em; }
.t-card-p { font-size: 14px; line-height: 1.62; color: var(--muted); margin: 0; }
.t-card-p code { font-family: var(--mono); font-size: 12px; background: #f2f4f8; color: var(--violet); padding: 1px 5px; border-radius: 5px; }

/* Architecture Strip */
.t-arch {
  margin-top: 24px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--bg-elev); box-shadow: var(--shadow-sm);
  padding: 22px 24px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 14px;
}
.t-arch-node { background: #f7f7f8; border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; }
.t-arch-node.core {
  border-color: #c7d2fe;
  background: linear-gradient(135deg, rgba(90, 47, 214, 0.06), rgba(57, 132, 255, 0.07), rgba(5, 193, 104, 0.06));
}
.t-card-num { font-family: var(--mono); font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; color: var(--violet); }
.t-arch-arrow { font-family: var(--mono); color: var(--violet); font-weight: 800; font-size: 16px; text-align: center; }

/* Quick Start Terminal */
.t-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.t-tab {
  height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #ffffff; color: var(--muted); font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: all .15s;
}
.t-tab:hover { color: var(--ink); border-color: #cbd5e1; }
.t-tab.on { background: #0a0a0a; color: #ffffff; border-color: #0a0a0a; }
.t-quick-shell {
  background: #ffffff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.t-quick-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.t-qbox { background: #ffffff; padding: 18px 20px; }
.t-qbox-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 800; color: var(--violet); letter-spacing: 0.06em; }
.t-qbox-val { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 8px; word-break: break-all; }
.t-qbox-hint { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.t-qbox-hint code { font-family: var(--mono); font-size: 11.5px; background: #f2f4f8; color: var(--violet); padding: 1px 5px; border-radius: 4px; }
.t-code-pre {
  margin: 0; padding: 20px 22px; font-family: var(--mono); font-size: 12.5px; line-height: 1.65;
  background: #0d1117; color: #e2e8f0; overflow-x: auto; white-space: pre;
}
.t-quick-foot {
  padding: 13px 20px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  background: #f9fafb;
}

/* Split Model Directory: Left 7 Vendors / Right Full Model List & IDs */
.t-mdir {
  display: grid; grid-template-columns: 256px 1fr; border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden; background: #ffffff;
  box-shadow: var(--shadow-md);
}
.t-vrail { border-right: 1px solid var(--line); background: #f9fafb; padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.t-vbtn {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 11px 13px; border-radius: 12px; border: 1px solid transparent;
  background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 700; cursor: pointer; text-align: left;
  transition: all .15s;
}
.t-vbtn:hover { background: #ffffff; color: var(--ink); border-color: var(--line); }
.t-vbtn.on { background: #0a0a0a; color: #ffffff; border-color: #0a0a0a; box-shadow: 0 6px 16px -6px rgba(10, 10, 10, 0.3); }
.t-vsub { font-size: 11px; font-weight: 500; color: var(--muted-2); display: block; margin-top: 2px; }
.t-vbtn.on .t-vsub { color: #cbd5e1; }
.t-vcnt { font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #eef0f4; color: var(--muted); }
.t-vbtn.on .t-vcnt { background: rgba(255, 255, 255, 0.18); color: #ffffff; }
.t-mpane { display: flex; flex-direction: column; min-width: 0; background: #ffffff; }
.t-mpane-head {
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.t-search {
  height: 36px; width: 250px; max-width: 100%; border-radius: 999px;
  border: 1px solid var(--line); background: #f7f7f8; color: var(--ink);
  padding: 0 14px; font-size: 12.5px; outline: none; transition: border-color .15s, background .15s;
}
.t-search:focus { border-color: var(--violet); background: #ffffff; }
.t-mtable-wrap { overflow-x: auto; max-height: 540px; overflow-y: auto; }
.t-mtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t-mtable th {
  position: sticky; top: 0; background: #f9fafb; z-index: 2;
  text-align: left; padding: 11px 16px; font-size: 11px; font-weight: 700;
  color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--line);
}
.t-mtable td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; color: var(--ink-2); }
.t-mtable tr:hover td { background: #f9fafb; }
.t-mtag { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 7px; background: #eaf4ff; color: #1d4ed8; }
.t-mtag.inf { background: #def2e6; color: #047857; }
.t-mtag.img { background: #f3e8ff; color: #6d28d9; }
.t-mtag.soon { background: #eef0f4; color: #6b7280; }
.t-vdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); margin-right: 6px; vertical-align: middle; }
.t-vbtn.soon { opacity: 0.62; color: var(--muted-2); }
.t-vbtn.soon:hover { opacity: 0.85; }
.t-vbtn.soon.on { opacity: 1; background: #4b5563; border-color: #4b5563; color: #ffffff; }
.t-vcnt.soon { background: #eef0f4; color: #6b7280; font-family: inherit; font-weight: 700; font-size: 10px; letter-spacing: 0.03em; text-transform: uppercase; }
.t-vbtn.soon.on .t-vcnt.soon { background: rgba(255,255,255,0.2); color: #ffffff; }
.t-mtable tr.is-soon td { opacity: 0.56; color: #6b7280; background: #fafafa; }
.t-mtable tr.is-soon:hover td { background: #f5f5f7; }
.t-mtable tr.is-soon .t-mid { color: #6b7280; background: #f3f4f6; border-color: #e5e7eb; cursor: default; }
.t-mtable tr.is-soon .t-mid:hover { background: #f3f4f6; border-color: #e5e7eb; color: #6b7280; }
.btn-t-soon { height: 28px; padding: 0 11px; font-size: 11px; background: #f2f4f8; color: #6b7280; border-color: #e5e7eb; cursor: not-allowed; box-shadow: none; }
.btn-t-soon:hover { transform: none; background: #f2f4f8; color: #6b7280; border-color: #e5e7eb; }
.t-mid {
  font-family: var(--mono); font-size: 12px; color: #1b1b22; background: #f2f4f8;
  padding: 4px 9px; border-radius: 7px; border: 1px solid #e2e5ec;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s; display: inline-block;
}
.t-mid:hover { background: #eef2ff; border-color: #a5b4fc; color: var(--violet); }
.t-mcontrols { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.t-mchips { display: flex; gap: 3px; background: #f2f4f8; border: 1px solid var(--line); padding: 3px; border-radius: 999px; }
.t-mchip {
  height: 28px; padding: 0 11px; border-radius: 999px; border: 0; background: transparent;
  color: var(--muted); font-size: 11.5px; font-weight: 700; cursor: pointer; transition: all .15s;
}
.t-mchip:hover { color: var(--ink); }
.t-mchip.on { background: #ffffff; color: var(--ink); box-shadow: 0 1px 4px rgba(20, 20, 43, 0.1); }

/* Savings Strip, Pricing Cards, Entitlements, FAQ, Footer & Modals */
.t-save-strip {
  display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap;
  padding: 15px 24px; margin: 0 auto 26px; max-width: 780px; border-radius: 16px;
  border: 1px solid var(--line); background: #ffffff; box-shadow: var(--shadow-sm);
}
.t-save-item { display: flex; flex-direction: column; gap: 3px; }
.t-save-k { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted-2); }
.t-save-v { font-size: 17px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.t-save-v.bad { color: #dc2b2b; text-decoration: line-through; opacity: 0.85; }
.t-save-v.good { color: #047857; }
.t-save-arrow { font-family: var(--mono); color: var(--violet); font-size: 18px; font-weight: 800; }

.t-price-card {
  background: #ffffff; border: 1px solid var(--line); border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.t-price-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.t-price-card.hot {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--accent-soft) 0%, #ffffff 34%);
  box-shadow: 0 22px 50px -18px rgba(20, 20, 43, 0.16), 0 0 0 1px var(--accent-soft);
  transition: border-color 1.2s ease, background 1.2s ease;
}
.t-price-val { font-size: 38px; font-weight: 800; font-family: var(--mono); color: var(--ink); margin: 10px 0 18px; letter-spacing: -0.03em; }
.t-price-val span { font-size: 14px; color: var(--muted); font-weight: 500; font-family: inherit; }
.t-plist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 11px; font-size: 13.5px; color: var(--muted); }
.t-plist li { display: flex; gap: 9px; line-height: 1.48; }
.t-plist li b { color: var(--ink); }
.t-plist code { font-family: var(--mono); font-size: 12px; background: #f2f4f8; color: var(--violet); padding: 1px 5px; border-radius: 4px; }

.t-ent-table {
  width: 100%; border-collapse: collapse; margin-top: 24px; border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; background: #ffffff; font-size: 13.5px; box-shadow: var(--shadow-sm);
}
.t-ent-table th, .t-ent-table td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; color: var(--ink-2); }
.t-ent-table th { font-size: 11px; color: var(--muted-2); text-transform: uppercase; background: #f9fafb; font-weight: 700; }
.t-ent-table th.col-hot { color: var(--violet); background: #eef2ff; }
.t-ent-table td.col-hot { background: rgba(90, 47, 214, 0.04); color: var(--ink); font-weight: 700; }

.t-faq { margin-top: 38px; border: 1px solid var(--line); border-radius: 20px; background: #ffffff; padding: 26px 28px; box-shadow: var(--shadow-sm); }
.t-faq-head { margin-bottom: 16px; }
.t-faq-list { display: grid; gap: 8px; }
.t-faq-item { border: 1px solid var(--line); border-radius: 14px; background: #f9fafb; transition: border-color .15s, background .15s; }
.t-faq-item[open] { border-color: #c7d2fe; background: #ffffff; box-shadow: 0 6px 18px -10px rgba(90, 47, 214, 0.16); }
.t-faq-item summary {
  padding: 14px 18px; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.t-faq-item summary::-webkit-details-marker { display: none; }
.t-faq-item summary::after { content: '+'; font-family: var(--mono); color: var(--violet); font-size: 17px; font-weight: 700; }
.t-faq-item[open] summary::after { content: '−'; }
.t-faq-item p { margin: 0; padding: 0 18px 16px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.t-faq-item code { font-family: var(--mono); font-size: 12px; color: var(--violet); background: #f2f4f8; padding: 1px 5px; border-radius: 4px; }

.t-footer { border-top: 1px solid var(--line); padding: 52px 0 44px; background: #ffffff; }
.t-fgrid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.t-fcol a { display: block; color: var(--muted); text-decoration: none; font-size: 13.5px; margin-top: 9px; transition: color .15s; }
.t-fcol a:hover { color: var(--violet); }
.t-fprov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }

.t-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 120; pointer-events: none;
  padding: 10px 18px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: #0a0a0a; color: #ffffff; border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 14px 36px rgba(10, 10, 10, 0.28); opacity: 0; transform: translateY(10px);
  transition: opacity .18s, transform .18s;
}
.t-toast.show { opacity: 1; transform: translateY(0); }

.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.52); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 90; padding: 16px; }
.modal-backdrop.open { display: flex; }
.stripe-modal { width: 100%; max-width: 440px; background: #ffffff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; color: var(--ink-2); box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24); }
.stripe-header { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: #fafafa; }
.stripe-body { padding: 20px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.form-field input, .form-field select { width: 100%; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #f9fafb; color: var(--ink); padding: 0 12px; font-size: 13.5px; }
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--violet); background: #ffffff; }
.console-container { max-width: 1160px; margin: 0 auto; padding: 36px 24px 64px; }
.playground-shell { display: grid; grid-template-columns: 320px 1fr; gap: 18px; }
.pg-sidebar, .pg-main { background: #ffffff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-sm); }
.pg-messages { min-height: 260px; max-height: 420px; overflow-y: auto; display: grid; gap: 10px; }
.msg-bubble { padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.6; background: #f7f7f8; border: 1px solid var(--line); color: var(--ink-2); }
.msg-bubble.user { background: #eef2ff; border-color: #c7d2fe; color: var(--ink); }
.code-box { background: #0d1117; border: 1px solid #1e293b; border-radius: 10px; padding: 12px; font-family: var(--mono); font-size: 11.5px; color: #e2e8f0; white-space: pre-wrap; word-break: break-all; }

@media (max-width: 900px) {
  .t-links, .t-hud-tl, .t-hud-tr { display: none; }
  .t-metric-bar { grid-template-columns: repeat(2, 1fr); }
  .t-grid-3, .t-quick-top, .t-fgrid, .playground-shell { grid-template-columns: 1fr; }
  .t-arch { grid-template-columns: 1fr; }
  .t-arch-arrow { transform: rotate(90deg); }
  .t-mdir { grid-template-columns: 1fr; }
  .t-vrail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .t-vbtn { width: auto; white-space: nowrap; gap: 8px; }
  .t-save-strip { flex-direction: column; align-items: flex-start; gap: 8px; }
  .t-save-arrow { transform: rotate(90deg); }
}

.t-swipe-hint { display: none; }

@media (max-width: 720px) {
  .tech-wrap { padding: 0 16px; }
  .t-nav-in { padding: 0 14px; gap: 8px; height: 58px; }
  .t-brand { font-size: 15px; gap: 8px; }
  .t-actions { gap: 6px; }
  .t-actions .btn-t-sm { height: 34px; padding: 0 12px; font-size: 12px; }
  .t-hero { padding: 40px 0 40px; }
  .t-hero-eyebrow { gap: 10px; margin-bottom: 18px; }
  .t-pill { font-size: 11.5px; padding: 6px 12px; line-height: 1.35; }
  .t-cta-row { margin: 22px 0 28px; flex-direction: column; align-items: stretch; }
  .t-cta-main, .t-cta-sub { width: 100%; height: 46px; }
  .t-metric { padding: 14px 14px; }
  .t-metric-v { font-size: 19px; }
  .t-sec { padding: 52px 0; }
  .t-qcopy-btn { height: 34px !important; padding: 0 12px !important; font-size: 12px !important; }
  .t-quick-foot .btn-t { min-height: 38px; }
  .t-mtable thead { display: none; }
  .t-mtable, .t-mtable tbody, .t-mtable tr, .t-mtable td { display: block; width: 100%; }
  .t-mtable tr { padding: 13px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
  .t-mtable td { padding: 0; border: 0; text-align: left !important; }
  .t-mtable td.m-ctx { font-size: 11.5px; color: var(--muted); }
  .t-mtable td.m-ctx::before { content: 'Context: '; color: var(--muted-2); }
  .t-mid { font-size: 11.5px; word-break: break-all; max-width: 100%; }
  .t-mcontrols { width: 100%; }
  .t-search { width: 100%; font-size: 16px; height: 42px; }
  .t-price-card { padding: 22px 18px; }
  .t-price-card .btn-t { min-height: 44px; font-size: 14px; }
  .t-topup-bar { padding: 14px 16px !important; }
  .t-topup-bar .btn-t { width: 100%; min-height: 44px; font-size: 13.5px; }
  .t-swipe-hint {
    display: block; text-align: center; margin-top: 20px; margin-bottom: -14px;
    font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--muted-2);
  }
  .t-ent-table { min-width: 540px; font-size: 12.5px; }
  .t-ent-table th, .t-ent-table td { padding: 10px 12px; }
  .t-faq { padding: 18px 16px; }
  /* Prevent iOS Safari auto-zoom & ensure modals fit short viewports */
  .auth-input-wrap input, .form-field input, .form-field select { font-size: 16px; }
  .modal-backdrop { padding: 12px; align-items: flex-end; }
  .auth-modal, .stripe-modal {
    max-height: 92dvh; overflow-y: auto; border-radius: 22px 22px 18px 18px;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .auth-aurora-head { padding: 22px 18px 16px; }
  .auth-body { padding: 16px 18px 20px; }
}

/* Upgraded Daylight-Aurora Auth Modal (Login & Signup) */
@keyframes authPop { from { opacity: 0; transform: translateY(10px) scale(0.975); } to { opacity: 1; transform: translateY(0) scale(1); } }
.auth-modal {
  width: 100%; max-width: 452px; background: #ffffff; border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 24px; overflow: hidden; color: var(--ink-2);
  box-shadow: 0 32px 80px -16px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  animation: authPop .2s cubic-bezier(.22, 1, .36, 1);
}
.auth-aurora-head {
  position: relative; padding: 28px 26px 20px; text-align: center;
  background:
    radial-gradient(60% 90% at 15% 15%, rgba(165, 132, 255, 0.26) 0%, transparent 72%),
    radial-gradient(55% 85% at 52% 0%, rgba(125, 211, 252, 0.26) 0%, transparent 72%),
    radial-gradient(55% 85% at 88% 18%, rgba(253, 186, 116, 0.24) 0%, transparent 72%),
    linear-gradient(180deg, #fafaff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line-soft);
}
.auth-close-btn {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08); background: rgba(255, 255, 255, 0.84); color: var(--muted);
  font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .15s;
}
.auth-close-btn:hover { background: #ffffff; color: var(--ink); border-color: #cbd5e1; }
.auth-brand-badge {
  width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 14px; background: #ffffff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(90, 47, 214, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.06);
}
.auth-brand-badge img { width: 38px; height: 38px; border-radius: 10px; display: block; }
.auth-title { margin: 0; font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.auth-sub { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.auth-body { padding: 20px 24px 22px; }
.auth-seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  background: #f2f4f8; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 16px;
}
.auth-seg-btn {
  height: 36px; border-radius: 999px; border: 0; background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 700; cursor: pointer; transition: all .16s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.auth-seg-btn:hover { color: var(--ink); }
.auth-seg-btn.on { background: #ffffff; color: var(--ink); font-weight: 800; box-shadow: 0 2px 8px rgba(20, 20, 43, 0.09); }
.auth-seg-pill {
  font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 999px;
  background: #def2e6; color: #047857; letter-spacing: 0.02em;
}
.auth-perks {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap;
  padding: 9px 12px; margin-bottom: 14px; border-radius: 12px;
  background: #f5f3ff; border: 1px solid #e0e7ff; font-size: 11.5px; font-weight: 700; color: #4338ca;
}
.auth-perks code { font-family: var(--mono); font-size: 11px; color: var(--violet); }
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.auth-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.auth-label-row label { margin-bottom: 0; }
.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-ico { position: absolute; left: 12px; width: 17px; height: 17px; color: #94a3b8; pointer-events: none; transition: color .15s; }
.auth-input-wrap input {
  width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #f9fafb; color: var(--ink); padding: 0 40px 0 38px; font-size: 14px; transition: all .15s;
}
.auth-input-wrap input:focus {
  outline: none; background: #ffffff; border-color: var(--violet);
  box-shadow: 0 0 0 3.5px rgba(90, 47, 214, 0.12);
}
.auth-input-wrap:focus-within .auth-ico { color: var(--violet); }
.auth-eye-btn {
  position: absolute; right: 8px; width: 30px; height: 30px; border-radius: 8px; border: 0;
  background: transparent; color: #94a3b8; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.auth-eye-btn:hover { background: rgba(15, 23, 42, 0.05); color: var(--ink); }
.auth-eye-btn svg { width: 17px; height: 17px; }
.auth-pw-meter { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; }
.auth-pw-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; flex: 1; }
.auth-pw-bars span { height: 4px; border-radius: 999px; background: #e5e7eb; transition: background .2s; }
.auth-pw-bars span.weak { background: #f59e0b; }
.auth-pw-bars span.good { background: #3984ff; }
.auth-pw-bars span.strong { background: #05c168; }
.auth-pw-hint { font-size: 11px; font-weight: 600; color: var(--muted-2); white-space: nowrap; }
.auth-alert { border-radius: 11px; padding: 10px 12px; margin-bottom: 13px; font-size: 12px; font-weight: 600; line-height: 1.48; }
.auth-alert.err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.auth-submit-btn { width: 100%; height: 45px; font-size: 14px; margin-top: 2px; }
.auth-submit-btn:disabled { opacity: 0.52; cursor: not-allowed; transform: none; }
.auth-text-link {
  background: none; border: 0; padding: 0; color: var(--violet); font-size: 12px; font-weight: 700; cursor: pointer;
}
.auth-text-link:hover { text-decoration: underline; }
.auth-foot {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft);
  text-align: center; font-size: 12.5px; color: var(--muted); display: grid; gap: 7px;
}
.auth-legal-note { font-size: 11px; color: var(--muted-2); line-height: 1.5; }
.auth-legal-note a { color: var(--muted); text-decoration: underline; }
.auth-legal-note a:hover { color: var(--violet); }

@media (max-width: 720px) {
  .auth-input-wrap input, .form-field input, .form-field select { font-size: 16px; }
  .modal-backdrop { padding: 12px; align-items: flex-end; }
  .auth-modal, .stripe-modal {
    max-height: 92dvh; overflow-y: auto; border-radius: 22px 22px 18px 18px;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .auth-aurora-head { padding: 20px 18px 15px; }
  .auth-body { padding: 16px 18px 20px; }
}

/* Shared Rich Markdown, Code Copy, Reasoning & Guest Conversion Styles for Homepage Playground */
.home-pg-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.home-pg-chip {
  height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #ffffff; color: var(--ink-2); font-size: 12px; font-weight: 700; cursor: pointer; transition: all .15s;
}
.home-pg-chip:hover { border-color: #a5b4fc; color: var(--violet); background: #f5f3ff; }
.home-pg-conv {
  margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid #ddd6fe;
  background: linear-gradient(90deg, #f5f3ff 0%, #eff6ff 100%);
  align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2);
}
.pg-md .pg-p { margin: 0 0 8px; }
.pg-md .pg-p:last-child { margin-bottom: 0; }
.pg-md .pg-h { margin: 10px 0 6px; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.pg-md .pg-ul, .pg-md .pg-ol { margin: 6px 0 10px; padding-left: 20px; }
.pg-ic { font-family: var(--mono); font-size: 12px; background: #f2f4f8; color: var(--violet); padding: 1px 5px; border-radius: 5px; }
.pg-code-wrap { margin: 10px 0; border-radius: 12px; overflow: hidden; border: 1px solid #1e293b; background: #0d1117; }
.pg-code-head {
  display: flex; align-items: center; justify-content: space-between; padding: 6px 12px;
  background: #161b22; border-bottom: 1px solid #262c36; font-family: var(--mono); font-size: 11px; color: #94a3b8;
}
.pg-code-copy {
  border: 1px solid #334155; background: #0f172a; color: #e2e8f0; border-radius: 6px;
  padding: 2px 9px; font-size: 11px; font-weight: 700; cursor: pointer;
}
.pg-code-pre { margin: 0; padding: 12px 14px; overflow-x: auto; font-family: var(--mono); font-size: 12px; line-height: 1.58; color: #e2e8f0; }
.pg-think { margin-bottom: 10px; border: 1px solid #e0e7ff; background: #f8f7ff; border-radius: 10px; padding: 7px 11px; font-size: 12px; }
.pg-think summary { cursor: pointer; font-weight: 700; color: var(--violet); display: flex; align-items: center; gap: 6px; list-style: none; }
.pg-think-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
.pg-think-body { margin-top: 7px; color: var(--muted); white-space: pre-wrap; font-family: var(--mono); font-size: 11.5px; line-height: 1.5; max-height: 150px; overflow-y: auto; }
.pg-cursor { display: inline-block; width: 7px; height: 15px; background: var(--violet); vertical-align: middle; margin-left: 2px; border-radius: 1px; }
.pg-meta-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
