@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg: #f5f8fc;
  --bg-soft: #ffffff;
  --bg-elevated: #f8fbff;
  --text: #0f172a;
  --text-muted: #475569;
  --line: #cbd5e1;
  --accent: #3b82f6;
  --accent-strong: #2563eb;
  --accent-soft: #dbeafe;
  --highlight: #f43f5e;
  --success: #10b981;
  --shadow: 0 14px 36px -10px rgba(15, 23, 42, 0.1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-soft: #1e293b;
  --bg-elevated: #334155;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --line: #475569;
  --accent: #3b82f6;
  --accent-strong: #60a5fa;
  --accent-soft: #1e3a8a;
  --highlight: #f43f5e;
  --success: #10b981;
  --shadow: 0 14px 36px -10px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  cursor: default;
  caret-color: transparent;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  background:
    radial-gradient(circle at 10% -20%, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0) 52%),
    radial-gradient(circle at 88% -10%, rgba(244, 63, 94, 0.12) 0%, rgba(244, 63, 94, 0) 48%),
    var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: inherit;
}

a,
button,
[role="button"] {
  cursor: pointer;
}

input,
textarea,
[contenteditable="true"],
[contenteditable="plaintext-only"] {
  caret-color: auto;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.5rem;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 4rem);
}

h2 {
  font-size: clamp(1.45rem, 2.7vw, 2.25rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-strong);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.78rem;
}

.lead {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 66ch;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .container {
    width: min(1140px, calc(100% - 2.25rem));
  }

  .section {
    padding: clamp(1.5rem, 6vw, 2.4rem) 0;
  }

  .lead {
    max-width: 100%;
    line-height: 1.65;
  }

  h1 {
    font-size: clamp(1.8rem, 7.5vw, 2.8rem);
    line-height: 1.16;
    text-wrap: balance;
  }

  h2 {
    line-height: 1.2;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
