/* ================================================================
   HOME PAGE v2 — exact implementation of stitch reference design
   All colours, spacing, shapes, shadows pulled from code.html
   ================================================================ */

/* ── Google Fonts ── */

/* ── Tokens ── */
/* ── Material Symbols ── */
.ms {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* ── Reset / base — defined globally in reset.css ── */
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ── Container ── */
.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter-mob);
}
@media (min-width: 768px) { .wrap { padding-inline: var(--gutter-desk); } }

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Cinematic background image */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

/* Left navy diagonal overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(1,21,80,0.9);
  clip-path: polygon(0 0, 60% 0, 40% 100%, 0 100%);
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 10;
  padding-block: 80px;
  width: 100%;
}

.hero__inner { max-width: 640px; }

/* Eyebrow pill */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-family: var(--f-body);
  font-size: var(--fs-label-sm);
  font-weight: 600;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  margin-bottom: 40px;
}
.hero__badge .ms { font-size: 20px; color: var(--coral); }

/* H1 */
.hero__h1 {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 44px;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 40px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
@media (min-width: 768px) {
  .hero__h1 { font-size: 56px; line-height: 64px; }
}
.hero__h1 .accent { color: var(--coral); }

/* Body copy */
.hero__body {
  font-family: var(--f-body);
  font-size: var(--fs-body-lg);
  line-height: 28px;
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin-bottom: 56px;
}

/* CTA row */
.hero__ctas { display: flex; flex-wrap: wrap; gap: 24px; }

/* Angled clip-path button */
.btn-angled {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 40px;
  font-family: var(--f-body);
  font-size: var(--fs-label-md);
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.btn-angled:active { transform: scale(0.97); }
.btn-angled--white { background: #fff; color: var(--primary); }
.btn-angled--white:hover { background: #f3f2ff; }
.btn-angled--crimson { background: var(--crimson); color: #fff; }
.btn-angled--crimson:hover { filter: brightness(1.1); }
.btn-angled .ms { font-size: 20px; }

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  animation: bounce 2s ease-in-out infinite;
  z-index: 10;
}
.hero__scroll span:first-child {
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ════════════════════════════════════════════
   TRUST BANNER (stats)
════════════════════════════════════════════ */
.stats {
  background: var(--coral);
  padding-block: 64px;
  border-top:    1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
.stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) { .stats__grid { grid-template-columns: repeat(3,1fr); gap: 48px; } }

.stats__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.stats__item--bordered {
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-block: 40px;
}
@media (min-width: 768px) {
  .stats__item--bordered {
    border-top: none; border-bottom: none;
    border-left:  1px solid rgba(255,255,255,0.1);
    border-right: 1px solid rgba(255,255,255,0.1);
    padding-block: 0;
  }
}
.stats__value {
  font-family: var(--f-display);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-tight);
  color: #ffffff;
  transition: transform 0.2s ease;
}
.stats__item:hover .stats__value { transform: scale(1.1); }
.stats__label {
  font-family: var(--f-body);
  font-size: var(--fs-label-md);
  font-weight: 700;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

/* ════════════════════════════════════════════
   SPLIT-GATE SECTION
════════════════════════════════════════════ */
.split {
  padding-block: var(--section-gap);
  background: var(--surface-low);
  overflow: hidden;
}

.split__wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 32px;
  position: relative;
  height: auto;
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) {
  .split__wrap { height: 800px; display: block; }
}

/* Ambient glow behind panels */
.split__glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: rgba(1,21,80,0.05);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

/* Shared panel base */
.panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.5s ease, z-index 0s, box-shadow 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  border-radius: 0;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) { .panel { flex-direction: row; } }

.panel:hover { transform: translateY(-8px); box-shadow: 0 24px 80px rgba(14,22,51,0.18); }

/* Left / Tech panel */
.panel--tech {
  background: #fff;
  border: 1px solid rgba(197,197,209,0.3);
  box-shadow: var(--shadow-serene);
  width: 100%;
  margin-bottom: 32px;
  z-index: 10;
}
@media (min-width: 1024px) {
  .panel--tech {
    position: absolute;
    top: 0; left: 0;
    width: 60%; height: 600px;
    margin-bottom: 0;
  }
  .panel--tech:hover { z-index: 30; }
}

/* Right / Vision panel */
.panel--vision {
  background: var(--primary);
  color: #fff;
  width: 100%;
  flex-direction: column-reverse;
}
@media (min-width: 768px) { .panel--vision { flex-direction: row-reverse; } }
@media (min-width: 1024px) {
  .panel--vision {
    position: absolute;
    bottom: 0; right: 0;
    width: 60%; height: 600px;
    z-index: 20;
  }
  .panel--vision:hover { z-index: 30; }
}

/* Panel image half */
.panel__img {
  width: 100%;
  height: 256px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
@media (min-width: 768px) { .panel__img { width: 50%; height: auto; } }
.panel__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.panel:hover .panel__img img { transform: scale(1.1); }
.panel__img-overlay { position: absolute; inset: 0; }
.panel--tech .panel__img-overlay  { background: rgba(27,44,101,0.1); }
.panel--vision .panel__img-overlay { background: rgba(1,21,80,0.3); }

/* Panel text half */
.panel__body {
  width: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) { .panel__body { width: 50%; } }

.panel__tag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--f-body);
  font-size: var(--fs-label-sm);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.panel__tag .ms { font-size: 20px; }
.panel--tech  .panel__tag { color: var(--crimson); }
.panel--vision .panel__tag { color: var(--coral); }

.panel__h2 {
  font-family: var(--f-display);
  font-size: var(--fs-head-lg);
  font-weight: 600;
  line-height: var(--lh-head-lg);
  margin-bottom: 24px;
}
.panel--tech  .panel__h2 { color: var(--primary); }
.panel--vision .panel__h2 { color: #fff; }

.panel__p {
  font-family: var(--f-body);
  font-size: var(--fs-body-md);
  line-height: 24px;
  margin-bottom: 32px;
}
.panel--tech  .panel__p { color: var(--on-surface-var); }
.panel--vision .panel__p { color: rgba(255,255,255,0.7); }

/* Ghost link (tech panel) */
.panel__link-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-body);
  font-size: var(--fs-label-md);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  transition: gap 0.3s ease;
}
.panel__link-ghost:hover { gap: 24px; }

/* Angled CTA (vision panel) */
.panel__btn-angled {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--f-body);
  font-size: var(--fs-label-md);
  font-weight: 700;
  color: #fff;
  background: var(--crimson);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: filter 0.2s ease;
  align-self: flex-start;
}
.panel__btn-angled:hover { filter: brightness(1.1); }
.panel__btn-angled:active { transform: scale(0.97); }

/* ════════════════════════════════════════════
   QUOTE SECTION
════════════════════════════════════════════ */
.quote {
  padding-block: var(--section-gap);
  background: #fff;
  position: relative;
  overflow: hidden;
}
.quote__blob-tl {
  position: absolute;
  top: -96px; left: -96px;
  width: 384px; height: 384px;
  background: var(--surface-low);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: 0;
  opacity: 0.5;
}
.quote__blob-br {
  position: absolute;
  bottom: -96px; right: -96px;
  width: 384px; height: 384px;
  background: rgba(1,21,80,0.05);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  z-index: 0;
  opacity: 0.5;
}
.quote__inner {
  max-width: 896px;
  margin-inline: auto;
  padding-inline: var(--gutter-mob);
  text-align: center;
  position: relative;
  z-index: 1;
}
.quote__icon {
  font-size: 64px;
  color: rgba(1,21,80,0.2);
  display: block;
  margin-bottom: 32px;
}
.quote__text {
  font-family: var(--f-display);
  font-size: var(--fs-head-lg);
  font-weight: 600;
  line-height: var(--lh-head-lg);
  color: var(--primary);
  font-style: italic;
  margin-bottom: 40px;
}
.quote__rule {
  width: 64px; height: 4px;
  background: var(--crimson);
  border: none;
  border-radius: 9999px;
  margin-inline: auto;
  margin-bottom: 24px;
}
.quote__attr {
  font-family: var(--f-body);
  font-size: var(--fs-label-md);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--on-surface-var);
}

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.footer {
  background: var(--primary);
  width: 100%;
  padding-block: var(--section-gap);
}
.footer__wrap {
  max-width: var(--max-w);
  margin-inline: auto;
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-bottom: 80px;
}
@media (min-width: 768px) {
  .footer__top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

.footer__brand { max-width: 448px; }
.footer__brand-name {
  font-family: var(--f-display);
  font-size: var(--fs-head-lg);
  font-weight: 700;
  line-height: var(--lh-head-lg);
  color: #fff;
  margin-bottom: 24px;
}
.footer__brand-desc {
  font-family: var(--f-body);
  font-size: var(--fs-body-md);
  line-height: 24px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}
.footer__socials { display: flex; align-items: center; gap: 16px; }
.footer__social {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
}
.footer__social:hover { background: rgba(255,255,255,0.1); }
.footer__social .ms { font-size: 22px; }

.footer__links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
@media (min-width: 768px) { .footer__links-grid { gap: 96px; } }

.footer__col-heading {
  font-family: var(--f-body);
  font-size: var(--fs-label-md);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 32px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 16px; }
.footer__col a {
  font-family: var(--f-body);
  font-size: var(--fs-body-md);
  line-height: 24px;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
}
.footer__col a:hover { color: #fff; }

/* Footer bottom bar */
.footer__bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}
@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}
.footer__copy {
  font-family: var(--f-body);
  font-size: var(--fs-body-md);
  line-height: 24px;
  color: rgba(255,255,255,0.4);
}
.footer__location {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-body);
  font-size: var(--fs-label-sm);
  font-style: italic;
  color: rgba(255,255,255,0.4);
}
.footer__location .ms { font-size: 18px; }
.footer__member-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer__member-logo img:hover { opacity: 1; }

/* ── nav-inner: centring wrapper for nav bars & hero content ──
   Plain div class — not affected by reset.css element rules. ── */
.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
@media (min-width: 768px) {
  .nav-inner { padding-inline: 64px; }
}

/* Hero uses nav-inner but needs left-align, not space-between */
.hero__content .nav-inner {
  align-items: flex-start;
  justify-content: flex-start;
  max-width: none;
  margin-inline: 0;
}

/* ── hero-pad: left-gutter spacer for hero text ──
   Matches gutter values but does NOT centre or constrain width.
   Text starts at the same horizontal position as navbar content. ── */
.hero-pad {
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 768px) {
  .hero-pad {
    padding-left: 64px;
    padding-right: 0;
  }
}
