/* GritCargo — High-Value Cargo
   Fonts loaded via <link> in HTML. */

/* ── DESIGN TOKENS ── */
:root {
  --deep-navy:      #253045;
  --signal-green:   #B4EE2B;
  --cargo-black:    #0A0A0A;
  --white:          #FFFFFF;
  --off-white:      #F1F1F1;
  --mist-blue:      #E7F0FF;
  --ink-text:       #212121;
  --slate-grey:     #636363;
  --navy-tint:      #37526E;
  --hairline:       #E4E6EA;
  --alert-amber:    #D96908;
  --fg-on-dark:     var(--white);
  --fg2-on-dark:    #AEB6C2;
  --border-on-dark: rgba(255,255,255,.14);

  --font-display: 'Open Sans', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --radius-chip:  10px;
  --radius-card:  14px;
  --radius-panel: 18px;
  --radius-pill:  999px;

  --shadow-sm:   0 1px 2px rgba(10,10,10,.06), 0 1px 3px rgba(10,10,10,.08);
  --shadow-md:   0 4px 12px rgba(10,10,10,.08), 0 2px 4px rgba(10,10,10,.05);
  --shadow-lg:   0 18px 48px rgba(10,10,10,.14), 0 6px 16px rgba(10,10,10,.08);
  --shadow-navy: 0 18px 48px rgba(37,48,69,.28);

  --ease: cubic-bezier(.22,.61,.36,1);
  --nav-h: 60px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--deep-navy);
  color: var(--ink-text);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }

/* ── SKIP LINK ── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 200;
  background: var(--signal-green);
  color: var(--cargo-black);
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  transition: top 0.15s;
}
.skip-link:focus { top: 1rem; }

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate-grey);
}
.eyebrow.accent { color: var(--signal-green); }

.hero {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  line-height: 1.6;
  color: var(--ink-text);
}
.small {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--slate-grey);
}
.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
}
.accent { color: var(--signal-green); }

/* ── WORDMARK ── */
.gc-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--signal-green);
}

/* ── GRULE (green rule) ── */
.grule {
  width: 64px;
  height: 6px;
  background: var(--signal-green);
  border-radius: 999px;
  flex: none;
}

/* ── CHIP ── */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: none;
  background: var(--signal-green);
  border-radius: var(--radius-chip);
}
.chip img { width: 58%; height: 58%; object-fit: contain; }
.chip.sm { width: 44px; height: 44px; }
.chip.lg { width: 84px; height: 84px; }

/* ── CARD ── */
.card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ── FOCUS RINGS ── */
:focus-visible {
  outline: 2px solid var(--signal-green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── PILL BUTTON ── */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--signal-green);
  color: var(--cargo-black);
  transition: filter 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn-pill:hover  { filter: brightness(1.08); }
.btn-pill:active { transform: scale(.97); }

.tag-ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-pill);
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45);
}

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 2rem;
  background: rgba(10, 12, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background 0.3s;
}
.nav-logo {
  font-size: 1.3rem;
  flex: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  overflow: hidden;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg2-on-dark);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; background: rgba(255,255,255,.07); }

.nav-cta {
  flex: none;
  font-size: 0.82rem;
  padding: 0.5rem 1.1rem;
}

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-progress {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  height: 2px;
  background: var(--signal-green);
  z-index: 101;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── MOBILE NAV ── */
.mobile-nav {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(10, 12, 18, 0.97);
  display: flex;
  flex-direction: column;
  padding: 1rem 2rem 2rem;
  gap: 0.25rem;
  transform: translateY(-110%);
  visibility: hidden;
  transition: transform 0.28s var(--ease), visibility 0.28s;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-nav.open {
  transform: translateY(0);
  visibility: visible;
}
.mobile-nav-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg2-on-dark);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color 0.15s;
}
.mobile-nav-link:hover { color: #fff; }

/* ── SLIDE / SECTION BASE ── */
.slide {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: calc(var(--nav-h) + 3rem) 6vw 4rem;
}
.bg-light { background: var(--off-white); }
.bg-navy  { background: var(--deep-navy); color: var(--fg-on-dark); }
.s-dark   { color: var(--fg-on-dark); }

.slide-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.col { display: flex; flex-direction: column; gap: 1.4rem; }

.slide-num {
  position: absolute;
  bottom: 2rem;
  right: 6vw;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--slate-grey);
  z-index: 4;
}
.bleed .slide-num, .bg-navy .slide-num { color: var(--fg2-on-dark); }

/* ── FULL-BLEED IMAGE SLIDES ── */
.bleed { overflow: hidden; }
.bleed-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1b2335;
  z-index: 0;
}
.scrim { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.bleed .slide-inner { position: relative; z-index: 2; }

.scrim-cover {
  background:
    linear-gradient(90deg, rgba(15,21,33,.82) 0%, rgba(15,21,33,.55) 42%, rgba(15,21,33,.12) 80%),
    linear-gradient(0deg, rgba(15,21,33,.7) 0%, rgba(15,21,33,0) 38%);
}
.scrim-exposure {
  background:
    linear-gradient(90deg, rgba(15,21,33,.85) 0%, rgba(15,21,33,.5) 45%, rgba(15,21,33,.12) 78%),
    linear-gradient(0deg, rgba(15,21,33,.82) 0%, rgba(15,21,33,.1) 55%);
}
.scrim-cost {
  background:
    linear-gradient(90deg, rgba(24,32,50,.92) 0%, rgba(24,32,50,.68) 50%, rgba(24,32,50,.5) 100%),
    linear-gradient(0deg, rgba(24,32,50,.6) 0%, rgba(24,32,50,.1) 55%);
}
.scrim-outcome {
  background:
    linear-gradient(90deg, rgba(15,21,33,.8) 0%, rgba(15,21,33,.42) 48%, rgba(15,21,33,.05) 82%),
    linear-gradient(0deg, rgba(15,21,33,.7) 14%, rgba(15,21,33,0) 46%);
}

/* ── COVER ── */
.cover { justify-content: flex-end; padding-bottom: 5rem; }
.cover-inner { gap: 0; }
.cover-topbar {
  position: absolute;
  top: calc(var(--nav-h) + 1.5rem);
  left: 6vw;
  right: 6vw;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  z-index: 3;
}
.partner { display: flex; align-items: center; gap: 0.9rem; }
.partner span { font-size: 0.9rem; color: rgba(255,255,255,.72); text-align: right; }
.partner img { height: 30px; width: auto; flex: none; filter: brightness(0) invert(1); opacity: .92; }

.cover-content { display: flex; flex-direction: column; gap: 1.1rem; max-width: 880px; }
.cover-content .hero { color: var(--white); max-width: 18ch; }
.cover-sub {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.7vw, 1.5rem);
  line-height: 1.4;
  color: rgba(255,255,255,.9);
  max-width: 48ch;
}
.cover-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.cover-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  color: rgba(255,255,255,.8);
  margin-top: 0.5rem;
}

/* ── EXPOSURE ── */
.exposure { justify-content: space-between; }
.exposure-inner { gap: 2.5rem; flex: 1; justify-content: space-between; padding-top: 1rem; }
.exposure-lead { display: flex; flex-direction: column; gap: 1.1rem; }
.risk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.risk {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.1rem;
  align-items: start;
  background: rgba(16,23,38,.66);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.risk .card-title { color: var(--white); margin-bottom: 0.4rem; font-size: 1.1rem; }
.risk .small { color: #C8D2DF; }

/* ── COST ── */
.cost-inner { gap: 1.2rem; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 2rem;
}
.stat { padding: 0 2.5rem; border-left: 1px solid rgba(255,255,255,.16); }
.stat:first-child { padding-left: 0; border-left: none; }
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--signal-green);
  font-variant-numeric: tabular-nums;
}
.stat .num small { font-size: 0.4em; font-weight: 600; letter-spacing: -0.01em; }
.stat .desc { font-size: 0.95rem; line-height: 1.45; color: #C8D2DF; margin-top: 1.1rem; max-width: 30ch; }
.stat .desc strong { color: #fff; }
.stat .src { font-family: var(--font-mono); font-size: 0.8rem; color: #7E8FA4; margin-top: 0.8rem; letter-spacing: 0.02em; }

/* ── SOLUTION ── */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 1rem; }
.prod { display: flex; flex-direction: column; padding: 1.4rem; }
.prod .shot { height: 200px; display: flex; align-items: center; justify-content: center; }
.prod .shot img { max-height: 100%; max-width: 100%; object-fit: contain; }
.prod .card-title { margin-top: 0.9rem; font-size: 1.35rem; }
.prole {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--slate-grey);
  margin-top: 0.5rem;
}
.prod .small { margin-top: 0.8rem; }
.note { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }

/* ── HOW IT WORKS ── */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 2rem;
  margin-top: 2.5rem;
}
.step { display: flex; flex-direction: column; }
.step .stepno {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: #9FB0C4;
  margin-top: 1.4rem;
}
.step h3, .step .card-title { font-family: var(--font-display); font-weight: 700; }
.step .when {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--signal-green);
  margin-top: 0.5rem;
}
.step p { margin-top: 1rem; max-width: 30ch; }
.arrow { display: flex; align-items: center; justify-content: center; height: 84px; }
.arrow svg { width: 64px; height: 28px; }

/* ── GRITCLAW ── */
.claw-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: center;
}
.signal-list { display: flex; flex-direction: column; gap: 1.4rem; margin-top: 1.6rem; }
.signal { display: grid; grid-template-columns: 52px 1fr; gap: 1.1rem; align-items: center; }
.claw-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  color: var(--signal-green);
  margin-top: 1.8rem;
}
.claw-phone { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.claw-phone img {
  max-height: 70vh;
  width: auto;
  border-radius: 28px;
  border: 2px solid rgba(255,255,255,.16);
  box-shadow: 0 24px 56px rgba(0,0,0,.5);
}
.claw-cap { color: #9FB0C4; text-align: center; max-width: 34ch; }

/* ── WHAT YOU GAIN ── */
.gain-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 3rem; align-items: center; margin-top: 1rem; }
.gain-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.gcard { padding: 1.5rem; display: flex; flex-direction: column; }
.gcard .card-title { margin: 1rem 0 0.5rem; font-size: 1.1rem; }
.dash-frame {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.dash-frame .bar { display: flex; align-items: center; gap: 9px; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--hairline); }
.dash-frame .bar i { width: 13px; height: 13px; border-radius: 50%; background: var(--hairline); display: block; }
.dash-frame img { display: block; width: 100%; }
.dash-cap { margin: 1.2rem 0.2rem 0; }

/* ── OUTCOME ── */
.outcome { justify-content: flex-end; padding-bottom: 11rem; }
.outcome-inner { gap: 0; }
.outcome-content { display: flex; flex-direction: column; gap: 1.1rem; max-width: 900px; color: var(--white); }
.outcome-content .cover-sub { max-width: 50ch; }
.cta-row { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.cta-note { font-size: 0.95rem; color: rgba(255,255,255,.82); }
.cta-note strong { color: var(--white); }
.footer-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 96px;
  z-index: 3;
  background: var(--deep-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 6vw;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-band .fl { display: flex; align-items: baseline; gap: 1.4rem; flex-wrap: wrap; }
.footer-band .ftag { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 0.95rem; color: rgba(255,255,255,.7); }
.footer-band .fr { display: flex; align-items: center; gap: 1rem; font-size: 0.9rem; color: rgba(255,255,255,.66); }
.footer-band .fr img { height: 26px; filter: brightness(0) invert(1); opacity: .85; }

/* ── ENTRANCE ANIMATIONS ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  }
  .reveal.visible { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: 0.07s; }
  .reveal.d2 { transition-delay: 0.15s; }
  .reveal.d3 { transition-delay: 0.23s; }
  .reveal.d4 { transition-delay: 0.31s; }
  .reveal.d5 { transition-delay: 0.39s; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-menu-btn { display: flex; }

  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .claw-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .claw-phone { order: -1; }
  .claw-phone img { max-height: 56vh; }
  .gain-grid { grid-template-columns: 1fr; gap: 2rem; }

  .steps { grid-template-columns: 1fr; gap: 0.5rem; }
  .arrow { height: auto; padding: 0.5rem 0; }
  .arrow svg { transform: rotate(90deg); }
  .step p { max-width: none; }
}

@media (max-width: 760px) {
  .risk-row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .stat { padding: 1.2rem 0 0; border-left: none; border-top: 1px solid rgba(255,255,255,.16); }
  .stat:first-child { padding-top: 0; border-top: none; }
  .stat .desc, .step p { max-width: none; }

  .partner span { font-size: 0.78rem; }
  .partner img { height: 24px; }

  .footer-band { flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 1.2rem 6vw; }
}

@media (max-width: 600px) {
  .slide { padding: calc(var(--nav-h) + 1.5rem) 1.25rem 3.5rem; }
  .slide-num { right: 1.25rem; }
  .cover-topbar { left: 1.25rem; right: 1.25rem; top: calc(var(--nav-h) + 1rem); }
  .footer-band { padding: 1.2rem 1.25rem; }
  .prod-grid { grid-template-columns: 1fr; }
  .gain-cards { grid-template-columns: 1fr; }
  .cover { padding-bottom: 4rem; }
  .outcome { padding-bottom: 13rem; }
}
