:root {
  --bg: #070a12;
  --panel: rgba(13, 19, 33, 0.78);
  --panel-strong: #101827;
  --text: #f7fbff;
  --muted: #aab7c7;
  --line: rgba(153, 178, 214, 0.22);
  --cyan: #49d7ff;
  --green: #6df2a6;
  --amber: #ffce73;
  --coral: #ff8a7a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

* {
  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:
    radial-gradient(circle at 20% 15%, rgba(73, 215, 255, 0.14), transparent 28rem),
    radial-gradient(circle at 85% 20%, rgba(109, 242, 166, 0.09), transparent 24rem),
    linear-gradient(180deg, #070a12 0%, #0a0f1c 48%, #080b13 100%);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(7, 10, 18, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #061018;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  border-radius: 8px;
  font-size: 0.82rem;
  box-shadow: 0 0 32px rgba(73, 215, 255, 0.36);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 92vh;
  padding: 148px clamp(20px, 5vw, 72px) 84px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

#tech-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.74;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(7, 10, 18, 0.95));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 790px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.23rem);
  line-height: 1.7;
}

.hero-actions,
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #041016;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 16px 44px rgba(73, 215, 255, 0.22);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.terminal-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(73, 215, 255, 0.25);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    var(--panel);
  box-shadow: var(--shadow);
}

.terminal-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 100% 12px;
  pointer-events: none;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--coral);
}

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

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

pre {
  position: relative;
  margin: 0;
  padding: 28px;
  overflow: auto;
  color: #d6f7ff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 600 0.86rem/1.9 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 92px clamp(20px, 5vw, 72px);
}

section[id] {
  scroll-margin-top: 74px;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 36px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 248px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.service-icon {
  display: inline-flex;
  margin-bottom: 46px;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 800;
}

.service-card p,
.timeline p,
.proof-copy p {
  color: var(--muted);
  line-height: 1.65;
}

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

.expertise-intro {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 6vw, 88px);
}

.expertise-item {
  min-width: 0;
  padding: 28px 0 30px;
  border-top: 1px solid var(--line);
}

.expertise-number {
  display: block;
  margin-bottom: 24px;
  color: var(--cyan);
  font: 700 0.75rem/1.3 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  text-transform: uppercase;
}

.expertise-item h3 {
  max-width: 360px;
}

.expertise-item p {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.timeline div {
  padding: 26px;
  background: var(--panel-strong);
}

.timeline span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--amber);
  font-weight: 800;
}

.proof {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.metrics {
  display: grid;
  gap: 14px;
}

.metrics div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.metrics strong {
  color: var(--cyan);
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1;
}

.metrics span {
  color: var(--muted);
  font-weight: 700;
  text-align: right;
}

.cta {
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto 54px;
  padding: 46px clamp(20px, 5vw, 72px);
  border: 1px solid rgba(109, 242, 166, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(73, 215, 255, 0.12), rgba(109, 242, 166, 0.08)),
    rgba(255, 255, 255, 0.035);
}

.cta h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer span:first-child {
  color: var(--text);
  font-weight: 800;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text);
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0d1321;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
  }

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

  .terminal-panel {
    max-width: 100%;
  }

  .service-grid,
  .timeline,
  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .service-icon {
    margin-bottom: 28px;
  }

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

@media (max-width: 520px) {
  .site-header {
    padding: 14px 18px;
  }

  h1 {
    font-size: 3rem;
  }

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

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

  .metrics span {
    text-align: left;
  }
}
