:root {
  color-scheme: dark;
  --bg: #07110f;
  --panel: rgba(14, 29, 25, 0.72);
  --panel-strong: #10251f;
  --line: rgba(199, 255, 86, 0.16);
  --text: #f2f7f3;
  --muted: #91a59c;
  --accent: #c7ff56;
  --accent-deep: #1d3511;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.ambient {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .12;
  pointer-events: none;
}

.ambient-one { top: -12rem; right: -8rem; background: var(--accent); }
.ambient-two { bottom: -20rem; left: -12rem; background: #31d7b0; }

.site-header,
main,
footer {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #08110f;
  letter-spacing: 0;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .08em;
}

.header-meta time {
  min-width: 68px;
  margin-left: 10px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(199,255,86,.09), 0 0 22px rgba(199,255,86,.8);
}

.hero {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 88px 0 72px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
}

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

h1 {
  max-width: 960px;
  margin-bottom: 28px;
  font-size: clamp(3.2rem, 8.5vw, 7.4rem);
  line-height: .94;
  letter-spacing: -.065em;
}

h1 span { color: var(--accent); }

.hero-copy {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.85;
}

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

.button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 3px solid rgba(199,255,86,.3); outline-offset: 3px; }
.button-primary { background: var(--accent); color: #07110f; font-weight: 800; }
.button-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.button-ghost:hover { border-color: var(--accent); }

.interaction-result { min-height: 24px; margin: 18px 0 0; color: var(--accent); font-size: .9rem; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(8,20,17,.66);
  backdrop-filter: blur(14px);
}

.metrics article { padding: 24px; border-right: 1px solid var(--line); }
.metrics article:last-child { border-right: 0; }
.metrics span { display: block; margin-bottom: 8px; color: var(--muted); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; }
.metrics strong { font-size: 1.05rem; }

.section { padding: 130px 0 110px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.045em; }
.section-heading > p { max-width: 260px; color: var(--muted); }

.service-grid { display: grid; grid-template-columns: 1.12fr 1fr 1fr; gap: 16px; }
.service-card {
  min-height: 340px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  transition: transform .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-5px); border-color: rgba(199,255,86,.5); }
.service-card.featured { background: linear-gradient(145deg, rgba(199,255,86,.13), var(--panel-strong)); }
.card-top, .card-footer { display: flex; justify-content: space-between; align-items: center; }
.card-index { color: var(--muted); font-size: .8rem; }
.status { padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .12em; }
.status.active { background: var(--accent-deep); color: var(--accent); }
.service-card h3 { margin: auto 0 14px; font-size: 1.55rem; }
.service-card p { color: var(--muted); line-height: 1.7; }
.card-footer { padding-top: 20px; border-top: 1px solid var(--line); color: var(--accent); font-size: .8rem; letter-spacing: .1em; }

footer {
  min-height: 92px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .1em;
}

@media (max-width: 800px) {
  .hero { min-height: 540px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics article:nth-child(2) { border-right: 0; }
  .metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 280px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .site-header, main, footer { width: min(calc(100% - 24px), var(--max)); }
  .header-meta > span:nth-child(2) { display: none; }
  .hero { padding-top: 62px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .metrics { grid-template-columns: 1fr; }
  .metrics article { border-right: 0; border-bottom: 1px solid var(--line); }
  .metrics article:last-child { border-bottom: 0; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
