/* ==========================================
   ROOT & RESET
   ========================================== */
:root {
  /* === Core Colors === */
  --bg: #0d0f12;                /* slightly brighter than before, avoids pure black */
  --panel: #15171c;             /* lifted background for readability */
  --panel-2: #1a1d22;           /* darker panel for contrast sections */
  --text: #f0f3f8;              /* brightened main text */
  --muted: #aab3c2;             /* slightly cooler muted tone for clarity */
  --line: #242831;              /* more visible separator */
  
  /* === Accents === */
  --accent: #4ea8ff;            /* Mentron blue */
  --accent-2: #7bdcff;          /* lighter blue glow */
  --success: #23d18b;
  --warning: #f5a524;
  --danger: #ff5d5d;

  /* === Shadows & Radii === */
  --shadow: 0 8px 26px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.05) inset;
  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 1200px;
}

main > section {
  backdrop-filter: blur(4px);
  background-blend-mode: lighten;
}


* { 
  box-sizing: border-box; 
  margin: 0;
  padding: 0;
}

html, body { 
  height: 100%;
  overflow-x: hidden; 
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text); 
  background: radial-gradient(1200px 600px at 70% -10%, rgba(78,168,255,.12), transparent 60%), var(--bg);
  line-height: 1.45; 
  -webkit-font-smoothing: antialiased; 
  text-rendering: optimizeLegibility;
}

a { 
  color: inherit; 
  text-decoration: none; 
}

img { 
  max-width: 100%; 
  display: block; 
}

.container { 
  max-width: var(--maxw); 
  margin: 0 auto; 
  padding: 0 60px;
  width: 100%;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
header.site {
  position: sticky; 
  top: 0; 
  z-index: 1000; 
  backdrop-filter: saturate(1.2) blur(8px);
  background: linear-gradient(to bottom, rgba(11,12,14,.85), rgba(11,12,14,.6)); 
  border-bottom: 1px solid var(--line);
}

.nav { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  height: 64px; 
  gap: 16px;
}

.brand { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  font-weight: 700; 
  letter-spacing: .2px;
  flex-shrink: 0;
}

.brand .logo {
  height: 32px;
  width: auto;
  display: block;
}

.links { 
  display: none; 
  gap: 18px; 
  color: var(--muted); 
}

.links a { 
  padding: 8px 10px; 
  border-radius: 10px; 
  transition: all 0.2s;
}

.links a:hover { 
  color: var(--text); 
  background: rgba(255,255,255,.03); 
}

.cta { 
  display: flex; 
  align-items: center; 
  gap: 10px;
  flex-shrink: 0;
}

/* Buttons */
.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 10px; 
  font-weight: 600; 
  border-radius: 12px; 
  padding: 10px 14px; 
  border: 1px solid var(--line); 
  background: var(--panel); 
  box-shadow: var(--shadow); 
  color: var(--text); 
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { 
  transform: translateY(-1px); 
  border-color: rgba(78,168,255,.45); 
  box-shadow: 0 14px 40px rgba(78,168,255,.12), var(--shadow); 
}

.btn.primary { 
  background: linear-gradient(180deg, #0078d4, #005a9e); 
  border-color: rgba(0, 120, 212, 0.8); 
  box-shadow: 0 14px 36px rgba(0,120,212,.45), 0 0 0 1px rgba(255,255,255,.05) inset; 
  color: #ffffff;
}

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

/* Hamburger */
.hamburger { 
  display: inline-flex; 
  width: 36px; 
  height: 36px; 
  align-items: center; 
  justify-content: center; 
  border-radius: 10px; 
  border: 1px solid var(--line); 
  background: var(--panel); 
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger span { 
  width: 18px; 
  height: 2px; 
  background: var(--text); 
  position: relative; 
  display: block; 
}

.hamburger span::before,
.hamburger span::after { 
  content:""; 
  position:absolute; 
  left:0; 
  width: 18px; 
  height:2px; 
  background: var(--text); 
}

.hamburger span::before { 
  top:-6px;
} 

.hamburger span::after { 
  top:6px;
}

/* Mobile menu */
.mobile-menu { 
  display:none; 
  border-top:1px solid var(--line); 
  background: var(--panel); 
}

.mobile-menu a { 
  display:block; 
  padding:14px 8px; 
  color: var(--muted);
} 

.mobile-menu a + a { 
  border-top:1px solid var(--line); 
}

.mobile-menu a:hover { 
  color:var(--text); 
  background: rgba(255,255,255,.02); 
}

/* Desktop navigation */
@media(min-width: 980px) {
  .links { 
    display: flex; 
  }
  
  .hamburger, 
  .mobile-menu { 
    display: none !important; 
  }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero { 
  padding: 80px 0 40px;
  text-align: center;
}

.headline { 
  font-size: clamp(36px, 5vw, 64px); 
  font-weight: 800; 
  letter-spacing: -0.02em; 
  line-height: 1.05; 
  margin: 0 0 14px;
  text-align: center;
}

.subhead { 
  color: var(--muted); 
  font-size: clamp(16px, 2.1vw, 20px); 
  max-width: 760px; 
  margin: 0 auto 26px;
  text-align: center;
  display: block;
}

.hero-ctas { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 12px; 
  margin-bottom: 26px; 
  justify-content: center;
}

.trust-strip { 
  display: grid; 
  grid-template-columns: repeat(6, 1fr); 
  gap: 18px; 
  align-items: center; 
  padding: 18px; 
  border: 1px solid var(--line); 
  border-radius: var(--radius); 
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  margin-top: 40px;
}

.trust-logo { 
  height: 26px; 
  opacity:.7; 
  filter: grayscale(1); 
  display:flex; 
  align-items:center; 
  justify-content:center; 
}

.trust-logo span { 
  font-family: "JetBrains Mono", monospace; 
  font-size: 12px; 
  letter-spacing: .2px; 
}

/* ==========================================
   WINDOW PREVIEW
   ========================================== */
.window { 
  margin: 30px auto 0; 
  background: var(--panel-2); 
  border: 1px solid var(--line); 
  border-radius: var(--radius-lg); 
  box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03) inset; 
  overflow: hidden;
  max-width: 100%;
}

.win-top { 
  display:flex; 
  align-items:center; 
  gap:8px; 
  padding: 12px; 
  border-bottom:1px solid var(--line); 
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)); 
}

.dots { 
  display:flex; 
  gap:6px; 
}

.dot { 
  width:10px; 
  height:10px; 
  border-radius:50%; 
}

.dot.red { 
  background:#ff5f57;
} 

.dot.yellow { 
  background:#ffbd2e;
} 

.dot.green { 
  background:#28c840;
}

.win-title { 
  color: var(--muted); 
  font-size: 12px; 
  margin-left: 6px; 
}

.win-body { 
  display:grid; 
  grid-template-columns: 300px 1fr; 
  min-height: 420px; 
}

.sidebar { 
  border-right:1px solid var(--line); 
  background: linear-gradient(180deg, rgba(255,255,255,.01), rgba(255,255,255,0)); 
  padding:12px; 
}

.side-item { 
  display:flex; 
  align-items:center; 
  gap:10px; 
  padding:10px 8px; 
  border-radius:10px; 
  color: var(--muted); 
}

.side-item.active { 
  background: rgba(78,168,255,.08); 
  color: var(--text); 
  border: 1px solid rgba(78,168,255,.35); 
}

.terminal { 
  padding: 16px; 
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; 
  font-size: 13px; 
  position: relative; 
  overflow:auto; 
}

.prompt { 
  color: #8bd5ff; 
}

.cmd { 
  color: #e8e8e8; 
}

.output { 
  color: #98a2b3; 
}

.cursor { 
  display:inline-block; 
  width:8px; 
  height:1.2em; 
  background: var(--accent); 
  vertical-align: text-bottom; 
  animation: blink 1.2s steps(1) infinite; 
}

@keyframes blink { 
  50% { 
    opacity: 0; 
  } 
}

/* ==========================================
   SECTIONS & FEATURES
   ========================================== */
section { 
  padding: 80px 0; 
}

.section-head { 
  text-align: center; 
  margin-bottom: 34px; 
  padding-top: 40px;
}

.eyebrow { 
  color: var(--muted); 
  text-transform: uppercase; 
  letter-spacing: .16em; 
  font-size: 12px; 
}

.h2 { 
  font-size: clamp(26px, 3.8vw, 42px); 
  margin: 8px 0 10px; 
  font-weight: 800; 
  letter-spacing:-.02em; 
}

.lede { 
  color: var(--muted); 
  max-width: 760px; 
  margin: 0 auto; 
}

.features { 
  display: grid; 
  gap: 22px; 
}

.feature { 
  display:grid; 
  gap: 24px; 
  align-items: center; 
  border: 1px solid var(--line); 
  background: var(--panel); 
  border-radius: var(--radius); 
  padding: 22px; 
}

.feature .illus { 
  aspect-ratio: 16/9; 
  border: 1px dashed #283040; 
  border-radius: 12px; 
  background: linear-gradient(180deg, rgba(78,168,255,.06), rgba(78,168,255,0)); 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  color:#89c7ff; 
}

.feature h3 { 
  margin: 0 0 8px; 
  font-size: 20px; 
}

.feature p { 
  margin: 0; 
  color: var(--muted); 
}

@media(min-width: 860px) {
  .features .feature { 
    grid-template-columns: 1.1fr 1fr; 
  }
  
  .features .feature:nth-child(2n) { 
    grid-template-columns: 1fr 1.1fr; 
  }
  
  .features .feature:nth-child(2n) .illus { 
    order: -1; 
  }
}

/* ==========================================
   FULL-BLEED STRIPES
   ========================================== */
.stripe {
  border-top:1px solid var(--line); 
  padding:80px 0;
  width: 100%;
}

.stripe-dark {
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
}

.stripe-alt {
  background:linear-gradient(180deg, rgba(78,168,255,.03), rgba(78,168,255,0));
}

.stripe-intro {
  padding-bottom:10px;
}

.split {
  display:grid; 
  grid-template-columns: 1.1fr 1fr; 
  gap:40px; 
  align-items:center;
}

/* Copy column */
.copy h3 {
  font-size: clamp(22px, 2.6vw, 30px); 
  margin:0 0 8px; 
  font-weight:800; 
  letter-spacing:-.02em;
}

.copy p {
  color:var(--muted); 
  margin:0 0 14px;
}

.bullets {
  margin:12px 0 0; 
  padding:0 0 0 18px; 
  color:var(--muted); 
  line-height:1.7;
}

.bullets li {
  margin:4px 0;
}

.checklist {
  list-style:none; 
  padding:0; 
  margin:12px 0 0; 
  display:grid; 
  gap:8px;
}

.checklist .check {
  display:inline-block; 
  width:18px; 
  height:18px; 
  border-radius:4px; 
  margin-right:8px;
  background:linear-gradient(180deg, #1c2a33, #13202b); 
  border:1px solid #2a3b47; 
  vertical-align:-4px; 
  position:relative; 
  overflow:hidden;
}

.checklist .check::after {
  content:""; 
  position:absolute; 
  left:4px; 
  top:1px; 
  width:6px; 
  height:10px; 
  border-right:2px solid #23d18b; 
  border-bottom:2px solid #23d18b;
  transform:rotate(45deg); 
  opacity:0; 
  animation:checkmark 1s ease forwards;
}

@keyframes checkmark { 
  40% {
    opacity:1;
  } 
  100% {
    opacity:1;
  } 
}

/* ==========================================
   DEMO WINDOWS
   ========================================== */
.window-demo {
  background:var(--panel-2); 
  border:1px solid var(--line); 
  border-radius:var(--radius-lg); 
  overflow:hidden; 
  box-shadow:0 20px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.03) inset;
  max-width: 100%;
}

.win-top-demo {
  display:flex; 
  align-items:center; 
  gap:8px; 
  padding:10px 12px; 
  border-bottom:1px solid var(--line); 
  background:linear-gradient(180deg, rgba(255,255,255,.03), transparent);
}

/* Jupyter scene */
.jupyter-scene {
  display:grid; 
  grid-template-rows: auto 1fr auto; 
  min-height: 380px;
}

.jpy-tabs {
  display:flex; 
  gap:6px; 
  padding:10px 12px; 
  border-bottom:1px solid var(--line);
}

.jpy-tab {
  border:1px solid var(--line); 
  background:#0e1116; 
  color:var(--muted); 
  font-size:12px; 
  padding:6px 10px; 
  border-radius:8px; 
  cursor:default;
}

.jpy-tab[aria-selected="true"] {
  background:rgba(78,168,255,.10); 
  color:var(--text); 
  border-color:rgba(78,168,255,.45);
}

.jpy-canvas {
  padding:14px 16px; 
  overflow:auto;
}

.cell {
  display:grid; 
  grid-template-columns: 64px 1fr; 
  gap:10px; 
  align-items:start; 
  margin-bottom:8px;
}

.cell .prompt {
  color:#8bd5ff; 
  font-family:"JetBrains Mono", monospace;
}

.cell .code {
  font-family:"JetBrains Mono", monospace; 
  color:#e6e8eb;
}

.cell.out .code.hl {
  color:#23d18b;
}

.terminal-mini {
  border-top:1px solid var(--line); 
  padding:10px 12px; 
  font-family:"JetBrains Mono", monospace; 
  font-size:13px;
}

/* EU grid (soft map vibe) */
.eu-grid {
  position:relative; 
  height:380px; 
  border:1px dashed #283040; 
  border-radius:12px;
  background:
    radial-gradient(600px 240px at 70% 40%, rgba(78,168,255,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.02), transparent);
  overflow:hidden;
}

.eu-grid::before {
  content:""; 
  position:absolute; 
  inset:0;
  background-image: radial-gradient(#243041 1px, transparent 1px);
  background-size: 18px 18px;
  opacity:.6;
}

.eu-glow {
  position:absolute; 
  left:55%; 
  top:40%; 
  width:220px; 
  height:220px; 
  border-radius:50%;
  background: radial-gradient(closest-side, rgba(78,168,255,.45), rgba(123,220,255,.20), transparent 70%);
  filter: blur(12px);
  animation: pulseEU 4.5s ease-in-out infinite;
}

@keyframes pulseEU { 
  0%, 100% {
    transform:scale(0.95); 
    opacity:.9;
  } 
  50% {
    transform:scale(1.08); 
    opacity:1;
  } 
}

/* Policy card (GDPR/AI-Act) */
.policy-card {
  border:1px solid var(--line); 
  background:linear-gradient(180deg, rgba(255,255,255,.02), transparent);
  border-radius:16px; 
  padding:16px; 
  display:grid; 
  gap:10px; 
  min-height:220px;
}

.policy-row {
  display:flex; 
  align-items:center; 
  gap:8px; 
  color:var(--muted);
}

.dot-ok, .dot-warn {
  width:10px;
  height:10px;
  border-radius:50%;
  flex-shrink: 0;
}

.dot-ok {
  background:#23d18b;
}

.dot-warn {
  background:#f5a524;
}

.policy-progress {
  position:relative; 
  height:8px; 
  background:#151922; 
  border:1px solid #263244; 
  border-radius:999px; 
  overflow:hidden; 
  margin-top:6px;
}

.policy-progress span {
  position:absolute; 
  left:0; 
  top:0; 
  bottom:0; 
  width:0%;
  background:linear-gradient(90deg, #23d18b, #7bdcff);
  animation: growBar 4s ease-out infinite;
}

@keyframes growBar { 
  0% {
    width:0%;
  } 
  60% {
    width:78%;
  } 
  100% {
    width:78%;
  } 
}

/* Image belt */
.image-belt {
  border:1px solid var(--line); 
  border-radius:16px; 
  overflow:hidden; 
  background:linear-gradient(180deg, rgba(255,255,255,.02), transparent);
}

.belt-track {
  display:flex; 
  gap:12px; 
  padding:14px; 
  width:max-content; 
  animation: belt 18s linear infinite;
}

.img-chip {
  padding:10px 12px; 
  border:1px solid #263244; 
  border-radius:999px; 
  white-space:nowrap;
  background:linear-gradient(180deg, #0e1218, #0a0d12); 
  color:#cfe8ff; 
  font-weight:600; 
  font-size:13px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

@keyframes belt { 
  0% {
    transform:translateX(0);
  } 
  100% {
    transform:translateX(-50%);
  } 
}

@media (prefers-reduced-motion: reduce) {
  .belt-track {
    animation:none;
  }
}

/* ==========================================
   PRICING
   ========================================== */
.pricing { 
  display:grid; 
  gap: 20px; 
  grid-template-columns: repeat(12, 1fr); 
}

.card { 
  grid-column: span 12; 
  border:1px solid var(--line); 
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)); 
  border-radius: var(--radius); 
  padding: 22px; 
  box-shadow: var(--shadow); 
}

.price { 
  font-size: 36px; 
  font-weight: 800; 
  letter-spacing: -0.02em; 
}

.small { 
  color: var(--muted); 
  font-size: 14px; 
}

.badge { 
  display:inline-block; 
  padding: 6px 10px; 
  border-radius: 999px; 
  border: 1px solid rgba(78,168,255,.4); 
  background: rgba(78,168,255,.08); 
  color: #cfe8ff; 
  font-size: 12px; 
  font-weight: 600; 
}

@media(min-width: 960px) {
  .card { 
    grid-column: span 6; 
  }
}

/* Pricing FAQ */
#pricing-faq .mlfaq-item {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}

#pricing-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
}

#pricing-faq summary::-webkit-details-marker { 
  display: none; 
}

#pricing-faq .mlfaq-q {
  flex: 1;
  font-size: 16px;
}

#pricing-faq summary::after {
  content: '+';
  font-family: "JetBrains Mono", ui-monospace, monospace;
  opacity: .85;
  margin-left: 12px;
  flex-shrink: 0;
}

#pricing-faq details[open] summary::after { 
  content: '–'; 
}

#pricing-faq .mlfaq-a {
  padding: 0 24px 22px;
  color: var(--muted);
  line-height: 1.6;
}

#pricing-faq details[open] .mlfaq-a { 
  padding-top: 4px; 
}

#pricing-faq summary:hover { 
  background: rgba(255,255,255,.03); 
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.quotes { 
  display:grid; 
  gap: 18px; 
  grid-template-columns: repeat(12, 1fr); 
}

.quote { 
  grid-column: span 12; 
  border: 1px solid var(--line); 
  border-radius: var(--radius); 
  padding: 18px; 
  background: var(--panel); 
  display:grid; 
  gap: 12px; 
}

.quote .who { 
  display:flex; 
  align-items:center; 
  gap: 12px; 
  color: var(--muted); 
}

.avatar { 
  width: 36px; 
  height: 36px; 
  border-radius: 50%; 
  background: linear-gradient(135deg, #303443, #1a1e29); 
  border:1px solid #2a2f3c;
  flex-shrink: 0;
}

@media(min-width: 860px) { 
  .quote { 
    grid-column: span 6; 
  } 
}

/* ==========================================
   CTA FOOTER
   ========================================== */
.cta-footer { 
  text-align:center; 
  padding: 60px 0; 
}

/* ==========================================
   SITE FOOTER
   ========================================== */
footer.site { 
  border-top:1px solid var(--line); 
  background: #0a0b0d; 
}

.footgrid { 
  display:grid; 
  gap: 24px; 
  grid-template-columns: repeat(12, 1fr); 
  padding: 40px 0; 
}

.footcol { 
  grid-column: span 12; 
}

.footcol h4 { 
  margin: 0 0 8px; 
}

.footcol a { 
  display:block; 
  color: var(--muted); 
  padding: 6px 0; 
}

.fineprint { 
  border-top:1px solid var(--line); 
  color: var(--muted); 
  padding: 18px 0 28px; 
  font-size: 13px; 
  display:flex; 
  flex-wrap:wrap; 
  gap: 10px; 
  justify-content: space-between; 
}

@media(min-width: 900px) {
  .footcol { 
    grid-column: span 3; 
  }
}

/* ==========================================
   MODALS & OVERLAYS
   ========================================== */
.overlay {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(4px);
  z-index:2000;
  display:none;
  align-items:center;
  justify-content:center;
}

.overlay[aria-hidden="false"] {
  display:flex;
}

.modal {
  width: min(680px, 92vw);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow-y: auto;
}

.modal header {
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 1;
}

.modal h3 {
  margin: 0;
  font-size: 20px;
}

.modal .modal-body {
  padding: 18px;
  display: grid;
  gap: 12px;
}

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

.spec {
  border:1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
}

.spec .k {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing:.12em;
}

.spec .v {
  font-weight: 700;
}

.modal footer {
  display:flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 0;
  background: var(--panel);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: rgba(255,255,255,.05);
}

/* ==========================================
   AUTH STATES
   ========================================== */
:root[data-auth="true"] #signin-btn {
  display: none;
}

:root[data-auth="false"] #signout-btn,
:root[data-auth="false"] #hello {
  display: none;
}

[data-auth="true"] #signin-btn {
  display: none !important;
}

[data-auth="true"] #signout-btn {
  display: inline-flex !important;
}

[data-auth="false"] #signin-btn {
  display: inline-flex !important;
}

[data-auth="false"] #signout-btn {
  display: none !important;
}

/* ==========================================
   TABS
   ========================================== */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tabs .tab {
  flex: 1;
  text-align: center;
  font-weight: 600;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  min-width: 120px;
}

.tabs .tab[aria-selected="true"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.tabs .tab:hover {
  background: rgba(255,255,255,.05);
}

.tab-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* ==========================================
   DOCS PAGE
   ========================================== */
main.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.docs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.docs-sidebar {
  border-right: 1px solid var(--line);
  padding-right: 20px;
  min-width: 0;
  position: sticky;
  top: 80px;
}

.docs-content {
  min-width: 0;
  overflow-wrap: break-word;
  max-width: 100%;
}

.docs-content pre {
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
}

/* ==========================================
   UTILITIES
   ========================================== */
.visually-hidden {
  position:absolute !important;
  height:1px;
  width:1px;
  overflow:hidden;
  clip:rect(1px,1px,1px,1px);
  white-space:nowrap;
}

/* ==========================================
   MOBILE RESPONSIVE (max-width: 860px)
   ========================================== */
@media (max-width: 860px) {
  /* Container */
  .container {
    padding: 0 20px;
  }

  /* Navigation */
  .nav {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
  }

  .brand {
    flex: 1;
  }

  .cta {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    margin-top: 12px;
    gap: 8px;
  }

  .cta .btn {
    flex: 1 1 auto;
    font-size: 14px;
    padding: 9px 12px;
    min-width: 100px;
  }

  /* Hide login/signup buttons on mobile */
  #signin-btn,
  #signout-btn,
  a.btn[href*="/instances"],
  #hello {
    display: none !important;
  }

  .hamburger {
    order: 2;
  }

  /* Hero */
  .hero {
    padding: 48px 0 32px;
  }

  .headline {
    font-size: 32px;
    line-height: 1.15;
  }

  .subhead {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  /* Trust strip */
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .trust-logo span {
    font-size: 11px;
  }

  /* Window preview */
  .window {
    margin-top: 24px;
  }

  .win-body {
    grid-template-columns: 1fr;
    min-height: 300px;
  }

  .sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
  }

  .side-item {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    font-size: 13px;
    padding: 8px 6px;
  }

  .terminal {
    font-size: 12px;
    padding: 12px;
  }

  /* Sections */
  section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 28px;
    padding-top: 0;
  }

  .h2 {
    font-size: 28px;
  }

  /* Split layouts */
  .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stripe {
    padding: 56px 0;
  }

  /* Features */
  .features {
    gap: 16px;
  }

  .feature {
    grid-template-columns: 1fr !important;
    padding: 18px;
  }

  .feature .illus {
    min-height: 200px;
  }

  /* Demo windows */
  .jupyter-scene {
    min-height: 320px;
  }

  .jpy-canvas {
    padding: 12px;
  }

  .cell {
    grid-template-columns: 50px 1fr;
    gap: 8px;
    font-size: 12px;
  }

  .terminal-mini {
    font-size: 12px;
    padding: 8px 10px;
  }

  .eu-grid {
    height: 280px;
  }

  .policy-card {
    padding: 14px;
    min-height: 180px;
  }

  /* Pricing */
  .pricing {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .card {
    width: 100%;
  }

  .price {
    font-size: 32px;
  }

  /* FAQ */
  #pricing-faq .mlfaq-item {
    margin-bottom: 12px;
  }

  #pricing-faq summary {
    padding: 16px 18px;
    font-size: 15px;
  }

  #pricing-faq .mlfaq-q {
    font-size: 15px;
  }

  #pricing-faq .mlfaq-a {
    padding: 0 18px 16px;
    font-size: 14px;
  }

  /* Testimonials */
  .quotes {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .quote {
    padding: 16px;
  }

  /* CTA Footer */
  .cta-footer {
    padding: 48px 20px;
  }

  .cta-footer .h2 {
    font-size: 26px;
  }

  /* Footer */
  .footgrid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px 0;
  }

  .footcol {
    text-align: center;
  }

  .fineprint {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 16px 0 24px;
  }

  /* Modals */
  .modal {
    width: 95vw;
    margin: 20px;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .modal footer {
    flex-wrap: wrap;
  }

  .modal footer .btn {
    flex: 1 1 100%;
  }

  /* Docs page */
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .docs-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 0 0 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    position: static;
  }

  .docs-sidebar h3 {
    display: none;
  }

  .docs-sidebar a {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--muted);
    border: 1px solid var(--line);
    background: var(--panel);
  }

  .docs-sidebar a:hover {
    color: var(--text);
    background: rgba(255,255,255,.05);
  }

  .docs-content {
    font-size: 15px;
  }

  .docs-content h1 {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .docs-content h2 {
    font-size: 22px;
    margin-top: 28px;
  }

  .docs-content pre {
    font-size: 12px;
    padding: 12px;
    margin: 12px 0;
  }

  /* Desktop-only banner */
  .desktop-only-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, rgba(78,168,255,0.12), rgba(123,220,255,0.08));
    color: var(--text);
    text-align: center;
    font-size: 13px;
    padding: 12px 12px;
    border-top: 1px solid var(--line);
    z-index: 9999;
    backdrop-filter: blur(8px);
    line-height: 1.4;
  }
}

/* ==========================================
   TABLET RESPONSIVE (max-width: 980px)
   ========================================== */
@media (max-width: 980px) and (min-width: 861px) {
  .container {
    padding: 0 40px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .trust-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================
   SMALL MOBILE (max-width: 480px)
   ========================================== */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .headline {
    font-size: 28px;
  }

  .h2 {
    font-size: 24px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .side-item {
    flex: 1 1 100%;
  }

  .btn {
    font-size: 14px;
    padding: 9px 12px;
  }

  .price {
    font-size: 28px;
  }

  #pricing-faq summary {
    padding: 14px 16px;
  }

  #pricing-faq .mlfaq-a {
    padding: 0 16px 14px;
  }
}

/* ==========================================
   ANIMATIONS & TRANSITIONS
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .belt-track,
  .cursor,
  .eu-glow,
  .policy-progress span {
    animation: none !important;
  }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
  header.site,
  footer.site,
  .hamburger,
  .mobile-menu,
  .cta,
  .overlay,
  .desktop-only-banner {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  section {
    page-break-inside: avoid;
  }
}

.module-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 32px;
  margin-top: 40px;
}
.module {
  text-align: center;
}
.mod-icon {
  font-size: 40px;
  margin-bottom: 12px;
  color: var(--accent);
}
module h3 {
  margin: 8px 0;
  font-size: 1.25rem;
}
.module p {
  color: var(--muted);
  line-height: 1.5;
}

/* === SUPPORTED MODELS (Tinker-style w/ logos) === */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.model-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  border-radius: var(--radius);
  padding: 22px 26px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.model-card:hover {
  transform: translateY(-3px);
  border-color: rgba(78,168,255,.45);
  box-shadow: 0 14px 40px rgba(78,168,255,.12), var(--shadow);
}

.model-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(78,168,255,.15));
}

.model-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}

.model-info p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

/* Mobile adjustments */
@media (max-width: 860px) {
  .models-grid { grid-template-columns: 1fr; gap: 16px; }
  .model-card { padding: 18px; gap: 14px; }
  .model-logo { width: 40px; height: 40px; }
}

/* === GLOBAL SECTION RHYTHM === */
section,
.stripe {
  padding-block: 120px; /* equal top/bottom space */
  border-top: 1px solid var(--line);
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
  padding-top: 20px;
}

.section-head .eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  margin-bottom: 8px;
}

.section-head .h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  margin: 8px 0 16px;
  letter-spacing: -0.02em;
}

.section-head .lede {
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.6;
}

/* === SECTION BACKGROUND VARIANTS === */
.stripe-dark {
  background: linear-gradient(180deg, #0b0c10, #0d0e12);
}

.stripe-panel {
  background: linear-gradient(180deg, #121419, #0e1014);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.stripe-alt {
  background: linear-gradient(180deg, rgba(78,168,255,.05), rgba(78,168,255,.01));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.stripe-gradient {
  background:
    radial-gradient(900px 600px at 60% -10%, rgba(78,168,255,.12), transparent 70%),
    #0b0c10;
}


/* === UNIFIED CONTAINER SPACING === */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 60px;
}

@media (max-width: 860px) {
  section, .stripe { padding-block: 80px; }
  .container { padding-inline: 20px; }
}

/* === TERMINAL ALIGNMENT FIX === */
.terminal {
  display: block;               /* prevent grid or flex inheritance */
  text-align: left;             /* ensures left alignment */
  padding: 16px 20px;           /* reapply padding */
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--text);
  background: var(--panel-2);
  border-top: 1px solid var(--line);
  overflow-x: auto;
  line-height: 1.5;
}

/* Make sure inner divs don't center themselves */
.terminal div {
  text-align: left !important;
}

/* Reset any grid behavior from .win-body */
.win-body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
}

/* Sidebar remains column-aligned */
.sidebar {
  flex-shrink: 0;
  width: 240px;
  border-right: 1px solid var(--line);
}

/* === FEATURE / MODULE CARDS === */
.module-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.module {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: left;
  transition: all 0.25s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.module:hover {
  border-color: rgba(78,168,255,.5);
  background: linear-gradient(180deg, rgba(78,168,255,.07), rgba(78,168,255,.02));
  box-shadow: 0 0 16px rgba(78,168,255,.08);
  transform: translateY(-3px);
}

/* === ICONS === */
.mod-icon {
  font-size: 26px;
  color: #d2d8e1;          /* subtle light gray-white */
  display: inline-block;
  margin-bottom: 10px;
  transition: color 0.25s ease, transform 0.25s ease;
}

/* slight motion + accent on hover */
.module:hover .mod-icon {
  color: var(--accent);
  transform: scale(1.15);
}

/* === HEADINGS & TEXT === */
.module h3 {
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--text);
}

.module p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

