:root {
  --ink: #f6f7f2;
  --muted: #aeb7ad;
  --deep: #080b0c;
  --panel: #111817;
  --panel-2: #17211f;
  --line: rgba(246, 247, 242, 0.14);
  --cyan: #40d9ff;
  --green: #69f0a7;
  --amber: #f0b65c;
  --red: #ff6f61;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(105, 240, 167, 0.75);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--green);
  color: #07100b;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(246, 247, 242, 0.16);
  background: #080b0c;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-header.is-scrolled {
  background: #080b0c;
  border-color: rgba(105, 240, 167, 0.25);
}

.brand,
.nav,
.hero-actions,
.hero-stats,
.signal-strip,
.console-bar,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 72px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(64, 217, 255, 0.5);
  background:
    linear-gradient(180deg, rgba(105, 240, 167, 0.12), rgba(64, 217, 255, 0.06)),
    #07100b;
  border-radius: 10px;
}

.brand-mark span {
  color: #c7ffdf;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.nav {
  justify-content: center;
  gap: 6px;
}

.menu-toggle {
  width: 38px;
  height: 38px;
  display: none;
  place-items: center;
  gap: 3px;
  border: 1px solid rgba(246, 247, 242, 0.18);
  border-radius: 10px;
  background: rgba(246, 247, 242, 0.045);
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  width: 16px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.is-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav a,
.header-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: rgba(246, 247, 242, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
}

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

.header-cta {
  border: 1px solid rgba(105, 240, 167, 0.38);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(105, 240, 167, 0.08);
}

.hero {
  min-height: 94vh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: end;
  padding: 156px clamp(24px, 5vw, 72px) 78px;
}

.hero-image,
.hero-overlay,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 11, 12, 0.94) 0%, rgba(8, 11, 12, 0.72) 42%, rgba(8, 11, 12, 0.22) 100%),
    linear-gradient(0deg, rgba(8, 11, 12, 0.95) 0%, rgba(8, 11, 12, 0.18) 38%, rgba(8, 11, 12, 0.2) 100%);
}

.hero-grid {
  z-index: -1;
  background-image:
    linear-gradient(rgba(246, 247, 242, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 247, 242, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
}

.hero-content {
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 28px;
  font-size: 6rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  width: min(590px, 100%);
  margin-bottom: 0;
  color: rgba(246, 247, 242, 0.78);
  font-size: 1.2rem;
  line-height: 1.55;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin: 34px 0 42px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
  background: var(--green);
  color: #07100b;
}

.button.secondary {
  border-color: rgba(246, 247, 242, 0.24);
  color: var(--ink);
  background: rgba(246, 247, 242, 0.07);
}

.hero-stats {
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats div {
  min-width: 176px;
  padding: 16px 18px;
  border: 1px solid rgba(64, 217, 255, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(64, 217, 255, 0.06), transparent),
    rgba(2, 8, 9, 0.72);
  backdrop-filter: blur(16px);
}

.hero-stats dt {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.hero-stats dt::before {
  content: "$ ";
  color: var(--green);
}

.hero-stats dd {
  margin: 5px 0 0;
  color: rgba(246, 247, 242, 0.82);
  font-weight: 700;
}

.signal-strip {
  overflow: hidden;
  border-block: 1px solid rgba(246, 247, 242, 0.1);
  background: linear-gradient(90deg, #0c1111, #101716, #0c1111);
}

.signal-strip div {
  flex: 1 0 170px;
  padding: 18px 20px;
  border-right: 1px solid rgba(246, 247, 242, 0.1);
  color: rgba(246, 247, 242, 0.74);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.signal-strip div::before {
  content: "> ";
  color: var(--green);
}

.section,
.systems,
.contact {
  padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  margin-bottom: 42px;
}

.section-heading h2,
.method h2,
.systems h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.6vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  padding: 70px 24px 24px;
  border: 1px solid rgba(64, 217, 255, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(rgba(105, 240, 167, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 82% 12%, rgba(64, 217, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(246, 247, 242, 0.06), rgba(246, 247, 242, 0.015)),
    var(--panel);
  background-size: 100% 28px, auto, auto, auto;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 40px;
  border-bottom: 1px solid rgba(246, 247, 242, 0.1);
  background:
    radial-gradient(circle at 18px 20px, var(--red) 0 5px, transparent 6px),
    radial-gradient(circle at 38px 20px, var(--amber) 0 5px, transparent 6px),
    radial-gradient(circle at 58px 20px, var(--green) 0 5px, transparent 6px),
    rgba(2, 8, 9, 0.56);
}

.service-card::after {
  content: "$ " attr(data-command);
  position: absolute;
  top: 50px;
  left: 24px;
  right: 24px;
  color: #c7ffdf;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-index {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
}

.service-card h3 {
  margin: 72px 0 16px;
  font-size: 1.55rem;
}

.service-card p,
.method-copy p,
.systems-panel p,
.contact-content p {
  color: var(--muted);
}

.method {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 7vw, 86px);
  background:
    radial-gradient(circle at 12% 20%, rgba(240, 182, 92, 0.08), transparent 28%),
    #0b100f;
}

.method-copy {
  position: sticky;
  top: 120px;
  align-self: start;
}

.method-copy h2 {
  margin-bottom: 24px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(105, 240, 167, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(105, 240, 167, 0.06), transparent 42%),
    rgba(2, 8, 9, 0.5);
}

.timeline-item span {
  color: var(--cyan);
  font-family: var(--mono);
  font-weight: 700;
}

.timeline-item span::before {
  content: "./";
  color: var(--green);
}

.timeline-item p {
  margin-bottom: 0;
  color: rgba(246, 247, 242, 0.76);
}

.systems {
  background:
    radial-gradient(circle at 80% 15%, rgba(105, 240, 167, 0.13), transparent 24%),
    linear-gradient(135deg, #101716, #0a0d0e);
}

.systems-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.75fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(246, 247, 242, 0.1);
  border-radius: calc(var(--radius) + 10px);
  background: rgba(8, 11, 12, 0.26);
  box-shadow: var(--shadow);
}

.systems-panel > div:first-child {
  max-width: 760px;
}

.console {
  border: 1px solid rgba(64, 217, 255, 0.34);
  border-radius: 14px;
  background: rgba(2, 8, 9, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.console-bar {
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid rgba(246, 247, 242, 0.1);
}

.console-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.console-bar span:nth-child(2) {
  background: var(--amber);
}

.console-bar span:nth-child(3) {
  background: var(--green);
}

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  color: #c7ffdf;
  font-family: var(--mono);
  font-size: clamp(0.82rem, 2vw, 1rem);
  line-height: 1.8;
}

.proof {
  background: var(--deep);
}

.section-heading.compact {
  grid-template-columns: 1fr;
  max-width: 980px;
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 14px;
}

.proof-list p {
  position: relative;
  min-height: 150px;
  margin: 0;
  padding: 48px 22px 22px;
  border: 1px solid rgba(64, 217, 255, 0.16);
  border-radius: 12px;
  color: rgba(246, 247, 242, 0.78);
  background:
    linear-gradient(180deg, rgba(64, 217, 255, 0.055), transparent 44%),
    rgba(246, 247, 242, 0.035);
}

.proof-list p::before {
  content: "alert.log";
  position: absolute;
  top: 18px;
  left: 22px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.proof-list p::after {
  content: "_";
  color: var(--green);
  font-family: var(--mono);
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 72px);
  background: #e8eee6;
  color: #101514;
}

.contact .eyebrow {
  color: #0f7654;
}

.contact-content p {
  color: #42514c;
}

.contact-form {
  display: grid;
  gap: 18px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(64, 217, 255, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(rgba(105, 240, 167, 0.04) 1px, transparent 1px),
    #07100b;
  background-size: 100% 30px;
  box-shadow: 0 24px 70px rgba(16, 21, 20, 0.22);
}

.terminal-form-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(246, 247, 242, 0.12);
  background: rgba(2, 8, 9, 0.78);
}

.terminal-form-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.terminal-form-bar span:nth-child(2) {
  background: var(--amber);
}

.terminal-form-bar span:nth-child(3) {
  background: var(--green);
}

.terminal-form-bar code {
  margin-left: 8px;
  color: rgba(246, 247, 242, 0.6);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.contact-form label {
  display: grid;
  gap: 8px;
  padding: 0 clamp(16px, 3vw, 24px);
  color: #c7ffdf;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 800;
}

.contact-form label span::before {
  content: "> ";
  color: #0f7654;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(64, 217, 255, 0.22);
  background: rgba(2, 8, 9, 0.72);
  color: var(--ink);
  font: inherit;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 14px 15px;
  border-radius: 10px;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(246, 247, 242, 0.42);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(105, 240, 167, 0.12);
}

.terminal-submit {
  display: flex;
  padding: 0 clamp(16px, 3vw, 24px) clamp(16px, 3vw, 24px);
}

.terminal-button {
  width: auto;
  min-width: 188px;
  max-width: 220px;
  gap: 8px;
  min-height: 44px;
  justify-content: flex-start;
  padding: 0 14px;
  border: 1px solid rgba(105, 240, 167, 0.45);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(105, 240, 167, 0.18), rgba(105, 240, 167, 0.08)),
    #07100b;
  color: #c7ffdf;
  font-family: var(--mono);
  text-transform: lowercase;
  box-shadow: 0 12px 32px rgba(7, 16, 11, 0.34);
}

.terminal-button .prompt {
  color: var(--green);
}

.terminal-button:hover {
  border-color: var(--green);
  background:
    linear-gradient(180deg, rgba(105, 240, 167, 0.26), rgba(105, 240, 167, 0.12)),
    #07100b;
}

.terminal-button.is-running {
  pointer-events: none;
  opacity: 0.82;
}

.footer {
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(246, 247, 242, 0.62);
  background: #080b0c;
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
}

.footer a {
  color: rgba(246, 247, 242, 0.78);
}

.footer a:hover {
  color: var(--green);
}

@media (max-width: 980px) {
  h1 {
    font-size: 5rem;
  }

  .site-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-right: clamp(18px, 5vw, 72px);
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .menu-toggle {
    flex: 0 0 38px;
    display: grid;
  }

  .nav {
    flex: 1 0 100%;
    width: 100%;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 6px;
  }

  .site-header.is-open .nav {
    display: grid;
  }

  .nav a {
    min-height: 44px;
    justify-content: center;
    border: 1px solid rgba(246, 247, 242, 0.12);
    border-radius: 16px;
    background: rgba(246, 247, 242, 0.055);
  }

  .header-cta {
    display: none;
  }

  .service-card,
  .proof-list p {
    border-bottom: 1px solid var(--line);
  }

  .method,
  .systems-panel,
  .contact,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .method-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 84px;
  }

  .site-header {
    inset: 0 0 auto;
    padding: 10px 14px;
  }

  .brand-mark {
    width: 68px;
    height: 32px;
    border-radius: 10px;
  }

  .brand span:last-child {
    max-width: 58vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    min-height: 92svh;
    padding: 112px 18px 36px;
    align-items: end;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 11, 12, 0.96) 0%, rgba(8, 11, 12, 0.78) 55%, rgba(8, 11, 12, 0.44) 100%),
      linear-gradient(0deg, rgba(8, 11, 12, 0.96) 0%, rgba(8, 11, 12, 0.32) 48%, rgba(8, 11, 12, 0.48) 100%);
  }

  h1 {
    font-size: 3.6rem;
    line-height: 1.03;
    margin-bottom: 22px;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.55;
  }

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

  .button {
    width: 100%;
    min-height: 50px;
  }

  .hero-stats div {
    flex: 1 1 100%;
    min-width: 0;
  }

  .section,
  .systems,
  .contact {
    padding: 56px 18px;
  }

  .service-grid,
  .proof-list {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 240px;
  }

  .service-card h3 {
    margin-top: 64px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .systems-panel {
    padding: 20px;
    border-radius: 20px;
  }

  pre {
    padding: 18px;
    font-size: 0.78rem;
  }

  .contact-form .button {
    width: 100%;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .site-header {
    inset: 0 0 auto;
  }

  .brand {
    gap: 8px;
    font-size: 0.95rem;
  }

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

  .hero {
    padding-inline: 16px;
  }

  h1 {
    font-size: 2.85rem;
  }

  .section-heading h2,
  .method h2,
  .systems h2,
  .contact h2 {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
  }

  .signal-strip div {
    flex-basis: 145px;
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
