/* ============================================================
   nomahub — Landing Page
   Design system: Nike-design-analysis (DESIGN.md)
   Dark edition — canvas #0c2328, ink #ffffff
   ============================================================ */

:root {
  /* Colors — dark inversion */
  --ink: #ffffff;
  --on-primary: #0c2328;
  --canvas: #0c2328;
  --soft-cloud: #0f2d34;
  --lift: #122e36;
  --mute: #7a9da6;
  --stone: #4d7880;
  --hairline: #1e4048;
  --hairline-soft: #173238;
  --success: #1eaa52;
  --info: #5b8fff;

  /* Radius */
  --r-none: 0px;
  --r-sm: 18px;
  --r-md: 24px;
  --r-lg: 30px;
  --r-full: 9999px;

  /* Spacing (8px base) */
  --s-xxs: 2px;
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 12px;
  --s-lg: 18px;
  --s-xl: 24px;
  --s-xxl: 30px;
  --s-section: 48px;

  --max: 1440px;
  --gutter: 40px;
}

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

body {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.display {
  font-family: 'Bebas Neue', 'Anton', sans-serif;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.5px;
  font-weight: 400;
}

/* ===========================================================
   Utility bar
   =========================================================== */
.utility-bar {
  background: var(--soft-cloud);
  height: 36px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
}
.utility-bar .wrap {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.utility-bar .left { color: var(--mute); }
.utility-bar .right { display: flex; gap: var(--s-xl); }
.utility-bar a { color: var(--mute); }
.utility-bar a:hover { color: var(--ink); }

/* ===========================================================
   Primary nav
   =========================================================== */
.primary-nav {
  background: var(--canvas);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: inset 0 -1px 0 var(--hairline-soft);
}
.primary-nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-xl);
}
.nav-logo { height: 32px; }
.nav-logo img { height: 32px; width: auto; }
.nav-links {
  display: flex;
  gap: var(--s-xxl);
  font-size: 16px;
  font-weight: 500;
}
.nav-links a { padding: 4px 0; border-bottom: 2px solid transparent; color: var(--mute); }
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: var(--s-md); }

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-sm);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--r-lg);
  border: none;
  cursor: pointer;
  height: 48px;
  padding: 0 32px;
  white-space: nowrap;
  transition: transform 0.12s ease, opacity 0.12s ease;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); opacity: 0.85; }

/* primary = white pill with dark text */
.btn-primary { background: #ffffff; color: #0c2328; }
.btn-primary:hover { background: #e8f5f7; }

/* secondary = lift surface */
.btn-secondary { background: var(--lift); color: var(--ink); border: 1px solid var(--hairline); }
.btn-secondary:hover { background: var(--soft-cloud); }

/* on-image = white pill anchored to dark photography */
.btn-on-image {
  background: #ffffff;
  color: #0c2328;
  height: auto;
  padding: 12px 24px;
  border-radius: var(--r-lg);
  font-weight: 500;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
}

.btn-sm { height: 40px; font-size: 14px; padding: 0 20px; }

/* ===========================================================
   Hero campaign tile
   =========================================================== */
.hero {
  position: relative;
  background: var(--canvas);
  background-size: cover;
  background-position: center right;
  color: var(--ink);
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(9, 30, 36, 0.93) 0%,
      rgba(9, 30, 36, 0.78) 45%,
      rgba(9, 30, 36, 0.22) 100%
    );
}
.hero-grid-lines {
  position: absolute; inset: 0;
  z-index: 2;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 120px 100%;
  mask-image: linear-gradient(180deg, transparent 20%, #000 70%);
}
.hero .wrap { position: relative; z-index: 3; width: 100%; padding-top: 96px; padding-bottom: 64px; }
.hero .eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: var(--s-lg);
}
.hero h1 {
  font-family: 'Bebas Neue','Anton',sans-serif;
  text-transform: uppercase;
  font-size: 132px;
  line-height: 0.9;
  letter-spacing: -0.5px;
  margin-bottom: var(--s-xl);
}
.hero h1 .accent { color: var(--mute); }
.hero p.lead {
  font-size: 18px;
  max-width: 520px;
  color: var(--mute);
  margin-bottom: var(--s-xl);
}
.hero-cta { display: flex; gap: var(--s-md); flex-wrap: wrap; }

/* ===========================================================
   Section scaffolding
   =========================================================== */
section { padding-top: var(--s-section); padding-bottom: var(--s-section); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-xl);
  border-top: 1px solid var(--hairline);
  padding-top: var(--s-xl);
  margin-bottom: var(--s-xl);
}
.section-head h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--ink);
}
.section-head .kicker { font-size: 14px; font-weight: 500; color: var(--mute); }

/* ---- Capabilities ---- */
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-sm); }
.cap { padding: var(--s-xl) 0; border-top: 1px solid var(--hairline); }
.cap .num { font-size: 13px; font-weight: 500; color: var(--stone); margin-bottom: var(--s-md); }
.cap h3 { font-size: 16px; font-weight: 500; line-height: 1.4; margin-bottom: var(--s-sm); color: var(--ink); }
.cap p { font-size: 14px; color: var(--mute); }

/* ===========================================================
   Portfolio
   =========================================================== */
.portfolio-grid { display: grid; grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; gap: var(--s-sm); }

.case { background: var(--soft-cloud); color: var(--ink); display: flex; flex-direction: column; }

.case-media {
  position: relative;
  aspect-ratio: 16 / 11;
  color: #ffffff;
  display: flex;
  align-items: flex-end;
  padding: var(--s-xl);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.case-media .badge {
  position: absolute;
  top: var(--s-md);
  left: var(--s-md);
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--r-lg);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.case-media::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(9, 30, 36, 0.92) 0%,
    rgba(9, 30, 36, 0.60) 50%,
    rgba(9, 30, 36, 0.30) 100%
  );
}
.case-media.alt::before {
  background: linear-gradient(
    to top,
    rgba(9, 24, 36, 0.92) 0%,
    rgba(9, 24, 36, 0.60) 50%,
    rgba(9, 24, 36, 0.30) 100%
  );
}
.case-media h3 {
  position: relative;
  font-family: 'Bebas Neue','Anton',sans-serif;
  text-transform: uppercase;
  font-size: 54px;
  line-height: 0.9;
  letter-spacing: -0.5px;
}
.case-body { padding: var(--s-xl) var(--s-xl) var(--s-xl); }
.case-body .sub { font-size: 14px; color: var(--mute); margin-bottom: var(--s-sm); }
.case-body > p { font-size: 16px; margin-bottom: var(--s-lg); max-width: 46ch; color: var(--mute); }

.case-tags { display: flex; flex-wrap: wrap; gap: var(--s-sm); margin-bottom: var(--s-lg); }
.tag {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mute);
}

.case-metrics { display: flex; gap: var(--s-xxl); border-top: 1px solid var(--hairline); padding-top: var(--s-lg); }
.case-metrics .m .v {
  font-family: 'Bebas Neue','Anton',sans-serif;
  font-size: 40px; line-height: 1; color: var(--ink);
}
.case-metrics .m .l { font-size: 12px; color: var(--mute); font-weight: 500; }

/* ===========================================================
   Trust / Hapvida
   =========================================================== */
.trust {
  background: var(--soft-cloud);
  color: var(--ink);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.trust .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-section);
  align-items: center;
}
.trust .eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 3px;
  text-transform: uppercase; color: var(--mute); margin-bottom: var(--s-lg);
}
.trust h2 {
  font-family: 'Bebas Neue','Anton',sans-serif;
  text-transform: uppercase;
  font-size: 72px; line-height: 0.9; letter-spacing: -0.5px;
  margin-bottom: var(--s-lg); color: var(--ink);
}
.trust > .wrap > div > p { font-size: 18px; color: var(--mute); max-width: 48ch; margin-bottom: var(--s-xl); }
.trust-cta { display: flex; gap: var(--s-md); flex-wrap: wrap; }

.hapvida-card {
  background: var(--lift);
  border: 1px solid var(--hairline);
  padding: var(--s-section) var(--s-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-lg);
  text-align: center;
}
.hapvida-card .logo-wrap { background: #ffffff; border-radius: var(--r-md); padding: 20px 32px; }
.hapvida-card .logo-wrap img { width: 220px; max-width: 100%; height: auto; }
.hapvida-card .label {
  font-size: 12px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; color: var(--stone);
}
.hapvida-card .quote { color: var(--mute); font-size: 15px; max-width: 34ch; }
.hapvida-card .seal {
  display: inline-flex; align-items: center; gap: var(--s-sm);
  font-size: 14px; font-weight: 500; color: var(--success);
}

/* ===========================================================
   Process
   =========================================================== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-sm); }
.step { border-top: 1px solid var(--hairline); padding-top: var(--s-lg); }
.step .n {
  font-family: 'Bebas Neue','Anton',sans-serif;
  font-size: 56px; line-height: 1; color: var(--ink);
  margin-bottom: var(--s-sm);
}
.step h3 { font-size: 16px; font-weight: 500; margin-bottom: var(--s-xs); color: var(--ink); }
.step p { font-size: 14px; color: var(--mute); }

/* ===========================================================
   Team
   =========================================================== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-sm); }
.member { background: var(--soft-cloud); padding: var(--s-xl); border: 1px solid var(--hairline); }
.member .avatar {
  width: 56px; height: 56px; border-radius: var(--r-full);
  background: var(--ink); color: var(--on-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 18px; margin-bottom: var(--s-lg);
}
.member h3 { font-size: 16px; font-weight: 500; color: var(--ink); }
.member .role { font-size: 14px; color: var(--mute); margin-top: var(--s-xs); }

/* ===========================================================
   Final CTA
   =========================================================== */
.final-cta { text-align: center; padding: 96px 0; }
.final-cta h2 {
  font-family: 'Bebas Neue','Anton',sans-serif;
  text-transform: uppercase;
  font-size: 96px; line-height: 0.9; letter-spacing: -0.5px;
  margin-bottom: var(--s-xl); color: var(--ink);
}
.final-cta p { font-size: 18px; color: var(--mute); max-width: 52ch; margin: 0 auto var(--s-xl); }
.final-cta .btns { display: flex; gap: var(--s-md); justify-content: center; flex-wrap: wrap; }

/* ===========================================================
   Footer
   =========================================================== */
footer {
  border-top: 1px solid var(--hairline);
  padding-top: var(--s-section);
  padding-bottom: var(--s-xl);
  background: var(--canvas);
}
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-xl); }
.footer-brand .logo { height: 32px; margin-bottom: var(--s-lg); }
.footer-brand .logo img { height: 32px; width: auto; }
.footer-brand p { font-size: 14px; color: var(--mute); max-width: 30ch; }
.footer-col h4 { font-size: 16px; font-weight: 500; margin-bottom: var(--s-lg); color: var(--ink); }
.footer-col a { display: block; font-size: 14px; color: var(--mute); margin-bottom: var(--s-md); }
.footer-col a:hover { color: var(--ink); }
.footer-fine {
  border-top: 1px solid var(--hairline);
  margin-top: var(--s-section);
  padding-top: var(--s-lg);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-md);
  font-size: 12px; color: var(--stone);
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1023px) {
  :root { --gutter: 28px; }
  section { padding-top: 32px; padding-bottom: 32px; }
  .hero h1 { font-size: 92px; }
  .trust h2 { font-size: 56px; }
  .final-cta h2 { font-size: 72px; }
  .caps, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 768px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .trust .wrap { grid-template-columns: 1fr; gap: var(--s-xl); }
  .team-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .utility-bar .left { display: none; }
}
@media (max-width: 599px) {
  :root { --gutter: 20px; }
  section { padding-top: 24px; padding-bottom: 24px; }
  .hero h1 { font-size: 60px; }
  .hero { min-height: 78vh; }
  .trust h2 { font-size: 44px; }
  .final-cta h2 { font-size: 52px; }
  .caps, .process-grid { grid-template-columns: 1fr; }
  .case-media h3 { font-size: 40px; }
  .footer-cols { grid-template-columns: 1fr; }
  .case-metrics { gap: var(--s-xl); }
}
