/* =========================================================
   Prestige Link International
   Styled with the "Column" design system (DESIGN.md)
   Halftone atlas meets Swiss ledger.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Colors */
  --color-paper-white: #f6f6f8;
  --color-card-white: #ffffff;
  --color-deep-ink: #011821;
  --color-carbon: #12161e;
  --color-slate: #7c7f88;
  --color-mist: #e3e4e8;
  --color-fog: #a9acb6;
  --color-graphite: #3b3e47;
  --color-deep-indigo: #111a4a;
  --color-ember-orange: #ec652b;
  --color-midnight-teal: #023247;
  --color-forest-teal: #167e6c;
  --color-sky-blue: #7ea7e9;
  --color-pale-cyan: #c1e8ef;
  --color-mint: #44b48b;
  --color-lavender: #9f7aee;

  /* Type */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --text-caption: 12px;
  --text-body-sm: 14px;
  --text-body: 16px;
  --text-body-lg: 18px;
  --text-subheading: 20px;
  --text-heading-sm: 24px;
  --text-heading: 28px;
  --text-heading-lg: 40px;
  --text-display: 60px;

  /* Spacing */
  --section-gap: 80px;
  --page-max-width: 1200px;
  --card-padding: 24px;

  /* Radius */
  --radius: 8px;
  --radius-pill: 9999px;

  /* Shadows (blue-tinted, per brand) */
  --shadow-subtle: rgba(17, 26, 74, 0.1) 0px 1px 3px 0px, rgba(17, 26, 74, 0.05) 0px 1px 0px 0px, rgba(255, 255, 255, 0.5) 0px 1px 0px 0px inset, rgba(255, 255, 255, 0.5) 0px 1px 4px 0px inset;
  --shadow-hairline: rgba(87, 90, 100, 0.12) 0px 0px 0px 1px;
  --shadow-xl: rgba(0, 0, 0, 0.02) 0px 40px 32px 0px, rgba(0, 0, 0, 0.03) 0px 22px 18px 0px, rgba(0, 0, 0, 0.03) 0px 12px 10px 0px, rgba(0, 0, 0, 0.04) 0px 7px 5px 0px, rgba(0, 0, 0, 0.07) 0px 3px 2px 0px;
  --shadow-sm: rgba(0, 0, 0, 0.05) 0px 4px 8px 0px, rgba(0, 0, 0, 0.1) 0px 2px 4px 0px, rgba(0, 0, 0, 0.1) 0px 1px 1px 0px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font-sans);
  background: var(--color-paper-white);
  color: var(--color-deep-ink);
  font-size: var(--text-body);
  line-height: 1.5;
  font-weight: 400;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

::selection { background: var(--color-pale-cyan); color: var(--color-deep-ink); }

/* ----------------------------- Layout helpers ----------------------------- */
.wrap { max-width: var(--page-max-width); margin: 0 auto; padding: 0 24px; }

.section { padding: var(--section-gap) 0; position: relative; }

.eyebrow {
  display: inline-block;
  background: var(--color-pale-cyan);
  color: var(--color-forest-teal);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 20px; }

h1, h2, h3 { font-weight: 300; }

.headline {
  font-size: clamp(34px, 5vw, var(--text-heading-lg));
  line-height: 1.1;
  letter-spacing: -0.8px;
  font-weight: 300;
  color: var(--color-deep-ink);
}
.headline .fade { color: var(--color-fog); }

.lede {
  margin-top: 20px;
  font-size: var(--text-body-lg);
  line-height: 1.6;
  letter-spacing: -0.18px;
  color: var(--color-slate);
  font-weight: 400;
}

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-deep-indigo);
  color: #fff;
  padding: 12px 20px;
  box-shadow: rgba(17, 26, 74, 0.18) 0px 4px 14px 0px;
}
.btn-primary .arrow { opacity: .8; transition: transform .2s ease; }
.btn-primary:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--color-deep-ink);
  padding: 12px 16px;
  border: 1px solid var(--color-mist);
}
.btn-ghost:hover { color: var(--color-deep-indigo); border-color: var(--color-fog); background: var(--color-card-white); }

/* ----------------------------- Nav ----------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
  background: rgba(246, 246, 248, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--color-mist); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: var(--radius);
  background: #060708 url('assets/logo-full.jpg') no-repeat;
  background-size: 188% auto;
  background-position: 50% 28%;
  box-shadow: var(--shadow-hairline);
  flex: none;
}
.brand-mark img { display: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name .b1 { font-size: 16px; font-weight: 500; letter-spacing: -0.2px; color: var(--color-deep-ink); }
.brand-name .b2 { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--color-slate); margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--color-carbon); transition: color .15s ease; }
.nav-links a:hover { color: var(--color-deep-indigo); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-deep-ink); border-radius: 2px; transition: .25s; }
.nav-toggle span + span { margin-top: 5px; }

/* ----------------------------- Hero ----------------------------- */
.hero { padding: 56px 0 72px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.hero h1 {
  font-size: clamp(40px, 6vw, var(--text-display));
  line-height: 1.05;
  letter-spacing: -1.8px;
  font-weight: 300;
}
.hero h1 .fade { color: var(--color-fog); }
.hero .lede { max-width: 520px; }
.hero-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-meta { margin-top: 40px; display: flex; gap: 40px; flex-wrap: wrap; }
.hero-meta .stat .num { font-size: 28px; font-weight: 300; letter-spacing: -0.56px; color: var(--color-deep-ink); }
.hero-meta .stat .lbl { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-slate); margin-top: 4px; }

/* Hero visual: floating data card over halftone map */
.hero-visual { position: relative; min-height: 440px; }

.map-bloom {
  position: absolute; inset: -10% -20% -10% -10%;
  z-index: 0;
  filter: blur(0.2px);
}
#heroMap { width: 100%; height: 100%; display: block; }

.data-card {
  position: relative;
  z-index: 2;
  background: var(--color-card-white);
  border-radius: var(--radius);
  padding: var(--card-padding);
  box-shadow: var(--shadow-xl);
  width: 320px;
}
.data-card.floatA { margin-left: auto; margin-top: 28px; }
.data-card.floatB { width: 270px; margin-top: -56px; margin-left: 24px; }

.dc-head { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.dc-flag { width: 22px; height: 16px; border-radius: 3px; background: linear-gradient(180deg,#b22234 0 33%,#fff 33% 66%,#3c3b6e 66%); flex: none; box-shadow: var(--shadow-hairline); }
.dc-tag { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--color-forest-teal); background: var(--color-pale-cyan); padding: 3px 8px; border-radius: var(--radius-pill); }
.dc-divider { height: 1px; background: var(--color-mist); margin: 16px 0; }
.dc-label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-slate); }
.dc-value { font-size: 28px; font-weight: 300; letter-spacing: -0.56px; margin-top: 6px; }
.dc-sub { font-family: var(--font-mono); font-size: 10px; color: var(--color-slate); margin-top: 6px; }

.code-block {
  background: var(--color-graphite);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--color-pale-cyan);
  overflow: hidden;
}
.code-block .k { color: var(--color-sky-blue); }
.code-block .s { color: var(--color-mint); }
.code-block .c { color: var(--color-fog); }

/* Sparkline mini card */
.dc-spark { display: flex; align-items: flex-end; gap: 4px; height: 44px; margin-top: 14px; }
.dc-spark span { flex: 1; background: var(--color-pale-cyan); border-radius: 2px; }

/* ----------------------------- Logo strip ----------------------------- */
.trust-strip {
  background: var(--color-card-white);
  border: 1px solid var(--color-mist);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-strip .label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-slate); }
.trust-logos { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.trust-logos span { font-size: 16px; font-weight: 500; color: var(--color-fog); letter-spacing: -0.2px; }

/* ----------------------------- Services ----------------------------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.svc-card {
  background: var(--color-card-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-subtle);
  transition: transform .2s ease, box-shadow .2s ease;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }
.svc-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--color-paper-white);
  display: grid; place-items: center; margin-bottom: 18px;
  color: var(--color-deep-indigo);
  box-shadow: var(--shadow-hairline);
}
.svc-icon svg { width: 22px; height: 22px; }
.svc-card h3 { font-size: var(--text-subheading); font-weight: 400; letter-spacing: -0.2px; margin-bottom: 10px; }
.svc-card p { font-size: 14px; color: var(--color-slate); line-height: 1.6; }

/* ----------------------------- How it works ----------------------------- */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.step-card {
  background: var(--color-card-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-subtle);
  display: flex; gap: 20px;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-deep-indigo);
  background: var(--color-pale-cyan);
  width: 36px; height: 36px; border-radius: var(--radius);
  display: grid; place-items: center; flex: none;
  font-weight: 500;
}
.step-card h3 { font-size: var(--text-body-lg); font-weight: 500; letter-spacing: -0.18px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--color-slate); line-height: 1.6; }

/* ----------------------------- Who we help ----------------------------- */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.help-card {
  background: var(--color-card-white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--color-mist);
}
.help-card .pill { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-forest-teal); }
.help-card h3 { font-size: var(--text-subheading); font-weight: 400; margin: 14px 0 10px; letter-spacing: -0.2px; }
.help-card p { font-size: 14px; color: var(--color-slate); line-height: 1.6; }

/* ----------------------------- Roles / split ----------------------------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.roles-list { display: grid; gap: 12px; }
.role-item {
  background: var(--color-card-white);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-subtle);
}
.role-item h4 { font-size: 15px; font-weight: 500; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.role-item h4 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-forest-teal); flex: none; }
.role-item.warn h4 .dot { background: var(--color-ember-orange); }
.role-item p { font-size: 13.5px; color: var(--color-slate); line-height: 1.6; }

/* Accent case-style card */
.accent-card {
  background: var(--color-card-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-xl);
}
.accent-inner {
  background: var(--color-ember-orange);
  border-radius: var(--radius);
  padding: 26px;
  color: #fff;
}
.accent-inner .lbl { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; opacity: .85; }
.accent-inner .big { font-size: var(--text-heading-sm); font-weight: 300; letter-spacing: -0.48px; margin-top: 10px; }
.accent-spark { display: flex; align-items: flex-end; gap: 5px; height: 56px; margin-top: 18px; }
.accent-spark span { flex: 1; background: rgba(255,255,255,0.35); border-radius: 2px; }
.accent-spark span.hi { background: #fff; }
.accent-foot { margin-top: 22px; display: flex; justify-content: space-between; font-size: 13px; color: var(--color-slate); }
.accent-foot strong { color: var(--color-deep-ink); font-weight: 500; }

/* ----------------------------- FAQ ----------------------------- */
.faq-list { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--color-card-white);
  border: 1px solid var(--color-mist);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.faq-item.open { box-shadow: var(--shadow-subtle); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-deep-ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: inherit;
}
.faq-q .ico { flex: none; width: 18px; height: 18px; position: relative; transition: transform .25s ease; }
.faq-q .ico::before, .faq-q .ico::after { content: ""; position: absolute; background: var(--color-deep-indigo); border-radius: 2px; }
.faq-q .ico::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-q .ico::after { left: 8px; top: 0; width: 2px; height: 18px; transition: transform .25s ease; }
.faq-item.open .ico::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 24px 22px; font-size: 14.5px; color: var(--color-slate); line-height: 1.65; }

/* ----------------------------- CTA ----------------------------- */
.cta {
  background: var(--color-card-white);
  border-radius: var(--radius);
  padding: 64px 48px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}
.cta .map-cta { position: absolute; inset: 0; opacity: .5; z-index: 0; }
.cta-content { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 300; letter-spacing: -0.8px; }
.cta p { margin-top: 16px; color: var(--color-slate); font-size: var(--text-body-lg); }
.cta-actions { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ----------------------------- Contact ----------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-info .info-row { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--color-mist); }
.contact-info .info-row:last-child { border-bottom: none; }
.contact-info .ic { width: 38px; height: 38px; border-radius: var(--radius); background: var(--color-paper-white); display: grid; place-items: center; color: var(--color-deep-indigo); flex: none; box-shadow: var(--shadow-hairline); }
.contact-info .ic svg { width: 18px; height: 18px; }
.contact-info .info-row .k { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--color-slate); }
.contact-info .info-row .v { font-size: 15px; margin-top: 4px; color: var(--color-deep-ink); }

.form-card { background: var(--color-card-white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-subtle); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--color-slate); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-deep-ink);
  background: var(--color-paper-white);
  border: 1px solid var(--color-mist);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-sky-blue); box-shadow: rgba(126,167,233,0.25) 0 0 0 3px; }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 12px; color: var(--color-fog); margin-top: 6px; }

/* ----------------------------- Footer ----------------------------- */
.footer {
  background: var(--color-deep-ink);
  color: #cdd2d8;
  margin-top: var(--section-gap);
  position: relative;
  overflow: hidden;
}
.footer .map-foot { position: absolute; inset: 0; opacity: .35; z-index: 0; }
.footer-inner { position: relative; z-index: 2; padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-name .b1 { color: #fff; }
.footer-brand .brand-name .b2 { color: var(--color-fog); }
/* Full logo shown in footer; container crops off the baked-in tagline line */
.footer-logo { width: 248px; max-width: 100%; aspect-ratio: 1254 / 1030; overflow: hidden; border-radius: var(--radius); }
.footer-logo img { width: 100%; display: block; }
.footer-brand p { margin-top: 18px; font-size: 14px; color: var(--color-fog); max-width: 280px; line-height: 1.6; }
.footer-tagline { font-family: var(--font-mono); font-size: 11px; letter-spacing: .5px; color: var(--color-sky-blue); margin-top: 16px; text-transform: uppercase; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--color-fog); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: #cdd2d8; padding: 6px 0; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--color-fog); }

.disclaimer {
  background: var(--color-paper-white);
  border: 1px solid var(--color-mist);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--color-slate);
}
.disclaimer strong { color: var(--color-graphite); font-weight: 500; }

/* ----------------------------- Reveal animation -----------------------------
   Fail-safe: content is visible by default. Only when JS adds `.js` to <html>
   do elements start hidden and animate in. Respects reduced-motion. */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 380px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards-grid, .help-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  :root { --section-gap: 56px; }
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-card-white);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--color-mist);
    box-shadow: var(--shadow-sm);
  }
  .nav.open .nav-links a { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--color-mist); }
  .cards-grid, .help-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .data-card.floatB { margin-left: 0; }
  .trust-strip { justify-content: center; text-align: center; }
  .cta { padding: 48px 24px; }
}
