/* ========== CORE RESET ========== */

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

/* ========== DESIGN TOKENS ========== */

:root {
  --font-base: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* ===== Canvas / Page Background ===== */

  --color-bg-main: #f6f7f9;
  /* Whitemain background */

  --color-hero-bg: #0b0b0b;
  /* Dark graphite hero background */

  /* ===== Hero Overlays (blue-graphite tuned) ===== */

  --color-hero-overlay-primary: rgba(11, 18, 32, 0.78);
  --color-hero-overlay-secondary: rgba(11, 18, 32, 0.38);

  /* ===== Text on dark canvas ===== */

  --color-text-main: #f8fafc;
  --color-text-muted: rgba(248, 250, 252, 0.78);

  /* ===== Subtle borders on dark ===== */

  --color-border-subtle: rgba(248, 250, 252, 0.18);

  /* ===== Accent Colors ===== */

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2.5rem;
  --font-size-3xl: 3.8rem;

  --brand-1: #004aad;
  --brand-2: #007bff;

  --radius-xl: 24px;

  --shadow-1: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, 0.15);

  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-rise: cubic-bezier(0.18, 0.84, 0.44, 1);
  --ease-soft-snap: cubic-bezier(0.22, 0.61, 0.36, 1);

  --nav-height-mobile: 64px;
}

/* ========== PAGE STRUCTURE ========== */

html,
body {
  height: 100%;
}

html {
  background-color: var(--color-bg-main);
  color-scheme: dark;
}

body {
  font-family: var(--font-base);
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
}

body.scroll-locked {
  overflow: hidden;
}

/* ========== NAVBAR (desktop) ========== */

.site-header {
  --nav-link-idle: var(--color-text-muted);
  --nav-link-hover: rgba(255, 255, 255, 0.85);
  --nav-link-active: var(--color-text-main);

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
}

.nav-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 32px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

.nav-logo {
  display: flex;
  align-items: center;
  font-family: "Now", sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: none;
  position: relative;
  transform: scaleY(1.04);
  transform-origin: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-left: 1.5rem;
}

.nav-link {
  position: relative;
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--nav-link-idle);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: none;
  transform: translateY(0);
  transition:
    color 0.18s ease,
    transform 0.22s cubic-bezier(.215, .61, .355, 1);
  will-change: transform;
  backface-visibility: hidden;
}

.nav-link:focus {
  outline: none;
}

.nav-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.28);
  outline-offset: 4px;
  border-radius: 6px;
}

.nav-link:hover {
  color: color-mix(in srgb, var(--color-text-main) 85%, transparent);
  transform: translateY(-0.6px);
}

.nav-link-active {
  color: var(--nav-link-active);
}

.nav-divider {
  width: 1px;
  background-color: rgba(255, 255, 255, 0.22);
  height: 54px;
  margin-right: var(--space-xl);
}

/* Desktop baseline: mobile elements are not visible until the mobile breakpoint */

.nav-toggle {
  display: none;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: opacity 280ms ease;
}

/* Desktop baseline logo visibility */

.nav-logo-mobile {
  display: none;
}

/* ========== NAVBAR — HOVER MICRO-STATES ========== */

@media (hover: hover) and (pointer: fine) {
  .nav-logo {
    color: var(--color-text-main);
    text-decoration: none;
    transition:
      opacity 280ms var(--ease-soft),
      transform 280ms var(--ease-soft);
    will-change: transform;
  }

  .nav-logo:hover {
    opacity: 0.88;
    transform: translateY(-0.5px);
    text-decoration: none;
  }
}

/* ========== NAVBAR — MOBILE (≤900px) ========== */

@media (max-width: 900px) {

  .nav-logo,
  .nav-logo:visited,
  .nav-logo:hover,
  .nav-logo:active {
    color: var(--color-text-main);
    text-decoration: none;
  }


  .site-header {
    background: transparent;
    padding-top: env(safe-area-inset-top);
  }

  .nav-logo-desktop {
    display: none;
  }

  .nav-logo-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 44px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.02em;
    transform: translateY(1px);
  }

  .nav-inner {
    width: 100%;
    margin: 0;
    padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
    min-height: calc(var(--nav-height-mobile) + env(safe-area-inset-top));
    background: rgba(11, 18, 32, 0.001);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: none;
    position: relative;
    transition:
      background-color 280ms var(--ease-soft),
      box-shadow 280ms var(--ease-soft);
  }

  .nav-inner::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.32);
    opacity: 1;
    transition: none !important;
    will-change: opacity;
  }

  .nav-inner::before {
    transition: none !important;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    position: absolute;
    top: calc(10px + env(safe-area-inset-top));
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
      background-color 280ms ease,
      transform 280ms ease;
  }

  .nav-toggle:hover {
    background-color: transparent;
  }

  .nav-toggle:active {
    transform: scale(0.97);
  }

  .nav-toggle-line {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 2px;
    background: var(--color-text-main);
    border-radius: 999px;
    transform-origin: center;
    transition:
      opacity 240ms ease,
      transform 320ms ease,
      width 240ms ease;
  }

  .nav-toggle .line-top {
    width: 22px;
    transform: translate(-50%, -7px);
  }

  .nav-toggle .line-mid {
    width: 16px;
    transform: translate(calc(-50% + 3px), 0);
  }

  .nav-toggle .line-bottom {
    width: 22px;
    transform: translate(-50%, 7px);
  }

  .nav-toggle.is-open .line-top {
    transform: translate(-50%, 1px) rotate(42deg);
  }

  .nav-toggle.is-open .line-mid {
    opacity: 0;
    width: 0;
  }

  .nav-toggle.is-open .line-bottom {
    transform: translate(-50%, 1px) rotate(-42deg);
  }

  .nav-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    height: 100svh;
    z-index: 50;

    background: var(--color-bg-main);

    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, -100%, 0);
    transition:
      transform 0.35s ease,
      opacity 0.28s ease,
      visibility 0s linear 0.35s;
    will-change: transform, opacity;
  }

  .nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translate3d(0, 0, 0);
    transition:
      transform 0.35s ease,
      opacity 0.28s ease,
      visibility 0s linear 0s;
  }

  .nav-overlay-inner {
    width: 100%;
    margin-top: 0;
    padding: calc(var(--nav-height-mobile) + env(safe-area-inset-top) + 32px) var(--space-xl) calc(24px + env(safe-area-inset-bottom)) var(--space-xl);

    background: #ffffff;
    color: #0f172a;
    border-top: 0;
    transform: translateY(-8px);
    opacity: 0;
    transition:
      transform 280ms var(--ease-soft),
      opacity 280ms var(--ease-soft);
  }

  .nav-overlay.is-open .nav-overlay-inner {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-overlay-links {
    display: flex;
    flex-direction: column;
  }

  .nav-overlay-links a {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 20px 0;
    text-decoration: none;
    font-family: var(--font-base);
    font-weight: 500;
    font-size: 1.02rem;
    color: #0f172a;
    letter-spacing: -0.01em;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 12px;
    -webkit-tap-highlight-color: transparent;
    transition:
      background-color 280ms ease,
      box-shadow 280ms ease,
      transform 280ms ease;
    transform: translateY(0px);
  }

  .nav-item-icon {
    flex: 0 0 14px;
    color: rgba(15, 23, 42, 0.42);
    transform: translate3d(0, 0.5px, 0);
    transition:
      transform 220ms var(--ease-soft),
      opacity 220ms var(--ease-soft);
    will-change: transform, opacity;
  }

  .nav-item-label {
    flex: 1;
  }

  @media (max-width: 900px) and (hover: none) and (pointer: coarse) {
    .nav-overlay-links a:active {
      background-color: rgba(15, 23, 42, 0.035);
      box-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, 0.08),
        0 6px 18px rgba(15, 23, 42, 0.06);
      transform: none;
    }

    .nav-overlay-links a:active .nav-item-icon {
      transform: translate3d(4px, 0.5px, 0);
      opacity: 0.98;
    }

    .nav-toggle:active {
      background-color: rgba(255, 255, 255, 0.10);
      transform: scale(0.98);
    }

    body.nav-locked .nav-toggle:active {
      background-color: rgba(15, 23, 42, 0.06);
      transform: scale(0.98);
    }
  }

  .nav-overlay-links a:last-child {
    border-bottom: none;
  }

  .nav-inner::after {
    display: none;
  }

  /* === MOBILE NAV — OPEN STATE (white header) === */

  body.nav-locked .nav-inner {
    background: #ffffff;
    border-bottom: 0;

    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.nav-locked .site-header {
    background: transparent;
  }

  body.nav-prep .nav-inner::before {
    content: none;
    display: none;
    height: 0;
    border: 0;
    opacity: 0;
    background: transparent;
    visibility: hidden;
    transform: scaleX(0);
    transition: none !important;
  }

  body.nav-locked .nav-inner::before {
    content: none;
    display: none;
    height: 0;
    border: 0;
    opacity: 0;
    background: transparent;
    visibility: hidden;
    transform: scaleX(0);
    transition: none !important;
  }

  body.nav-locked .nav-logo,
  body.nav-locked .nav-logo a,
  body.nav-locked .nav-logo-mobile {
    color: #0f172a;
  }

  body.nav-locked .nav-toggle.is-open .nav-toggle-line {
    background: #0f172a;
  }

  body.nav-locked .nav-toggle {
    background: transparent;
    border-color: transparent;
  }

  body.nav-locked .nav-toggle:hover {
    background: transparent;
    border-color: transparent;
  }

  /* ========== MOBILE NAV — FOCUS RING (PREMIUM) ========== */

  @media (max-width: 900px) and (hover: hover) and (pointer: fine) {
    .nav-toggle:hover {
      background-color: rgba(255, 255, 255, 0.08);
    }

    body.nav-locked .nav-toggle:hover {
      background: rgba(15, 23, 42, 0.04);
    }
  }

  @media (max-width: 900px) and (hover: none) and (pointer: coarse) {

    .nav-overlay a:focus,
    .nav-overlay a:focus-visible {
      outline: none;
      box-shadow: none;
    }

    .nav-toggle:focus,
    .nav-toggle:focus-visible {
      outline: none;
      box-shadow: none;
    }
  }

  /* Keep header (logo + X) above the overlay */
  .site-header {
    z-index: 60;
  }

  .nav-inner {
    position: relative;
    z-index: 61;
  }

  .nav-logo-mobile {
    position: relative;
    z-index: 62;
  }

  .nav-toggle {
    z-index: 62;
  }

  /* Overlay sits under the header, above the page */
  .nav-overlay {
    z-index: 50;
  }

}

/* End mobile navbar styles */

/* ========== HERO SECTION ========== */

.hero {
  position: relative;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  background-color: var(--color-hero-bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 30% 45%, rgba(255, 255, 255, 0.035), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.hero-content {
  max-width: 720px;
  padding-top: 156px;
  padding-bottom: 84px;
}

.hero-kicker {
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.72);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.7rem, 5vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: rgba(248, 250, 252, 0.78);
  max-width: 58ch;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

/* ========== HERO CTA BUTTONS ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 32px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--color-text-main);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 220ms var(--ease-soft), box-shadow 220ms var(--ease-soft), background-color 220ms var(--ease-soft), border-color 220ms var(--ease-soft), opacity 220ms var(--ease-soft);
  will-change: transform;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.22);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(0, 74, 173, 0.95), rgba(0, 123, 255, 0.92));
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(248, 250, 252, 0.18);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 250, 252, 0.26);
}

/* ========== BUTTON WHISPER — BASE (mobile-safe) ========== */
.btn-whisper .btn-sizer {
  display: none;
}

.btn-whisper .btn-whisper-text {
  display: none;
}

/* ========== BUTTON WHISPER (stable width) ========== */
@media (hover: hover) and (pointer: fine) {
  .btn-whisper {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* SIZER — defines button width */
  .btn-whisper .btn-sizer {
    display: inline;
    visibility: hidden;
    white-space: nowrap;
  }

  /* Animated layers */
  .btn-whisper .btn-label,
  .btn-whisper .btn-whisper-text {
    display: flex;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    transition: opacity 180ms ease, transform 220ms var(--ease-soft);
  }

  .btn-whisper .btn-label {
    opacity: 1;
    transform: translateY(0);
  }

  .btn-whisper .btn-whisper-text {
    opacity: 0;
    transform: translateY(6px);
    font: inherit;
    letter-spacing: inherit;
    text-transform: none;
  }

  .btn-whisper:hover .btn-label {
    opacity: 0;
    transform: translateY(-6px);
  }

  .btn-whisper:hover .btn-whisper-text {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== HERO — MOBILE (≤900px) ========== */

@media (max-width: 900px) {
  .hero-container {
    padding: 0 var(--space-xl);
  }

  .hero-content {
    max-width: 640px;
    padding-top: calc(var(--nav-height-mobile) + 44px);
    padding-bottom: 64px;
  }

  .hero-title {
    font-size: clamp(2.25rem, 8.5vw, 3.15rem);
    line-height: 1.06;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

}

/* End hero section styles */