/* g82aedl.css — ON1 G82AEDL landing
 *
 * Aesthetic flavor: BIOHAZARD-CYAN (new flavor, 17th surface).
 * The mental image is a petri dish under a UV stereo microscope —
 * faint hexagonal cell-grid, cyan colonies pulsing on dark teal,
 * IBM Plex Mono labels next to organic curves. Distinct from
 * terminal-octagonal (aiaas), stargate-orbit (welcome), engineering-
 * schematic (aedln0d/kg), warm-paper-editorial (docs).
 *
 * Color story:
 *   void:   #031014  (deep teal-black, almost ocean-floor)
 *   panel:  #062021  (chamber wall)
 *   phos:   #00e5d9  (live colony cyan — primary brand)
 *   phos2:  #4dffe3  (highlighted edge)
 *   bio:    #7df7c5  (mid-green growth)
 *   alert:  #ff7280  (death / refund warning)
 *
 * No innerHTML in companion JS; this file is the visual contract only.
 */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --void:        #031014;
  --void-2:      #051a1d;
  --panel:       #062021;
  --panel-2:     #082b2d;
  --panel-3:     #0c3b3d;

  --phos:        #00e5d9;
  --phos-hot:    #4dffe3;
  --phos-dim:    #168f88;
  --phos-shadow: rgba(0, 229, 217, 0.34);

  --bio:         #7df7c5;
  --bio-dim:     #3da27a;

  --amber:       #ffd270;
  --alert:       #ff7280;

  --ink:         #c9e6e3;
  --ink-mute:    #6d8d8a;
  --ink-dim:     #3a5450;

  --border:      rgba(0, 229, 217, 0.20);
  --border-hot:  rgba(0, 229, 217, 0.55);

  --shadow:      0 6px 30px rgba(0, 0, 0, 0.6);
  --shadow-hot:  0 0 50px rgba(0, 229, 217, 0.18);

  --font-display: "Chakra Petch", monospace;
  --font-mono:    "IBM Plex Mono", monospace;
  --font-body:    "Familjen Grotesk", system-ui, sans-serif;

  /* Hex-cell tessellation for the petri-dish backdrop. The 60deg
     repeating-conic pattern gives a faint hex grid; layered with
     two radial gradients to suggest "colonies". */
  --cellgrid:
    radial-gradient(circle at 18% 22%, rgba(0, 229, 217, 0.07) 0, transparent 18%),
    radial-gradient(circle at 78% 65%, rgba(125, 247, 197, 0.05) 0, transparent 22%),
    radial-gradient(circle at 42% 88%, rgba(0, 229, 217, 0.04) 0, transparent 16%);
}

html, body { height: 100%; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 1100px 700px at 50% -180px, rgba(0, 229, 217, 0.07), transparent 60%),
    radial-gradient(ellipse 800px 500px at 100% 110%, rgba(125, 247, 197, 0.04), transparent 60%),
    linear-gradient(180deg, var(--void) 0%, var(--void-2) 100%);
  background-attachment: fixed;
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Petri-dish hex-cell overlay (subtle "alive" texture; not noisy). */
.petri-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--cellgrid);
  opacity: 0.85;
  mix-blend-mode: screen;
}
.petri-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    /* faint hexagon edges via two layered diagonals */
    repeating-linear-gradient( 60deg, rgba(0, 229, 217, 0.025) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(120deg, rgba(0, 229, 217, 0.025) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(  0deg, rgba(0, 229, 217, 0.020) 0 1px, transparent 1px 28px);
  opacity: 0.45;
}

main { position: relative; z-index: 1; }

/* ── topnav ─────────────────────────────────────────────────────── */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  position: sticky;
  top: 0;
  background: rgba(3, 16, 20, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--phos);
}
.logo-mark {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  filter: drop-shadow(0 0 6px var(--phos-shadow));
}
.logo-text {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  color: var(--ink);
}
.topnav-links { display: flex; gap: 1.4rem; }
.topnav-links a {
  color: var(--ink-mute);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}
.topnav-links a:hover { color: var(--phos); }
.topnav-cta .btn { font-size: 0.85rem; padding: 0.4rem 0.9rem; }

/* ── btn ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--border-hot);
  border-radius: 4px;
  color: var(--phos);
  background: rgba(0, 229, 217, 0.06);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.06s;
}
.btn:hover { background: rgba(0, 229, 217, 0.12); }
.btn:active { transform: translateY(1px); }
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.4);
}
/* A disabled primary keeps its bright fill + still brightens on hover, so it
   reads as a live CTA you just clicked wrong — the BTML "looks clickable but
   isn't" complaint. De-emphasize it to an inert, hollow, dashed-outline chip so
   the eye reads "not available yet" instead of "press me". */
.btn-primary:disabled {
  background: transparent;
  color: var(--ink);
  border: 1px dashed var(--border);
  opacity: 0.7;
  filter: none;
}
.btn-primary:disabled:hover {
  background: transparent;
  color: var(--ink);
}
.btn-primary {
  background: var(--phos);
  color: var(--void);
  border-color: var(--phos);
}
.btn-primary:hover {
  background: var(--phos-hot);
  color: var(--void);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--phos); border-color: var(--border-hot); }

/* ── hero ───────────────────────────────────────────────────────── */
.hero {
  max-width: 1100px;
  margin: 4rem auto 2rem;
  padding: 0 2rem;
  text-align: left;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--phos);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.4rem;
  background: rgba(0, 229, 217, 0.05);
}
.eyebrow-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--phos);
  box-shadow: 0 0 8px var(--phos);
  animation: pulse-cell 2.6s ease-in-out infinite;
}
@keyframes pulse-cell {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50%      { opacity: 1.0;  transform: scale(1.15); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.005em;
  margin-bottom: 1.1rem;
}
.hero-title .phos { color: var(--phos); }
.hero-lede {
  max-width: 60ch;
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--ink-mute);
}
.hero-meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(0, 229, 217, 0.04);
  color: var(--bio);
}

/* ── tier grid ──────────────────────────────────────────────────── */
.tiers-wrap {
  max-width: 1100px;
  margin: 3rem auto 2rem;
  padding: 0 2rem;
}
.tiers-head { margin-bottom: 1.6rem; }
.tiers-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.tiers-sub {
  font-size: 0.95rem;
  color: var(--ink-mute);
  max-width: 70ch;
  line-height: 1.5;
}
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}
.tiers-loading {
  font-family: var(--font-mono);
  color: var(--ink-dim);
  font-size: 0.9rem;
}
.tier-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem 1.2rem 1.3rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.tier-card:hover {
  border-color: var(--border-hot);
  transform: translateY(-2px);
}
.tier-card::before {
  /* faint "growing colony" arc in the corner */
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 100%;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--phos-shadow), transparent 60%);
  opacity: 0.3;
  pointer-events: none;
}
.tier-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--phos);
  margin-bottom: 0.7rem;
}
.tier-price {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.tier-price .small {
  font-size: 0.78rem;
  color: var(--ink-mute);
}
.tier-spec {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-top: 0.7rem;
  line-height: 1.7;
}
.tier-spec li::before {
  content: "▸ ";
  color: var(--phos-dim);
}
.tier-share {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--bio);
  padding-top: 0.7rem;
  border-top: 1px dashed var(--border);
}

/* ── contract preview ───────────────────────────────────────────── */
.contract-wrap, .lifecycle-wrap, .howbox, .beta {
  max-width: 1100px;
  margin: 3rem auto 2rem;
  padding: 0 2rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.section-sub {
  font-size: 0.95rem;
  color: var(--ink-mute);
  line-height: 1.5;
  max-width: 70ch;
  margin-bottom: 1.4rem;
}
.contract-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.contract-input {
  font-family: var(--font-mono);
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
}
.contract-input:focus {
  outline: none;
  border-color: var(--border-hot);
  box-shadow: 0 0 0 2px var(--phos-shadow);
}
.contract-out {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--bio);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  white-space: pre-wrap;
  overflow-x: auto;
  max-height: 520px;
  line-height: 1.55;
}
.contract-out.error { color: var(--alert); border-color: var(--alert); }

/* ── lifecycle ──────────────────────────────────────────────────── */
.lifecycle {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.lc-step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--phos);
  border-radius: 6px;
  padding: 1.1rem 1rem;
  position: relative;
}
.lc-step .lc-id {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
}
.lc-step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--phos);
  margin: 0.4rem 0 0.6rem;
}
.lc-step p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-mute);
}
.lc-koma  { border-left-color: var(--amber); }
.lc-koma h3 { color: var(--amber); }
.lc-death { border-left-color: var(--alert); }
.lc-death h3 { color: var(--alert); }

/* ── how list ───────────────────────────────────────────────────── */
.howbox { padding-top: 2rem; padding-bottom: 2rem; }
.how-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.how-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.how-list li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.1rem;
}
.how-list h3 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--phos);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.how-list p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-mute);
}

/* ── beta gate ──────────────────────────────────────────────────── */
.beta {
  background: var(--panel);
  border: 1px solid var(--border-hot);
  border-radius: 10px;
  padding: 2rem 2rem;
  margin-top: 3rem;
  box-shadow: var(--shadow-hot);
}
.beta-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--phos);
  margin-bottom: 0.7rem;
}
.beta-text {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.55;
  max-width: 70ch;
  margin-bottom: 1.2rem;
}
.beta-text a {
  color: var(--phos);
  text-decoration: none;
  border-bottom: 1px dashed var(--phos-dim);
}
.beta-text a:hover { color: var(--phos-hot); }
.beta-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* ── footer ─────────────────────────────────────────────────────── */
.foot {
  max-width: 1100px;
  margin: 3rem auto 2rem;
  padding: 1.4rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-mute);
}
.foot a { color: var(--ink-mute); text-decoration: none; }
.foot a:hover { color: var(--phos); }
.foot .sep { color: var(--ink-dim); }
.foot .muted { color: var(--ink-dim); }

/* ── a11y helper ────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
