/* Chronosync marketing + legal site styles. */

:root {
  --bg: #020817;
  --surface: #0f172a;
  --surface-2: #1e293b;
  --border: rgba(148, 163, 184, 0.15);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #ff6b35;
  --accent-2: #fcd34d;
  --accent-3: #6366f1;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 14px;
  --max: 860px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --mono: "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 107, 53, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(99, 102, 241, 0.08), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
}
a:hover { opacity: 0.8; text-decoration: underline; }

/* ── Header ─────────────────────────────────────────────── */
header.site {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; opacity: 1; }

.brand img { width: 36px; height: 36px; }

nav.site a {
  color: var(--text-muted);
  margin-left: 20px;
  font-size: 14px;
  font-weight: 500;
}
nav.site a:hover { color: var(--text); text-decoration: none; }

/* ── Main layout ─────────────────────────────────────────── */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.hero {
  text-align: center;
  padding: 60px 0 40px;
}

.hero .logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  display: block;
  filter: drop-shadow(0 10px 40px rgba(255, 107, 53, 0.25));
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  background: linear-gradient(135deg, #fcd34d 0%, #ff6b35 50%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

h1.plain {
  background: none;
  -webkit-text-fill-color: var(--text);
  color: var(--text);
}

.tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

/* Buttons */
.btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, #ff6b35, #fcd34d);
  color: #1a0a00;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}
.btn-primary:hover { opacity: 1; box-shadow: 0 8px 28px rgba(255, 107, 53, 0.4); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface-2); opacity: 1; }

.coming-soon {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 107, 53, 0.15);
  color: var(--accent);
  margin-left: 6px;
  vertical-align: middle;
}

/* ── Feature grid ─────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 64px 0;
}

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

.feature .ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 20px;
  background: rgba(255, 107, 53, 0.12);
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}
.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ── Content pages (privacy, terms, support, etc.) ───────── */
article.doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
@media (max-width: 600px) {
  article.doc { padding: 24px; }
}

article.doc h1 {
  font-size: 2rem;
  margin-top: 0;
  background: none;
  -webkit-text-fill-color: var(--text);
  color: var(--text);
}
article.doc h2 {
  font-size: 1.25rem;
  margin-top: 2em;
  margin-bottom: 0.5em;
  color: var(--text);
  letter-spacing: -0.01em;
}
article.doc h3 {
  font-size: 1.05rem;
  margin-top: 1.5em;
  margin-bottom: 0.3em;
}
article.doc p, article.doc li { color: #e2e8f0; }
article.doc ul { padding-left: 20px; }
article.doc li { margin-bottom: 4px; }
article.doc strong { color: var(--text); }

.effective {
  color: var(--text-dim);
  font-style: italic;
  font-size: 14px;
  margin-top: -8px;
}

/* Tables */
article.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
article.doc th, article.doc td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
article.doc th {
  color: var(--text);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
}
article.doc td { color: var(--text-muted); }

/* Callouts */
.callout {
  padding: 14px 18px;
  border-radius: 10px;
  margin: 16px 0;
  border-left: 3px solid var(--accent);
  background: rgba(255, 107, 53, 0.06);
}
.callout.info { border-left-color: var(--accent-3); background: rgba(99, 102, 241, 0.06); }
.callout.warn { border-left-color: var(--accent-2); background: rgba(252, 211, 77, 0.06); }

code {
  font-family: var(--mono);
  font-size: 0.85em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
}

/* ── Footer ──────────────────────────────────────────────── */
footer.site {
  max-width: var(--max);
  margin: 80px auto 0;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 14px;
}

footer.site nav a {
  color: var(--text-muted);
  margin-left: 20px;
}
footer.site nav a:first-child { margin-left: 0; }

@media (max-width: 600px) {
  footer.site { flex-direction: column; text-align: center; }
  footer.site nav a { margin: 0 10px; }
  nav.site a { margin-left: 14px; }
  header.site { padding: 20px 16px; }
  main { padding: 20px 16px 60px; }
}
