:root{
  --black: #000000;
  --lime: #CEFF00;
  --lime-dim: #8FB300;
  --white: #FFFFFF;
  --gray: #8C8C8C;
  --line: rgba(255,255,255,.16);
  --line-soft: rgba(255,255,255,.08);
  --container: 1240px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3{
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p{ margin: 0; color: var(--gray); line-height: 1.6; }
img{ display:block; max-width: 100%; height: auto; }
a{ color: inherit; text-decoration: none; }
mark{ background: none; color: var(--lime); }

/* subtle scanline texture over the whole page */
.crt-lines{
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.012) 0px, rgba(255,255,255,.012) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: overlay;
}

.page > *{
  padding-left: max(20px, calc((100vw - var(--container)) / 2));
  padding-right: max(20px, calc((100vw - var(--container)) / 2));
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 3px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-fill{
  background: var(--lime);
  color: #000;
  border-color: var(--lime);
}
.btn-fill:hover{ background: transparent; color: var(--lime); }
.btn-line{
  background: transparent;
  color: var(--white);
  border-color: var(--line);
}
.btn-line:hover{ border-color: var(--white); }
.btn-block{ width: 100%; }

/* ---------- Header ---------- */
.site-header{
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line-soft);
}
.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
}
.logo img{ width: 26px; height: 26px; }
.site-header .logo span{ color: var(--lime); }
.site-nav{ display: flex; gap: 32px; }
.site-nav a{ font-size: 14px; color: var(--lime); transition: color .15s ease; }
.site-nav a:hover{ color: var(--white); }

/* ---------- Terminal window chrome ---------- */
.win{
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #050505;
}
.win-bar{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.win-dot{ width: 9px; height: 9px; border-radius: 50%; background: #333; }
.win-dot:nth-child(1){ background: #ff5f57; }
.win-dot:nth-child(2){ background: #febc2e; }
.win-dot:nth-child(3){ background: #28c840; }
.win-title{
  margin-left: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--gray);
}
.win-body{ line-height: 0; }
.win-body img{ width: 100%; display: block; }

/* ---------- Hero ---------- */
.hero{
  padding-top: 70px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}
.hero-copy{ max-width: 760px; }
.hero h1{
  font-size: clamp(30px, 4.6vw, 54px);
}
.hero-sub{
  color: var(--gray);
  font-size: clamp(15px, 1.6vw, 18px);
  margin-top: 20px;
  max-width: 520px;
}
.hero-sub .brand{ color: var(--lime); font-weight: 600; }
.hero-actions{ display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.lottie-box{ width: 100%; height: 100%; display:block; }
.lottie-box svg{ display: block; }
.win-body .lottie-box{ aspect-ratio: 1558 / 903; }

/* ---------- Ticker ---------- */
.ticker-wrap{ padding-top: 60px; }
.ticker-label{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 18px;
}
.ticker{
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.ticker-track{
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: scroll-left 22s linear infinite;
}
.ticker-track img{ height: 28px; width: auto; opacity: .92; }
.ticker-track img:first-child, .ticker-track img:nth-child(6){ height: 36px; }
@keyframes scroll-left{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .ticker-track{ animation: none; }
}

/* ---------- How it works ---------- */
.how{ padding-top: 110px; }
.how h2{ font-size: clamp(24px, 3.2vw, 38px); max-width: 700px; margin-bottom: 50px; }
.how-grid{ display: grid; grid-template-columns: 1fr; gap: 40px; }
.how-steps{ display: flex; flex-direction: column; gap: 34px; }
.how-step{ display: flex; gap: 20px; }
.how-num{
  font-family: 'IBM Plex Mono', monospace;
  color: var(--lime);
  font-size: 14px;
  padding-top: 3px;
  flex: none;
}
.how-step h3{ font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.how-step p{ font-size: 14px; max-width: 42ch; }

.term-win{ min-height: 320px; }
.term-body{ padding: 20px 22px; min-height: 280px; line-height: normal; }
.term-output{
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--white);
  white-space: pre-wrap;
  word-break: break-word;
}
.term-output .tok-cmd{ color: var(--white); }
.term-output .tok-flag{ color: var(--gray); }
.term-output .tok-str{ color: var(--lime); }
.term-output .tok-key{ color: var(--gray); }
.term-cursor{
  display: inline-block;
  width: 7px; height: 14px;
  background: var(--lime);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}

/* ---------- Diff comparison ---------- */
.diff{ padding-top: 110px; }
.diff h2{ font-size: clamp(24px, 3.2vw, 38px); margin-bottom: 30px; }
.diff-body{ padding: 22px clamp(16px, 3vw, 30px); line-height: normal; }
.diff-line{
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(12.5px, 1.6vw, 14.5px);
  line-height: 1.5;
  padding: 9px 12px;
  border-radius: 3px;
  margin-bottom: 4px;
  white-space: pre-wrap;
}
.diff-minus{ background: rgba(255,90,90,.08); color: #ff8a8a; }
.diff-plus{ background: rgba(206,255,0,.08); color: var(--lime); }

/* ---------- Features / manifesto ---------- */
.features{ padding-top: 100px; }
.features h2{
  font-size: clamp(24px, 3.2vw, 38px);
  max-width: 700px;
}

.feature-list{
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.feature{
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
}
.feature-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.feature-index{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--gray);
}
.feature-icon{ width: 30px; height: 30px; color: var(--lime); }
.feature h3{ font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.feature p{ font-size: 14px; }

/* ---------- Stats / console ---------- */
.stats{ padding-top: 110px; display: flex; flex-direction: column; align-items: flex-start; }
.console{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px clamp(20px, 4vw, 40px) 34px;
  background: #050505;
}
.console-line{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: var(--gray);
}
.prompt{ color: var(--lime); margin-right: 8px; }
.cursor{
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--lime);
  vertical-align: middle;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink{ 50%{ opacity: 0; } }

.stats-grid{
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-num{
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--white);
}
.stat-label{ color: var(--gray); font-size: 13px; margin-top: 6px; display: block; }
.console-end{ margin-top: 18px; }

.stats-cta{ margin-top: 34px; }

.dash-win{ margin-top: 50px; width: 100%; }

/* ---------- CTA ---------- */
.cta{ padding-top: 110px; }
.cta-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(24px, 4vw, 48px);
}
.cta-text h2{ font-size: clamp(24px, 3vw, 32px); max-width: 360px; }
.cta-text p{ margin-top: 14px; max-width: 320px; }

.cta-tabs{ display: flex; gap: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; width: fit-content; }
.cta-tab{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  padding: 10px 18px;
  background: transparent;
  border: none;
  color: var(--gray);
  cursor: pointer;
}
.cta-tab.is-active{ background: var(--lime); color: #000; }

#leadForm{ margin-top: 22px; }
.cta-fields{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cta-fields.is-hidden{ display: none; }
.cta-fields label{
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--gray);
}
.cta-fields input{
  width: 100%;
  margin-top: 6px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 2px;
  color: var(--white);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
}
.cta-fields input::placeholder{ color: #555; }
.cta-fields input:focus{ outline: none; border-color: var(--lime); }

#leadForm .btn-block{ margin-top: 22px; }
.cta-note{ margin-top: 12px; font-size: 13px; color: var(--lime); min-height: 18px; }

/* ---------- Power / responsibility ---------- */
.power{
  padding-top: 110px;
  padding-bottom: 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  margin-top: 100px;
}
.power h2{ font-size: clamp(22px, 3vw, 32px); max-width: 700px; }
.power-art{ width: 200px; aspect-ratio: 1/1; margin: 40px 0; }

/* ---------- Footer ---------- */
.site-footer{ padding-bottom: 30px; padding-top: 20px; }
.footer-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.footer-line{ color: var(--gray); font-size: 14px; }

.footer-mid{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
  padding: 34px 0 20px;
}
.footer-label{ display:block; font-family: 'IBM Plex Mono', monospace; color: var(--gray); font-size: 12px; margin-bottom: 8px; }
.footer-mid a[href^="tel"], .footer-mid a[href^="mailto"]{ font-size: 19px; font-weight: 600; }
.footer-tg{
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.footer-tg:hover{ border-color: var(--lime); color: var(--lime); }

.footer-bottom{
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--gray);
  font-size: 13px;
}
.footer-links{ display: flex; gap: 24px; }
.footer-links a:hover{ color: var(--white); }

/* ---------- Responsive ---------- */
@media (min-width: 900px){
  .hero{ grid-template-columns: 0.85fr 1.15fr; align-items: center; }
  .cta-grid{ grid-template-columns: 0.8fr 1fr; }
  .how-grid{ grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}

@media (max-width: 900px){
  .feature-list{ grid-template-columns: 1fr 1fr; }
  .stats-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px){
  .site-nav{ display: none; }
  .cta-fields{ grid-template-columns: 1fr; }
  .feature-list{ grid-template-columns: 1fr; }
  .stats-grid{ grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-tg{ margin-left: 0; }
  .ticker-track img{ height: 20px; }
  .ticker-track img:first-child, .ticker-track img:nth-child(6){ height: 26px; }
}
