:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #5c6370;
  --border: #d9dde4;
  --border-strong: #b6bdc8;
  --accent: #1d4ed8;
  --accent-fill: #2563eb;
  --on-accent: #ffffff;
  --soft: #eaf0ff;
  --radius: 10px;
  --frame: 66rem;
  --shadow: 0 1.25rem 3.5rem rgb(37 99 235 / 12%);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15171c;
  --surface: #1d2027;
  --text: #e8eaee;
  --muted: #a3a9b4;
  --border: #333843;
  --border-strong: #4a5162;
  --accent: #6f9bff;
  --accent-fill: #2563eb;
  --soft: #202a42;
  --shadow: 0 1.25rem 3.5rem rgb(0 0 0 / 28%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  transition: background-color 180ms ease, color 180ms ease;
}

img,
svg {
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--text);
}

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

.shell {
  width: min(calc(100% - 2rem), var(--frame));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  background: var(--accent-fill);
  color: var(--on-accent);
  font-weight: 700;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 1rem;
  color: var(--on-accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand img,
.footer-brand img {
  border-radius: 8px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

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

.tools {
  display: flex;
  gap: 0.5rem;
}

.tool-button {
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 0 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.tool-button:hover {
  border-color: var(--border-strong);
}

.theme-toggle {
  width: 2rem;
  padding: 0;
}

.theme-icon-dark,
:root[data-theme="dark"] .theme-icon-light {
  display: none;
}

:root[data-theme="dark"] .theme-icon-dark {
  display: block;
}

main {
  min-height: calc(100vh - 11rem);
}

.hero {
  min-height: min(47rem, calc(100vh - 5rem));
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(19rem, 0.8fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
  padding-block: clamp(4rem, 11vh, 7.5rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.lead {
  max-width: 44rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  min-height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent-fill);
  color: var(--on-accent);
  box-shadow: 0 0.75rem 1.75rem rgb(37 99 235 / 24%);
}

.button-primary:hover {
  color: var(--on-accent);
  box-shadow: 0 1rem 2.25rem rgb(37 99 235 / 32%);
}

.button-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-visual {
  position: relative;
  min-height: 25rem;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 21rem;
  height: 21rem;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-fill) 22%, transparent), transparent 67%);
  filter: blur(12px);
  z-index: -2;
}

.orbit {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 50%;
}

.orbit-one {
  width: 18rem;
  height: 18rem;
}

.orbit-two {
  width: 24rem;
  height: 24rem;
  border-style: dashed;
  animation: spin 28s linear infinite;
}

.brand-mark {
  width: 9.5rem;
  height: 9.5rem;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  border-radius: 2.2rem;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow);
  rotate: -4deg;
}

.brand-mark img {
  border-radius: 1.5rem;
  filter: drop-shadow(0 0.8rem 1.3rem rgb(37 99 235 / 28%));
}

.status-card {
  position: absolute;
  right: 0;
  bottom: 3.6rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 0.58rem 0.9rem;
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0.25rem rgb(34 197 94 / 14%);
}

.vision {
  padding-block: clamp(4rem, 9vw, 7rem);
  border-top: 1px solid var(--border);
}

.section-heading {
  max-width: 45rem;
}

.section-heading h2,
.blog-callout h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-heading > p:last-child,
.blog-callout p:last-child {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.principle-card {
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.4rem;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.principle-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: var(--shadow);
}

.card-index {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.principle-card h3 {
  margin: auto 0 0.5rem;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

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

.blog-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  margin-bottom: clamp(4rem, 9vw, 7rem);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-fill) 11%, var(--surface)), var(--surface) 58%);
  padding: clamp(1.5rem, 5vw, 3.25rem);
  box-shadow: var(--shadow);
}

.blog-callout > div {
  max-width: 43rem;
}

.site-footer {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-brand,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand p {
  margin: 0;
}

.site-footer nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer nav a {
  color: var(--muted);
  font-weight: 650;
}

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

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-block: 2rem;
  text-align: center;
}

.error-page__content h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.error-page__logo {
  margin: 0 auto 1rem;
  border-radius: 14px;
}

.error-page .lead {
  margin-inline: auto;
}

.error-page__action {
  margin-top: 2rem;
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

@media (max-width: 800px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-block: 0.8rem;
  }

  .site-header nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .tools {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-visual {
    min-height: 20rem;
    margin-top: 1rem;
  }

  .orbit-one {
    width: 14rem;
    height: 14rem;
  }

  .orbit-two {
    width: 19rem;
    height: 19rem;
  }

  .brand-mark {
    width: 8rem;
    height: 8rem;
  }

  .brand-mark img {
    width: 78px;
    height: 78px;
  }

  .status-card {
    right: 50%;
    bottom: 0.75rem;
    translate: 50% 0;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .principle-card {
    min-height: 11rem;
  }

  .blog-callout {
    grid-template-columns: 1fr;
  }

  .blog-callout .button {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(2.45rem, 14vw, 4rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1.5rem;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
