/* ============================================================
   pace.fyi coming soon
   Design tokens mirror frontend/users/src/app/globals.css
   (Tailwind slate palette + indigo primary)
   ============================================================ */

:root {
  --color-primary: #6366f1;      /* indigo-500 */
  --color-bg: #0f172a;           /* slate-900 */
  --color-surface: #1e293b;      /* slate-800 */
  --color-text: #e2e8f0;         /* slate-200 */
  --color-muted: #94a3b8;        /* slate-400 */

  --indigo-300: #a5b4fc;
  --indigo-400: #818cf8;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --indigo-800: #3730a3;
  --indigo-900: #312e81;

  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;

  --radius-lg: 0.5rem;   /* rounded-lg */
  --radius-xl: 0.75rem;  /* rounded-xl */

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
}

/* ---------- Reset / base ---------- */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Subtle indigo glow behind the hero */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(42rem 22rem at 50% -6rem, rgba(99, 102, 241, 0.16), transparent 65%),
    radial-gradient(30rem 18rem at 85% 15%, rgba(99, 102, 241, 0.07), transparent 60%);
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.875rem; }

.btn-primary {
  background: var(--indigo-600, #4f46e5);
  color: #fff;
}
.btn-primary:hover { background: #4338ca; } /* indigo-700 */

.btn-secondary {
  background: var(--slate-700);
  color: #fff;
}
.btn-secondary:hover { background: var(--slate-600, #475569); }

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-800);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4rem;
}

.brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--indigo-400, #818cf8);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand span { color: var(--color-muted); font-weight: 600; }

.nav-links {
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: #cbd5e1; /* slate-300 */
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 160ms ease;
}
.nav-links a:hover { color: #fff; }

/* ---------- Hero ---------- */

.hero {
  padding: 6.5rem 0 4.5rem;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--indigo-300, #a5b4fc);
  background: rgba(49, 46, 129, 0.35);   /* indigo-900/35 */
  border: 1px solid rgba(99, 102, 241, 0.35);
  margin: 0 0 1.5rem;
}

.hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc; /* slate-50 */
}
.hero-title em {
  font-style: normal;
  color: var(--indigo-400, #818cf8);
}

.hero-sub {
  max-width: 42rem;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  color: var(--color-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-actions .btn { padding: 0.625rem 1.25rem; font-size: 1rem; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
  font-size: 0.875rem;
}
.hero-points li { position: relative; padding-left: 1.1rem; }
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.4rem; height: 0.4rem;
  border-radius: 9999px;
  background: var(--color-primary);
  transform: translateY(-50%);
}

/* ---------- Sections ---------- */

.section { padding: 4rem 0; }

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
  text-align: center;
}

.section-sub {
  margin: 0 auto 3rem;
  max-width: 36rem;
  color: var(--color-muted);
  text-align: center;
}

/* Cards; mirror the app's .card component:
   bg-slate-800/50 border-slate-700 rounded-xl p-6 */
.card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: border-color 160ms ease, transform 160ms ease;
}
.card:hover { border-color: var(--slate-600, #526175); }

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #f1f5f9; /* slate-100 */
}
.card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border-radius: 9999px;
  background: var(--indigo-800, #3730a3);
  color: var(--indigo-300, #a5b4fc);
  font-weight: 700;
  font-size: 0.875rem;
}

/* ---------- Audience cards ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.icon-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(99, 102, 241, 0.12);
  color: var(--indigo-400, #818cf8);
}
.icon-card .icon svg { width: 1.35rem; height: 1.35rem; }

.audience-head { margin-bottom: 0.5rem; }
.audience-head .section-sub { margin-bottom: 2.5rem; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid rgba(51, 65, 85, 0.6);
  padding: 1.75rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
  color: var(--color-muted);
  font-size: 0.875rem;
}
.footer a { color: var(--color-muted); text-decoration: none; }
.footer a:hover { color: #e2e8f0; }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .hero { padding: 4.5rem 0 3.5rem; }
  .steps, .grid-2 { grid-template-columns: 1fr; }
}