:root {
  --bg: #0e0f12;
  --surface: #171920;
  --border: #262a33;
  --text: #ecedf0;
  --muted: #9aa0ac;
  --accent: #7cf0c4;
  --accent-ink: #0e0f12;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --border: #dfe2e8;
    --text: #15171c;
    --muted: #5b6270;
    --accent: #0f9d6e;
    --accent-ink: #ffffff;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
}

a {
  color: inherit;
}

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

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand img {
  height: 56px;
  width: auto;
  border-radius: 12px;
}

.site-header nav {
  display: flex;
  gap: 20px;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-header nav a:hover {
  color: var(--text);
}

/* Layout */

main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

section {
  padding: 56px 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  margin: 0 0 24px;
}

/* Hero */

.hero {
  padding-top: clamp(40px, 10vh, 110px);
  padding-bottom: clamp(48px, 10vh, 100px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.75rem);
  font-weight: 800;
}

.lead-in {
  display: block;
}

.rotator {
  display: block;
  color: var(--accent);
  min-height: 1.2em;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.rotator.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}

.lede {
  max-width: 34rem;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  filter: brightness(1.08);
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.button-ghost:hover {
  filter: none;
  border-color: var(--muted);
}

/* Principles */

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

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* Status */

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

.status p {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

/* Small screens */

@media (max-width: 560px) {
  .site-header nav {
    gap: 14px;
  }

  section {
    padding: 40px 0;
  }
}

/* Respect reduced motion */

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

  .rotator {
    transition: none;
  }
}
