/* ============================================================
   DMROS landing page styles
   Theme-aware (light / dark, follows OS preference, manual toggle).
   Palette: deep navy void + electric-blue -> cyan -> green spectral
   accent (the "waterfall"), warm amber reserved for signal peaks.
   ============================================================ */

/* ---------- Design tokens: light (default) ---------- */
:root {
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --surface-2: #EDF1F8;
  --text: #0C1320;
  --muted: #5A6677;
  --border: rgba(12, 19, 32, 0.10);

  --accent: #2E6BFF;   /* electric blue  */
  --accent-2: #15B8D6; /* cyan           */
  --accent-3: #1Fae7e; /* green          */
  --amber: #E8920A;    /* signal peak    */
  --on-accent: #FFFFFF;

  --shadow: 0 20px 50px -20px rgba(12, 19, 32, 0.28);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1140px;

  color-scheme: light;
}

/* ---------- Design tokens: dark ---------- */
:root[data-theme="dark"] {
  --bg: #0A0E1A;
  --surface: #121A2E;
  --surface-2: #182238;
  --text: #E8EDF5;
  --muted: #93A1BD;
  --border: rgba(255, 255, 255, 0.09);

  --accent: #5B8CFF;
  --accent-2: #22D3EE;
  --accent-3: #34D399;
  --amber: #F5A623;
  --on-accent: #06122B;

  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}

/* Follow OS preference when no explicit choice has been made (data-theme="auto") */
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0A0E1A;
    --surface: #121A2E;
    --surface-2: #182238;
    --text: #E8EDF5;
    --muted: #93A1BD;
    --border: rgba(255, 255, 255, 0.09);
    --accent: #5B8CFF;
    --accent-2: #22D3EE;
    --accent-3: #34D399;
    --amber: #F5A623;
    --on-accent: #06122B;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75);
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, .brand-word {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.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;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 0.98rem/1 "Inter", sans-serif;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: var(--on-accent);
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 60%, var(--accent-3));
  box-shadow: 0 8px 24px -10px var(--accent);
}
.btn-primary:hover { box-shadow: 0 12px 30px -10px var(--accent); }

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); }

/* ---------- Header ---------- */
.site-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; border-radius: 8px; }
.brand-word { font-weight: 700; font-size: 1.3rem; letter-spacing: 0.01em; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.theme-toggle {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1.05rem;
  transition: background 0.2s ease;
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle-icon::before { content: "\263E"; }          /* moon: click for dark   */
:root[data-theme="dark"] .theme-toggle-icon::before { content: "\2600"; } /* sun  */
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .theme-toggle-icon::before { content: "\2600"; }
}

/* ---------- Layout helpers ---------- */
.section {
  max-width: 820px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  text-align: center;
}
.section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-lede { color: var(--muted); font-size: 1.12rem; max-width: 60ch; margin-inline: auto; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}
.hero::before { /* soft spectral glow */
  content: ""; position: absolute; inset: -10% 0 auto auto;
  width: 520px; height: 520px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  filter: blur(20px); opacity: 0.7; pointer-events: none;
}
.kicker {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem;
  font-weight: 600; color: var(--accent); margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 700; }
.lede { color: var(--muted); font-size: 1.18rem; max-width: 38ch; }
.lede strong { color: var(--text); font-weight: 600; }

/* ---------- Signup ---------- */
.signup { margin-top: 1.8rem; }
.signup-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.signup-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.85rem 1rem;
  font: 400 1rem "Inter", sans-serif;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.signup-input::placeholder { color: var(--muted); }
.signup-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.signup-call { flex: 1 1 130px; text-transform: uppercase; }
.signup-call::placeholder { text-transform: none; }
.signup-form .btn { flex: 1 1 100%; }            /* full-width submit under the two fields */
.signup-errors {                                  /* Kit populates this on validation error */
  flex-basis: 100%; width: 100%; list-style: none; margin: 0; padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm); font-size: 0.9rem;
  background: color-mix(in srgb, #f2643b 14%, transparent);
  border: 1px solid color-mix(in srgb, #f2643b 45%, transparent);
  color: #e0533a;
}
.signup-errors:empty { display: none; padding: 0; margin: 0; border: 0; }
.signup-note { color: var(--muted); font-size: 0.88rem; margin-top: 0.7rem; }
.section-cta .signup-form { justify-content: center; max-width: 480px; margin: 1.5rem auto 0; }

/* ---------- Hero visual / screen frame ---------- */
.hero-visual { perspective: 1400px; }
.screen-frame {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 200px;
}
.screen-frame::before { /* spectral top accent line */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3), var(--amber));
}
.screen-frame img {
  position: relative; z-index: 1;
  display: block; width: 100%; height: auto;
}
/* Placeholder shimmer shown until the mockup image is dropped in */
.screen-placeholder {
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center;
  color: var(--muted); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.8rem;
  background:
    linear-gradient(115deg, transparent 30%, color-mix(in srgb, var(--accent) 10%, transparent) 50%, transparent 70%),
    repeating-linear-gradient(90deg, var(--surface-2) 0 6px, var(--surface) 6px 11px);
  background-size: 250% 100%, auto;
  animation: shimmer 2.8s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0, 0 0; } to { background-position: -50% 0, 0 0; } }

/* ---------- Pain section ---------- */
.section-pain h2 { color: var(--text); }

/* ---------- Features ---------- */
.section-features { max-width: var(--maxw); }
.feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem;
  margin-top: 2.5rem; text-align: left;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); margin: 0; }
.feature-glyph {
  width: 42px; height: 42px; border-radius: 9px; margin-bottom: 1rem;
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 4px, transparent 4px 7px);
          mask: repeating-linear-gradient(90deg, #000 0 4px, transparent 4px 7px);
}

/* ---------- CTA + owners ---------- */
.section-cta {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: none;
}
.section-cta > * { max-width: 820px; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center; padding: 2.5rem 1.5rem; color: var(--muted);
  border-top: 1px solid var(--border);
}
.footer-brand { font-family: "Space Grotesk", sans-serif; color: var(--text); margin-bottom: 0.3rem; }
.footer-meta { font-size: 0.9rem; margin: 0; }

/* ---------- Thank-you page ---------- */
.thanks { max-width: 680px; margin: 0 auto; padding: 2rem 1.5rem 3rem; text-align: center; }
.thanks h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 1.2rem; }
.thanks .lede { color: var(--muted); font-size: 1.15rem; max-width: 52ch; margin: 0 auto 1.5rem; }
.thanks-glyph {
  width: 56px; height: 56px; border-radius: 12px; margin: 0 auto 1.5rem;
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 9px);
          mask: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 9px);
}
.confirm-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.3rem; margin: 1.5rem auto 0; max-width: 520px; text-align: left;
}
.confirm-box p { margin: 0; color: var(--muted); }
.confirm-box strong { color: var(--text); }
.thanks .small { font-size: 0.92rem; color: var(--muted); margin-top: 1.5rem; }
.thanks .btn { margin-top: 1.8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 1.5rem; }
  .hero-visual { order: -1; }
  .lede { max-width: none; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}

/* ===== Survey (thank-you page) =====
   Compact, single-line options (full descriptions live in each label's title
   tooltip) so the whole survey fits on one screen without scrolling. */
.survey { margin: 0 auto; max-width: 34rem; text-align: left; }
.survey-q { font-size: 1.05rem; margin: 0 0 .8rem; text-align: center; }
.survey-opt { display: flex; gap: .55rem; align-items: center;
  padding: .5rem .75rem; margin-bottom: .4rem; border: 1px solid var(--border, #2a3350);
  border-radius: .6rem; cursor: pointer; transition: border-color .15s, background .15s; }
.survey-opt:hover { border-color: var(--accent, #2E6BFF); }
.survey-opt input { flex: none; }
.survey-opt span { font-weight: 500; }
.survey-comment { width: 100%; box-sizing: border-box; margin-top: .6rem; resize: vertical;
  font: inherit; padding: .55rem .7rem; border-radius: .6rem;
  border: 1px solid var(--border, #2a3350); background: var(--surface, #11162a); color: inherit; }
.survey .btn { margin-top: .8rem; }
.survey-error { color: var(--amber, #F5A623); margin-bottom: .8rem; }
.survey-thanks { margin-top: 1rem; font-weight: 600; }
