/* =====================================================
 * APICATION — site-wide layout & component styles
 * Pairs with styles.css (design tokens)
 * ===================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--fg-1);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--apt-sky-700); text-decoration: none; transition: color .15s; }
a:hover { color: var(--apt-sky-600); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--apt-sky-400); outline-offset: 2px; border-radius: 4px; }

/* ===== Skip link (a11y) ===== */
.skip-link {
  position: absolute; top: -40px; left: 16px; z-index: 200;
  background: var(--apt-navy-800); color: #fff;
  padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
  transition: top .15s;
}
.skip-link:focus { top: 16px; color: #fff; text-decoration: none; }

/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1360px; margin: 0 auto; padding: 0 24px; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 24px;
}
.nav-logo { display: inline-flex; }
.nav-logo img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--fg-1); font-weight: 500; font-size: 14.5px; text-decoration: none;
  padding: 6px 2px; position: relative;
}
.nav-links a:hover { color: var(--apt-sky-700); text-decoration: none; }
.nav-links a.active { color: var(--apt-navy-800); font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px;
  background: linear-gradient(135deg,#2cbdf9,#26d1b7);
}
.nav-cta {
  background: var(--apt-navy-800); color: #fff !important;
  padding: 16px 48px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  transition: all .24s var(--ease-standard);
}
.nav-cta:hover { background: var(--apt-navy-700); text-decoration: none !important; transform: translateY(-1px); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--apt-navy-800);
}
@media (max-width: 880px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 12px 0;
    background: #fff; border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: all .2s var(--ease-standard);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 24px; width: 100%; }
  .nav-links a.active::after { display: none; }
  .nav-cta { margin: 8px 24px; text-align: center; }
  .nav-toggle { display: inline-flex; }
}

/* ===== Buttons ===== */
.btn {
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  transition: all .24s var(--ease-standard);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--apt-sky-500); color: #fff; box-shadow: 0 8px 20px rgba(44,189,249,.30); }
.btn-primary:hover { background: var(--apt-sky-600); color: #fff; box-shadow: 0 14px 28px rgba(44,189,249,.40); }
.btn-gradient {
  background: linear-gradient(135deg,#2cbdf9 0%,#26d1b7 60%,#9efec8 100%);
  color: var(--apt-navy-900); font-weight: 700;
  box-shadow: 0 12px 30px rgba(38,209,183,.32);
}
.btn-gradient:hover { color: var(--apt-navy-900); box-shadow: 0 16px 36px rgba(38,209,183,.42); }
.btn-navy { background: var(--apt-navy-800); color: #fff; }
.btn-navy:hover { background: var(--apt-navy-700); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--apt-navy-800);
  border: 1.5px solid var(--apt-navy-800); padding: 11.5px 22.5px;
}
.btn-ghost:hover { background: var(--apt-navy-50); color: var(--apt-navy-800); }
.btn-on-dark { background: #fff; color: var(--apt-navy-800); }
.btn-on-dark:hover { background: var(--apt-mint-200); color: var(--apt-navy-800); }

/* ===== Section basics ===== */
section { padding: 96px 0; }
@media (max-width: 760px) { section { padding: 64px 0; } }

.eyebrow {
  font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--apt-sky-700); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 22px; height: 2px;
  background: var(--apt-sky-500); border-radius: 2px;
}

h1.section-title, h2.section-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px, 4vw, 48px); line-height: 1.08;
  letter-spacing: -.025em; color: var(--apt-navy-800);
  margin: 14px 0 18px; text-wrap: balance;
}
.section-lead {
  font-size: 18px; line-height: 1.65; color: var(--fg-2);
  max-width: 640px; text-wrap: pretty; margin: 0;
}
.section-lead.center { margin: 0 auto; }

.bg-subtle { background: var(--apt-navy-50); }
.bg-brand-dark {
  background: radial-gradient(120% 90% at 30% 0%, #2e4a8a 0%, #22396d 45%, #1a2c55 100%);
  color: #fff;
}
.bg-brand-dark h1, .bg-brand-dark h2, .bg-brand-dark h3 { color: #fff; }
.bg-brand-dark .eyebrow { color: #9efec8; }
.bg-brand-dark .eyebrow::before { background: #9efec8; }
.bg-brand-dark .section-lead { color: rgba(255,255,255,0.78); }

/* ===== Cards ===== */
.card {
  background: #fff; border: 1px solid var(--border-subtle); border-radius: 16px;
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: box-shadow .24s var(--ease-standard), transform .24s var(--ease-standard);
  height: 100%;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 20px; color: var(--apt-navy-800); margin: 14px 0 8px;
}
.card p { font-size: 14.5px; line-height: 1.65; color: var(--fg-2); margin: 0 0 14px; }
.icon-chip {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg,#cdeefe,#d6fde7);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--apt-navy-800);
}
.more-link {
  font-size: 14px; font-weight: 600; color: var(--apt-sky-700);
  display: inline-flex; align-items: center; gap: 4px;
}
.more-link:hover { color: var(--apt-sky-600); text-decoration: none; gap: 8px; }

/* ===== Grid utilities ===== */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center;
}
.split.reverse { grid-template-columns: 1.1fr 1fr; }
@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== Check list ===== */
.check-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--fg-2); line-height: 1.55; }
.check-list .check {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--apt-mint-500); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.bg-brand-dark .check-list li { color: rgba(255,255,255,0.85); }

/* ===== Pills / badges ===== */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
}
.pill-info { background: var(--apt-sky-100); color: var(--apt-sky-700); }
.pill-success { background: var(--apt-mint-100); color: var(--apt-mint-700); }
.pill-navy { background: var(--apt-navy-100); color: var(--apt-navy-800); }
.pill-glass {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: #9efec8; padding: 6px 14px; letter-spacing: .04em;
}

/* ===== Gradient text ===== */
.text-gradient {
  background: linear-gradient(135deg,#2cbdf9 0%,#26d1b7 55%,#9efec8 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.text-gradient-deep {
  background: linear-gradient(135deg,#169fdc 0%,#26d1b7 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--apt-navy-900); color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.site-footer .footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
@media (max-width: 820px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }
.site-footer img.footer-logo { height: 40px; margin-bottom: 18px; }
.site-footer p { font-size: 13.5px; line-height: 1.65; margin: 0; max-width: 340px; }
.site-footer h4 {
  color: #fff; font-family: var(--font-body); font-weight: 700;
  font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 13.5px; }
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.site-footer a:hover { color: #9efec8; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
  display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.5);
  flex-wrap: wrap; gap: 10px;
}

/* ===== Decorative hero ornaments ===== */
.orb {
  position: absolute; border-radius: 50%; filter: blur(20px); pointer-events: none;
}
.orb-sky {
  background: radial-gradient(circle, rgba(44,189,249,0.45), transparent 60%);
}
.orb-mint {
  background: radial-gradient(circle, rgba(38,209,183,0.35), transparent 60%);
}
.orb-aqua {
  background: radial-gradient(circle, rgba(158,254,200,0.45), transparent 65%);
}

/* ===== Utility ===== */
.center { text-align: center; }
.mt-2 { margin-top: 12px; } .mt-4 { margin-top: 24px; } .mt-6 { margin-top: 40px; }
.mb-2 { margin-bottom: 12px; } .mb-4 { margin-bottom: 24px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Reveal-on-scroll (subtle) ===== */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
