/* =========================================================
   FirstTrack Partners — shared stylesheet  (v2, elevated)
   Style: modern / fresh, light + ocean gradients, refined
   ========================================================= */

:root {
  /* surfaces */
  --bg: #f3f9ff;
  --bg-2: #eaf4ff;
  --surface: #ffffff;
  --surface-soft: #eef6fd;
  --line: #dde9f4;

  /* ink (AA-compliant on light) */
  --ink: #0c2438;
  --ink-soft: #2f4a64;
  --muted: #566a82;        /* darkened for AA on white */

  /* brand */
  --navy: #0c2238;
  --sky: #0ea5e9;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --deep: #0a6bb3;         /* link / accent text, AA on white */
  --eyebrow: #0e7c9b;      /* small label text, AA on white */
  --gold: #d99a3f;
  --coral: #ff6f59;

  /* gradients */
  --grad-hero: linear-gradient(160deg, #eaf7ff 0%, #e6fbff 42%, #e9fff7 100%);
  --grad-brand: linear-gradient(135deg, #0a6bb3 0%, #06b6d4 52%, #14b8a6 100%);
  --grad-brand-bright: linear-gradient(135deg, #0ea5e9 0%, #22d3ee 55%, #2dd4bf 100%);
  --grad-text: linear-gradient(115deg, #0c2f5e 0%, #0a6bb3 48%, #0e8e93 100%);
  --grad-gold: linear-gradient(90deg, var(--gold), var(--teal));

  /* dot texture + soft aurora used in heroes */
  --dots: radial-gradient(rgba(12,47,94,.06) 1.1px, transparent 1.2px);

  --shadow-sm: 0 4px 16px rgba(8, 75, 122, .08);
  --shadow: 0 16px 40px rgba(8, 75, 122, .13);
  --shadow-lg: 0 32px 70px rgba(8, 75, 122, .20);
  --ring: 0 0 0 4px rgba(14,165,233,.22);

  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 12px;

  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body[data-lang="zh"] .lang-en { display: none; }
body[data-lang="en"] .lang-zh { display: none; }

img { max-width: 100%; display: block; }
a { color: var(--deep); text-decoration: none; }

/* visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 8px;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.section-pad { padding: 88px 0; }
.section-pad-sm { padding: 54px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--eyebrow); margin: 0 0 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--grad-gold);
}
.section-head .eyebrow { justify-content: center; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.16; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.018em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; color: var(--ink-soft); }

.lead { font-size: 1.16rem; color: var(--ink-soft); }
.muted { color: var(--muted); }
.center { text-align: center; }
.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section-head { max-width: 730px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { position: relative; display: inline-block; }
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 4px; margin: 16px auto 0;
  border-radius: 4px; background: var(--grad-gold);
}
.section-head p { font-size: 1.08rem; margin-top: 18px; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .98rem; padding: 14px 26px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
/* sheen sweep */
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 70%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-18deg); transition: left .55s ease;
}
.btn:hover::after { left: 130%; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 12px 26px rgba(8,145,178,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(8,145,178,.44); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.75); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--cyan); color: var(--deep); }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(8,75,122,.10);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--ink); font-size: 1.12rem; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(14,36,64,.35);
}
.brand .logo img { width: 100%; height: 100%; display: block; }
.brand small { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; color: var(--ink-soft); font-weight: 600; font-size: .96rem;
  padding: 9px 14px; border-radius: 10px; transition: color .2s, background .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--grad-brand); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--deep); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--deep); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.lang-toggle button { border: 0; background: transparent; cursor: pointer; padding: 8px 14px; font-weight: 700; font-size: .82rem; color: var(--muted); transition: background .2s, color .2s; }
.lang-toggle button.active { background: var(--grad-brand); color: #fff; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- hero ---------- */
.hero {
  background:
    var(--dots) 0 0 / 22px 22px,
    radial-gradient(60% 70% at 85% 0%, rgba(45,212,191,.18), transparent 60%),
    radial-gradient(55% 60% at 0% 100%, rgba(56,189,248,.20), transparent 60%),
    var(--grad-hero);
  position: relative; overflow: hidden; padding: 56px 0;
  min-height: calc(100vh - 74px);
  min-height: calc(100svh - 74px);
  display: flex; align-items: center;
}
.hero > .container { width: 100%; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(10px); opacity: .55; z-index: 0; }
.hero::before { width: 440px; height: 440px; right: -130px; top: -130px; background: radial-gradient(circle at 30% 30%, #7dd3fc, transparent 66%); }
.hero::after { width: 380px; height: 380px; left: -130px; bottom: -150px; background: radial-gradient(circle at 50% 50%, #99f6e4, transparent 66%); }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 28px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { display: flex; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; font-weight: 600; }
.hero-trust span { display: flex; align-items: center; gap: 8px; }
.hero-trust .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(20,184,166,.18); }

.hero-card {
  position: relative;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-lg); backdrop-filter: blur(10px);
}
.hero-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,.9), rgba(45,212,191,.5), rgba(56,189,248,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.hero-card h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 16px; }
.mini-prog { display: grid; gap: 12px; }
.mini-prog .row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.mini-prog .row:hover { transform: translateX(3px); box-shadow: var(--shadow); }
.mini-prog .row .l { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.flag { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 1.35rem; background: var(--surface-soft); }
.mini-prog .row .price { font-weight: 800; color: var(--deep); text-align: right; }
.mini-prog .row .price small { display: block; font-weight: 600; font-size: .7rem; color: var(--muted); }
.mini-prog .row .l .t { display: flex; flex-direction: column; line-height: 1.25; }
.mini-prog .row .nm { font-weight: 700; font-size: .95rem; color: var(--ink); }
.mini-prog .row .ds { font-weight: 500; font-size: .72rem; color: var(--muted); margin-top: 1px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat {
  text-align: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 16px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--grad-brand); opacity: .9; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat .num { font-size: 2.15rem; font-weight: 800; line-height: 1.1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { color: var(--muted); font-weight: 600; font-size: .92rem; margin-top: 4px; }

/* ---------- grids / cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad-brand); border-radius: var(--radius) var(--radius) 0 0;
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfe6f7; }
.card:hover::before { transform: scaleX(1); }
.card .icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 16px; color: #fff;
  background: var(--grad-brand-bright);
  box-shadow: 0 10px 20px rgba(8,145,178,.28), inset 0 1px 0 rgba(255,255,255,.4);
}

/* program highlight cards */
.prog-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.prog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.prog-card .banner { position: relative; padding: 28px; background: var(--grad-brand); color: #fff; overflow: hidden; }
.prog-card .banner.alt { background: linear-gradient(135deg, #0a6bb3 0%, #14b8a6 100%); }
.prog-card .banner::after {
  content: ""; position: absolute; right: -30px; bottom: -60px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); border-radius: 50%;
}
.prog-card .banner .flag-lg { font-size: 2.5rem; margin-bottom: 8px; position: relative; }
.prog-card .banner h3 { color: #fff; margin: 0; font-size: 1.55rem; position: relative; }
.prog-card .banner p { color: rgba(255,255,255,.92); margin: 6px 0 0; font-size: .95rem; position: relative; }
.prog-card .body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.prog-card .feat { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.prog-card .feat li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-soft); font-size: .96rem; }
.prog-card .feat li::before { content: "✓"; color: #fff; font-weight: 800; font-size: .72rem; line-height: 1; flex: 0 0 auto; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); margin-top: 2px; }
.prog-card .price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; margin-bottom: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.prog-card .price-row .big { font-size: 1.75rem; font-weight: 800; color: var(--deep); }

.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: 5px 11px; border-radius: 999px; text-transform: uppercase; }
.tag-amber { background: #fff3e0; color: #a85d00; border: 1px solid #ffe1b3; }
.tag-teal { background: #e6fff8; color: #0c7d68; border: 1px solid #c0f3e7; }
.tag-sky { background: #e7f5ff; color: #0a6bb3; border: 1px solid #cbe8fb; }

/* offer banner */
.offer-banner { position: relative; overflow: hidden; background: linear-gradient(135deg, #fff7ec, #fff0ee); border: 1px solid #ffdcc2; border-radius: var(--radius); padding: 24px 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; box-shadow: var(--shadow-sm); }
.offer-banner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--gold), var(--coral)); }
.offer-banner .big { font-size: 1.55rem; font-weight: 800; color: var(--coral); }

/* tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
table.fees { width: 100%; border-collapse: collapse; background: #fff; min-width: 520px; }
table.fees th, table.fees td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
table.fees thead th { background: linear-gradient(180deg, #f3f9ff, #eaf4fc); color: var(--ink); font-weight: 700; }
table.fees tbody tr { transition: background .15s; }
table.fees tbody tr:hover { background: #f7fbff; }
table.fees tbody tr:last-child td { border-bottom: 0; }
table.fees td.amt { font-weight: 700; color: var(--deep); white-space: nowrap; }
table.fees tr.total td { background: #eafaff; font-weight: 800; }

/* feature list */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .fi { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; color: #fff; background: var(--grad-brand-bright); box-shadow: 0 8px 16px rgba(8,145,178,.24); }
.feature-list h4 { margin: 0 0 3px; font-size: 1.02rem; }
.feature-list p { margin: 0; font-size: .92rem; color: var(--muted); }

/* steps */
.steps { display: grid; gap: 0; position: relative; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding-bottom: 34px; position: relative; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 31px; top: 58px; bottom: -6px; width: 2px; background: linear-gradient(var(--cyan), rgba(6,182,212,.05)); }
.step .n { width: 56px; height: 56px; border-radius: 16px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; box-shadow: 0 12px 24px rgba(8,145,178,.34), inset 0 1px 0 rgba(255,255,255,.35); }
.step .sc h3 { margin-bottom: 6px; }
.step .sc p { margin: 0; }
.step .when { font-size: .8rem; font-weight: 700; color: var(--eyebrow); margin-bottom: 4px; display: block; letter-spacing: .04em; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #cbe8fb; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--cyan); font-weight: 400; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 18px; color: var(--ink-soft); }
.faq .ans p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { background: var(--grad-brand); background-size: 160% 160%; border-radius: var(--radius-lg); padding: 58px; text-align: center; color: #fff; position: relative; overflow: hidden; animation: ctaShift 14s ease infinite; }
@keyframes ctaShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.cta-band::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.12); top: -110px; right: -70px; }
.cta-band::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); bottom: -100px; left: -50px; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band h2::after { display: none; }
.cta-band p { color: rgba(255,255,255,.94); max-width: 560px; margin: 0 auto 26px; position: relative; }
.cta-band .btn { position: relative; }

/* forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; font-family: inherit; font-size: .98rem; color: var(--ink); background: var(--surface-soft); transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); background: #fff; box-shadow: var(--ring); }
.field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.form-success { display: none; background: #e6fff6; border: 1px solid #bdf0e0; color: #0c7d68; padding: 14px 18px; border-radius: 12px; font-weight: 600; margin-bottom: 18px; }

/* contact info */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci { width: 48px; height: 48px; border-radius: 14px; background: var(--grad-brand-bright); color: #fff; display: grid; place-items: center; font-size: 1.3rem; flex: 0 0 auto; box-shadow: 0 8px 16px rgba(8,145,178,.24); }
.contact-list h4 { margin: 0 0 2px; font-size: 1rem; }
.contact-list p { margin: 0; color: var(--muted); font-size: .94rem; }

/* page hero (inner) */
.page-hero {
  background:
    var(--dots) 0 0 / 22px 22px,
    radial-gradient(50% 80% at 90% 0%, rgba(45,212,191,.16), transparent 60%),
    var(--grad-hero);
  padding: 58px 0 50px; position: relative; overflow: hidden;
}
.page-hero::before { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; right: -130px; top: -160px; background: radial-gradient(circle, #7dd3fc, transparent 66%); opacity: .42; }
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--deep); }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { max-width: 640px; font-size: 1.12rem; }

/* split / section bg */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.bg-soft { background: var(--surface-soft); }
.bg-white { background: #fff; }

/* note */
.note { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: 12px; padding: 16px 20px; font-size: .9rem; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.note strong { color: var(--ink); }

/* ---------- footer (with wave) ---------- */
.site-footer { position: relative; background: var(--navy); color: #c3d4e6; padding: 78px 0 28px; margin-top: 12px; }
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 48px;
  transform: translateY(-100%);
  background: var(--navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0,48 L0,24 C150,4 350,4 600,22 C850,40 1050,40 1200,20 L1200,48 Z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0,48 L0,24 C150,4 350,4 600,22 C850,40 1050,40 1200,20 L1200,48 Z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
.site-footer h5 { color: #fff; font-size: .95rem; margin: 0 0 16px; letter-spacing: .04em; }
.site-footer a { color: #c3d4e6; display: block; padding: 5px 0; font-size: .92rem; transition: color .18s; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand .logo { box-shadow: 0 8px 18px rgba(0,0,0,.3); }
.site-footer .brand small { color: #8aa3c0; }
.footer-about p { color: #9cb3cf; font-size: .92rem; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #8aa3c0; }
.footer-disclaimer { font-size: .78rem; color: #7e97b6; margin-top: 14px; line-height: 1.6; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.grid-2 .reveal:nth-child(2) { transition-delay: .08s; }
.grid-3 .reveal:nth-child(2) { transition-delay: .08s; }
.grid-3 .reveal:nth-child(3) { transition-delay: .16s; }
.grid-4 .reveal:nth-child(2) { transition-delay: .07s; }
.grid-4 .reveal:nth-child(3) { transition-delay: .14s; }
.grid-4 .reveal:nth-child(4) { transition-delay: .21s; }
.stats .reveal:nth-child(2) { transition-delay: .07s; }
.stats .reveal:nth-child(3) { transition-delay: .14s; }
.stats .reveal:nth-child(4) { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn::after { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; background: #fff; padding: 14px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .28s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 12px; border-radius: 10px; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4, .stats { grid-template-columns: 1fr; }
  .nav-right .btn-primary { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .section-pad { padding: 62px 0; }
  .cta-band { padding: 42px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-trust { gap: 14px; }
}

/* ---------- hero photo slideshow ---------- */
.hero--photo { background: var(--navy); color: #fff; }
.hero--photo::before, .hero--photo::after { display: none; }
.hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--navy); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide picture { position: absolute; inset: 0; display: block; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.06); }
.hero-slide.is-active img { animation: heroZoom 8s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1.14); } }

.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(7,20,33,.66) 0%, rgba(7,20,33,.38) 28%, rgba(7,20,33,.10) 54%, rgba(7,20,33,0) 76%),
    linear-gradient(0deg, rgba(7,20,33,.28) 0%, rgba(7,20,33,0) 24%);
}

.hero--photo .eyebrow { color: #9fe9ff; }
.hero--photo .eyebrow::before { background: #7df0ff; }
.hero--photo h1 { color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.45), 0 6px 30px rgba(0,0,0,.32); }
.hero--photo .gradient-text { background: linear-gradient(115deg, #9fefff, #ffffff 55%, #bdf5e6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero--photo .lead { color: rgba(255,255,255,.96); text-shadow: 0 1px 4px rgba(0,0,0,.5), 0 2px 18px rgba(0,0,0,.3); }
.hero--photo .hero-trust { color: rgba(255,255,255,.9); }
.hero--photo .hero-trust .dot { box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
.hero--photo .btn-ghost { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.55); color: #fff; }
.hero--photo .btn-ghost:hover { background: rgba(255,255,255,.26); border-color: #fff; color: #fff; }

.hero-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 20px; display: flex; gap: 9px; justify-content: center; }
.hero-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.5); transition: transform .2s, background .2s; }
.hero-dot:hover { background: rgba(255,255,255,.82); }
.hero-dot.active { background: #fff; transform: scale(1.3); }

@media (max-width: 760px) {
  .hero-scrim {
    background: linear-gradient(180deg, rgba(7,20,33,.46) 0%, rgba(7,20,33,.12) 34%, rgba(7,20,33,.10) 56%, rgba(7,20,33,.58) 100%);
  }
  .hero-dots { bottom: 14px; }
}

/* ---------- full-screen hero media (video + always-on SVG scene) ---------- */
.hero-media {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: #07263c url("../img/hero-bg.svg") center center / cover no-repeat;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border: 0; background: transparent; filter: saturate(1.1) brightness(1.05) contrast(1.03); }

/* ---------- Nauru fee table groups & cost calculator ---------- */
table.fees tr.group td {
  background: #f0f6f9; color: var(--deep); font-weight: 800; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase; padding: 10px 18px;
}
table.fees tr.group:hover { background: #f0f6f9; }
.calc-out { margin-top: 18px; }
.calc-out .line {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .95rem;
}
.calc-out .line b { white-space: nowrap; }
.calc-out .line.sub { font-weight: 700; color: var(--deep); border-bottom: 1px solid var(--line); }
.calc-out .line.total { font-size: 1.18rem; font-weight: 800; color: var(--deep); border-bottom: none; padding-top: 14px; }
#cost-calc input[type="number"], #cost-calc select { max-width: 100%; }
