/* ==========================================================
   enter7 — styles
   One family (Martian Mono), wide for headlines, narrow for labels. Deep green with a lime accent.
   ========================================================== */

:root {
  --bg-rgb: 4, 20, 13;          /* #04140D deep green */
  --ink-rgb: 238, 245, 239;     /* #EEF5EF */
  --accent-rgb: 198, 255, 61;   /* #C6FF3D lime */
  --ink-soft: #C6D4C9;
  --ink-muted: #B3C5B8;
  --ink-faint: #97AD9E;
  --accent-hover: #D8FF7A;
}

:root {
  --bg: rgb(var(--bg-rgb));
  --ink: rgb(var(--ink-rgb));
  --accent: rgb(var(--accent-rgb));
  --rule: rgba(var(--ink-rgb), 0.24);
  --rule-faint: rgba(var(--ink-rgb), 0.12);

  --font: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pad-x: clamp(20px, 4vw, 48px);
  --max: 1240px;
  --radius: 2px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: var(--ink); }
a:hover { color: var(--accent); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

/* ---------- Background canvas ---------- */

#terrain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

main,
.site-footer { position: relative; z-index: 1; }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: 160px; }
.section-statement { padding-block: 200px; }
.section-contact { padding-block: 220px 160px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(var(--bg-rgb), 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-faint);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}

.logo { width: 30px; height: 30px; display: block; color: var(--accent); }
.logo-small { width: 18px; height: 18px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  font-size: 13px;
}

.nav a { text-decoration: none; padding-block: 12px; }

/* ---------- Type ---------- */

.display {
  max-width: 15ch;
  font-size: clamp(40px, 7.2vw, 108px);
  line-height: 1.02;
  font-weight: 700;
  font-stretch: 112.5%;
  letter-spacing: -0.045em;
}

.display-md { max-width: 18ch; font-size: clamp(32px, 5.4vw, 80px); line-height: 1.04; }
.display-lg { max-width: 16ch; font-size: clamp(36px, 6.4vw, 96px); }

.heading {
  max-width: 20ch;
  margin-bottom: 56px;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.08;
  font-weight: 600;
  font-stretch: 112.5%;
  letter-spacing: -0.035em;
}

.lead {
  margin-top: 40px;
  max-width: 54ch;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ink-soft);
}

.intro {
  max-width: 54ch;
  margin: -32px 0 72px;
  color: var(--ink-muted);
}

/* ---------- Buttons ---------- */

.actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.hero .actions { gap: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn-solid { background: var(--accent); color: var(--bg); font-weight: 600; }
.btn-solid:hover { background: var(--accent-hover); color: var(--bg); }

.btn-outline { border: 1px solid rgba(var(--ink-rgb), 0.45); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-small { min-height: 44px; padding: 0 18px; font-size: 13px; }
button.btn { border: 0; font-family: inherit; cursor: pointer; }
.btn-large { min-height: 52px; padding: 0 28px; font-size: 15px; }

/* ---------- Hero ---------- */

.hero {
  min-height: max(820px, 100vh);
  padding-block: 200px 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.scroll-hint {
  margin-top: 120px;
  font-size: 12px;
  font-stretch: 75%;
  color: var(--ink-faint);
}

/* ---------- Focus ---------- */

.focus-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
  padding-block: 32px;
  border-top: 1px solid var(--rule);
}

.focus-row:last-child { border-bottom: 1px solid var(--rule); }

.focus-row h3 {
  flex: 1 1 280px;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.15;
  font-weight: 500;
  font-stretch: 112.5%;
  letter-spacing: -0.03em;
}

.focus-row p {
  flex: 2 1 380px;
  max-width: 58ch;
  color: var(--ink-muted);
}

/* ---------- Method (a real sequence, so it is numbered) ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 48px 32px;
}

.steps li {
  flex: 1 1 220px;
  padding-top: 20px;
  border-top: 2px solid var(--accent);
}

.step-label {
  display: block;
  font-size: 12px;
  font-stretch: 75%;
  color: var(--ink-faint);
}

.steps h3,
.build-grid h3 {
  margin-block: 12px;
  font-size: 24px;
  font-weight: 600;
  font-stretch: 112.5%;
  letter-spacing: -0.03em;
}

.steps p,
.build-grid p { color: var(--ink-muted); }

/* ---------- Build ---------- */

.build-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 40px;
}

.build-grid > div { flex: 1 1 300px; }
.build-grid h3 { margin-top: 0; font-size: 22px; }
.build-grid p { max-width: 40ch; }

/* ---------- Contact ---------- */

.contact-detail { font-size: 14px; color: var(--ink-muted); }
.contact-detail:hover { color: var(--ink); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule-faint);
  background: rgba(var(--bg-rgb), 0.75);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 32px;
  font-size: 12px;
  color: var(--ink-faint);
}

.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }

/* ---------- Cookie notice ---------- */

.cookie {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  width: min(340px, calc(100vw - 40px));
  padding: 20px;
  background: rgba(var(--bg-rgb), 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.cookie[hidden] { display: none; }

.cookie-title {
  font-size: 15px;
  font-weight: 600;
  font-stretch: 112.5%;
  letter-spacing: -0.02em;
}

.cookie-text {
  margin: 8px 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .section { padding-block: 112px; }
  .section-statement { padding-block: 140px; }
  .hero { padding-top: 180px; }
  .nav { gap: 0 20px; }
}

/* ---------- Reduced motion ---------- */

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