/* ============================================================
   Flow Light — flowlightfocus.com
   Dark, glow-driven landing page.
   Brand: near-black base, off-white text, amber→red glow accent
   (do-not-disturb light).
   ============================================================ */

:root {
  --bg: #07070a;
  --bg-raised: #0d0d12;
  --bg-card: #101018;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f2f5;
  --text-dim: #9b9ba6;
  --accent-amber: #ffa348;
  --accent-red: #ff5a4e;
  --glow-gradient: linear-gradient(100deg, var(--accent-amber), var(--accent-red));
  /* lighter stops so background-clip text passes contrast on the dark bg */
  --glow-gradient-text: linear-gradient(100deg, #ffc98f, #ff9f8f);
  --font-display: "Jost", "Century Gothic", "Futura", sans-serif;
  --font-body: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --radius: 8px;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(255, 163, 72, 0.35); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 2.5rem;
  text-align: center;
}

section { padding: clamp(4rem, 10vw, 7rem) var(--pad-x); }

/* spam honeypot: off-screen, never focusable, never announced */
.gotcha {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- wordmark ---------- */

.wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.o-mark {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin: 0 0.03em;
  transform: translateY(0.06em);
}

.o-mark svg { width: 100%; height: 100%; display: block; overflow: visible; }

.o-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-dasharray: 66 28.2; /* gap at lower left, where the arc sits */
  stroke-dashoffset: -38;
}

.o-arc {
  fill: none;
  stroke: url(#arc);
  stroke: #ff8a54; /* fallback if gradient id missing (footer svg) */
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-dasharray: 24 70.2;
  stroke-dashoffset: -42;
  stroke-opacity: 0.95;
}

.wordmark-small { font-size: 1.15rem; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad-x);
  background: rgba(7, 7, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: #0b0b10;
  background: var(--glow-gradient);
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 0 24px rgba(255, 163, 72, 0.25);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 34px rgba(255, 90, 78, 0.35);
  filter: brightness(1.05);
}

.btn:active { transform: translateY(0); }

.btn-small { font-size: 0.9rem; padding: 0.55rem 1.2rem; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--accent-red);
  box-shadow: 0 0 24px rgba(255, 90, 78, 0.2);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: min(88vh, 900px);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* ambient glow behind hero */
.hero::before {
  content: "";
  position: absolute;
  top: 8%;
  right: -12%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle,
    rgba(255, 163, 72, 0.14) 0%,
    rgba(255, 90, 78, 0.07) 45%,
    transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  background: var(--glow-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--text-dim);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 34em;
  margin-bottom: 2rem;
}

/* the phrase the light itself "says", in the light's own color */
.signal-phrase {
  color: var(--accent-amber);
  font-style: italic;
  font-weight: 500;
}

/* ---------- signup form ---------- */

.signup-form {
  display: flex;
  gap: 0.6rem;
  max-width: 460px;
  flex-wrap: wrap;
}

.signup-form input {
  flex: 1 1 220px;
  font: inherit;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signup-form input::placeholder { color: #5c5c66; }

.signup-form input:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 3px rgba(255, 163, 72, 0.18);
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.8rem;
}

.form-error {
  font-size: 0.9rem;
  color: #ef8d8d;
  margin-top: 0.6rem;
}

/* ---------- hero demo (placeholder until renders) ---------- */

.hero-demo {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: 1rem 0;
  user-select: none;
  -webkit-user-select: none;
}

.demo-caption {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  margin-top: 1.1rem;
}

.try-hint { color: var(--accent-red); }

/* door + puck */

.door-frame {
  width: clamp(130px, 16vw, 180px);
  height: clamp(260px, 32vw, 360px);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 10px 10px 0;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
}

.door-slab {
  width: 100%;
  height: 100%;
  background: linear-gradient(170deg, #15151c, #0c0c11);
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* the light itself, on the frame */
.flow-puck {
  position: absolute;
  top: 12%;
  right: -21px;
  width: 42px;
  height: 42px;
}

.puck-glow {
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 150, 80, 0.55) 0%,
    rgba(255, 163, 72, 0.28) 40%,
    rgba(255, 90, 78, 0.12) 62%,
    transparent 75%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.puck-body {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #23232c, #101016);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  transition: box-shadow 0.5s ease;
}

.puck-ring {
  width: 62%;
  height: 62%;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* lit state */
.is-flowing .puck-glow { opacity: 1; transform: scale(1); }

.is-flowing .puck-body {
  box-shadow: 0 0 18px rgba(255, 150, 80, 0.5);
}

.is-flowing .puck-ring {
  border-color: #ffd9b0;
  box-shadow: 0 0 12px rgba(255, 180, 110, 0.9), inset 0 0 8px rgba(255, 180, 110, 0.6);
}

/* mechanical key */

.flow-key {
  position: relative;
  width: clamp(96px, 11vw, 120px);
  aspect-ratio: 1;
  background: none;
  border: none;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

.key-base {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0;
  height: 26%;
  background: linear-gradient(180deg, #191920, #0e0e13);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.keycap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 14%;
  background: linear-gradient(160deg, #2a2a34, #16161d);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 10px 0 #0a0a0e, 0 14px 24px rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.flow-key:active .keycap,
.flow-key.is-pressed .keycap {
  transform: translateY(8px);
  box-shadow: 0 2px 0 #0a0a0e, 0 6px 14px rgba(0, 0, 0, 0.55);
}

.keycap-glyph { width: 34%; height: 34%; opacity: 0.85; }
.keycap-glyph svg { width: 100%; height: 100%; overflow: visible; }
.keycap-glyph .o-ring { stroke-width: 4; }
.keycap-glyph .o-arc { stroke: #ff8a54; stroke-width: 4; }

.is-flowing .keycap-glyph { opacity: 1; }
.is-flowing .keycap-glyph .o-ring { stroke: #e8ecff; }
.is-flowing .keycap-glyph .o-arc {
  stroke: var(--accent-red);
  filter: drop-shadow(0 0 6px rgba(255, 90, 78, 0.9));
}

.flow-key:focus-visible .keycap {
  outline: 2px solid var(--accent-amber);
  outline-offset: 3px;
}

/* ---------- problem statement ---------- */

.problem {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

.big-statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.45;
  text-align: center;
  max-width: 26em;
  margin: 0 auto;
  color: var(--text-dim);
}

.big-statement strong {
  font-weight: 500;
  background: var(--glow-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- why cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  column-gap: 3rem;
  row-gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  transition: border-color 0.3s ease;
}

.card:hover { border-top-color: rgba(255, 163, 72, 0.5); }

.card-icon {
  color: var(--accent-amber);
  margin-bottom: 1.1rem;
}

.card-icon svg { width: 26px; height: 26px; display: block; }

.card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }

.card p { color: var(--text-dim); font-size: 0.98rem; }

/* ---------- how it works ---------- */

.how { background: var(--bg-raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.steps {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.9rem;
  line-height: 1.1;
  background: var(--glow-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-width: 2.2em;
}

.step h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-dim); }

/* ---------- product ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.product-item {
  text-align: center;
}

.render-slot {
  height: 240px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin-bottom: 1.4rem;
  position: relative;
  overflow: hidden;
}

/* mini placeholder graphics inside render slots */

.mini-key {
  width: 90px;
  height: 90px;
  position: relative;
}

.mini-keycap {
  position: absolute;
  inset: 0 0 12% 0;
  background: linear-gradient(160deg, #2a2a34, #16161d);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 8px 0 #0a0a0e, 0 12px 20px rgba(0, 0, 0, 0.55);
}

.mini-puck {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(145deg, #23232c, #101016);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  display: grid;
  place-items: center;
}

.mini-glow {
  position: absolute;
  inset: -46px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 150, 80, 0.5) 0%,
    rgba(255, 163, 72, 0.22) 45%,
    transparent 72%);
  animation: breathe 3.4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}

.product-item h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.product-item p { color: var(--text-dim); max-width: 30em; margin: 0 auto; }

.spec-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.spec-chips li {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  background: var(--bg-raised);
}

.spec-note {
  text-align: center;
  font-size: 0.8rem;
  color: #8b8b96;
}

/* ---------- FAQ ---------- */

.faq { max-width: 720px; margin: 0 auto; }

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}

.faq summary {
  font-family: var(--font-display);
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--text-dim);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  color: var(--text-dim);
  padding-top: 0.75rem;
  max-width: 40em;
}

/* ---------- signup section ---------- */

.signup {
  text-align: center;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
}

.signup .lede { margin: 0 auto 2rem; }

.signup .signup-form { margin: 0 auto; justify-content: center; }

/* ---------- post-signup survey ---------- */

.survey {
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}

.survey-msg {
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.survey-intro {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-align: center;
  margin: 0.4rem 0 1.25rem;
}

.survey-q {
  border: none;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  margin-bottom: 1.05rem;
}

.survey-q legend {
  font-size: 0.95rem;
  color: var(--text);
  padding: 0;
  margin-bottom: 0.65rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip { cursor: pointer; }

/* the real control stays focusable but visually replaced by its label */
.chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.chip span {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.38rem 0.8rem;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.chip:hover span { border-color: rgba(255, 255, 255, 0.22); color: var(--text); }

.chip input:checked + span {
  color: var(--accent-amber);
  border-color: var(--accent-amber);
  background: rgba(255, 163, 72, 0.08);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--accent-amber);
  outline-offset: 2px;
}

.survey-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.35rem;
}

.link-btn {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover { color: var(--text); }

/* ---------- footer ---------- */

.footer {
  text-align: center;
  padding: 3rem var(--pad-x) 3.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer .wordmark { margin-bottom: 1rem; }

.footer a { color: var(--text-dim); }
.footer a:hover { color: var(--text); }

.footer-note { font-size: 0.8rem; color: #8b8b96; margin-top: 0.4rem; }

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mini-glow { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 1rem;
    min-height: 0;
  }

  .hero-copy { display: flex; flex-direction: column; align-items: center; }

  .hero::before { right: auto; left: 50%; transform: translateX(-50%); top: 40%; width: 90%; }

  .signup-form { justify-content: center; }

  .step { gap: 1rem; }
}

@media (max-width: 480px) {
  .signup-form input,
  .signup-form .btn { flex: 1 1 100%; }

  .hero-demo { gap: 1.25rem; }
}
