:root {
  --bg: #f3f6fa;
  --bg-elevated: #ffffff;
  --text: #0f1419;
  --text-muted: #5c6b7a;
  --border: rgba(15, 20, 25, 0.08);
  --accent: #0891b2;
  --accent-strong: #0e7490;
  --accent-soft: rgba(8, 145, 178, 0.12);
  --accent-glow: rgba(14, 165, 233, 0.35);
  --shadow: 0 24px 48px -32px rgba(15, 23, 42, 0.35);
  --radius-lg: 20px;
  --radius-md: 12px;
  --font: "Outfit", system-ui, sans-serif;
  --max-width: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px 20px;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-md);
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 28px) clamp(20px, 4vw, 32px)
    clamp(14px, 2.5vw, 18px);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__inner--simple {
  justify-content: flex-start;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand__logo {
  width: min(168px, 42vw);
  height: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav__list a:hover {
  color: var(--text);
  background: rgba(15, 20, 25, 0.05);
}

.nav__cta {
  color: var(--accent-strong) !important;
  background: var(--accent-soft) !important;
}

.nav__cta:hover {
  color: #fff !important;
  background: var(--accent) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  box-shadow: 0 1px 2px var(--border);
  cursor: pointer;
  padding: 0;
  position: relative;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  position: absolute;
  left: 12px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bar {
  top: 21px;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  left: 0;
}

.nav-toggle__bar::before {
  top: -7px;
}

.nav-toggle__bar::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 16px clamp(20px, 4vw, 32px) 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav__list a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.mobile-nav__list a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.page-home .nav-toggle {
  display: none !important;
}

.page-home .mobile-nav {
  display: none !important;
}

@media (max-width: 768px) {
  .nav:not(.nav--sub) {
    display: none;
  }

  .page-sub .nav-toggle {
    display: block;
  }

  .page-sub .nav--sub {
    display: none;
  }
}

@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
}

.hero {
  position: relative;
  padding: clamp(48px, 10vw, 96px) clamp(20px, 4vw, 32px) clamp(64px, 12vw, 120px);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  width: min(720px, 90vw);
  height: min(420px, 55vw);
  top: -120px;
  right: -80px;
  background: radial-gradient(
    closest-side,
    var(--accent-glow),
    transparent 70%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 720px;
}

.hero__content--wide {
  max-width: var(--max-width);
}

.hero--home {
  padding-bottom: clamp(32px, 6vw, 56px);
}

.hero__lead--wide {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.hero__title {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 0 0 32px;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(8, 145, 178, 0.55);
}

.btn--primary:hover {
  filter: brightness(1.05);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: var(--bg-elevated);
}

.btn--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.section {
  padding: clamp(56px, 9vw, 96px) clamp(20px, 4vw, 32px);
}

.section__header {
  max-width: var(--max-width);
  margin: 0 auto 40px;
}

.section__header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section__header p {
  margin: 0;
  max-width: 560px;
  color: var(--text-muted);
}

.section--releases {
  background: linear-gradient(180deg, var(--bg) 0%, #e8eef6 100%);
  padding-top: 0;
}

.release-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.release-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(22px, 3vw, 28px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

@media (min-width: 720px) {
  .release-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
  }
}

.release-item:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  transform: translateY(-1px);
}

.release-item--featured {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: linear-gradient(
    160deg,
    var(--bg-elevated) 0%,
    color-mix(in srgb, var(--accent-soft) 55%, var(--bg-elevated)) 100%
  );
}

.release-item__body {
  flex: 1;
  min-width: 0;
}

.release-item__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.release-item__summary {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.release-item__action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent-strong);
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  background: var(--bg-elevated);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.release-item__action:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
}

.release-item__action-hint {
  font-size: 1rem;
  opacity: 0.85;
}

.subpage {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 32px)
    clamp(64px, 10vw, 96px);
}

.subpage__header {
  margin-bottom: clamp(36px, 6vw, 48px);
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent-strong);
}

.subpage__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.subpage__lead {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 52ch;
}

.prose {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose h2 {
  margin: 2.25em 0 0.65em;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

.prose ul {
  margin: 0 0 1.25em;
  padding-left: 1.25em;
  color: var(--text-muted);
}

.prose li {
  margin-bottom: 0.65em;
}

.prose li strong {
  color: var(--text);
}

.prose a {
  color: var(--accent-strong);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--accent);
}

.callout {
  margin: 2rem 0;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent-soft) 35%, var(--bg-elevated));
}

.callout__title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
}

.callout__text {
  margin: 0 0 16px;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.callout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  padding: 28px clamp(20px, 4vw, 32px) 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.site-footer__legal {
  margin: 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
