/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Alte Haas Grotesk';
  src: url('assets/fonts/AlteHaasGroteskRegular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alte Haas Grotesk';
  src: url('assets/fonts/AlteHaasGroteskBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Animated properties ---------- */
@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* ---------- Tokens ---------- */
:root {
  --deep-purple: #231651;
  --deep-purple-2: #2c1c63;
  --mint: #D4FBF3;
  --off-white: #F5F7F9;
  --soft-ice: #EFF8F8;
  --ink: #2A2E35;

  --font-display: 'Alte Haas Grotesk', 'Archivo Black', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--deep-purple);
  color: var(--off-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.section-inner--wide { max-width: 1400px; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { line-height: 1.6; }

.section-h2 { color: var(--ink); max-width: 720px; margin-bottom: 48px; }
.section-h2--light { color: var(--off-white); }
.section-h2--center { text-align: center; margin-left: auto; margin-right: auto; }
.h2-accent { color: var(--deep-purple); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--off-white);
  opacity: 0.85;
  margin-bottom: 20px;
}
.eyebrow--ink { color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex-shrink: 0; }
.dot--ink { background: var(--deep-purple); }

/* ---------- Buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.pill:hover { transform: translateY(-1px); opacity: 0.92; }
.pill-mint { background: var(--mint); color: var(--ink); }
.pill-lg { padding: 16px 30px; font-size: 1rem; }
.pill-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Nav ---------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 24px 0;
}
.nav {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px 12px 22px;
  background: rgba(35, 22, 81, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 251, 243, 0.14);
  border-radius: var(--radius-pill);
}
.nav-logo img { height: 22px; width: auto; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 0.92rem; font-weight: 500; opacity: 0.85; }
.nav-links a:hover { opacity: 1; }
.nav-cta-wrap {
  position: relative;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: conic-gradient(
    from var(--angle),
    rgba(212,251,243,0.1) 0deg,
    rgba(212,251,243,0.1) 280deg,
    var(--mint) 325deg,
    #ffffff 350deg,
    rgba(212,251,243,0.1) 360deg
  );
  animation: pill-ring-spin 2.6s linear infinite;
}
.nav-cta-wrap::after {
  content: '';
  position: absolute;
  inset: -7px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(
    from var(--angle),
    transparent 0deg,
    transparent 280deg,
    rgba(212,251,243,0.85) 330deg,
    transparent 360deg
  );
  filter: blur(9px);
  animation: pill-ring-spin 2.6s linear infinite;
}
.nav-cta-wrap .nav-cta {
  position: relative;
  display: flex;
}
@keyframes pill-ring-spin {
  to { --angle: 360deg; }
}
.nav-cta {
  padding: 10px 20px;
  font-size: 0.88rem;
  box-shadow:
    0 0 0 1px rgba(212,251,243,0.35),
    0 0 10px 2px rgba(212,251,243,0.28);
}
.nav-cta:hover {
  box-shadow:
    0 0 0 1px rgba(212,251,243,0.45),
    0 0 14px 3px rgba(212,251,243,0.38);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 150px;
  overflow: hidden;
}
.hero-bg-glow {
  position: absolute;
  top: -160px;
  right: 0px;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(212,251,243,0.18) 0%, rgba(212,251,243,0) 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero-copy h1 { color: var(--off-white); margin-bottom: 22px; }
.hero-sub {
  color: rgba(245, 247, 249, 0.75);
  font-size: 1.08rem;
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-visual { position: relative; height: 580px; }
.dotted-grid {
  position: absolute;
  inset: 20px -40px auto auto;
  width: 340px;
  height: 340px;
  background-image: radial-gradient(rgba(212,251,243,0.35) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.35;
}
.mock-stack {
  position: relative;
  width: 100%;
  height: 100%;
}
.mock-card {
  position: absolute;
  width: 280px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 251, 243, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(212,251,243,0.05);
}
.mock-card--dm {
  top: 0;
  left: 0;
  transform: rotate(-6deg);
  z-index: 4;
  width: 190px;
}
.mock-card--post {
  top: 20px;
  left: 280px;
  transform: rotate(5deg);
  z-index: 3;
  width: 190px;
}
.mock-card--shot2 {
  top: 230px;
  left: 300px;
  transform: rotate(4deg);
  z-index: 2;
  width: 190px;
}
.mock-card--metric {
  top: 350px;
  left: 30px;
  transform: rotate(-4deg);
  z-index: 1;
  width: 190px;
}
.mock-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mock-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), #7fd8c9);
  flex-shrink: 0;
}
.mock-avatar--sm { width: 22px; height: 22px; }
.mock-name { font-size: 0.85rem; font-weight: 600; color: var(--off-white); }
.mock-name--sm { font-size: 0.8rem; }
.mock-sub { font-size: 0.72rem; color: rgba(245,247,249,0.55); }
.mock-msg {
  font-size: 0.78rem;
  line-height: 1.4;
  padding: 9px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  max-width: 90%;
}
.mock-msg--in { background: rgba(255,255,255,0.08); color: rgba(245,247,249,0.85); }
.mock-msg--out { background: var(--mint); color: var(--ink); margin-left: auto; }

.mock-card--shot { padding: 0; overflow: hidden; }
.mock-shot-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mock-reply {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(35, 22, 81, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 251, 243, 0.25);
  color: var(--off-white);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.mock-reply .mock-heart { font-size: 0.82rem; }
.mock-reply--1 { top: 292px; left: 6px; transform: rotate(-3deg); }
.mock-reply--2 { top: 502px; left: 300px; transform: rotate(2deg); }
.mock-post-body { display: flex; flex-direction: column; gap: 8px; }
.mock-eyebrow { font-size: 0.62rem; letter-spacing: 0.12em; color: var(--mint); font-weight: 700; }
.mock-post-line { font-family: var(--font-display); font-size: 1rem; color: var(--off-white); }
.mock-metric-label { font-size: 0.7rem; color: rgba(245,247,249,0.6); margin-bottom: 6px; }
.mock-metric-value { font-family: var(--font-display); font-size: 1.6rem; color: var(--mint); }
.mock-metric-tag { font-size: 0.7rem; color: rgba(212,251,243,0.8); margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--light { background: var(--soft-ice); }
.section--dark { background: var(--deep-purple); }
.section--mint { background: var(--mint); }
.section--offwhite { background: var(--off-white); }

/* ---------- Problem/Gap cards ---------- */
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
}
.card--light {
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 0 24px 48px rgba(35,22,81,0.14), 0 4px 12px rgba(35,22,81,0.08);
}
.card--light h3 { color: var(--ink); margin-bottom: 12px; }
.card--light p { color: rgba(42,46,53,0.72); }

/* ---------- Method ---------- */
.mint-band {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.mint-band-copy h2 { color: var(--off-white); margin-bottom: 20px; }
.mint-band-copy p { color: rgba(245,247,249,0.78); font-size: 1.05rem; }
.mint-band-copy strong { color: var(--mint); }
.mint-band-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(35,22,81,0.18), 0 6px 16px rgba(35,22,81,0.1);
}

/* ---------- Process ---------- */
.process-grid { display: flex; align-items: stretch; gap: 0; }
.process-card {
  flex: 1;
  min-width: 0;
  padding: 28px 24px 30px;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  box-shadow: 0 20px 40px rgba(35,22,81,0.1), 0 4px 12px rgba(35,22,81,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}
.process-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 52px rgba(35,22,81,0.16), 0 6px 16px rgba(35,22,81,0.08);
}
.process-arrow {
  flex: 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(35,22,81,0.28);
}
.process-arrow svg { width: 24px; height: 12px; }

.process-icon {
  height: 56px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
}
.process-icon svg { width: 56px; height: 56px; overflow: visible; }
.process-icon .p-line {
  fill: none;
  stroke: var(--deep-purple);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  opacity: 0.8;
  transition: stroke-dashoffset 0.8s ease, opacity 0.3s ease;
}
.process-icon .p-line--fill {
  fill: rgba(212,251,243,0.5);
  transition: stroke-dashoffset 0.8s ease, opacity 0.3s ease, fill 0.6s ease 0.5s;
}
.process-icon .p-check { stroke: var(--deep-purple); transition-delay: 0.35s; }
.process-icon .p-dot {
  fill: var(--deep-purple);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.3);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.process-icon .p-dot:nth-of-type(1) { transition-delay: 0.05s; }
.process-icon .p-dot:nth-of-type(2) { transition-delay: 0.55s; }
.process-icon .p-dot:nth-of-type(3) { transition-delay: 0.65s; }
.process-icon .p-dot:nth-of-type(4) { transition-delay: 0.75s; }
.process-card.in-view .process-icon .p-line { stroke-dashoffset: 0; opacity: 1; }
.process-card.in-view .process-icon .p-dot { opacity: 1; transform: scale(1); }

.process-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.process-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  color: rgba(35,22,81,0.35);
}
.process-card h3 { color: var(--ink); }
.process-card p:last-child { color: rgba(42,46,53,0.7); }

.process-card--highlight {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(35,22,81,0.14);
  box-shadow: 0 24px 50px rgba(35,22,81,0.14), 0 4px 12px rgba(35,22,81,0.06), 0 0 46px rgba(35,22,81,0.2);
}
.process-card--highlight:hover {
  box-shadow: 0 32px 60px rgba(35,22,81,0.2), 0 6px 18px rgba(35,22,81,0.08), 0 0 64px rgba(35,22,81,0.3);
}
.process-card--highlight .process-num { color: var(--deep-purple); }

/* ---------- Proof ---------- */
.case-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  margin-bottom: 40px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.18);
}
.case-card:last-child { margin-bottom: 0; }

.case-study {
  display: flex;
  align-items: center;
  gap: 32px;
}
.case-text { flex: 0 0 570px; }
.case-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.6rem;
  color: rgba(35,22,81,0.4);
  margin-bottom: 10px;
}
.case-client { color: var(--ink); font-size: 1.3rem; margin-bottom: 16px; }
.case-stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 18px;
}
.case-text p { color: rgba(42,46,53,0.72); max-width: 460px; }

.case-visual { position: relative; flex: 1; min-width: 700px; height: 500px; }
.case-shot {
  position: absolute;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(35,22,81,0.1);
  box-shadow: 0 20px 40px rgba(35,22,81,0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.case-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-shot--main { width: 440px; height: 270px; top: 20px; right: 220px; transform: rotate(-4deg); z-index: 1; }
.case-shot--secondary { width: 250px; height: 380px; top: 0; right: 40px; transform: rotate(5deg); z-index: 2; }
.case-shot--payment1 { width: 225px; height: 150px; top: 290px; right: 195px; transform: rotate(-8deg); z-index: 3; }
.case-shot--payment2 { width: 225px; height: 150px; top: 320px; right: 15px; transform: rotate(7deg); z-index: 4; }
.case-visual .case-shot:hover {
  transform: rotate(0deg) scale(1.08);
  box-shadow: 0 26px 50px rgba(35,22,81,0.3);
  z-index: 9;
}

/* ---------- Who ---------- */
.who-list { max-width: 640px; display: flex; flex-direction: column; gap: 18px; }
.who-list li {
  font-size: 1.05rem;
  color: rgba(245,247,249,0.88);
  padding-left: 28px;
  position: relative;
}
.who-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 64px 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(212,251,243,0.14), rgba(212,251,243,0.02));
  border: 1px solid rgba(212,251,243,0.3);
  box-shadow: 0 0 80px rgba(212,251,243,0.08);
}
.final-cta h2 { color: var(--off-white); margin-bottom: 14px; }
.final-cta p { color: rgba(245,247,249,0.72); max-width: 480px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.footer { padding: 70px 0 0; background: var(--deep-purple); border-top: 1px solid rgba(212,251,243,0.1); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 50px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col--center { align-items: center; text-align: center; }
.footer-col--right { align-items: flex-end; text-align: right; }
.footer-heading { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(245,247,249,0.5); margin-bottom: 4px; }
.footer-col a { font-size: 0.92rem; color: rgba(245,247,249,0.75); }
.footer-col a:hover { color: var(--mint); }
.footer-tagline { font-size: 0.85rem; color: rgba(245,247,249,0.55); }
.footer-bottom {
  text-align: center;
  padding: 22px 0 100px;
  font-size: 0.8rem;
  color: rgba(245,247,249,0.4);
  border-top: 1px solid rgba(212,251,243,0.08);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 580px; margin-top: 20px; }
  .mint-band { grid-template-columns: 1fr; }
  .mint-band-media { order: -1; }
  .process-grid { flex-direction: column; gap: 20px; }
  .process-arrow { display: none; }
  .card-row { grid-template-columns: 1fr; }
  .case-card { padding: 36px 28px; }
  .case-study { flex-direction: column; align-items: stretch; gap: 32px; }
  .case-text { flex: none; }
  .case-visual {
    position: static;
    flex: none;
    min-width: 0;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .case-shot {
    position: static;
    width: 100%;
    height: auto;
    top: auto; left: auto; right: auto;
    transform: none;
  }
  .case-shot--main, .case-shot--secondary { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .case-shot--payment1, .case-shot--payment2 { aspect-ratio: 1 / 1; }
  .case-visual .case-shot:hover { transform: scale(1.03); }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col--center, .footer-col--right { align-items: center; text-align: center; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .nav { padding: 10px 10px 10px 18px; }
  .hero-visual { height: 460px; }
  .mock-card--dm { left: 0; top: 0; width: 130px; }
  .mock-card--post { left: 180px; top: 20px; width: 150px; }
  .mock-card--shot2 { left: 190px; top: 180px; width: 130px; }
  .mock-card--metric { left: 0; top: 250px; width: 150px; }
  .mock-reply--1 { top: 201px; left: 4px; }
  .mock-reply--2 { top: 367px; left: 190px; }
  .case-card { padding: 28px 20px; }
  .case-visual { gap: 8px; }

  .hero-bg-glow {
    top: auto;
    bottom: 40px;
    right: -220px;
    width: 620px;
    height: 620px;
  }

  .nav-cta-wrap {
    padding: 0;
    background: none;
    animation: none;
  }
  .nav-cta-wrap::after { content: none; }
}
