/* Daedalus landing page. Colours follow the app's Golden orange theme
   (src/ui/theme.rs): carbon surfaces, one golden orange accent. */
:root {
  --bg: #09090B;
  --panel: #121215;
  --card: #1A1A1E;
  --raised: #242429;
  --border: #28282E;
  --text: #F4F4F6;
  --text-dim: #9E9EA8;
  --text-faint: #70707A;
  --accent: #E89A3C;
  --accent-deep: #BC6A22;
  --on-accent: #160C02;
  --radius: 14px;
  --wrap: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15px/1 Inter, sans-serif; cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #F0A84F; box-shadow: 0 6px 24px -6px rgba(232,154,60,.55); }
.btn-primary:active { transform: translateY(1px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn:focus-visible, input:focus-visible, .tabs button:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(9,9,11,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(40,40,46,.6);
}
.nav-row { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; padding: 96px 0 40px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(600px 380px at 50% 30%, rgba(232,154,60,.18), transparent 70%),
    radial-gradient(900px 500px at 50% 75%, rgba(188,106,34,.10), transparent 70%);
}
.hero::before {
  /* A faint dot grid, like the canvas. */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}
.hero-copy { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(18,18,21,.8); color: var(--text-dim); font-size: 13px; font-weight: 500;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 { margin-top: 24px; font-size: clamp(44px, 8vw, 88px); font-weight: 800; letter-spacing: -0.04em; }
.lede { margin-top: 22px; max-width: 640px; font-size: clamp(17px, 2vw, 19px); color: var(--text-dim); }

.signup { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: 100%; max-width: 500px; }
.signup input {
  flex: 1 1 240px; min-width: 0; height: 48px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--panel); color: var(--text);
  font: 400 15px Inter, sans-serif;
}
.signup input::placeholder { color: var(--text-faint); }
.signup input[aria-invalid="true"] { border-color: #E5484D; }
.signup-note { flex-basis: 100%; font-size: 13px; color: var(--text-faint); text-align: center; }
.signup-note.ok { color: var(--accent); }
.signup-note.err { color: #F2777B; }
.signup.done input, .signup.done button { display: none; }


/* App screenshots sit in a frame with a soft orange edge. */
.window {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--panel);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(232,154,60,.06);
}
.hero-shot.window { margin-top: 64px; box-shadow: 0 50px 120px -30px rgba(0,0,0,.95), 0 0 80px -20px rgba(232,154,60,.25); }
.window figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 8px;
  background: rgba(9,9,11,.82); border: 1px solid var(--border); font-size: 13px; font-weight: 500;
}

/* Sections */
.section { padding: 112px 0; }
.section-tight { padding: 0 0 112px; }
.section-alt { background: linear-gradient(180deg, var(--panel), var(--bg)); border-top: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.kicker { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; }
.sub { margin-top: 16px; font-size: 18px; color: var(--text-dim); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar {
  padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card), var(--panel));
  transition: border-color .2s, transform .2s;
}
.pillar:hover { border-color: rgba(232,154,60,.45); transform: translateY(-2px); }
.pillar i {
  font-size: 26px; color: var(--accent); width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; background: rgba(232,154,60,.1); border: 1px solid rgba(232,154,60,.25);
}
.pillar h3 { margin-top: 22px; font-size: 20px; }
.pillar p { margin-top: 10px; color: var(--text-dim); font-size: 15px; }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-rev { grid-template-columns: 1.25fr 1fr; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; color: var(--text-dim); }
.ticks i { color: var(--accent); font-size: 20px; flex: none; margin-top: 2px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg);
  display: flex; flex-direction: column; gap: 8px;
}
.stat .num { font: 500 clamp(36px, 4vw, 48px)/1 "JetBrains Mono", ui-monospace, monospace; color: var(--accent); letter-spacing: -0.03em; }
.stat .num small { font-size: .45em; margin-left: 4px; color: var(--text-dim); }
.stat .label { color: var(--text-dim); font-size: 14px; }

/* Tour */
.tabs {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 24px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--panel);
}
.tabs button {
  height: 38px; padding: 0 18px; border: 0; border-radius: 9px; background: transparent;
  color: var(--text-dim); font: 500 14px Inter, sans-serif; cursor: pointer;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.tour { display: grid; grid-template-columns: 2.2fr 1fr; gap: 40px; align-items: center; }
.tour img { transition: opacity .2s; }
.tour img.fading { opacity: 0; }
.tour-text h3 { font-size: 26px; }
.tour-text p { margin-top: 14px; color: var(--text-dim); }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.card { padding: 28px 24px; background: var(--bg); transition: background .2s; }
.card:hover { background: var(--panel); }
.card i { font-size: 24px; color: var(--accent); }
.card h3 { margin-top: 16px; font-size: 17px; }
.card p { margin-top: 8px; font-size: 14.5px; color: var(--text-dim); }

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

/* Waitlist */
.cta { padding-top: 0; }
.cta-box {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: 72px; padding-bottom: 72px; border-radius: 24px; border: 1px solid var(--border);
  background:
    radial-gradient(500px 260px at 50% 0%, rgba(232,154,60,.2), transparent 70%),
    var(--panel);
}
.cta-box img { border-radius: 16px; margin-bottom: 24px; }
.signup-center { margin-left: auto; margin-right: auto; }

/* FAQ */
details { border-bottom: 1px solid var(--border); }
summary {
  list-style: none; cursor: pointer; padding: 22px 0; font-size: 18px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 24px; font-weight: 400; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 22px; color: var(--text-dim); max-width: 640px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--text-faint); font-size: 14px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .brand { font-size: 15px; color: var(--text-dim); }
.footer a[href^="mailto:"] { color: var(--text-dim); }
.footer a[href^="mailto:"]:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 1000px) {
  .pillars, .grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split-rev, .tour { grid-template-columns: 1fr; gap: 40px; }
  .split-rev > .window { order: 2; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-row { justify-content: space-between; }
  .hero { padding-top: 64px; }
  .hero-shot.window { margin-top: 44px; }
  .section { padding: 80px 0; }
  .section-tight { padding-bottom: 80px; }
  .gallery { grid-template-columns: 1fr; }
  .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: 1 0 auto; padding: 0 8px; font-size: 13px; }
  .cta-box { padding: 56px 20px; border-radius: 18px; }
}
@media (max-width: 520px) {
  .pillars, .grid, .stats { grid-template-columns: 1fr; }
  .signup .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.signup-note a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.signup-note a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--accent); }

/* Privacy page */
.legal { padding: 72px 0 96px; }
.legal h1 { font-size: clamp(36px, 5vw, 48px); font-weight: 700; }
.legal .updated { margin-top: 12px; color: var(--text-faint); font-size: 14px; }
.legal h2 { font-size: 22px; margin-top: 40px; }
.legal p, .legal li { color: var(--text-dim); margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 0; }
.legal a { color: var(--accent); }
.legal .kicker { color: var(--accent); margin-top: 0; }
