/* ==========================================================================
   AFX Marketing — Landing Page
   Token system: ink (near-black navy) hero/case bands, paper (light) body,
   magenta as the single brand accent, "shear" clip-path as signature motif
   echoing the diagonal cuts in the AFX wordmark.
   ========================================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@600,700&f[]=general-sans@400,500,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --ink: #0b0a17;
  --ink-2: #15142c;
  --ink-soft: #5a5866;
  --paper: #f7f6fa;
  --paper-raised: #ffffff;
  --line: #e3e1ea;
  --line-dark: rgba(255, 255, 255, 0.14);
  --magenta: #f035ef;
  --magenta-dim: #c027c7;
  --magenta-glow: rgba(240, 53, 239, 0.35);

  --font-display: 'Clash Display', 'General Sans', sans-serif;
  --font-body: 'General Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --cut: 16px;
  --cut-sm: 8px;
  --max: 1180px;
  --edge: clamp(24px, 5vw, 64px);
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; border: none; background: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--edge); padding-right: var(--edge); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--magenta);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* ---- shear signature ---- */
.shear-br {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.shear-tl {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
}
.shear-sm-br {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%);
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 10, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  color: #fff;
}
.logo { display: flex; align-items: center; }
.logo__img { height: 26px; width: auto; flex: none; }
.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}
.nav__links a { transition: color 0.2s ease; }
.nav__links a:hover { color: #fff; }
@media (max-width: 780px) { .nav__links { display: none; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 22px 13px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--magenta);
  color: var(--ink);
  clip-path: polygon(var(--cut-sm) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut-sm));
}
.btn--primary:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.nav .btn--primary:hover { box-shadow: 4px 4px 0 rgba(255,255,255,0.25); }
.btn--ghost {
  color: var(--ink);
  border: 1.5px solid var(--line);
  padding: 12px 22px;
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--on-dark { color: rgba(255,255,255,0.85); border-color: var(--line-dark); }
.btn--on-dark:hover { border-color: #fff; color: #fff; }
.btn svg { width: 15px; height: 15px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding-top: clamp(72px, 12vh, 128px);
  padding-bottom: 0;
}
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero__bg::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 780px;
  max-height: 780px;
  background: radial-gradient(circle, var(--magenta-glow) 0%, rgba(240,53,239,0) 68%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
}
.hero__inner { position: relative; z-index: 1; padding-bottom: 96px; }
.hero .eyebrow { color: rgba(255,255,255,0.7); margin-bottom: 28px; }
.hero__eyebrow-tag {
  border: 1px solid var(--line-dark);
  padding: 7px 14px 7px 12px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  max-width: 15ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--magenta);
}
.hero__sub {
  margin-top: 32px;
  max-width: 46ch;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}
.hero__cta { display: flex; gap: 16px; margin-top: 44px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* stat strip — straddles the hero/body seam */
.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  transform: translateY(50%);
  margin: 0 var(--edge);
}
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; transform: translateY(28px); } }
.stat {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 28px clamp(20px, 3vw, 34px);
}
.stat:not(:last-child) { border-right: none; }
@media (max-width: 720px) { .stat:not(:last-child) { border-right: 1px solid var(--line); border-bottom: none; } }
.stat__num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 42px);
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat__label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
section { position: relative; }
.section { padding: clamp(96px, 13vw, 160px) 0 clamp(72px, 10vw, 120px); }
.section--tight-top { padding-top: clamp(140px, 15vw, 200px); }
.section__head { max-width: 640px; margin-bottom: clamp(48px, 6vw, 72px); }
.section__head .eyebrow { color: var(--magenta-dim); margin-bottom: 18px; }
.section__head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.section--dark .section__head .eyebrow { color: var(--magenta); }
.section--dark .section__head h2 { color: #fff; }

/* ---- about ---- */
.about__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 860px) { .about__body { grid-template-columns: 1fr; } }
.about__lede {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.28;
  letter-spacing: -0.005em;
}
.about__lede b { color: var(--magenta-dim); font-weight: 600; }
.about__text { font-size: 16px; line-height: 1.75; color: var(--ink-soft); }
.about__text + .about__text { margin-top: 18px; }

.about__highlights {
  margin-top: clamp(36px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 780px) { .about__highlights { grid-template-columns: 1fr; } }
.about__highlight {
  padding: clamp(24px, 3vw, 32px) clamp(24px, 3.4vw, 36px);
  background: var(--paper-raised);
  border-left: 3px solid var(--magenta);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about__highlight .eyebrow { color: var(--magenta-dim); }
.about__highlight strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.32;
  color: var(--ink);
}
.about__highlight p { font-size: 15px; line-height: 1.75; color: var(--ink-soft); max-width: 70ch; }

/* ---- segments ---- */
.segments__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .segments__grid { grid-template-columns: 1fr; } }
.segment {
  background: var(--paper-raised);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 0.25s ease;
}
.segment:hover { background: #fdf8fe; }
.segment__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--magenta-dim);
  padding: 5px 10px;
  border: 1px solid var(--magenta-glow);
  align-self: flex-start;
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px);
}
.segment__businesses {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}
.segment h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
}
.segment p { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }

/* ---- case ---- */
.case { background: var(--ink); color: #fff; }
.case__intro {
  max-width: 62ch;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  margin-top: -12px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } }
.flow__step {
  position: relative;
  padding: 28px 26px 8px 0;
  border-top: 1px solid var(--line-dark);
}
.flow__step:not(:last-child) { margin-right: 22px; }
@media (max-width: 900px) {
  .flow__step { padding: 22px 0 22px 26px; border-top: none; border-left: 1px solid var(--line-dark); margin-right: 0 !important; }
}
.flow__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--magenta);
  letter-spacing: 0.06em;
}
.flow__step h4 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
}
.flow__step p { margin-top: 10px; font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.62); }
.flow__arrow {
  display: none;
  position: absolute;
  right: -12px;
  top: 22px;
  color: var(--magenta);
}
@media (min-width: 901px) { .flow__step:not(:last-child) .flow__arrow { display: block; } }

/* ---- final cta ---- */
.finalcta {
  background: linear-gradient(135deg, var(--ink) 0%, #1c0a2e 100%);
  color: #fff;
  text-align: center;
  padding: clamp(88px, 12vw, 140px) 0;
}
.finalcta h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.08;
  max-width: 18ch;
  margin: 0 auto;
  letter-spacing: -0.01em;
}
.finalcta h2 em { font-style: normal; color: var(--magenta); }
.finalcta p {
  margin: 24px auto 0;
  max-width: 46ch;
  color: rgba(255,255,255,0.65);
  font-size: 16px;
  line-height: 1.65;
}
.finalcta .btn { margin-top: 40px; }
.finalcta .btn--primary { padding: 17px 30px 17px 32px; font-size: 15px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: rgba(255,255,255,0.55); border-top: 1px solid var(--line-dark); }
.footer__inner {
  padding: 48px 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer .logo__img { height: 30px; }
.footer__tagline { margin-top: 10px; font-size: 13px; max-width: 30ch; color: rgba(255,255,255,0.4); }
.footer__location {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
}
.footer__links { display: flex; gap: 28px; font-size: 13.5px; }
.footer__links a { transition: color 0.2s ease; }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.35);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
