:root {
  --bg: #07120f;
  --surface: #0d1d19;
  --surface-soft: #132820;
  --text: #f4fbf8;
  --muted: #a7bbb3;
  --line: rgba(255, 255, 255, 0.12);
  --green: #29f29a;
  --cyan: #55d7ff;
  --amber: #ffc857;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  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 15% 10%, rgba(41, 242, 154, 0.16), transparent 28rem),
    radial-gradient(circle at 85% 20%, rgba(85, 215, 255, 0.12), transparent 30rem),
    linear-gradient(135deg, #07120f 0%, #091916 55%, #10140d 100%);
  min-height: 100vh;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(7, 18, 15, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(20px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(7, 18, 15, 0.9);
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(41, 242, 154, 0.5);
  background: linear-gradient(135deg, rgba(41, 242, 154, 0.28), rgba(85, 215, 255, 0.12));
  border-radius: 8px;
  color: var(--green);
  font-weight: 800;
  box-shadow: 0 0 32px rgba(41, 242, 154, 0.16);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
  min-height: 100vh;
  padding: 104px clamp(20px, 5vw, 72px) 48px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  max-width: 820px;
  font-size: clamp(40px, 4.55vw, 62px);
}

h2 {
  font-size: clamp(34px, 4.5vw, 58px);
}

h3 {
  margin: 0;
  font-size: 21px;
}

.hero-text,
.section-heading,
.solutions-copy p,
.contact p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-text {
  max-width: 680px;
  margin: 20px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: #06110e;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 14px 36px rgba(41, 242, 154, 0.22);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.button.full {
  width: 100%;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 650px;
  margin: 28px 0 0;
}

.stats div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.stats dt {
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

.stats dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.code-window {
  position: relative;
  overflow: hidden;
  height: 380px;
  border: 1px solid rgba(85, 215, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    #0a1816;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.code-window::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 95px;
  background: linear-gradient(0deg, rgba(41, 242, 154, 0.18), transparent);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

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

.window-bar span:first-child {
  background: #ff6b6b;
}

.window-bar span:nth-child(2) {
  background: var(--green);
}

.window-bar strong {
  margin-left: 10px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

pre {
  margin: 0;
  padding: 32px;
  white-space: pre-wrap;
}

code {
  color: #d9fff0;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(13px, 1.5vw, 17px);
  line-height: 1.9;
}

.accent {
  color: var(--green);
}

.muted {
  color: var(--cyan);
}

.floating-card {
  position: absolute;
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 29, 25, 0.9);
  box-shadow: var(--shadow);
}

.floating-card span {
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
  font-size: 28px;
  font-weight: 800;
}

.floating-card p {
  margin: 0;
  color: var(--muted);
}

.card-one {
  right: -12px;
  bottom: 28px;
}

.card-two {
  left: -18px;
  top: 90px;
}

.section {
  padding: 92px clamp(20px, 5vw, 72px);
}

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

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

.service-card,
.timeline div,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.18);
}

.service-card {
  min-height: 270px;
  padding: 26px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(41, 242, 154, 0.42);
}

.icon {
  display: grid;
  min-width: 48px;
  height: 48px;
  padding: 0 10px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 8px;
  background: rgba(41, 242, 154, 0.12);
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 800;
}

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

.process {
  background: rgba(255, 255, 255, 0.035);
}

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

.timeline div {
  padding: 24px;
}

.timeline span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
}

.solutions {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

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

.tech-panel span {
  display: grid;
  min-height: 86px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(85, 215, 255, 0.1), rgba(41, 242, 154, 0.07));
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: center;
  margin: 0 clamp(20px, 5vw, 72px) 72px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(41, 242, 154, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(41, 242, 154, 0.14), rgba(85, 215, 255, 0.06)),
    rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.contact-card a:not(.button) {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

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

footer p {
  margin: 0;
}

@media (max-width: 1040px) {
  .hero,
  .solutions,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .contact {
    margin-bottom: 40px;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 73px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(7, 18, 15, 0.96);
  }

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

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

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

  h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .hero-actions,
  .stats,
  .service-grid,
  .timeline,
  .tech-panel {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 360px;
  }

  .code-window {
    height: 340px;
  }

  pre {
    padding: 22px;
  }

  .floating-card {
    position: relative;
    inset: auto;
    margin-top: 12px;
  }

  .card-two {
    display: none;
  }

  .section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .contact {
    margin-left: 20px;
    margin-right: 20px;
  }

  footer {
    flex-direction: column;
  }
}
