/* Ectograph site styles. Same palette and faces as the app
   (lib/theme/signal_theme.dart): void black ground, bone text, phosphor
   green accent, ultraviolet scenery. The Fell face appears only where the
   app is not talking in its own voice: the wordmark. Everything else is
   Figtree. */

:root {
  --void: #000000;
  --graphite: #12101b;
  --graphite-raised: #1a1628;
  --bone: #f4f0ff;
  --muted: #9891aa;
  --border: #312a43;
  --phosphor: #3dff9e;
  --ultraviolet: #a970ff;
  --ultraviolet-deep: #645cff;
  --danger: #ff5470;
}

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

html {
  background: var(--void);
  scroll-behavior: smooth;
}

body {
  background: var(--void);
  color: var(--bone);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--narrow {
  max-width: 680px;
}

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 20px 0;
}

/* Document pages have no hero behind the header, so it sits in the flow
   with a hairline under it instead of floating. */
.site-header--solid {
  position: static;
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "IM Fell French Canon", serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--bone);
  text-decoration: none;
  white-space: nowrap;
}

/* The mark sits on the word's optical centre, not its box centre: the Fell
   caps have no descenders, so a box aligned mark rides high. */
.wordmark-mark {
  display: block;
  width: 24px;
  height: 24px;
  margin-top: -2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--phosphor);
}

/* ---- Hero: the full-height dark room ---- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 0;
  background:
    radial-gradient(55% 45% at 50% 34%, rgba(100, 92, 255, 0.16), transparent 70%),
    radial-gradient(70% 55% at 50% 70%, rgba(169, 112, 255, 0.07), transparent 75%),
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.85) 100%),
    var(--void);
}

.hero .wrap {
  max-width: 640px;
}

.hero-mark {
  width: 84px;
  height: 84px;
  filter: drop-shadow(0 0 22px rgba(61, 255, 158, 0.45));
}

.hero-name {
  margin-top: 26px;
  font-family: "IM Fell French Canon", serif;
  font-weight: 400;
  font-size: clamp(40px, 7vw, 56px);
  letter-spacing: 2px;
  line-height: 1.1;
  color: var(--phosphor);
  text-shadow: 0 0 28px rgba(61, 255, 158, 0.4);
}

.hero h1 {
  margin-top: 10px;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.15;
}

.hero .tagline {
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  background: var(--phosphor);
  color: var(--void);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  padding: 14px 28px;
  box-shadow: 0 0 26px rgba(61, 255, 158, 0.35);
}

.store-button:hover,
.store-button:focus-visible {
  box-shadow: 0 0 36px rgba(61, 255, 158, 0.55);
}

.store-button svg {
  display: block;
}

.trust-line {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.2px;
}

/* ---- Features ---- */

.features {
  padding: 96px 0 80px;
}

.features-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.features-head h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.features-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature {
  background: var(--graphite);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 22px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--graphite-raised);
  color: var(--phosphor);
}

.feature-icon svg {
  display: block;
}

.feature h3 {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.feature p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- How it works: the sensor-to-word chain ---- */

.how {
  padding: 16px 0 96px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.how-step {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.how-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--phosphor);
  font-size: 14px;
  font-weight: 600;
  font-feature-settings: "tnum";
}

.how-step h3 {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.how-step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* The one hedged sentence about the theory. Muted and centred, because it is
   an aside about belief, not a claim the instrument makes. */
.how-hedge {
  margin: 48px auto 0;
  max-width: 560px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---- Field guidance ---- */

.tips {
  padding: 0 0 96px;
}

.tip {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.tip h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.tip p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ---- Document pages ---- */

.doc {
  padding: 56px 0 80px;
}

.doc h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.15;
}

.doc .doc-date {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.doc h2 {
  margin-top: 44px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.doc h3 {
  margin-top: 28px;
  font-size: 16px;
  font-weight: 600;
}

.doc p,
.doc li {
  margin-top: 14px;
  color: var(--bone);
  font-size: 15px;
}

.doc li {
  margin-top: 8px;
}

.doc ul {
  padding-left: 22px;
  margin-top: 6px;
}

.doc a {
  color: var(--phosphor);
  text-decoration: none;
}

.doc a:hover,
.doc a:focus-visible {
  text-decoration: underline;
}

.doc .lede {
  color: var(--muted);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer p {
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--phosphor);
}
