/* ==========================================================================
   Base: fonts, design tokens, reset, layout helpers, buttons, headings.
   Palette: navy + white + electric blue.
   ========================================================================== */

@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Figtree Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --navy-950: #050d1b;
  --navy-900: #0a1628;
  --navy-800: #0f2142;
  --navy-700: #183262;
  --blue-500: #2f6bff; /* electric blue: accents and graphics */
  --blue-600: #1f58e8; /* electric blue for buttons and text on light backgrounds */
  --blue-700: #1747c7;
  --blue-400: #6a98ff;
  --blue-200: #bfd2ff;
  --blue-100: #e4ecff;
  --blue-50: #f1f5ff;
  --ink: #0b1b33;
  --text: #33445f;
  --muted: #566783;
  --line: #dae2f1;
  --surface: #f5f8fe;
  --success: #0b7f57;
  --danger: #c4262b;
  --warn: #a8610a;

  --font-display: "Manrope Variable", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Figtree Variable", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 14px 32px -14px rgba(10, 34, 82, 0.28);
  --shadow-lg: 0 34px 70px -28px rgba(5, 13, 27, 0.55);

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --nav-h: 76px;
  --focus: var(--blue-600);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 8px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

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

/* ---------- Layout helpers ---------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section--surface {
  background: var(--surface);
}

.section--navy {
  background: var(--navy-900);
  color: #c3d0e8;
  --focus: #9cbbff;
}

.section--navy h2,
.section--navy h3 {
  color: #fff;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: 700 0.9375rem var(--font-display);
  transform: translateY(-200%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

/* Visible marker for content the owner still has to supply */
.placeholder-text {
  border-bottom: 1px dashed currentColor;
  opacity: 0.8;
  cursor: help;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 700 0.9375rem/1 var(--font-display);
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.btn--sm {
  padding: 0.7rem 1.05rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1.1rem 1.6rem;
  font-size: 1rem;
}

.btn--primary {
  background: var(--navy-950);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(5, 13, 27, 0.55);
}

.btn--primary:hover {
  background: var(--navy-800);
  transform: translateY(-1px);
}

.btn--outline {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue-600);
  border-radius: 4px;
}

.btn--link:hover {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Section heading ---------- */

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

.section-heading__title {
  font-size: clamp(1.95rem, 3.6vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-heading__lead {
  margin-top: 1rem;
  font-size: 1.1875rem;
  color: var(--muted);
}

.section-heading--dark .section-heading__title {
  color: #fff;
}

.section-heading--dark .section-heading__lead {
  color: #a9b9d7;
}

/* ---------- Shared motion ---------- */

/* One orchestrated entrance (hero), staggered with --i */
.rise {
  animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 90ms + 80ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.spin {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
