:root {
  --ink: #0c1424;
  --ink-soft: #16213a;
  --text: #1b2437;
  --muted: #5a6478;
  --line: #e2e6ee;
  --bg: #ffffff;
  --tint: #f5f7fa;
  --green: #2fd08a;
  --green-dark: #0a8a58;
  --green-soft: #e4f8ee;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(12, 20, 36, 0.28);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--bg);
}

.skip:focus {
  left: 0.5rem;
}

.eyebrow {
  margin-bottom: 0.9rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
}

.eyebrow::before {
  content: '// ';
  opacity: 0.6;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s, background-color 0.15s, border-color 0.15s;
}

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

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ink-soft);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-light {
  background: var(--green);
  color: var(--ink);
}

.btn-light:hover {
  background: #4fe0a0;
}

.btn-small {
  padding: 0.65rem 1.1rem;
  font-size: 0.95rem;
}

.link {
  display: inline-flex;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
}

.link:hover span {
  transform: translateX(4px);
}

.link span {
  transition: transform 0.15s;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.header.scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand strong {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand small {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--green-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a:not(.btn) {
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--text);
  text-decoration: none;
}

.nav a:not(.btn):hover {
  color: var(--green-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin-block: 5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(60% 70% at 100% 0%, var(--green-soft) 0%, transparent 70%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.875rem;
  font-weight: 600;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.lead {
  max-width: 36em;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 2rem;
}

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack-row li {
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  background: var(--tint);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.code-window {
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: 0 40px 70px -30px rgba(12, 20, 36, 0.55);
  overflow: hidden;
  transform: rotate(1.2deg);
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #33405c;
}

.code-bar em {
  margin-left: 0.6rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-style: normal;
  color: #8a96b0;
}

.code-window pre {
  margin: 0;
  padding: 1.4rem 1.5rem 1.7rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: clamp(0.78rem, 1.05vw, 0.92rem);
  line-height: 1.75;
  color: #dbe2f0;
}

.code-window .k {
  color: #8fb4ff;
}

.code-window .s {
  color: var(--green);
}

.code-window .b {
  color: #ffb86b;
}

.code-window .c {
  color: #6f7c98;
}

/* Sections */
.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section-tint {
  background: var(--tint);
}

.section-dark {
  background: var(--ink);
  color: #c3cbdb;
}

.section-dark h2,
.section-dark h3,
.section-dark strong {
  color: #fff;
}

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

.section-head {
  max-width: 700px;
  margin-bottom: 2.75rem;
}

.section-head > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-dark .section-head > p:last-child {
  color: #c3cbdb;
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.service:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-tag {
  padding: 0.3rem 0.75rem;
  margin-bottom: 1.25rem;
  border-radius: 8px;
  background: var(--green-soft);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-dark);
}

.service h3 {
  font-size: 1.55rem;
}

.service > p {
  color: var(--muted);
}

.checks {
  display: grid;
  gap: 0.65rem;
  margin-block: 0.75rem 2rem;
}

.checks li {
  position: relative;
  padding-left: 1.9rem;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%230c1424' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 70% no-repeat;
}

.service .link {
  margin-top: auto;
}

/* Tech */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tech-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tech-card {
  flex: 1;
}

.tech-col h3 {
  margin: 0;
}

.tech-label {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--green);
}

.tech-card {
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: var(--ink-soft);
}

.tech-card strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.tech-card p {
  margin: 0;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.steps li {
  padding-top: 1.25rem;
  border-top: 3px solid var(--ink);
}

.step-num {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
}

.steps h3 {
  font-size: 1.2rem;
}

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

/* About */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about h2 {
  margin: 0;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Contact */
.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 3.75rem);
  border-radius: 28px;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(47, 208, 138, 0.22) 0%, transparent 60%),
    var(--ink);
  color: #c3cbdb;
}

.contact-card > div:first-child {
  flex: 1 1 360px;
  max-width: 600px;
}

.contact-card h2 {
  color: #fff;
}

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

.contact-card p:last-child {
  margin: 0;
}

.contact-card .btn {
  font-size: 1.05rem;
  padding: 1.05rem 1.6rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 1.75rem;
  font-size: 0.925rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.footer p {
  margin: 0;
}

.footer .brand strong {
  font-size: 0.98rem;
}

/* Responsive */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a:not(.btn) {
    padding: 0.8rem 0.25rem;
    font-size: 1.05rem;
  }

  .nav .btn {
    margin-top: 0.75rem;
  }

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

  .code-window {
    transform: none;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 1rem;
  }

  .tech-grid,
  .steps {
    grid-template-columns: 1fr;
  }

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

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

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

  * {
    transition: none !important;
  }
}
