:root{
  --bg:#050705;
  --bg-soft:#090c09;
  --panel:#0b0f0b;
  --panel-2:#0f140f;
  --ink:#eef6ef;
  --muted:#7f8d80;
  --line:rgba(170,255,190,.15);
  --line-strong:rgba(170,255,190,.3);
  --green:#9effb6;
  --green-2:#5ff28b;
  --acid:#d9ff69;
  --danger:#ff6969;
  --warn:#ffd166;
  --blue:#76c7ff;
  --mono:"DM Mono",monospace;
  --sans:"Inter",system-ui,sans-serif;
  --shell:1440px;
  --editor-width:52%;
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
  background:var(--bg);
}

body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 75% 10%,rgba(95,242,139,.08),transparent 30%),
    radial-gradient(circle at 15% 28%,rgba(217,255,105,.04),transparent 24%),
    var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

button,input,textarea{
  font:inherit;
}

button{
  color:inherit;
}

::selection{
  color:#041006;
  background:var(--green);
}

#ambient{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:-3;
  pointer-events:none;
}

.noise{
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  opacity:.17;
  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='.12'/%3E%3C/svg%3E");
  mix-blend-mode:screen;
}

.shell{
  width:min(var(--shell),calc(100% - 40px));
  margin:0 auto;
}

.topbar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:72px;
  padding:0 max(20px,calc((100vw - var(--shell))/2));
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  background:rgba(5,7,5,.72);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(20px);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:inherit;
  text-decoration:none;
}

.brand-mark{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:1px solid var(--line-strong);
  color:var(--green);
  font:500 11px/1 var(--mono);
  position:relative;
  overflow:hidden;
}

.brand-mark::after{
  content:"";
  position:absolute;
  inset:-45%;
  background:linear-gradient(120deg,transparent 40%,rgba(158,255,182,.3),transparent 60%);
  animation:scan 4s linear infinite;
}

@keyframes scan{
  to{transform:translateX(100%)}
}

.brand-copy{
  display:grid;
  gap:3px;
}

.brand-copy strong{
  font-size:13px;
  letter-spacing:-.02em;
}

.brand-copy small{
  color:var(--muted);
  font:400 9px/1 var(--mono);
  text-transform:uppercase;
}

.top-status{
  display:flex;
  align-items:center;
  gap:24px;
  color:#a7b4a8;
  font:400 9px/1 var(--mono);
  text-transform:uppercase;
}

.status-dot{
  display:inline-block;
  width:7px;
  height:7px;
  margin-right:7px;
  border-radius:50%;
  background:var(--green-2);
  box-shadow:0 0 14px var(--green-2);
}

.hero{
  min-height:900px;
  padding:150px 0 80px;
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);
  gap:70px;
  align-items:center;
}

.eyebrow{
  display:flex;
  align-items:center;
  gap:16px;
  color:#aab5ab;
  font:400 10px/1 var(--mono);
  text-transform:uppercase;
  letter-spacing:.08em;
}

.eyebrow span:first-child{
  color:var(--green);
}

h1,h2,h3,p{
  margin-top:0;
}

h1{
  margin:30px 0 30px;
  max-width:980px;
  font-size:clamp(66px,8vw,132px);
  font-weight:500;
  line-height:.84;
  letter-spacing:-.075em;
}

.hero-outline{
  color:transparent;
  -webkit-text-stroke:1px rgba(238,246,239,.6);
}

.hero-lead{
  max-width:700px;
  color:#929e93;
  font-size:16px;
  line-height:1.7;
  letter-spacing:-.02em;
}

.hero-cta{
  display:inline-flex;
  align-items:center;
  gap:18px;
  margin-top:24px;
  color:var(--ink);
  text-decoration:none;
  font:500 11px/1 var(--mono);
  text-transform:uppercase;
}

.hero-cta span{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:1px solid var(--line-strong);
  color:#061008;
  background:var(--green);
  transition:transform .25s ease;
}

.hero-cta:hover span{
  transform:translate(4px,4px);
}

.hero-hud{
  align-self:center;
  min-height:540px;
  position:relative;
  border:1px solid var(--line);
  background:
    linear-gradient(rgba(158,255,182,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(158,255,182,.035) 1px,transparent 1px),
    rgba(7,10,7,.46);
  background-size:34px 34px;
  overflow:hidden;
  box-shadow:0 30px 90px rgba(0,0,0,.25);
}

.hero-hud::before,
.hero-hud::after{
  content:"";
  position:absolute;
  width:60px;
  height:60px;
}

.hero-hud::before{
  top:-1px;
  left:-1px;
  border-top:1px solid var(--green);
  border-left:1px solid var(--green);
}

.hero-hud::after{
  right:-1px;
  bottom:-1px;
  border-right:1px solid var(--green);
  border-bottom:1px solid var(--green);
}

.hud-label{
  padding:18px;
  border-bottom:1px solid var(--line);
  color:var(--muted);
  font:400 9px/1 var(--mono);
  text-transform:uppercase;
}

.hud-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  border-bottom:1px solid var(--line);
}

.hud-grid div{
  padding:16px 18px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.hud-grid div:nth-child(even){
  border-right:0;
}

.hud-grid span{
  display:block;
  color:var(--muted);
  font:400 8px/1 var(--mono);
  text-transform:uppercase;
  margin-bottom:7px;
}

.hud-grid strong{
  color:#d7e6d9;
  font:500 12px/1 var(--mono);
}

.hud-orbit{
  width:320px;
  height:320px;
  position:absolute;
  left:50%;
  bottom:-30px;
  transform:translateX(-50%);
}

.hud-orbit::before,
.hud-orbit::after{
  content:"";
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(158,255,182,.2);
}

.hud-orbit::before{
  inset:10px;
  animation:orbitSpin 13s linear infinite;
}

.hud-orbit::after{
  inset:55px;
  border-style:dashed;
  animation:orbitSpin 9s linear infinite reverse;
}

@keyframes orbitSpin{
  to{transform:rotate(360deg)}
}

.hud-core{
  position:absolute;
  inset:92px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid var(--line-strong);
  background:radial-gradient(circle at 35% 30%,#d9ff69,var(--green-2) 20%,#0a1e10 65%);
  color:#041006;
  font:700 28px/1 var(--mono);
  box-shadow:
    0 0 35px rgba(95,242,139,.24),
    inset -18px -25px 45px rgba(0,0,0,.38);
}

.orb{
  position:absolute;
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 15px var(--green);
}

.orb-a{left:25px;top:125px}
.orb-b{right:44px;top:50px;background:var(--acid)}
.orb-c{right:20px;bottom:80px;background:var(--blue)}

.marquee{
  overflow:hidden;
  white-space:nowrap;
  border-top:1px solid var(--line-strong);
  border-bottom:1px solid var(--line-strong);
  background:var(--green);
  color:#061008;
}

.marquee-track{
  display:inline-flex;
  min-width:max-content;
  padding:13px 0;
  animation:marquee 28s linear infinite;
  font:500 10px/1 var(--mono);
}

.marquee-track span{
  padding-right:42px;
}

@keyframes marquee{
  to{transform:translateX(-50%)}
}

.playground{
  padding:120px 0 90px;
}

.section-heading{
  display:grid;
  grid-template-columns:1fr 2fr 1fr;
  gap:32px;
  align-items:start;
  margin-bottom:56px;
}

.section-heading h2{
  margin:0;
  font-size:clamp(52px,6vw,96px);
  line-height:.9;
  font-weight:500;
  letter-spacing:-.07em;
}

.section-heading > p{
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
  max-width:340px;
}

.lab-window{
  border:1px solid var(--line-strong);
  background:#080b08;
  box-shadow:0 40px 100px rgba(0,0,0,.35);
  min-height:720px;
  overflow:hidden;
}

.lab-toolbar{
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-bottom:1px solid var(--line);
  background:#0a0d0a;
}

.project-meta{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  padding-left:18px;
}

.traffic{
  width:8px;
  height:8px;
  border-radius:50%;
  opacity:.85;
}

.traffic.red{background:#ff6b6b}
.traffic.yellow{background:#ffd166}
.traffic.green{background:#5ff28b}

.project-name{
  width:min(300px,38vw);
  margin-left:10px;
  border:0;
  outline:0;
  background:transparent;
  color:#c7d2c8;
  font:400 10px/1 var(--mono);
}

.toolbar-actions{
  display:flex;
  align-items:stretch;
  min-height:58px;
}

.toolbar-btn{
  min-width:80px;
  padding:0 18px;
  border:0;
  border-left:1px solid var(--line);
  background:transparent;
  color:#9aa79b;
  font:500 9px/1 var(--mono);
  text-transform:uppercase;
}

.toolbar-btn:hover{
  background:rgba(158,255,182,.06);
  color:var(--ink);
}

.toolbar-btn.primary{
  min-width:120px;
  background:var(--green);
  color:#061008;
}

.toolbar-btn.primary span{
  opacity:.55;
  margin-left:8px;
}

.workspace{
  height:660px;
  display:grid;
  grid-template-columns:var(--editor-width) 6px 1fr;
}

.editor-pane,
.preview-pane{
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
}

.editor-pane{
  border-right:0;
}

.editor-tabs{
  height:48px;
  display:flex;
  border-bottom:1px solid var(--line);
  background:#090c09;
}

.editor-tab{
  flex:1;
  border:0;
  border-right:1px solid var(--line);
  background:transparent;
  color:#738074;
  font:500 9px/1 var(--mono);
  text-transform:uppercase;
}

.editor-tab span{
  margin-right:8px;
  opacity:.45;
}

.editor-tab.active{
  color:var(--green);
  background:#0d120d;
  box-shadow:inset 0 -2px var(--green);
}

.editor-shell{
  position:relative;
  flex:1;
  min-height:0;
  display:grid;
  grid-template-columns:52px 1fr;
  background:#070907;
  overflow:hidden;
}

.line-numbers{
  padding:18px 12px 18px 0;
  overflow:hidden;
  text-align:right;
  color:#3f4b40;
  border-right:1px solid rgba(158,255,182,.08);
  background:#060806;
  font:400 12px/1.65 var(--mono);
  user-select:none;
  white-space:pre;
}

.code-editor{
  position:absolute;
  left:52px;
  top:0;
  right:0;
  bottom:0;
  width:calc(100% - 52px);
  height:100%;
  padding:18px 22px;
  resize:none;
  border:0;
  outline:0;
  display:none;
  overflow:auto;
  background:transparent;
  color:#dce8dd;
  caret-color:var(--green);
  font:400 13px/1.65 var(--mono);
  tab-size:2;
  white-space:pre;
}

.code-editor.active{
  display:block;
}

.editor-status{
  height:35px;
  display:flex;
  align-items:center;
  gap:18px;
  padding:0 12px 0 18px;
  border-top:1px solid var(--line);
  color:#5f6c61;
  background:#090c09;
  font:400 8px/1 var(--mono);
  text-transform:uppercase;
}

.switch-label{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
}

.switch-label input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.switch{
  width:28px;
  height:14px;
  border:1px solid #3f4c41;
  position:relative;
  transition:.2s ease;
}

.switch::after{
  content:"";
  position:absolute;
  width:8px;
  height:8px;
  left:2px;
  top:2px;
  background:#536055;
  transition:.2s ease;
}

.switch-label input:checked + .switch{
  border-color:var(--green);
}

.switch-label input:checked + .switch::after{
  transform:translateX(14px);
  background:var(--green);
}

.divider{
  background:
    linear-gradient(to right,transparent 2px,rgba(158,255,182,.18) 2px,rgba(158,255,182,.18) 3px,transparent 3px);
  cursor:col-resize;
  position:relative;
}

.divider::after{
  content:"";
  position:absolute;
  width:2px;
  height:52px;
  background:var(--green);
  left:2px;
  top:50%;
  transform:translateY(-50%);
  opacity:.5;
}

.preview-toolbar{
  height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid var(--line);
  background:#090c09;
}

.preview-tabs{
  height:100%;
  display:flex;
}

.preview-tab{
  min-width:86px;
  padding:0 16px;
  border:0;
  border-right:1px solid var(--line);
  background:transparent;
  color:#718073;
  font:500 9px/1 var(--mono);
  text-transform:uppercase;
}

.preview-tab.active{
  color:var(--green);
  box-shadow:inset 0 -2px var(--green);
}

.preview-actions{
  display:flex;
  align-items:center;
  gap:5px;
  padding-right:9px;
}

.viewport-btn,
.icon-btn{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border:1px solid transparent;
  background:transparent;
  color:#708073;
  font:400 13px/1 var(--mono);
}

.viewport-btn:hover,
.icon-btn:hover,
.viewport-btn.active{
  color:var(--green);
  border-color:var(--line-strong);
  background:rgba(158,255,182,.04);
}

.preview-stage,
.console-stage{
  flex:1;
  min-height:0;
  display:none;
  background:#101510;
}

.preview-stage.active,
.console-stage.active{
  display:flex;
}

.preview-stage{
  align-items:stretch;
  justify-content:center;
  padding:14px;
  overflow:auto;
}

.iframe-wrap{
  width:100%;
  min-height:100%;
  margin:0 auto;
  background:#fff;
  transition:width .3s ease;
  box-shadow:0 0 0 1px rgba(0,0,0,.4);
}

#previewFrame{
  width:100%;
  height:100%;
  min-height:568px;
  border:0;
  display:block;
  background:#fff;
}

.console-stage{
  flex-direction:column;
  background:#060806;
}

.console-head{
  height:36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 14px;
  border-bottom:1px solid var(--line);
  color:#657067;
  font:400 8px/1 var(--mono);
}

.console-head button{
  border:0;
  background:transparent;
  color:#657067;
  font:400 8px/1 var(--mono);
  text-transform:uppercase;
}

.console-head button:hover{
  color:var(--green);
}

.console-output{
  flex:1;
  overflow:auto;
  padding:10px 14px 28px;
}

.console-line{
  display:grid;
  grid-template-columns:68px 1fr;
  gap:12px;
  padding:8px 0;
  border-bottom:1px solid rgba(158,255,182,.06);
  color:#b8c4b9;
  font:400 11px/1.5 var(--mono);
  word-break:break-word;
}

.console-type{
  color:#627064;
  font-size:8px;
  text-transform:uppercase;
  padding-top:3px;
}

.console-line.log .console-type{color:var(--green)}
.console-line.warn .console-type{color:var(--warn)}
.console-line.error .console-type{color:var(--danger)}
.console-line.info .console-type{color:var(--blue)}

.shortcut-strip{
  min-height:48px;
  display:flex;
  align-items:center;
  gap:28px;
  flex-wrap:wrap;
  border:1px solid var(--line);
  border-top:0;
  padding:12px 16px;
  color:#59665a;
  font:400 8px/1 var(--mono);
  text-transform:uppercase;
}

.shortcut-strip b{
  color:#9ead9f;
  font-weight:500;
}

.features{
  padding:80px 0 120px;
}

.section-heading.compact{
  grid-template-columns:1fr 2fr 1fr;
}

.feature-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border-top:1px solid var(--line-strong);
  border-left:1px solid var(--line-strong);
}

.feature-grid article{
  min-height:260px;
  padding:20px;
  border-right:1px solid var(--line-strong);
  border-bottom:1px solid var(--line-strong);
  background:rgba(8,12,8,.35);
  transition:background .25s ease;
}

.feature-grid article:hover{
  background:rgba(158,255,182,.045);
}

.feature-grid article > span{
  color:var(--green);
  font:400 9px/1 var(--mono);
}

.feature-grid h3{
  margin:100px 0 12px;
  font-size:20px;
  font-weight:500;
  letter-spacing:-.04em;
}

.feature-grid p{
  margin:0;
  color:#728075;
  font-size:12px;
  line-height:1.6;
}

.footer{
  padding:34px 0 44px;
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:24px;
  align-items:center;
  color:#69766b;
  font:400 8px/1.5 var(--mono);
  text-transform:uppercase;
}

.footer > div:first-child{
  display:grid;
  gap:3px;
}

.footer strong{
  color:#a8b6aa;
  font-weight:500;
}

.footer-center{
  text-align:center;
}

.footer-right{
  text-align:right;
}

.toast{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:100;
  max-width:360px;
  padding:13px 16px;
  border:1px solid var(--line-strong);
  background:#0c110c;
  color:#c7d5c9;
  font:400 10px/1.45 var(--mono);
  box-shadow:0 20px 55px rgba(0,0,0,.4);
  opacity:0;
  transform:translateY(16px);
  pointer-events:none;
  transition:.2s ease;
}

.toast.show{
  opacity:1;
  transform:none;
}

body.is-resizing,
body.is-resizing *{
  cursor:col-resize!important;
  user-select:none!important;
}

.preview-pane.is-fullscreen{
  position:fixed;
  inset:0;
  z-index:200;
  background:#080b08;
}

.preview-pane.is-fullscreen .preview-stage{
  padding:0;
}

.preview-pane.is-fullscreen #previewFrame{
  min-height:calc(100vh - 48px);
}

@media(max-width:1100px){
  .hero{
    grid-template-columns:1fr;
    min-height:auto;
    padding-top:150px;
  }

  .hero-hud{
    min-height:430px;
  }

  .section-heading,
  .section-heading.compact{
    grid-template-columns:1fr 2fr;
  }

  .section-heading > p{
    grid-column:2;
  }

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

  .workspace{
    height:auto;
    grid-template-columns:1fr;
  }

  .divider{
    display:none;
  }

  .editor-pane,
  .preview-pane{
    min-height:560px;
  }

  .preview-pane{
    border-top:1px solid var(--line-strong);
  }

  .editor-shell{
    min-height:470px;
  }
}

@media(max-width:720px){
  .shell{
    width:min(var(--shell),calc(100% - 22px));
  }

  .topbar{
    height:64px;
    padding:0 12px;
  }

  .hide-mobile,
  .brand-copy small{
    display:none;
  }

  .top-status{
    gap:12px;
  }

  .hero{
    padding-top:115px;
    gap:35px;
  }

  h1{
    font-size:clamp(58px,18vw,95px);
  }

  .hero-hud{
    min-height:400px;
  }

  .section-heading,
  .section-heading.compact{
    grid-template-columns:1fr;
  }

  .section-heading > p{
    grid-column:auto;
  }

  .playground{
    padding-top:80px;
  }

  .lab-toolbar{
    align-items:stretch;
    flex-direction:column;
  }

  .project-meta{
    height:54px;
  }

  .project-name{
    width:100%;
  }

  .toolbar-actions{
    min-height:46px;
    border-top:1px solid var(--line);
  }

  .toolbar-btn{
    min-width:0;
    flex:1;
    padding:0 10px;
  }

  .toolbar-btn.primary{
    min-width:0;
  }

  .toolbar-btn.primary span{
    display:none;
  }

  .editor-tab{
    font-size:8px;
  }

  .preview-toolbar{
    flex-wrap:wrap;
    height:auto;
    min-height:48px;
  }

  .preview-actions{
    padding:6px 8px;
  }

  .shortcut-strip{
    gap:12px;
  }

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

  .feature-grid article{
    min-height:210px;
  }

  .feature-grid h3{
    margin-top:65px;
  }

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

  .footer-center,
  .footer-right{
    text-align:left;
  }
}

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