/* ============================================================
   Congryo â€” shared site styles
   Used by: index.html, privacy.html, terms.html, thank-you.html
   ============================================================ */

:root {
  --bg-main: #09090b;
  --bg-card: #18181b;
  --bg-card-hover: #202023;
  --border: #3f3f46;
  --border-soft: #27272a;
  --text-primary: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #3b82f6;
  --accent-dim: rgba(59, 130, 246, 0.12);
  --accent-line: rgba(59, 130, 246, 0.35);
  --success: #10b981;
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);

  --sans: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --container: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-main);
  background-image: radial-gradient(ellipse 900px 500px at 50% -10%, rgba(59,130,246,0.16), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text-primary);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Type scale ---------- */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(34px, 5.4vw, 58px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: 18px; font-weight: 700; }
p { color: var(--text-muted); }

.eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(59,130,246,0.6);
  animation: pulse-dot 2.2s ease-out infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(59,130,246,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(59,130,246,0); }
  100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: #2563eb; box-shadow: 0 8px 24px -8px rgba(59,130,246,0.55); }
.btn:active { transform: translateY(1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 7px;
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-ghost:hover { border-color: var(--accent-line); background: var(--accent-dim); }

.microcopy {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 14px;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.logo::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---------- Generic section / eyebrow scaffolding ---------- */
section { padding: 84px 0; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 16.5px; }

.divider { border-top: 1px solid var(--border-soft); }

/* ---------- Footer ---------- */
footer { padding: 48px 0 64px; border-top: 1px solid var(--border-soft); }
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-tagline { font-family: var(--mono); font-size: 12px; color: var(--text-dim); margin-right: 20px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a {
  margin-right: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-links a:hover { color: var(--text-primary); border-bottom-color: var(--accent-line); }

/* ---------- Simple centered page (thank-you, errors, etc.) ---------- */
.simple-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 0;
}
.simple-page .wrap { max-width: 560px; }
.simple-page h1 { font-size: clamp(28px, 4.4vw, 42px); margin-bottom: 18px; }
.simple-page p { font-size: 16.5px; margin-bottom: 30px; }

/* ---------- Legal documents (privacy / terms) ---------- */
.legal-hero { padding: 56px 0 8px; }
.legal-hero h1 { font-size: clamp(30px, 4.6vw, 44px); margin-bottom: 10px; }
.legal-updated { font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); }

.legal-note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 28px 0 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  font-style: italic;
}

.legal { padding: 40px 0 96px; max-width: 760px; }
.legal h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--text-primary);
}
.legal h2:first-child { margin-top: 0; }
.legal p { font-size: 15px; margin-bottom: 14px; }
.legal ul { margin: 0 0 14px 20px; }
.legal li { font-size: 15px; color: var(--text-muted); margin-bottom: 8px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--text-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  section { padding: 60px 0; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow::before { animation: none; }
  html { scroll-behavior: auto; }
}