/* ──────────────────────────────────────────────────────────────────────────
   Hyper Focus — landing site styles
   Single stylesheet. No framework. Brand color #3B82F6.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --brand: #3B82F6;
  --brand-dark: #2563EB;
  --brand-tint: #EFF6FF;

  --text: #0F172A;
  --muted: #475569;
  --border: #E2E8F0;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, 0.16);
  --shadow-lg: 0 30px 60px -25px rgba(15, 23, 42, 0.25);

  --max-width: 1100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #F1F5F9;
    --muted: #94A3B8;
    --border: #1E293B;
    --bg: #0B1220;
    --bg-alt: #0F172A;
    --brand-tint: rgba(59, 130, 246, 0.10);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover { color: var(--brand-dark); }

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

/* ── Top bar ───────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.topbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.brand:hover { color: var(--text); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover { color: var(--text); }

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease, border-color 120ms ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--brand);
  color: white;
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--text);
  color: var(--text);
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  padding: 88px 0 56px;
  text-align: center;
}
.hero .eyebrow {
  display: inline-block;
  color: var(--brand);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--brand-tint);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 700;
}
.hero .subhead {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 19px);
}
.hero .cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero .hero-image {
  margin: 0 auto;
  max-width: 1000px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero .hero-image img { display: block; width: 100%; height: auto; }

/* ── Section scaffolding ───────────────────────────────────────────────── */

section { padding: 88px 0; }
section.alt { background: var(--bg-alt); }
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 700;
}
.section-header p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 560px;
  font-size: 17px;
}

/* ── Features grid ─────────────────────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--border));
  box-shadow: var(--shadow-md);
}
.feature-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ── Showcase ──────────────────────────────────────────────────────────── */

.showcase-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 20px;
  align-items: center;
}
.showcase-grid figure {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.showcase-grid figure img { display: block; width: 100%; height: auto; }
.showcase-grid figcaption {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ── CTA strip ─────────────────────────────────────────────────────────── */

.cta {
  text-align: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: white;
  border-radius: var(--radius);
  padding: 64px 24px;
  margin: 0 24px;
}
.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cta p {
  margin: 0 0 28px;
  opacity: 0.85;
  font-size: 17px;
}
.cta .btn-primary {
  background: white;
  color: var(--brand-dark);
}
.cta .btn-primary:hover {
  background: white;
  color: var(--brand);
}

/* ── Footer ────────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  margin-top: 88px;
  color: var(--muted);
  font-size: 14px;
}
footer .inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
footer .links { display: flex; gap: 20px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* ── Long-form pages (privacy, terms) ──────────────────────────────────── */

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 0 96px;
}
.prose h1 {
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 700;
}
.prose .meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
}
.prose h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  font-weight: 600;
}
.prose h3 {
  font-size: 17px;
  margin: 24px 0 8px;
  font-weight: 600;
}
.prose p, .prose li { color: var(--text); }
.prose .muted { color: var(--muted); }
.prose ul {
  padding-left: 22px;
}
.prose ul li { margin-bottom: 6px; }
.prose .summary {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0 32px;
}
.prose .summary strong { color: var(--brand); }

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 880px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0 32px; }
}
@media (max-width: 560px) {
  .nav { gap: 16px; }
  .nav a:nth-child(2) { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .cta { margin: 0 16px; padding: 48px 20px; }
  footer .inner { flex-direction: column; align-items: flex-start; }
}
