/* AOG Hub: landing page styles
   Built on the AOG Hub design system tokens (tokens.css). */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ── Layout helpers ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section { padding-block: var(--space-24); }
.section--tight { padding-block: var(--space-16); }
.section--subtle { background: var(--color-bg); }
.section--ink { background: var(--color-ink); color: var(--color-text-inverse); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.section--ink .eyebrow { color: var(--color-brand-300); }

.section-head { max-width: 720px; margin-bottom: var(--space-12); }
.section-head--center { margin-inline: auto; text-align: center; }

h1, h2, h3 { line-height: 1.15; letter-spacing: var(--letter-spacing-tight); font-weight: var(--font-weight-extrabold); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 20px; font-weight: var(--font-weight-bold); letter-spacing: 0; }

.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--color-text-secondary); }
.section--ink .lede { color: var(--color-neutral-300); }

/* ── Buttons (from design system button spec) ───────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: inherit;
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-secondary { background: #fff; color: var(--color-neutral-700); border-color: var(--color-border-strong); }
.btn-secondary:hover { border-color: var(--color-neutral-400); background: var(--color-neutral-50); }
.btn-ghost { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-ghost:hover { background: var(--color-primary-light); }
.btn-on-dark { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.30); }
.btn-on-dark:hover { background: rgba(255,255,255,0.16); }
.btn-lg { font-size: 16px; padding: 14px 26px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-link);
}
.arrow-link svg { transition: transform .15s ease; }
.arrow-link:hover svg { transform: translateX(3px); }

/* ── Utility bar (Swiss-AS style thin top bar) ──────────────── */
.utility-bar {
  background: var(--color-brand-900);
  color: var(--color-neutral-300);
  font-size: 13px;
}
.utility-bar__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 38px; gap: var(--space-4);
}
.utility-bar__tag {
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase; font-size: 11px;
  color: var(--color-brand-200);
}
.utility-bar__nav { display: flex; align-items: center; gap: var(--space-6); }
.utility-bar__nav a { color: var(--color-neutral-300); transition: color .15s ease; }
.utility-bar__nav a:hover { color: #fff; }
.utility-bar__portal {
  position: relative;
  padding-left: var(--space-6);
}
.utility-bar__portal::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 14px; background: rgba(255,255,255,0.2);
}

/* ── Top navigation ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6);
}
.nav__logo img { height: 60px; width: auto; }
.nav__links { display: flex; align-items: center; gap: var(--space-8); list-style: none; }
.nav__links a {
  font-size: 15px; font-weight: var(--font-weight-medium);
  color: var(--color-neutral-700);
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--color-primary); }
.nav__actions { display: flex; align-items: center; gap: var(--space-3); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle svg { display: block; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  color: #fff;
  background: var(--color-ink);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 1;
}

.hero__inner {
  position: relative;
  padding-top: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(56px, 8vw, 170px);
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.hero__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide); text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
  margin-bottom: var(--space-6);
}
.hero__tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-aog-critical); box-shadow: 0 0 0 4px rgba(239,68,68,0.25); }
.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: var(--font-weight-black);
  line-height: 1.05;
  text-shadow: 0 2px 6px rgba(11,18,38,0.55), 0 4px 30px rgba(11,18,38,0.55);
}
.hero h1 .accent { color: var(--color-brand-100); }
.hero__sub {
  margin-top: var(--space-6);
  font-size: clamp(17px, 2vw, 21px);
  color: #fff;
  max-width: 640px;
  margin-inline: auto;
  text-shadow: 0 1px 4px rgba(11,18,38,0.65), 0 2px 18px rgba(11,18,38,0.55);
}
.hero__cta { margin-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
/* Stronger contrast for the secondary CTA over the photo */
.hero .btn-on-dark {
  background: rgba(11,18,38,0.45);
  border-color: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero .btn-on-dark:hover { background: rgba(11,18,38,0.62); border-color: rgba(255,255,255,0.75); }

/* ── Trust strip ────────────────────────────────────────────── */
.trust-strip { background: var(--color-ink); color: #fff; border-top: 1px solid rgba(255,255,255,0.08); }
.trust-strip__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding-block: var(--space-8);
}
.trust-stat { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.trust-stat .num { font-size: 26px; font-weight: var(--font-weight-extrabold); color: #fff; letter-spacing: var(--letter-spacing-tight); }
.trust-stat .lbl { font-size: 13px; color: var(--color-neutral-400); }

/* ── Key benefits (numbered grid) ───────────────────────────── */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.benefit {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.benefit:hover { border-color: var(--color-brand-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.benefit__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-5);
}
.benefit__num {
  font-size: 34px; font-weight: var(--font-weight-black);
  color: var(--color-brand-100); line-height: 1;
  letter-spacing: var(--letter-spacing-tight);
}
.benefit__icon { color: var(--color-primary); display: grid; place-items: center; }
.benefit h3 { margin-bottom: var(--space-2); font-size: 18px; }
.benefit p { font-size: 14px; color: var(--color-text-secondary); }

/* ── Capability grid ────────────────────────────────────────── */
.capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.cap {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-weight: var(--font-weight-medium);
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.cap:hover { border-color: var(--color-brand-300); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.cap .tick { color: var(--color-primary); flex-shrink: 0; }

/* ── Image + text feature blocks (overlapping colour panel) ──── */
.feature { padding-block: var(--space-16); }

/* The relative stage: the panel sits in flow and defines the height;
   the photo is absolutely positioned, overlapping it and vertically
   offset so the panel and photo are staggered, alternating sides. */
.feature__row { position: relative; display: flex; }

.feature__media {
  position: absolute; z-index: 0;
  width: 60%;
  right: 0;
  top: calc(-1 * var(--space-12)); bottom: var(--space-12);  /* lifted: photo sits higher than panel */
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.feature__img { width: 100%; height: 100%; object-fit: cover; }

.feature__panel {
  position: relative; z-index: 1;
  width: 56%;
  margin-right: auto;
  background: var(--color-brand-800);   /* logo navy */
  color: #fff;
  padding: clamp(32px, 4vw, 58px);
  box-shadow: var(--shadow-xl);
}

/* Reverse blocks flip the photo to the left, stagger it downward,
   and switch the panel to a sharp aviation red for an alternating rhythm. */
.feature--reverse .feature__media {
  right: auto; left: 0;
  top: var(--space-12); bottom: calc(-1 * var(--space-12));
}
/* The alternate panel uses the logo's bright azure with dark navy text. */
.feature--reverse .feature__panel {
  margin-right: 0; margin-left: auto;
  background: var(--color-brand-400);   /* logo azure */
  color: var(--color-brand-900);
}
.feature--reverse .feature__panel h3 { color: var(--color-brand-900); }
.feature--reverse .feature__panel > p { color: rgba(0,22,56,0.82); }
.feature--reverse .feature__panel .feature__kicker { color: rgba(0,22,56,0.68); }
.feature--reverse .feature__panel .checklist li { color: var(--color-brand-900); }
.feature--reverse .feature__panel .checklist .tick { background: rgba(0,22,56,0.14); color: var(--color-brand-900); }
.feature--reverse .feature__cta { background: var(--color-brand-800); color: #fff; }
.feature--reverse .feature__cta:hover { background: var(--color-brand-900); }

/* Kicker stays soft white on the navy panel. */
.feature__panel .feature__kicker { color: rgba(255,255,255,0.82); }

.feature__kicker {
  display: inline-block;
  font-size: 12px; font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-widest); text-transform: uppercase;
  color: var(--color-brand-200);
  margin-bottom: var(--space-3);
}
.feature__panel h3 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: var(--letter-spacing-tight);
  margin-bottom: var(--space-4);
  color: #fff;
}
.feature__panel > p { color: rgba(255,255,255,0.85); font-size: 17px; margin-bottom: var(--space-6); }
.feature__panel .checklist li { color: #fff; }
.feature__panel .checklist .tick { background: rgba(255,255,255,0.16); color: #fff; }

.feature__cta {
  background: #fff;
  color: var(--color-primary);
  border-radius: var(--radius-full);
  padding: 14px 28px;
  font-size: 15px;
}
.feature__cta:hover { background: rgba(255,255,255,0.88); }

.checklist { list-style: none; display: grid; gap: var(--space-3); margin-bottom: var(--space-8); }
.checklist li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 15px; }
.checklist .tick {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-primary-light); color: var(--color-primary);
  margin-top: 1px;
}

/* ── Ecosystem / closing statement ──────────────────────────── */
.statement { max-width: 820px; margin-inline: auto; text-align: center; }
.statement h2 { font-size: clamp(28px, 4vw, 44px); }
.statement p { font-size: 18px; color: var(--color-neutral-300); margin-top: var(--space-5); }

/* ── Vision & Mission ───────────────────────────────────────── */
.vm { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.vm__card {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  background: var(--color-surface);
}
.vm__card h3 { font-size: 18px; color: var(--color-primary); margin-bottom: var(--space-3); letter-spacing: var(--letter-spacing-widest); text-transform: uppercase; font-weight: var(--font-weight-bold); font-size: 13px; }
.vm__card p { font-size: 18px; font-weight: var(--font-weight-medium); color: var(--color-text); line-height: 1.5; }

/* ── CTA band ────────────────────────────────────────────────── */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-2xl);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}
.cta-band h2 { font-size: clamp(26px, 3.5vw, 38px); }
.cta-band p { margin-top: var(--space-4); font-size: 18px; color: rgba(255,255,255,0.88); max-width: 560px; margin-inline: auto; }
.cta-band .hero__cta { justify-content: center; margin-top: var(--space-8); }
.cta-band .btn-secondary { background: #fff; color: var(--color-primary); border-color: #fff; }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,0.9); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--color-ink); color: var(--color-neutral-300); padding-block: var(--space-16) var(--space-8); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-8); padding-bottom: var(--space-10); border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer__brand img { height: 30px; margin-bottom: var(--space-4); filter: brightness(0) invert(1); }
.footer__brand p { font-size: 14px; max-width: 320px; }
.footer__col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: var(--letter-spacing-wide); color: var(--color-neutral-400); margin-bottom: var(--space-4); font-weight: var(--font-weight-semibold); }
.footer__col ul { list-style: none; display: grid; gap: var(--space-3); }
.footer__col a { font-size: 14px; color: var(--color-neutral-300); transition: color .15s ease; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3); padding-top: var(--space-6); font-size: 13px; color: var(--color-neutral-400); }

/* ── Scroll-reveal animations ───────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
  }
  .reveal.is-visible { opacity: 1; transform: none; }

  /* A gentle settle on the alternating panels as they enter. */
  .feature.reveal .feature__panel { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
  .feature.reveal:not(.is-visible) .feature__panel { transform: scale(.97); }

  /* The full-width photo band drifts up and zooms slightly. */
  .band.reveal img { transition: transform 1.1s cubic-bezier(.2,.7,.2,1); transform: scale(1.08); }
  .band.reveal.is-visible img { transform: scale(1); }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .capabilities { grid-template-columns: repeat(2, 1fr); }
  .trust-strip__inner { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
  .vm { grid-template-columns: 1fr; }
  /* Stack the photo above the panel, with the panel overlapping it slightly. */
  .feature__row { display: block; }
  .feature__media,
  .feature--reverse .feature__media {
    position: relative; right: auto; left: auto;
    top: auto; bottom: auto;
    width: 100%; height: 240px;
  }
  .feature__panel,
  .feature--reverse .feature__panel {
    width: 92%; margin-inline: auto;
    margin-top: calc(-1 * var(--space-10));
  }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .utility-bar__tag { display: none; }
  .utility-bar__inner { justify-content: center; }
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--color-border);
    padding: var(--space-5) var(--space-6); gap: var(--space-4);
  }
  .nav__toggle { display: block; }
  .nav__actions .btn-ghost { display: none; }
  .capabilities { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .section { padding-block: var(--space-16); }
}
