:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b1120;
  color: #eef2ff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --muted: #9aa8bf;
  --accent: #8b9cff;
  --border: #26334a;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0%, #202c51 0%, transparent 52%), #0b1120;
}
.topbar {
  min-height: 76px; padding: 0 clamp(20px, 6vw, 88px);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #ffffff12;
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-size: 20px; font-weight: 750; letter-spacing: -.6px; }
.brand-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #0b1120; background: linear-gradient(135deg, #b5c3ff, #7f8fff); font-size: 14px; font-weight: 900; }
.engine-badge, .python-badge { padding: 7px 10px; border: 1px solid #6476a44d; border-radius: 7px; color: #b9c5ff; background: #8295ff10; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.container { width: min(760px, calc(100% - 36px)); margin: 0 auto; }
.hero { padding: 76px 0 42px; text-align: center; }
.eyebrow, .section-label, .output-label { color: #9baaff; font-size: 10px; font-weight: 800; letter-spacing: 1.8px; }
.hero h1 { margin: 18px 0 14px; font-size: clamp(38px, 8vw, 64px); line-height: 1.08; letter-spacing: -3px; }
.hero h1 span { color: var(--accent); }
.hero > p { max-width: 500px; margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.8; }
.demo-card, .learn-card { margin-bottom: 20px; padding: clamp(22px, 5vw, 36px); border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(145deg, #151f33, #101827); box-shadow: 0 28px 90px #00000030; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 30px; }
.card-heading h2, .learn-card h2 { margin: 9px 0 0; font-size: clamp(19px, 4vw, 25px); letter-spacing: -.7px; }
label { display: block; margin-bottom: 10px; color: #dce4f6; font-size: 13px; font-weight: 600; }
input { width: 100%; min-height: 52px; padding: 0 15px; border: 1px solid #34425d; border-radius: 10px; outline: none; background: #0b1220; color: #f5f7ff; font: inherit; font-size: 14px; }
input::placeholder { color: #64738c; }
input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px #8b9cff20; }
button { width: 100%; min-height: 52px; margin-top: 14px; padding: 0 17px; display: flex; justify-content: space-between; align-items: center; border: 0; border-radius: 10px; background: linear-gradient(100deg, #aebaff, #8798ff); color: #11182b; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
button:not(:disabled):hover { filter: brightness(1.08); }
button:focus-visible { outline: 3px solid #d5dcff; outline-offset: 3px; }
button:disabled { opacity: .5; cursor: wait; }
.output-panel { min-height: 120px; margin-top: 28px; padding: 19px; border: 1px solid #273650; border-radius: 12px; background: #0a1120a8; }
.output-panel p { margin: 14px 0 0; color: #f2f4ff; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.engine-status { margin: 15px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.learn-card h2 { margin-bottom: 18px; }
.learn-card ol { padding-left: 22px; color: #dce4f6; line-height: 1.9; }
code { padding: 2px 5px; border-radius: 5px; background: #0a1120; color: #c7d0ff; }
.note { margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
footer { padding: 30px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: #71809b; font-size: 11px; }
@media (max-width: 480px) {
  .hero { padding-top: 55px; }
  .hero h1 { letter-spacing: -1.8px; }
  .topbar { min-height: 66px; }
  footer { flex-direction: column; }
}
