:root {
  --bg: #f7fbff;
  --surface: #ffffff;
  --text: #071944;
  --muted: #596987;
  --blue: #1478f6;
  --blue-2: #39a7ff;
  --cyan: #17d5de;
  --yellow: #ffd148;
  --mint: #e9fbf5;
  --cream: #fff7e7;
  --line: rgba(7,25,68,.09);
  --shadow: 0 24px 70px rgba(45, 89, 150, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}
body.dark {
  --bg: #07111f;
  --surface: #0c1a2d;
  --text: #eef6ff;
  --muted: #a8b7cf;
  --line: rgba(255,255,255,.08);
  --shadow: 0 28px 80px rgba(0,0,0,.35);
}
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.page-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.site-header {
  width: min(1450px, calc(100% - 44px));
  margin: 18px auto 0;
  height: 76px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  position: sticky; top: 14px; z-index: 50;
  box-shadow: 0 12px 30px rgba(20, 60, 110, .08);
}
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; font-family:Fredoka,sans-serif; font-size:31px; font-weight:700; letter-spacing:-1px; }
.brand > span:last-child > span { color: var(--blue); }
.brand-flask { width:43px; height:43px; display:grid; place-items:center; color:var(--blue); border:2px solid rgba(20,120,246,.18); background:#edf7ff; border-radius:14px; transform:rotate(-6deg); }
.main-nav { display:flex; align-items:center; gap:30px; }
.main-nav a { text-decoration:none; font-weight:700; font-size:14px; position:relative; padding:12px 0; }
.main-nav a::after { content:""; position:absolute; left:50%; right:50%; bottom:3px; height:3px; border-radius:3px; background:var(--blue); transition:.25s; }
.main-nav a:hover::after,.main-nav a.active::after { left:0; right:0; }
.header-actions { display:flex; justify-content:flex-end; gap:12px; align-items:center; }
.lab-status { display:flex; align-items:center; gap:9px; padding:11px 15px; background:var(--blue); color:#fff; border-radius:999px; font-size:13px; font-weight:700; box-shadow:0 10px 25px rgba(20,120,246,.25); }
.lab-status span { width:9px;height:9px;background:#36ea77;border-radius:50%;box-shadow:0 0 0 5px rgba(54,234,119,.15); animation:pulse 1.8s infinite; }
.theme-toggle,.menu-toggle { border:0; background:transparent; color:inherit; font-size:23px; cursor:pointer; width:42px;height:42px;border-radius:12px; }
.theme-toggle:hover,.menu-toggle:hover { background:var(--line); }
.menu-toggle { display:none; }

.hero {
  width:min(1450px,calc(100% - 44px));
  margin:30px auto 0;
  min-height:700px;
  display:grid;
  grid-template-columns:.88fr 1.12fr;
  align-items:center;
  gap:22px;
  position:relative;
}
.hero::before { content:""; position:absolute; width:470px; height:470px; left:-260px; top:-120px; border-radius:50%; background:radial-gradient(circle,#dff6ff 0,rgba(223,246,255,0) 70%); z-index:-1; }
.hero-copy { padding:60px 10px 60px 40px; position:relative; }
.eyebrow { font-weight:800; letter-spacing:.16em; font-size:11px; color:var(--blue); margin:0 0 18px; }
h1 { margin:0; font-family:Fredoka,sans-serif; font-size:clamp(58px,6vw,98px); line-height:.94; letter-spacing:-3.3px; max-width:720px; }
h1 span { display:inline-block; color:var(--blue); font-family:"Patrick Hand",cursive; font-weight:700; position:relative; white-space:nowrap; transform:rotate(-1deg); }
h1 span::after { content:""; position:absolute; left:5%; right:1%; height:9px; bottom:-6px; border-radius:50%; background:var(--yellow); transform:rotate(-1deg); z-index:-1; }
.lead { max-width:560px; color:var(--muted); font-size:20px; line-height:1.55; margin:28px 0 30px; }
.cta-row { display:flex; flex-wrap:wrap; gap:14px; }
.btn { padding:17px 23px; border-radius:18px; text-decoration:none; font-weight:800; display:inline-flex; align-items:center; gap:10px; transition:transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform:translateY(-3px); }
.btn-primary { background:var(--blue); color:white; box-shadow:0 14px 32px rgba(20,120,246,.27); }
.btn-primary:hover { box-shadow:0 18px 42px rgba(20,120,246,.35); }
.btn-secondary { border:2px solid var(--blue); color:var(--blue); background:var(--surface); }
.hero-micro { margin-top:30px; display:flex; flex-wrap:wrap; gap:24px; color:var(--muted); font-weight:700; font-size:13px; }
.hero-micro span:nth-child(2) { color:#e6646c; }

.hero-lab { min-height:660px; position:relative; display:grid; place-items:center; }
.hero-art-wrap { width:100%; max-width:900px; height:610px; position:relative; border-radius:42px; overflow:hidden; isolation:isolate; box-shadow:var(--shadow); transform:rotate(.4deg); background:linear-gradient(135deg,#e8f5ff,#fff2d7); }
.hero-art { width:100%; height:100%; object-fit:cover; object-position:center; display:block; animation:scientistFloat 5s ease-in-out infinite; transform-origin:50% 80%; }
.hero-art-wrap::after { content:""; position:absolute; inset:0; box-shadow:inset 0 0 0 1px rgba(255,255,255,.38); border-radius:42px; pointer-events:none; }
.glow { position:absolute; width:330px; height:330px; left:22%; top:18%; border-radius:50%; background:radial-gradient(circle,rgba(33,226,255,.33),transparent 70%); filter:blur(10px); animation:glow 2.8s ease-in-out infinite; }
.bubble { position:absolute; width:22px;height:22px;border-radius:50%; border:2px solid rgba(27,190,245,.85); background:rgba(120,236,255,.18); box-shadow:inset 0 0 10px rgba(255,255,255,.65); animation:bubbleUp 4.5s infinite ease-in; z-index:2; }
.b1{left:24%;bottom:35%;animation-delay:0s}.b2{left:31%;bottom:24%;width:13px;height:13px;animation-delay:1.2s}.b3{left:18%;bottom:18%;width:29px;height:29px;animation-delay:2.1s}.b4{left:37%;bottom:30%;width:9px;height:9px;animation-delay:.7s}
.spark { position:absolute; color:#ffd23f; font-size:28px; text-shadow:0 0 14px #ffbf29; z-index:3; animation:spark 1.25s infinite alternate; }
.s1{right:18%;top:38%}.s2{right:11%;top:52%;animation-delay:.3s}.s3{right:26%;top:57%;animation-delay:.6s}
.smoke { position:absolute; right:16%; top:25%; z-index:3; font-family:"Patrick Hand"; font-size:54px; color:rgba(78,91,111,.7); filter:blur(.2px); animation:smoke 4s infinite ease-out; }
.smoke2 { right:10%;top:19%;font-size:38px;animation-delay:1.5s; }
.scribble { font-family:"Patrick Hand",cursive; font-size:23px; line-height:1; position:absolute; z-index:6; transform:rotate(-6deg); }
.scribble-top { top:9px; left:16%; }
.sticky { font-family:"Patrick Hand",cursive; background:#ffe36f; color:#16264a; padding:17px 18px; width:160px; text-align:center; line-height:1.03; font-size:19px; box-shadow:0 12px 20px rgba(114,90,12,.18); transform:rotate(-7deg); }
.sticky-left { position:absolute; left:-20px; top:-12px; z-index:2; }
.sticky-right { position:absolute; right:-5px; bottom:42px; z-index:5; transform:rotate(6deg); }
.code-window { position:absolute; right:-12px; top:55px; width:250px; padding:18px 19px 20px; border-radius:18px; background:rgba(5,25,50,.9); color:#97f8f0; box-shadow:0 20px 50px rgba(3,15,36,.27); transform:rotate(3deg); z-index:4; backdrop-filter:blur(10px); }
.code-window code { font-size:14px; line-height:1.55; font-weight:700; }
.code-window code span { color:#ff6ccb; }.code-window code em { color:#ffd84a; font-style:normal; }
.dots { display:flex; gap:6px; margin-bottom:10px; }.dots i{width:8px;height:8px;border-radius:50%;background:#ff6b6b}.dots i:nth-child(2){background:#ffd24c}.dots i:nth-child(3){background:#3fd47a}

.feature-grid { width:min(1320px,calc(100% - 44px)); margin:10px auto 120px; display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.feature-card { display:grid; grid-template-columns:auto 1fr auto; gap:22px; align-items:center; padding:32px; border-radius:28px; border:1px solid var(--line); transition:transform .25s ease, box-shadow .25s ease; }
.feature-card:hover { transform:translateY(-7px) rotate(-.4deg); box-shadow:var(--shadow); }
.feature-card.blue{background:#eaf6ff}.feature-card.cream{background:var(--cream)}.feature-card.mint{background:var(--mint)}
body.dark .feature-card { color:#071944; }
.icon-bubble { width:82px;height:82px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.55);font-size:38px; }
.feature-card h2 { margin:0 0 7px;font-size:22px}.feature-card p{margin:0;color:#52617d;line-height:1.5}.feature-card>a{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.62);text-decoration:none;font-size:24px;transition:.2s}.feature-card:hover>a{transform:translateX(5px)}

.chaos-lab { width:min(1320px,calc(100% - 44px)); margin:0 auto 120px; padding:80px 60px; border-radius:42px; background:linear-gradient(135deg,#071b3f 0,#102b55 58%,#0b244b 100%); color:white; position:relative; overflow:hidden; }
.chaos-lab::before,.chaos-lab::after{content:"";position:absolute;border-radius:50%;filter:blur(8px);opacity:.32}.chaos-lab::before{width:360px;height:360px;background:#1289ff;right:-120px;top:-130px}.chaos-lab::after{width:240px;height:240px;background:#16d9cf;left:-100px;bottom:-110px}
.section-heading { position:relative; z-index:1; max-width:760px; }
.section-heading .eyebrow{color:#58d8ff}.section-heading h2{font-family:Fredoka,sans-serif;font-size:clamp(40px,5vw,66px);line-height:1;margin:0;letter-spacing:-2px}.section-heading h2 span{color:#5fe3d6}.section-heading>p:last-child{color:#bac9de;font-size:18px;line-height:1.6}
.lab-cards { margin-top:50px; display:grid; grid-template-columns:repeat(3,1fr); gap:18px; position:relative; z-index:1; }
.lab-card { padding:28px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.075); border-radius:25px; backdrop-filter:blur(10px); transition:transform .25s ease, background .25s ease; }
.lab-card:hover{transform:translateY(-6px);background:rgba(255,255,255,.11)}.lab-card small{color:#8fdcff;font-weight:800;letter-spacing:.11em}.lab-card h3{font-size:24px;margin:15px 0 10px}.lab-card p{color:#b8c8df;line-height:1.6}.status-dot{display:inline-block;width:9px;height:9px;background:#37e989;border-radius:50%;margin-right:7px;box-shadow:0 0 0 5px rgba(55,233,137,.12)}.danger .status-dot{background:#ffcb49;box-shadow:0 0 0 5px rgba(255,203,73,.12)}
.meter{height:9px;background:rgba(255,255,255,.12);border-radius:999px;overflow:hidden;margin-top:24px}.meter span{display:block;height:100%;width:var(--level);background:linear-gradient(90deg,#1cb4ff,#55efca);border-radius:inherit;animation:meter 1.5s ease}.lab-card footer{display:flex;justify-content:space-between;margin-top:8px;color:#9fb1ca;font-size:12px}.mini-btn{margin-top:15px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#fff;border-radius:12px;padding:10px 14px;font-weight:800;cursor:pointer}.mini-btn:hover{background:rgba(255,255,255,.15)}.console{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#06101f;border-radius:12px;padding:13px 14px;margin-top:22px;color:#76e9be;font-size:13px}.console span{color:#ffda64}

.quote-section{width:min(1180px,calc(100% - 44px));margin:0 auto 120px;min-height:260px;display:grid;place-items:center;position:relative;text-align:center}.quote-section blockquote{font-family:"Patrick Hand",cursive;font-size:clamp(32px,5vw,58px);margin:0;transform:rotate(-1deg)}.quote-section p{font-family:"Patrick Hand",cursive;font-size:21px;position:absolute;right:10px;bottom:0;transform:rotate(7deg)}.sticky-bottom{position:absolute;left:0;bottom:0;transform:rotate(-7deg)}

footer{width:min(1320px,calc(100% - 44px));margin:0 auto 35px;padding:26px 0;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--muted);font-size:13px}.brand.small{font-size:23px;color:var(--text)}.brand.small .brand-flask{width:35px;height:35px}
.duck-toast{position:fixed;right:22px;bottom:22px;z-index:60;background:#fff;color:#172342;border:1px solid rgba(7,25,68,.1);box-shadow:0 20px 60px rgba(0,0,0,.16);padding:16px 19px;border-radius:18px;display:flex;gap:12px;align-items:center;max-width:360px;transform:translateY(140%);opacity:0;transition:.35s cubic-bezier(.2,.8,.2,1)}.duck-toast.show{transform:translateY(0);opacity:1}

.reveal{opacity:0;transform:translateY(20px);transition:opacity .7s ease, transform .7s ease}.reveal.visible{opacity:1;transform:none}

@keyframes scientistFloat{0%,100%{transform:scale(1.01) translateY(0) rotate(0deg)}50%{transform:scale(1.018) translateY(-7px) rotate(.25deg)}}
@keyframes bubbleUp{0%{transform:translateY(0) scale(.7);opacity:0}20%{opacity:1}80%{opacity:.8}100%{transform:translate(18px,-210px) scale(1.18);opacity:0}}
@keyframes spark{0%{transform:scale(.55) rotate(0);opacity:.35}100%{transform:scale(1.18) rotate(30deg);opacity:1}}
@keyframes smoke{0%{transform:translate(0,18px) scale(.7);opacity:0}25%{opacity:.6}100%{transform:translate(-28px,-85px) scale(1.35) rotate(12deg);opacity:0}}
@keyframes glow{50%{transform:scale(1.12);opacity:.75}}
@keyframes pulse{50%{box-shadow:0 0 0 9px rgba(54,234,119,0)}}
@keyframes meter{from{width:0}}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}

@media(max-width:1100px){
  .site-header{grid-template-columns:1fr auto}.main-nav{position:fixed;top:100px;left:22px;right:22px;display:none;flex-direction:column;gap:3px;background:var(--surface);padding:20px;border-radius:20px;box-shadow:var(--shadow);border:1px solid var(--line)}.main-nav.open{display:flex}.menu-toggle{display:block}.lab-status{display:none}
  .hero{grid-template-columns:1fr;gap:10px}.hero-copy{padding:55px 20px 10px}.hero-lab{min-height:570px}.hero-art-wrap{height:550px}.sticky-left{left:5px}.feature-grid{grid-template-columns:1fr}.lab-cards{grid-template-columns:1fr}.chaos-lab{padding:60px 30px}.code-window{right:10px}
}
@media(max-width:680px){
  .site-header{width:calc(100% - 24px);margin-top:10px;height:66px;padding:0 12px;border-radius:17px;top:8px}.brand{font-size:24px}.brand-flask{width:36px;height:36px}.theme-toggle{display:none}
  .hero,.feature-grid,.chaos-lab,.quote-section,footer{width:calc(100% - 24px)}.hero{margin-top:12px}.hero-copy{padding:42px 8px 10px}.sticky-left{display:none}h1{font-size:54px;letter-spacing:-2px}.lead{font-size:17px}.cta-row{flex-direction:column}.btn{justify-content:center;width:100%}.hero-micro{gap:12px;font-size:12px}.hero-lab{min-height:460px}.hero-art-wrap{height:430px;border-radius:28px}.hero-art-wrap::after{border-radius:28px}.scribble-top{left:5%;font-size:18px}.code-window{width:190px;right:-4px;top:35px;padding:12px}.code-window code{font-size:11px}.sticky-right{width:125px;font-size:15px;right:-4px;bottom:8px}.feature-grid{margin-bottom:80px}.feature-card{grid-template-columns:auto 1fr;padding:23px}.feature-card>a{display:none}.icon-bubble{width:58px;height:58px;font-size:28px}.chaos-lab{border-radius:28px;padding:48px 20px}.quote-section{margin-bottom:80px}.sticky-bottom{display:none}.quote-section p{position:static;margin-top:50px}.quote-section{display:flex;flex-direction:column;justify-content:center}footer{flex-direction:column;text-align:center}.duck-toast{left:12px;right:12px;bottom:12px}
}
