:root {
  --ink: #07110d;
  --ink-soft: #0b1812;
  --ink-raised: #0e2017;
  --green: #32e875;
  --green-dim: #1f9b50;
  --paper: #eaf4ee;
  --muted: #8da398;
  --line: rgba(141, 163, 152, 0.18);
  --line-bright: rgba(50, 232, 117, 0.35);
  --content: 1240px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.no-js .boot-screen {
  display: none;
}

body,
a,
button {
  cursor: default;
}

a,
button {
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  font: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.section-wrap {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}

/* Boot sequence */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.76, 0, 0.24, 1),
    visibility 0.5s;
}

.boot-screen::before,
.boot-screen::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.boot-screen::before {
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(50, 232, 117, 0.025) 50%,
    transparent 100%
  );
  background-size: 100% 6px;
}

.boot-screen::after {
  width: 56vw;
  height: 56vw;
  border-radius: 50%;
  background: rgba(50, 232, 117, 0.07);
  filter: blur(140px);
  animation: boot-glow 2.4s ease-in-out infinite alternate;
}

.boot-screen--exit {
  visibility: hidden;
  opacity: 0;
  transform: scale(1.025);
}

.boot-grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(50, 232, 117, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50, 232, 117, 0.16) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 10%, transparent 74%);
}

.boot-panel {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100vw - 40px));
  padding: 38px;
  border: 1px solid var(--line-bright);
  background: rgba(7, 17, 13, 0.86);
  box-shadow:
    0 0 0 1px rgba(50, 232, 117, 0.05) inset,
    0 0 80px rgba(50, 232, 117, 0.06);
  backdrop-filter: blur(18px);
}

.boot-panel::before,
.boot-panel::after {
  position: absolute;
  width: 18px;
  height: 18px;
  content: "";
  border-color: var(--green);
}

.boot-panel::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.boot-panel::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.boot-mark {
  display: block;
  width: 62px;
  height: 62px;
  margin-bottom: 24px;
  animation: mark-in 0.55s ease both;
}

.boot-kicker,
.boot-log,
.boot-status,
.section-index,
.card-code,
.terminal-body,
.terminal-footer,
.contact-number,
.footer-contact p,
.footer-legal p {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.boot-kicker {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.boot-log {
  min-height: 148px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(4, 11, 8, 0.74);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.boot-log p {
  margin: 0;
  opacity: 0;
  transform: translateY(5px);
  animation: log-line 0.22s ease forwards;
}

.boot-log p:nth-child(1) { animation-delay: 0.18s; color: var(--paper); }
.boot-log p:nth-child(2) { animation-delay: 0.46s; }
.boot-log p:nth-child(3) { animation-delay: 0.76s; }
.boot-log p:nth-child(4) { animation-delay: 1.05s; }
.boot-log p:nth-child(5) { animation-delay: 1.34s; }
.boot-log span { color: var(--green); }

.boot-progress {
  height: 2px;
  margin-top: 24px;
  overflow: hidden;
  background: rgba(141, 163, 152, 0.15);
}

.boot-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
  transform-origin: left;
  animation: boot-progress 2.05s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.boot-status {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.boot-status strong {
  color: var(--green);
  opacity: 0;
  animation: ready-in 0.1s linear 1.95s forwards;
}

.boot-skip {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 22px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boot-skip span {
  margin-left: 8px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 9px;
}

@keyframes mark-in {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes log-line {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes boot-progress {
  from { transform: scaleX(0); }
  35% { transform: scaleX(0.22); }
  67% { transform: scaleX(0.74); }
  to { transform: scaleX(1); }
}

@keyframes ready-in {
  to { opacity: 1; }
}

@keyframes boot-glow {
  from { transform: translate(-8%, -3%) scale(0.82); }
  to { transform: translate(8%, 3%) scale(1.08); }
}

/* Header */
.site-shell {
  min-height: 100vh;
  overflow: clip;
  background:
    radial-gradient(circle at 76% 2%, rgba(50, 232, 117, 0.07), transparent 26rem),
    var(--ink);
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 48px), var(--content));
  height: 96px;
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  width: 206px;
}

.brand img,
.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.desktop-nav a,
.header-cta {
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.header-cta:hover {
  color: var(--paper);
}

.header-cta {
  justify-self: end;
  padding: 12px 16px;
  border: 1px solid var(--line);
}

.header-cta span,
.button span {
  margin-left: 9px;
  color: var(--green);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
  gap: clamp(56px, 7vw, 104px);
  align-items: center;
  min-height: calc(100svh - 96px);
  padding-block: 92px 110px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot,
.live-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(50, 232, 117, 0.75);
  animation: status-pulse 1.8s ease infinite;
}

@keyframes status-pulse {
  50% { opacity: 0.42; box-shadow: 0 0 4px rgba(50, 232, 117, 0.35); }
}

.hero h1,
.section-heading h2,
.final-cta h2,
.legal-hero h1 {
  margin: 0;
  font-weight: 620;
  letter-spacing: -0.052em;
}

.hero h1 {
  max-width: 790px;
  font-size: clamp(58px, 7vw, 104px);
  line-height: 0.94;
}

.hero h1 span {
  display: block;
  color: var(--green);
}

.hero-lead {
  max-width: 670px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 650;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

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

.button--primary {
  background: var(--green);
  color: var(--ink);
}

.button--primary span {
  color: var(--ink);
}

.button--primary:hover {
  background: #5cf093;
}

.button--ghost {
  border-color: var(--line);
  color: var(--paper);
}

.button--ghost:hover {
  border-color: var(--line-bright);
  background: rgba(50, 232, 117, 0.04);
}

.hero-system {
  position: relative;
  border: 1px solid var(--line-bright);
  background: rgba(7, 17, 13, 0.76);
  box-shadow:
    24px 24px 0 rgba(50, 232, 117, 0.025),
    0 36px 100px rgba(0, 0, 0, 0.28);
}

.hero-system::before {
  position: absolute;
  top: -22px;
  right: 26px;
  content: "ACTIVE";
  padding: 5px 9px;
  background: var(--green);
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.terminal-topbar,
.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

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

.terminal-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(141, 163, 152, 0.35);
}

.terminal-dots span:first-child {
  background: var(--green);
}

.terminal-body {
  padding: 38px 30px;
  font-size: 12px;
  line-height: 2.7;
}

.terminal-body p {
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
}

.terminal-body p > span {
  display: inline-block;
  width: 36px;
  color: rgba(141, 163, 152, 0.42);
}

.terminal-body strong {
  color: var(--paper);
  font-weight: 500;
}

.terminal-body .terminal-ready {
  color: var(--green);
}

.terminal-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.signal-strip {
  overflow: hidden;
  border-block: 1px solid var(--line-bright);
  background: var(--green);
  color: var(--ink);
}

.signal-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 18s linear infinite;
}

.signal-sequence {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 30px;
  min-height: 42px;
  padding-right: 30px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.signal-strip i {
  font-size: 7px;
  font-style: normal;
}

@keyframes marquee {
  to { transform: translate3d(-50%, 0, 0); }
}

/* Sections */
.content-section {
  padding-block: 136px;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 64px;
}

.section-heading--row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  gap: 80px;
  align-items: end;
  max-width: none;
}

.section-index {
  margin: 0 0 20px;
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.section-heading h2,
.final-cta h2 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
}

.section-heading > p:not(.section-index),
.section-heading--row > p,
.final-cta > p:not(.section-index) {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.section-heading--row > p {
  margin: 0;
}

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

.benefit-card {
  min-height: 270px;
  padding: 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(50, 232, 117, 0.025), transparent 60%);
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

.benefit-card:hover {
  border-color: var(--line-bright);
  background: rgba(50, 232, 117, 0.05);
}

.card-code {
  color: var(--green);
  font-size: 10px;
}

.benefit-card h3 {
  max-width: 380px;
  margin: 66px 0 14px;
  font-size: 22px;
  font-weight: 580;
  letter-spacing: -0.025em;
}

.benefit-card p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.projects-section {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(rgba(50, 232, 117, 0.018), rgba(50, 232, 117, 0.018)),
    var(--ink-soft);
}

.projects-list {
  border-top: 1px solid var(--line);
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(260px, 0.85fr) minmax(320px, 1fr) 64px;
  gap: 34px;
  align-items: center;
  min-height: 220px;
  border-bottom: 1px solid var(--line);
  transition:
    padding 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease;
}

.project-card:hover {
  padding-inline: 22px;
  border-color: var(--line-bright);
  background: rgba(50, 232, 117, 0.035);
}

.project-meta {
  display: flex;
  height: 90px;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.live-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
}

.live-label i {
  display: block;
  width: 5px;
  height: 5px;
}

.project-main > p {
  margin: 0 0 13px;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-main h3 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 580;
  letter-spacing: -0.04em;
}

.project-domain {
  color: var(--muted);
  font-size: 12px;
}

.project-description {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.project-arrow {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  justify-self: end;
  border: 1px solid var(--line);
  color: var(--green);
  font-size: 18px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.project-card:hover .project-arrow {
  transform: translate(3px, -3px);
  border-color: var(--green);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.process-list li {
  min-height: 310px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-list li > span {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.process-list h3 {
  margin: 94px 0 18px;
  font-size: 24px;
  font-weight: 580;
}

.process-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.final-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 150px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.final-cta h2 {
  max-width: 940px;
}

.final-cta > p:not(.section-index) {
  max-width: 600px;
}

.button--large {
  min-height: 60px;
  margin-top: 38px;
  padding-inline: 30px;
}

.contact-number {
  margin-top: 18px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.cta-glow {
  position: absolute;
  z-index: -1;
  top: 20%;
  width: 520px;
  height: 320px;
  border-radius: 50%;
  background: rgba(50, 232, 117, 0.065);
  filter: blur(110px);
}

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 80px;
  padding-block: 68px 32px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  width: 250px;
}

.footer-brand p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.footer-contact,
.footer-legal {
  display: flex;
  min-width: 170px;
  flex-direction: column;
  gap: 10px;
}

.footer-contact p,
.footer-legal p {
  margin: 0 0 9px;
  color: var(--green);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.footer-contact a,
.footer-legal a {
  color: var(--muted);
  font-size: 12px;
  transition: color 0.2s ease;
}

.footer-contact a:hover,
.footer-legal a:hover {
  color: var(--paper);
}

.footer-bottom {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: rgba(141, 163, 152, 0.68);
  font-size: 10px;
}

/* Legal pages */
.legal-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 0%, rgba(50, 232, 117, 0.06), transparent 28rem),
    var(--ink);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), 980px);
  height: 92px;
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}

.legal-header img {
  width: 190px;
}

.legal-header a:last-child {
  color: var(--muted);
  font-size: 12px;
}

.legal-header a:last-child:hover {
  color: var(--paper);
}

.legal-main {
  width: min(calc(100% - 48px), 980px);
  margin-inline: auto;
  padding-block: 94px 130px;
}

.legal-hero {
  max-width: 780px;
  padding-bottom: 58px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  font-size: clamp(46px, 7vw, 78px);
  line-height: 1;
}

.legal-hero > p:last-child {
  margin: 25px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.legal-notice {
  margin: 48px 0;
  padding: 22px 24px;
  border-left: 2px solid var(--green);
  background: rgba(50, 232, 117, 0.045);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.legal-content {
  max-width: 780px;
}

.legal-content section {
  padding-block: 32px;
  border-bottom: 1px solid var(--line);
}

.legal-content h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 580;
  letter-spacing: -0.02em;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.legal-content ul {
  padding-left: 20px;
}

.legal-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-source {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 42px;
  font-size: 11px;
}

/* Responsive */
@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 96px 110px;
  }

  .hero-system {
    width: min(100%, 620px);
  }

  .project-card {
    grid-template-columns: 60px minmax(220px, 0.8fr) 1fr 48px;
    gap: 24px;
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .section-wrap,
  .site-header,
  .legal-header,
  .legal-main {
    width: min(calc(100% - 32px), var(--content));
  }

  .site-header {
    grid-template-columns: 1fr auto;
    height: 78px;
  }

  .brand {
    width: 164px;
  }

  .desktop-nav {
    display: none;
  }

  .header-cta {
    padding: 10px 12px;
    font-size: 11px;
  }

  .hero {
    gap: 64px;
    padding-block: 72px 88px;
  }

  .hero h1 {
    font-size: clamp(52px, 16vw, 76px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-system {
    width: 100%;
  }

  .terminal-body {
    overflow-x: auto;
    padding: 28px 20px;
    font-size: 10px;
  }

  .content-section {
    padding-block: 96px;
  }

  .section-heading,
  .section-heading--row {
    display: block;
    margin-bottom: 46px;
  }

  .section-heading--row > p {
    margin-top: 25px;
  }

  .benefits-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    min-height: 240px;
    padding: 26px;
  }

  .benefit-card h3 {
    margin-top: 52px;
  }

  .project-card {
    grid-template-columns: 44px 1fr 44px;
    gap: 18px;
    padding-block: 34px;
  }

  .project-card:hover {
    padding-inline: 10px;
  }

  .project-meta {
    height: 100%;
  }

  .project-description {
    grid-column: 2 / 4;
  }

  .project-arrow {
    grid-column: 3;
    grid-row: 1;
    width: 40px;
    height: 40px;
  }

  .process-list li {
    min-height: 240px;
  }

  .process-list h3 {
    margin-top: 58px;
  }

  .final-cta {
    padding-block: 110px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    gap: 20px;
  }

  .boot-panel {
    padding: 26px 22px;
  }

  .boot-log {
    padding: 16px;
    font-size: 11px;
  }

  .boot-skip {
    right: 16px;
    bottom: 14px;
  }

  .legal-main {
    padding-block: 70px 100px;
  }
}

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

  .signal-track {
    transform: translate3d(0, 0, 0) !important;
  }
}
