/* Shared styles for every inner page (the home page keeps its own fixed-stage layout in styles.css). */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

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

html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: #0f7ae0;
  color: #fff;
  font-family: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 10px; }

/* ───────── sky (matches the home page) ───────── */
.sky {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 60% at 50% 110%, rgba(110, 200, 255, .3), transparent 60%),
    radial-gradient(90% 60% at 0% 0%, rgba(4, 52, 175, .55), transparent 70%),
    radial-gradient(90% 60% at 100% 0%, rgba(5, 60, 185, .5), transparent 70%),
    linear-gradient(180deg, #0a5fd6 0%, #0b6ddd 28%, #0f82e4 58%, #1393e8 82%, #1699ea 100%);
}
.sky-clouds { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: .6; }
.drift {
  position: absolute; left: 0; top: var(--top); width: var(--w);
  opacity: 0; transition: opacity 2.4s ease;
  will-change: transform; backface-visibility: hidden;
  animation: sail var(--dur) linear infinite; animation-delay: var(--delay);
}
.sky-clouds.ready .drift { opacity: var(--o); }
.drift img { display: block; width: 100%; height: auto; user-select: none; animation: bob var(--bob) ease-in-out infinite alternate; animation-delay: var(--bob-d); }
@keyframes sail { from { transform: translate3d(104vw, 0, 0); } to { transform: translate3d(calc(-1 * var(--w) - 4vw), 0, 0); } }
@keyframes bob { from { transform: translate3d(0, -.7vh, 0); } to { transform: translate3d(0, .9vh, 0); } }

/* ───────── header ───────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  padding: 18px clamp(18px, 3vw, 52px);
  transition: background .35s, backdrop-filter .35s, padding .35s;
}
.site-header.scrolled { background: rgba(8, 70, 200, .55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding-top: 12px; padding-bottom: 12px; }
.site-header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1760px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 11px; font-size: 26px; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-tile { fill: #fff; }
.logo-arrow { stroke: #0a5fd6; transition: transform .45s cubic-bezier(.2, .75, .2, 1); }
.logo:hover .logo-arrow { transform: translate(1.6px, -1.6px); }
.logo-word { transform: translateY(-1px); }
.nav-links { display: flex; gap: clamp(18px, 2.2vw, 38px); font-size: 17px; font-weight: 500; letter-spacing: -.03em; }
.nav-links a { position: relative; padding: 6px 0; transition: opacity .25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .75, .2, 1); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links:hover a:not(:hover) { opacity: .62; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; flex-direction: column; justify-content: center; gap: 7px; padding: 0 13px; }
.menu-btn i { display: block; height: 2px; background: #05070d; border-radius: 2px; transition: transform .35s cubic-bezier(.2, .75, .2, 1); }
.menu-open .menu-btn i:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-btn i:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 15; display: flex; flex-direction: column; justify-content: center; gap: 30px; padding: 90px 28px 40px;
  background: rgba(6, 62, 188, .88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 10px; }
.mobile-menu nav a { font-size: 44px; font-weight: 500; letter-spacing: -.045em; line-height: 1.1; }
.mobile-menu .btn { align-self: flex-start; }

/* ───────── buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; padding: 0 34px; border-radius: 999px;
  font-size: 18px; font-weight: 500; letter-spacing: -.035em; white-space: nowrap;
  transition: transform .3s cubic-bezier(.2, .75, .2, 1), box-shadow .3s, background .25s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 30, 120, .28); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-white { background: #fff; color: #05070d; }
.btn-black { background: #000; color: #fff; }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .08); }
.btn-sm { height: 44px; padding: 0 22px; font-size: 16px; }

/* ───────── layout ───────── */
main, .site-footer { position: relative; z-index: 2; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.page-hero { padding-block: clamp(130px, 17vh, 190px) clamp(40px, 6vh, 70px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); font-size: 15px; font-weight: 500; letter-spacing: -.02em; }
h1 { margin-top: 26px; font-size: clamp(44px, 7vw, 96px); line-height: 1.04; font-weight: 400; letter-spacing: -.053em; text-shadow: 0 4px 40px rgba(0, 55, 160, .22); max-width: 15ch; }
.lead { margin-top: 24px; max-width: 640px; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.35; font-weight: 500; letter-spacing: -.03em; text-shadow: 0 1px 16px rgba(0, 60, 170, .4); }
h2 { font-size: clamp(30px, 4vw, 54px); line-height: 1.08; font-weight: 400; letter-spacing: -.045em; }
h3 { font-size: 22px; font-weight: 500; letter-spacing: -.03em; line-height: 1.2; }
.section { padding-block: clamp(40px, 7vh, 80px); }
.section-head { margin-bottom: 32px; max-width: 700px; }
.section-head p { margin-top: 14px; font-size: 19px; font-weight: 500; letter-spacing: -.02em; opacity: .92; }

.card {
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 28px; padding: clamp(22px, 2.6vw, 34px);
  box-shadow: 0 20px 60px rgba(0, 40, 140, .18);
}
.card p { margin-top: 10px; font-size: 17px; line-height: 1.45; opacity: .93; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.card-link { transition: transform .35s cubic-bezier(.2, .75, .2, 1), background .3s; display: block; }
.card-link:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .2); }
.note { border-style: dashed; background: rgba(255, 255, 255, .07); }

/* forms */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > label, .field > .lbl { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.field small { font-size: 13px; opacity: .8; }
input[type=text], input[type=url], input[type=email], textarea, select {
  width: 100%; padding: 14px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, .95); color: #05070d; border: 2px solid transparent;
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #6b7587; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; border-color: #0a5fd6; box-shadow: 0 0 0 4px rgba(10, 95, 214, .25); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); font-weight: 500; transition: background .2s, color .2s; }
.chip input:checked + span { background: #fff; color: #05070d; border-color: #fff; }
.chip input:focus-visible + span { outline: 3px solid #fff; outline-offset: 3px; }

/* footer */
.site-footer { margin-top: clamp(40px, 8vh, 90px); padding: 56px 0 40px; background: rgba(5, 50, 160, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid rgba(255, 255, 255, .2); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px 80px; justify-content: space-between; }
.footer-grid h4 { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; margin-bottom: 14px; }
.footer-grid li { margin-bottom: 8px; font-size: 17px; font-weight: 500; }
.footer-grid li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-brand p { margin-top: 14px; max-width: 320px; opacity: .85; font-size: 16px; }
.footer-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 14px; opacity: .8; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* entrance */
.rise { opacity: 0; transform: translateY(24px); animation: rise 1s cubic-bezier(.2, .75, .2, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .nav-links, .site-header .btn { display: none; }
  .menu-btn { display: flex; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .logo { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  .drift, .drift img { animation-play-state: paused; }
  html { scroll-behavior: auto; }
}
.still .rise { animation: none; opacity: 1; transform: none; }
.still .drift, .still .drift img { animation-play-state: paused; transition: none; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 40; padding: 12px 20px; border-radius: 999px; background: #fff; color: #05070d; font-weight: 600; transition: top .2s; }
.skip:focus { top: 16px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 28px; margin: 38px 0 12px; letter-spacing: -.03em; }
.prose p, .prose li { font-size: 18px; line-height: 1.55; margin-bottom: 12px; font-weight: 500; opacity: .96; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.footer-base a:hover { text-decoration: underline; }

html:not([data-ai="on"]) [data-ai-only] { display: none !important; }
