/* Chronoframe — "Darkroom" web theme. Self-hosted, no external fonts or trackers. */

:root {
  --canvas: #161618;
  --panel: #1f1f22;
  --elevated: #27272b;
  --ink-primary: #f5f5f7;
  --ink-secondary: #c7c7cc;
  --ink-muted: #8e8e93;
  --waypoint: #ff8a3d;   /* brand accent (orange) */
  --action: #6b69f7;     /* primary CTA (indigo) */
  --success: #34c759;
  --hairline: rgba(255, 255, 255, 0.10);
  --max-width: 1080px;
  --radius-hero: 20px;
  --radius-card: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Helvetica Neue", Arial, sans-serif;
  background: var(--canvas);
  color: var(--ink-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { color: var(--ink-primary); line-height: 1.2; letter-spacing: -0.01em; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Top nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(22, 22, 24, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-primary); font-size: 17px; }
.brand .dot { width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, var(--waypoint), var(--action)); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--ink-secondary); font-size: 15px; }
.nav-links a:hover { color: var(--ink-primary); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 16px; cursor: pointer; border: none;
}
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--ink-primary); border: 1px solid var(--hairline); }
.btn-secondary:hover { border-color: var(--ink-muted); text-decoration: none; }

/* Hero */
.hero { padding: 96px 0 72px; text-align: center; }
.hero .eyebrow { color: var(--waypoint); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); margin: 16px auto 20px; max-width: 760px; }
.hero p.lede { font-size: clamp(17px, 2.2vw, 21px); color: var(--ink-secondary); max-width: 620px; margin: 0 auto 32px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 18px; font-size: 13px; color: var(--ink-muted); }

/* Sections */
section { padding: 64px 0; border-top: 1px solid var(--hairline); }
section h2 { font-size: clamp(26px, 3.5vw, 36px); text-align: center; margin: 0 0 12px; }
section .section-lede { text-align: center; color: var(--ink-secondary); max-width: 620px; margin: 0 auto 48px; }

/* Feature grid */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); padding: 28px;
}
.card h3 { font-size: 20px; margin: 0 0 8px; }
.card .icon { font-size: 22px; margin-bottom: 14px; display: inline-flex; width: 44px; height: 44px;
  align-items: center; justify-content: center; border-radius: 12px;
  background: var(--elevated); }
.card p { margin: 0; color: var(--ink-secondary); }

/* Safety list */
.safety-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.safety-list li { display: flex; gap: 12px; align-items: flex-start; }
.safety-list .check {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 7px;
  background: rgba(52, 199, 89, 0.15); color: var(--success);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.safety-list strong { color: var(--ink-primary); display: block; }
.safety-list span { color: var(--ink-secondary); font-size: 15px; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .num {
  counter-increment: step; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--elevated); color: var(--waypoint); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.step .num::before { content: counter(step); }

/* Requirements / strip */
.strip { text-align: center; }
.strip .pills { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.pill { background: var(--panel); border: 1px solid var(--hairline); border-radius: 999px; padding: 8px 18px; font-size: 14px; color: var(--ink-secondary); }

/* Footer */
.footer { border-top: 1px solid var(--hairline); padding: 40px 0; color: var(--ink-muted); font-size: 14px; }
.footer .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-secondary); }

/* Document pages (privacy / support) */
.doc { padding: 56px 0 80px; }
.doc .container { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 8px; }
.doc .updated { color: var(--ink-muted); font-size: 14px; margin: 0 0 40px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; padding-top: 8px; }
.doc h3 { font-size: 18px; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--ink-secondary); }
.doc ul { padding-left: 22px; }
.doc code { background: var(--elevated); padding: 2px 6px; border-radius: 5px; font-size: 0.92em; color: var(--ink-primary); }
.doc .qa { border-top: 1px solid var(--hairline); padding: 20px 0; }
.doc .qa:first-of-type { border-top: none; }
.doc .qa .q { color: var(--ink-primary); font-weight: 600; margin: 0 0 6px; }
.doc .qa .a { margin: 0; }
.back { display: inline-block; margin-bottom: 24px; color: var(--ink-secondary); font-size: 15px; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .grid-2, .grid-3, .safety-list, .steps { grid-template-columns: 1fr; }
}
