/* =========================================================
   OPOLO — BRAND SYSTEM
   ========================================================= */

:root {
  --black: #050505;
  --white: #FFFFFF;

  --acid: #BBFD66;
  --blue: #5667FF;

  --page-bg: var(--black);
  --page-fg: var(--white);
  --hairline: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.3);
  --header-bg: rgba(5, 5, 5, 0.72);

  --header-height: 78px;

  --display:
    "Poppins",
    "Arial Black",
    Arial,
    Helvetica,
    sans-serif;

  --body:
    "Work Sans",
    Arial,
    Helvetica,
    sans-serif;

  --mono:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
}

:root[data-theme="light"] {
  --page-bg: var(--white);
  --page-fg: var(--black);
  --hairline: rgba(5, 5, 5, 0.14);
  --border-strong: rgba(5, 5, 5, 0.3);
  --header-bg: rgba(255, 255, 255, 0.72);
}


/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  background: var(--page-bg);
  color: var(--page-fg);
  font-family: var(--body);
  transition: background 200ms ease, color 200ms ease;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

section[id] {
  scroll-margin-top: var(--header-height);
}


/* =========================================================
   GLOBAL
   ========================================================= */

.container {
  width: min(1450px, calc(100% - 80px));
  margin: 0 auto;
}

.section {
  padding: 120px 0;
}

.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.mono {
  font-family: var(--mono);
}

.blue {
  color: var(--blue);
  margin-left: 0.07em;
}

.acid {
  background: var(--acid);
  color: var(--black);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.45;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  padding: 14px 18px;

  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.045em;

  transition:
    transform 150ms ease,
    opacity 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.button-acid {
  background: var(--acid);
  color: var(--black);
  border-color: var(--acid);
}

.button-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}


/* =========================================================
   NAVIGATION
   ========================================================= */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;

  height: var(--header-height);

  display: flex;
  align-items: center;

  border-bottom: 1px solid var(--hairline);

  background: var(--header-bg);
  color: var(--page-fg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 200ms ease;
}

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

  width: 100%;
}

.logo {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  padding: 12px 20px;
  margin: 0;

  border: 1px solid var(--border-strong);
  border-radius: 999px;

  background: transparent;
  color: var(--page-fg);

  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    border-color 150ms ease,
    color 150ms ease;
}

.nav-trigger:hover,
.nav-trigger:focus-visible {
  border-color: var(--acid);
  color: var(--acid);
}

.theme-toggle {
  position: relative;

  width: 44px;
  height: 24px;
  padding: 0;

  border: 1px solid var(--border-strong);
  border-radius: 999px;

  background: transparent;

  cursor: pointer;
}

.theme-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;

  width: 18px;
  height: 18px;

  border-radius: 50%;
  background: var(--acid);

  transition: transform 200ms ease;
}

[data-theme="light"] .theme-toggle-knob {
  transform: translateX(20px);
}


/* =========================================================
   NAV OVERLAY (CARD STACK MENU)
   ========================================================= */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;

  opacity: 0;
  transition: opacity 260ms ease;
}

.nav-overlay.is-open {
  opacity: 1;
}

.nav-overlay-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nav-overlay-close {
  position: absolute;
  top: 24px;
  right: max(24px, calc((100% - 1450px) / 2 + 40px));
  z-index: 2;

  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--hairline);
  border-radius: 50%;

  background: transparent;
  color: var(--white);
  font-size: 16px;

  cursor: pointer;

  transition:
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.nav-overlay-close:hover,
.nav-overlay-close:focus-visible {
  border-color: var(--acid);
  color: var(--acid);
  transform: rotate(90deg);
}

.nav-stack {
  position: absolute;
  inset: 0;
}

.nav-card {
  position: absolute;
  top: 50%;
  left: 50%;

  width: min(80vw, 320px);
  height: min(60vh, 420px);

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 28px;

  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);

  background: var(--white);
  color: var(--black);

  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;

  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);

  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.nav-card:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

.nav-card[aria-hidden="true"] {
  pointer-events: none;
}

.nav-card--dark {
  background: var(--black);
  color: var(--white);
}

.nav-card--acid {
  background: var(--acid);
  color: var(--black);
}

.nav-card-index {
  position: absolute;
  top: 24px;
  left: 28px;

  font-family: var(--mono);
  font-size: 10px;
  opacity: 0.5;
}

.nav-card h3 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 0.9;
}

.nav-card p {
  max-width: 240px;
  margin: 0;

  font-size: 15px;
  line-height: 1.5;
  opacity: 0.6;
}

.nav-stack-hint {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-card {
    transition: opacity 200ms ease, transform 200ms ease;
  }
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 700px;

  padding: 65px 0 110px;

  overflow: hidden;
}

.hero-orb {
  position: absolute;

  width: 430px;
  height: 430px;

  right: -130px;
  top: -85px;

  border-radius: 50%;

  background: var(--acid);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(280px, 0.52fr);

  gap: 60px;

  align-items: end;

  margin-top: 40px;
}

.hero-title {
  margin: 0;

  overflow-wrap: break-word;

  font-size: clamp(
    4rem,
    10vw,
    10rem
  );

  line-height: 0.76;
}

.hero-subline {
  max-width: 620px;

  margin-top: 25px;

  padding-top: 16px;

  border-top: 1px solid var(--hairline);
}

.hero-subline-title {
  font-size: 28px;
  line-height: 0.95;
}

.hero-subline-copy {
  margin: 12px 0 0;

  font-size: 18px;
  line-height: 1.65;
}

.hero-copy {
  padding-bottom: 5px;
}

.hero-copy p {
  margin: 0;

  font-size: 21px;
  line-height: 1.65;
}

.hero-copy .button {
  margin-top: 28px;
}


/* =========================================================
   PROBLEM / OPPORTUNITY
   ========================================================= */

.opportunity-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.8fr)
    minmax(0, 1.2fr);

  gap: 80px;

  align-items: end;
}

.opportunity-grid > div:first-child {
  min-width: 0;
}

.opportunity-title {
  margin: 20px 0 0;

  overflow-wrap: break-word;

  font-size: clamp(
    3.5rem,
    5vw,
    8rem
  );

  line-height: 0.77;
}

.opportunity-copy > p:first-child {
  margin: 0;

  font-size: 32px;
  line-height: 1.3;
}

.opportunity-copy > p:nth-child(2) {
  max-width: 650px;

  margin-top: 25px;

  font-size: 19px;
  line-height: 1.7;
}

.problem-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 12px;

  margin-top: 35px;
}

.problem-card {
  padding: 18px;

  border: 1px solid var(--hairline);
  border-radius: 14px;
}

.problem-card h3 {
  margin: 45px 0 0;

  font-size: 27px;
  line-height: 0.9;
}


/* =========================================================
   INTELLIGENCE
   ========================================================= */

.intelligence-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.82fr)
    minmax(0, 1.18fr);

  gap: 80px;
}

.intelligence-grid > div:first-child {
  min-width: 0;
}

.intelligence-title {
  margin: 20px 0 0;

  overflow-wrap: break-word;

  font-size: clamp(
    3.5rem,
    5vw,
    7rem
  );

  line-height: 0.78;
}

.intelligence-intro {
  padding-top: 40px;
}

.intelligence-intro > p:first-child {
  margin: 0;

  font-size: 30px;
  line-height: 1.3;
}

.intelligence-intro > p:nth-child(2) {
  max-width: 650px;

  margin-top: 22px;

  font-size: 19px;
  line-height: 1.7;
}

.intelligence-cards {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 1px;

  margin-top: 45px;

  overflow: hidden;

  border: 1px solid var(--hairline);
  border-radius: 18px;

  background: var(--hairline);
}

.intelligence-card {
  min-height: 250px;

  padding: 25px;

  background: var(--white);
  color: var(--black);
}

.intelligence-card.black {
  background: var(--black);
  color: var(--white);
}

.intelligence-card.acid {
  background: var(--acid);
  color: var(--black);
}

.card-number {
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0.45;
}

.intelligence-card h3 {
  margin: 60px 0 0;

  font-size: 34px;
  line-height: 0.9;
}

.intelligence-card p {
  margin: 14px 0 0;

  font-size: 16px;
  line-height: 1.55;
}


/* =========================================================
   GTM
   ========================================================= */

.gtm-header {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(280px, 0.8fr);

  gap: 80px;

  align-items: end;
}

.gtm-header > div:first-child {
  min-width: 0;
}

.gtm-title {
  margin: 20px 0 0;

  overflow-wrap: break-word;

  font-size: clamp(
    3.5rem,
    5vw,
    7rem
  );

  line-height: 0.76;
}

.gtm-copy p:first-child {
  margin: 0;

  font-size: 30px;
  line-height: 1.3;
}

.gtm-copy p:last-child {
  margin-top: 22px;

  font-size: 19px;
  line-height: 1.7;
}

.gtm-grid {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  margin-top: 60px;

  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.gtm-item {
  min-height: 300px;

  padding: 28px;

  border-right: 1px solid var(--hairline);
}

.gtm-item:last-child {
  border-right: none;
}

.gtm-item h3 {
  margin: 80px 0 0;

  font-size: 34px;
  line-height: 0.9;
}

.gtm-item p {
  margin-top: 14px;

  font-size: 16px;
}


/* =========================================================
   EXECUTION
   ========================================================= */

.execution-header {
  display: flex;

  justify-content: space-between;
  align-items: end;

  gap: 50px;
}

.execution-title {
  margin: 20px 0 0;

  font-size: clamp(
    4rem,
    8vw,
    8rem
  );

  line-height: 0.77;
}

.execution-description {
  max-width: 420px;

  margin: 0;

  font-size: 21px;
  line-height: 1.7;
}

.execution-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 16px;

  margin-top: 60px;
}

.execution-card {
  min-height: 360px;

  padding: 28px;

  border-radius: 22px;

  border: 1px solid var(--hairline);

  background: var(--white);
  color: var(--black);
}

.execution-card.black {
  background: var(--black);
  color: var(--white);
}

.execution-card.acid {
  background: var(--acid);
  color: var(--black);
}

.execution-card h3 {
  margin: 80px 0 0;

  font-size: 40px;
  line-height: 0.88;
}

.execution-card p {
  max-width: 300px;

  margin-top: 20px;

  font-size: 16px;
  line-height: 1.6;
}


/* =========================================================
   PROOF
   ========================================================= */

.proof-header {
  display: flex;

  justify-content: space-between;
  align-items: end;

  gap: 40px;
}

.proof-title {
  margin: 20px 0 0;

  font-size: clamp(
    4rem,
    7vw,
    8rem
  );

  line-height: 0.77;
}

.proof-description {
  max-width: 350px;

  margin: 0;

  font-size: 16px;
  line-height: 1.6;

  text-align: right;
}

.proof-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 20px;

  margin-top: 60px;
}

.project {
  overflow: hidden;

  border-radius: 24px;

  border: 1px solid var(--hairline);
}

.project-visual {
  position: relative;

  min-height: 420px;

  padding: 28px;
}

.project-light {
  background: var(--white);
  color: var(--black);
}

.project-dark {
  background: var(--black);
  color: var(--white);
}

.project-title {
  margin: 90px 0 0;

  font-size: 64px;

  line-height: 0.8;
}

.project-description {
  position: absolute;

  left: 28px;
  right: 28px;
  bottom: 25px;

  font-family: var(--mono);

  font-size: 10px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-orb {
  position: absolute;

  width: 270px;
  height: 270px;

  right: -80px;
  bottom: -85px;

  border-radius: 50%;

  background: var(--acid);
}


/* =========================================================
   OFFER
   ========================================================= */

.offer-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.75fr)
    minmax(0, 1.25fr);

  gap: 80px;
}

.offer-grid > div:first-child {
  min-width: 0;
}

.offer-title {
  margin: 20px 0 0;

  overflow-wrap: break-word;

  font-size: clamp(
    3.5rem,
    5vw,
    7rem
  );

  line-height: 0.76;
}

.offer-cards {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 16px;
}

.offer-card {
  min-height: 300px;

  padding: 26px;

  border: 1px solid var(--hairline);

  border-radius: 22px;

  background: var(--white);
  color: var(--black);
}

.offer-card.black {
  background: var(--black);
  color: var(--white);
}

.offer-card.acid {
  background: var(--acid);
  color: var(--black);
}

.offer-card h3 {
  margin: 70px 0 0;

  font-size: 32px;

  line-height: 0.9;
}

.offer-card p {
  margin-top: 18px;

  font-size: 16px;

  line-height: 1.6;
}


/* =========================================================
   CTA
   ========================================================= */

.cta-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  gap: 60px;

  align-items: end;
}

.cta-title {
  margin: 20px 0 0;

  font-size: clamp(
    4rem,
    9vw,
    9rem
  );

  line-height: 0.76;
}

.cta-copy {
  max-width: 650px;

  margin-top: 30px;

  font-size: 21px;

  line-height: 1.6;
}

.footer {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  margin-top: 70px;

  padding-top: 18px;

  border-top: 1px solid var(--hairline);

  font-family: var(--mono);

  font-size: 10px;

  letter-spacing: 0.14em;

  text-transform: uppercase;

  opacity: 0.5;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {

  .container {
    width: min(
      100% - 40px,
      1450px
    );
  }

  .hero-grid,
  .opportunity-grid,
  .intelligence-grid,
  .gtm-header,
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 550px;
  }

  .intelligence-intro {
    padding-top: 0;
  }

  .gtm-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .gtm-item:nth-child(2) {
    border-right: none;
  }

  .gtm-item:nth-child(3),
  .gtm-item:nth-child(4) {
    border-top: 1px solid var(--hairline);
  }

  .execution-header,
  .proof-header {
    display: block;
  }

  .execution-description {
    margin-top: 25px;
  }

  .proof-description {
    margin-top: 25px;
    text-align: left;
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 650px) {

  :root {
    --header-height: 68px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding: 80px 0;
  }

  .logo {
    font-size: 24px;
  }

  .nav-right {
    gap: 8px;
  }

  .nav-trigger {
    padding: 10px 12px;
    font-size: 9px;
  }

  .nav-right .button {
    padding: 12px 14px;
    font-size: 10px;
  }

  .nav-overlay-close {
    top: 16px;
    right: 16px;
  }

  .hero {
    padding-top: 50px;
  }

  .hero-orb {
    width: 280px;
    height: 280px;

    right: -120px;
    top: -40px;
  }

  .hero-title {
    font-size: clamp(
      3.5rem,
      17vw,
      6rem
    );
  }

  .problem-grid,
  .intelligence-cards,
  .execution-grid,
  .proof-grid,
  .offer-cards {
    grid-template-columns: 1fr;
  }

  .gtm-grid {
    grid-template-columns: 1fr;
  }

  .gtm-item {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }

  .gtm-item:last-child {
    border-bottom: none;
  }

  .project-title {
    font-size: 50px;
  }

  .footer {
    flex-direction: column;
  }
}
