:root {
  --void: #06140F;
  --canopy: #0B2E22;
  --panel: #0E241C;
  --chlorophyll: #1FA86A;
  --biolume: #7CFFB2;
  --concrete: #C8D0C8;
  --amber: #E8B84A;
  --text: #E8F0EA;
  --muted: #8AA396;
  --dim: #5C7468;
  --border: rgba(127, 255, 178, 0.14);
  --display: "Syne", system-ui, sans-serif;
  --sans: "Outfit", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--void);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}
a { color: var(--biolume); text-decoration: none; }
a:hover { color: #b8ffd6; }
.muted { color: var(--muted); }
code { font-family: var(--mono); font-size: 0.86em; color: var(--amber); }

.ct-canopy {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(31,168,106,0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(232,184,74,0.08), transparent 50%),
    linear-gradient(180deg, #071811 0%, var(--void) 40%, #040c09 100%);
  animation: canopyShift 28s ease-in-out infinite alternate;
}
@keyframes canopyShift {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.04) translateY(-1.5%); }
}

.ct-nav, main, .ct-foot { position: relative; z-index: 1; }

.ct-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 20, 15, 0.72);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 40;
}
.ct-brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  color: var(--text); font-family: var(--display); font-weight: 700;
  letter-spacing: -0.02em; font-size: 1.05rem;
}
.ct-brand img { border-radius: 8px; }
.ct-links { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; }
.ct-links a {
  color: var(--muted); font-size: 0.92rem; font-weight: 500;
}
.ct-links a:hover, .ct-links a.active { color: var(--biolume); }

.ct-wrap { max-width: var(--max); margin: 0 auto; padding: 1.75rem 1.25rem 3rem; }
.ct-foot {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 2rem;
  color: var(--muted); font-size: 0.9rem;
}
.ct-foot-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Hero — full bleed, brand first */
.ct-hero {
  position: relative;
  min-height: min(100vh, 820px);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.ct-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 40%;
  transform: scale(1.02);
  animation: heroDrift 36s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0,0,0); }
  to { transform: scale(1.06) translate3d(-1.2%, -0.8%, 0); }
}
.ct-hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,20,15,0.88) 0%, rgba(6,20,15,0.55) 42%, rgba(6,20,15,0.25) 70%, rgba(6,20,15,0.45) 100%),
    linear-gradient(180deg, rgba(6,20,15,0.2) 0%, rgba(6,20,15,0.85) 100%);
}
.ct-hero-copy {
  position: relative; z-index: 2;
  max-width: 640px;
  padding: 2rem 1.5rem 4.5rem;
}
.ct-brand-line {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--biolume);
  margin-bottom: 0.65rem;
  text-shadow: 0 0 40px rgba(124,255,178,0.25);
}
.ct-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.ct-lead { color: var(--concrete); max-width: 36ch; margin-bottom: 1.35rem; }
.ct-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.ct-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--chlorophyll), var(--biolume), transparent);
  background-size: 200% 100%;
  animation: lineSweep 4.5s linear infinite;
  opacity: 0.85;
}
@keyframes lineSweep {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--chlorophyll);
  color: #04140d;
  border-color: rgba(124,255,178,0.35);
}
.btn-primary:hover { background: #26c07a; color: #04140d; }
.btn-ghost {
  background: rgba(14,36,28,0.55);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--biolume); color: var(--biolume); }

.ct-pagehead { margin-bottom: 1.75rem; }
.ct-pagehead h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.45rem;
}
.ct-pagehead p { color: var(--muted); max-width: 52ch; }

.ct-steps { list-style: none; display: grid; gap: 1.5rem; }
.ct-steps li {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--border);
}
.ct-steps .n {
  font-family: var(--mono); color: var(--chlorophyll); font-weight: 600;
  font-size: 0.95rem; padding-top: 0.2rem;
}
.ct-steps h2 {
  font-family: var(--display); font-size: 1.25rem; margin-bottom: 0.35rem;
}
.ct-steps p { color: var(--muted); margin-bottom: 0.75rem; }
.ct-inline {
  width: 100%; max-width: 520px; border-radius: 12px;
  border: 1px solid var(--border); display: block;
}
.ct-note { margin-top: 1.75rem; }

.ct-device-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .ct-device-grid { grid-template-columns: 1fr 1fr; }
}
.ct-device {
  padding: 0.25rem 0 1rem;
}
.ct-device img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--border);
  margin-bottom: 0.9rem; background: var(--panel);
}
.ct-device h2 {
  font-family: var(--display); font-size: 1.2rem; margin-bottom: 0.4rem;
}
.ct-device p { color: var(--muted); margin-bottom: 0.65rem; }
.ct-device ul { padding-left: 1.1rem; color: var(--concrete); }
.ct-device li { margin: 0.25rem 0; }

.ct-plate { margin-top: 2rem; }
.ct-plate img {
  width: 100%; border-radius: 14px; border: 1px solid var(--border);
  display: block; max-height: 420px; object-fit: cover;
}
.ct-plate figcaption { color: var(--dim); font-size: 0.88rem; margin-top: 0.5rem; }

.ct-prose { max-width: 62ch; }
.ct-prose p { margin-bottom: 1rem; color: var(--concrete); }
.ct-prose h2 {
  font-family: var(--display); font-size: 1.2rem;
  margin: 1.5rem 0 0.6rem; color: var(--text);
}
.ct-prose ul { padding-left: 1.2rem; margin-bottom: 1.25rem; color: var(--muted); }
.ct-prose li { margin: 0.35rem 0; }
.ct-banner-pending {
  border: 1px solid rgba(232,184,74,0.45);
  background: rgba(232,184,74,0.08);
  color: #f0d48a !important;
  padding: 0.9rem 1rem; border-radius: 12px;
}

.ct-scan {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .ct-scan { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}
.ct-scan-visual { position: relative; }
.ct-scan-visual img {
  width: 100%; border-radius: 14px; border: 1px solid var(--border);
  display: block; max-height: 360px; object-fit: cover;
}
.ct-qr-pulse {
  position: absolute; width: 56px; height: 56px; border-radius: 10px;
  right: 14%; bottom: 18%;
  border: 2px solid var(--amber);
  box-shadow: 0 0 0 0 rgba(232,184,74,0.55);
  animation: qrPulse 2.2s ease-out infinite;
  background: rgba(232,184,74,0.12);
}
@keyframes qrPulse {
  0% { box-shadow: 0 0 0 0 rgba(232,184,74,0.55); }
  70% { box-shadow: 0 0 0 18px rgba(232,184,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,184,74,0); }
}
.ct-scan-form {
  display: grid; gap: 0.65rem;
  padding: 1.1rem; border: 1px solid var(--border);
  border-radius: 14px; background: rgba(14,36,28,0.55);
}
.ct-scan-form label { font-size: 0.85rem; color: var(--muted); }
.ct-scan-form select {
  background: var(--void); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 0.7rem 0.8rem; font: inherit;
}
.ct-scan-result {
  padding: 1rem 1.1rem; border-radius: 14px;
  border: 1px solid rgba(232,184,74,0.4);
  background: rgba(232,184,74,0.07);
}
.ct-scan-result.pending .badge {
  display: inline-block; font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.08em; color: #04140d; background: var(--amber);
  padding: 0.2rem 0.5rem; border-radius: 6px; margin-bottom: 0.5rem;
}
.ct-scan-result p { margin: 0.35rem 0; }
.ct-scan-result.err { border-color: #c45; color: #f8a; }

.ct-map { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.ct-map-atm {
  min-height: 220px; background-size: cover; background-position: center;
  filter: saturate(0.85) brightness(0.55);
}
.ct-pins {
  list-style: none; padding: 1rem 1.1rem 1.25rem;
  background: rgba(6,20,15,0.92);
  display: grid; gap: 0.85rem;
}
.ct-pins li { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
.ct-pins .pin {
  width: 10px; height: 10px; border-radius: 50%; margin-top: 0.4rem;
  background: var(--chlorophyll);
  box-shadow: 0 0 12px rgba(31,168,106,0.7);
}
.ct-pins strong { display: block; font-family: var(--display); }
.ct-pins .muted { display: block; font-size: 0.88rem; }
.ct-pins code { font-size: 0.78rem; }

.ct-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.ct-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ct-table th, .ct-table td {
  text-align: left; padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
.ct-table th { color: var(--muted); font-weight: 600; background: rgba(14,36,28,0.7); }

/* Mini embed: tighter nav, hide less critical chrome */
html.wead-mini-embed .ct-foot { display: none; }
html.wead-mini-embed .ct-nav { padding: 0.55rem 0.75rem; }
html.wead-mini-embed .ct-brand span { font-size: 0.92rem; }
html.wead-mini-embed .ct-links { gap: 0.3rem 0.65rem; }
html.wead-mini-embed .ct-links a { font-size: 0.82rem; }
html.wead-mini-embed .ct-hero { min-height: 70vh; }
html.wead-mini-embed .ct-hero-copy { padding-bottom: 3rem; }

@media (max-width: 640px) {
  .ct-links { width: 100%; }
  .ct-brand-line { font-size: 1.65rem; }
}
