:root {
  --bg0: #0b1412;
  --bg1: #12201c;
  --ink: #e8f3ee;
  --muted: #9db5ab;
  --accent: #5ec4a8;
  --accent-deep: #2f7a68;
  --panel: rgba(18, 36, 31, 0.72);
  --line: rgba(94, 196, 168, 0.22);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", sans-serif;
  --mono: "Fragment Mono", "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(94, 196, 168, 0.18), transparent 55%),
    radial-gradient(900px 600px at 90% 20%, rgba(47, 122, 104, 0.22), transparent 50%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 48%, #0e1a17);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.grid-fade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(158, 196, 180, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 196, 180, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.flow { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7; }
.beam { stroke-dasharray: 8 14; animation: drift 18s linear infinite; }
.beam-b { animation-duration: 24s; animation-direction: reverse; opacity: 0.75; }
.beam-c { animation-duration: 30s; opacity: 0.55; }
@keyframes drift {
  to { stroke-dashoffset: -220; }
}

.top, main, footer { position: relative; z-index: 1; }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}
.brand {
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
nav { display: flex; gap: 1.25rem; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
nav a:hover { color: var(--accent); }

.hero {
  min-height: calc(100vh - 5.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem clamp(1.25rem, 5vw, 4.5rem) 4rem;
  max-width: 58rem;
  animation: rise 0.9s ease-out both;
  transform: translate3d(var(--tilt-x, 0), var(--tilt-y, 0), 0);
  transition: transform 0.35s ease-out;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 3.85rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.subtitle {
  margin: 1.35rem 0 0;
  max-width: 40rem;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.55;
  color: var(--muted);
}
.cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.35rem;
  border-radius: 0.35rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #04120e;
}
.btn.ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(8, 20, 16, 0.35);
}
.btn.ghost:hover { border-color: var(--accent); }

.section {
  padding: 4.5rem clamp(1.25rem, 5vw, 4.5rem);
  max-width: 72rem;
  margin: 0 auto;
}
.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.2vw, 2.55rem);
}
.lead {
  margin: 0.85rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.55;
}
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}
.feature-row article {
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(8px);
  animation: rise 0.8s ease-out both;
}
.feature-row article:nth-child(2) { animation-delay: 0.08s; }
.feature-row article:nth-child(3) { animation-delay: 0.16s; }
.feature-row h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}
.feature-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
.ticks {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.4rem;
  color: var(--muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(94, 196, 168, 0.15);
}

.panel {
  border: 1px solid var(--line);
  background: rgba(6, 16, 13, 0.78);
  padding: 1.1rem 1.2rem;
  overflow: auto;
}
.panel.wide { margin-top: 1.5rem; }
.panel pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #c7e6d9;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.brand-mark {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 1.15rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  nav { display: none; }
  .feature-row, .split { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 3.5rem; padding-bottom: 3rem; }
}
