:root {
  color-scheme: light dark;
  --ink: #08090b;
  --ink-soft: #30343a;
  --muted: #6d737c;
  --paper: #f6f3ea;
  --paper-2: #ebe6d9;
  --line: rgba(8, 9, 11, 0.14);
  --green: #18c9a7;
  --green-dark: #0f8f7a;
  --blue: #2b6df3;
  --white: #ffffff;
  --surface-hover: #ffffff;
  --solid: #08090b;
  --solid-text: #ffffff;
  --action-bg: #08090b;
  --action-text: #ffffff;
  --panel: rgba(255, 255, 255, 0.56);
  --panel-strong: #fffdf8;
  --glass: rgba(255, 255, 255, 0.58);
  --header-bg: rgba(246, 243, 234, 0.9);
  --intro-bg: #08090b;
  --intro-muted: rgba(255, 255, 255, 0.68);
  --contact-muted: rgba(255, 255, 255, 0.68);
  --grid-line: rgba(8, 9, 11, 0.08);
  --shadow: 0 24px 70px rgba(8, 9, 11, 0.16);
}

html[data-theme="dark"] {
  --ink: #f6f3ea;
  --ink-soft: #d8d2c2;
  --muted: #aaa494;
  --paper: #08090b;
  --paper-2: #111419;
  --line: rgba(246, 243, 234, 0.14);
  --green: #2de0c0;
  --green-dark: #5df0d4;
  --blue: #7aa2ff;
  --white: #ffffff;
  --surface-hover: #161a20;
  --solid: #101216;
  --solid-text: #f6f3ea;
  --action-bg: #f6f3ea;
  --action-text: #08090b;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: #101216;
  --glass: rgba(16, 18, 22, 0.68);
  --header-bg: rgba(8, 9, 11, 0.82);
  --intro-bg: transparent;
  --intro-muted: rgba(246, 243, 234, 0.68);
  --contact-muted: rgba(246, 243, 234, 0.68);
  --grid-line: rgba(246, 243, 234, 0.07);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --ink: #f6f3ea;
    --ink-soft: #d8d2c2;
    --muted: #aaa494;
    --paper: #08090b;
    --paper-2: #111419;
    --line: rgba(246, 243, 234, 0.14);
    --green: #2de0c0;
    --green-dark: #5df0d4;
    --blue: #7aa2ff;
    --white: #ffffff;
    --surface-hover: #161a20;
    --solid: #101216;
    --solid-text: #f6f3ea;
    --action-bg: #f6f3ea;
    --action-text: #08090b;
    --panel: rgba(255, 255, 255, 0.06);
    --panel-strong: #101216;
    --glass: rgba(16, 18, 22, 0.68);
    --header-bg: rgba(8, 9, 11, 0.82);
    --intro-bg: transparent;
    --intro-muted: rgba(246, 243, 234, 0.68);
    --contact-muted: rgba(246, 243, 234, 0.68);
    --grid-line: rgba(246, 243, 234, 0.07);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  transition: background 260ms ease, color 260ms ease;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: var(--header-bg);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
}

.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.nav a:hover {
  background: var(--surface-hover);
}

.header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
}

.theme-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  overflow: hidden;
}

.theme-icon::after {
  content: "";
  position: absolute;
  inset: -2px -2px -2px 8px;
  border-radius: 50%;
  background: var(--glass);
  transition: transform 140ms ease;
}

html[data-theme="dark"] .theme-icon::after {
  transform: translateX(10px);
}

.header-cta {
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--action-bg);
  color: var(--action-text);
  font-weight: 750;
  box-shadow: 0 12px 30px rgba(8, 9, 11, 0.16);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(8, 9, 11, 0.18);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding: 120px clamp(20px, 5vw, 72px) 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  opacity: 0.38;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 52vw;
  height: 52vw;
  right: -22vw;
  top: 10vh;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 201, 167, 0.14), transparent 60%);
  opacity: 0.58;
  pointer-events: none;
}

.hero-content,
.hero-visual {
  position: relative;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7.2vw, 6.9rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.btn.primary {
  background: var(--action-bg);
  color: var(--action-text);
}

.btn.secondary {
  border: 1px solid var(--line);
  background: var(--glass);
}

.screen-grid {
  position: relative;
  min-height: 620px;
}

.screen {
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  background: #101216;
  color: var(--solid-text);
  box-shadow: var(--shadow);
}

.screen-main {
  position: absolute;
  inset: 74px 6% auto 0;
  min-height: 430px;
  padding: 18px;
  transform: rotate(-2deg);
  animation: float-main 8s ease-in-out infinite;
}

.screen-side {
  position: absolute;
  right: 0;
  bottom: 42px;
  width: min(330px, 48%);
  min-height: 250px;
  padding: 28px;
  background: var(--panel-strong);
  color: var(--ink);
  transform: rotate(4deg);
  animation: float-side 7.5s ease-in-out infinite;
}

.screen-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.screen-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
}

.wireframe {
  min-height: 360px;
  padding: 24px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(24, 201, 167, 0.16), rgba(43, 109, 243, 0.16)),
    #171a20;
}

.wf-hero {
  width: 68%;
  height: 88px;
  border-radius: 8px;
  background: var(--paper);
}

.wf-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.wf-row span,
.wf-text,
.terminal-line {
  display: block;
  height: 16px;
  border-radius: 999px;
  background: rgba(246, 243, 234, 0.24);
}

.wf-row span {
  height: 76px;
  border-radius: 8px;
}

.wf-text {
  width: 58%;
  margin-bottom: 12px;
}

.wf-text.wide {
  width: 82%;
}

.wf-chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 96px;
  margin-top: 26px;
}

.wf-chart span {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: var(--green);
  transform-origin: bottom;
}

.wf-chart span:nth-child(1) { height: 44%; }
.wf-chart span:nth-child(2) { height: 78%; }
.wf-chart span:nth-child(3) { height: 56%; background: var(--blue); }
.wf-chart span:nth-child(4) { height: 92%; }

.terminal-line {
  background: rgba(8, 9, 11, 0.18);
  margin-bottom: 14px;
}

.terminal-line.green {
  width: 74%;
  background: var(--green);
}

.terminal-line.short {
  width: 52%;
}

.data-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 38px;
}

.data-points span {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--ink);
}

.data-points span:nth-child(even) {
  background: var(--blue);
}

.data-points span:nth-child(2) { animation-delay: 180ms; }
.data-points span:nth-child(3) { animation-delay: 360ms; }
.data-points span:nth-child(4) { animation-delay: 540ms; }

.signal-card {
  position: absolute;
  left: 34px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(340px, 70%);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: var(--shadow);
  animation: card-drift 9s ease-in-out infinite;
}

.signal-card img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
}

.signal-card strong,
.signal-card span {
  display: block;
}

.signal-card span {
  color: var(--muted);
  line-height: 1.35;
}

.intro-band,
.section,
.process,
.contact,
.footer {
  padding-inline: clamp(20px, 5vw, 72px);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band div {
  min-height: 220px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--intro-bg);
  color: var(--solid-text);
  border-right: 1px solid var(--line);
  transition: transform 130ms ease, background 130ms ease;
}

.intro-band div:last-child {
  border-right: 0;
}

.intro-band div:hover {
  transform: translateY(-6px);
}

.intro-band span {
  display: block;
  margin-bottom: 34px;
  color: var(--green);
  font-weight: 850;
}

.intro-band strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.intro-band p {
  margin-bottom: 0;
  color: var(--intro-muted);
  line-height: 1.55;
}

.section,
.process {
  padding-top: clamp(76px, 10vw, 132px);
  padding-bottom: clamp(76px, 10vw, 132px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.showcase {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.case,
.service-grid article,
.steps li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: transform 130ms ease, border-color 130ms ease, background 130ms ease, box-shadow 130ms ease;
}

.case:hover,
.service-grid article:hover,
.steps li:hover {
  transform: translateY(-8px);
  border-color: rgba(24, 201, 167, 0.45);
  box-shadow: var(--shadow);
}

.case {
  min-height: 240px;
  padding: clamp(24px, 4vw, 42px);
}

.case-large {
  grid-row: span 2;
  min-height: 500px;
  background:
    linear-gradient(140deg, rgba(24, 201, 167, 0.18), rgba(43, 109, 243, 0.12)),
    var(--panel-strong);
}

.case span {
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.case h3 {
  margin: 16px 0;
  font-size: clamp(1.45rem, 3vw, 2.65rem);
  line-height: 1.08;
}

.case p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.65;
}

.services {
  background: var(--panel-strong);
}

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

.service-grid article {
  min-height: 280px;
  padding: 28px;
}

.icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 42px;
  border-radius: 50%;
  background: var(--action-bg);
  color: var(--green);
  font-weight: 900;
  transition: transform 120ms ease;
}

.service-grid article:hover .icon {
  transform: rotate(12deg) scale(1.08);
}

.service-grid h3,
.steps h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.service-grid p,
.steps p,
.contact p {
  color: var(--muted);
  line-height: 1.6;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-height: 290px;
  padding: 30px;
}

.steps span {
  display: block;
  margin-bottom: 66px;
  color: var(--green-dark);
  font-weight: 850;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  padding-top: clamp(70px, 10vw, 120px);
  padding-bottom: clamp(70px, 10vw, 120px);
  background: var(--solid);
  color: var(--solid-text);
}

.contact .eyebrow {
  color: var(--green);
}

.contact div {
  max-width: 870px;
}

.contact p {
  max-width: 660px;
  margin-top: 24px;
  margin-bottom: 0;
  color: var(--contact-muted);
}

.contact .btn.primary {
  background: var(--green);
  color: #08090b;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 26px;
  background: var(--solid);
  color: var(--solid-text);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
}

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

}

@keyframes float-main {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(0, -10px, 0) rotate(-1.2deg); }
}

@keyframes float-side {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(4deg); }
  50% { transform: translate3d(0, 8px, 0) rotate(3.2deg); }
}

@keyframes card-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(10px, -4px, 0); }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 112px;
  }

  .hero-content {
    order: -1;
  }

  .screen-grid {
    min-height: 520px;
  }

  .service-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand span {
    font-size: 0.96rem;
  }

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

  .theme-toggle span[data-theme-label] {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 96px 16px 52px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.35rem);
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .screen-grid {
    min-height: 430px;
  }

  .screen-main {
    inset: 24px 0 auto;
    min-height: 330px;
  }

  .wireframe {
    min-height: 270px;
    padding: 16px;
  }

  .screen-side {
    right: 0;
    bottom: 28px;
    width: 58%;
    min-height: 190px;
    padding: 20px;
  }

  .signal-card {
    left: 0;
    width: 82%;
  }

  .intro-band,
  .showcase,
  .service-grid,
  .steps,
  .contact {
    grid-template-columns: 1fr;
  }

  .intro-band,
  .section,
  .process,
  .contact,
  .footer {
    padding-inline: 16px;
  }

  .case-large {
    min-height: 420px;
  }

  .service-grid article,
  .steps li {
    min-height: 230px;
  }

  .steps span {
    margin-bottom: 42px;
  }

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