/* Adspike — mash-up design implementation */

:root {
  --bg: #FCFBF9;
  --ink: #1F2226;
  --muted: #6E6960;
  --mono-gray: #78736C;
  --faint: #A29B92;
  --line: #E4DFD7;
  --line-strong: #1F2226;
  --panel: #F4F1EC;
  --orange: #F16700;
  --amber: #FFB100;
  --dark: #1F2226;
  --dark-line: #33373C;
  --dark-muted: #A8A29A;
  --dark-faint: #7A756E;
  --grad: linear-gradient(135deg, #FFC400 0%, #F16700 100%);
  --display: 'Bricolage Grotesque', 'Manrope', Helvetica, sans-serif;
  --body: 'Manrope', Helvetica, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: #E05F00; }
img { max-width: 100%; }
::selection { background: var(--orange); color: #fff; }
input::placeholder { color: var(--faint); }

.container { max-width: 1320px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
@media (max-width: 640px) {
  .container { padding-left: 20px; padding-right: 20px; }
}

.mono-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 22px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 251, 249, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: 80px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-logo img { height: 36px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px; border-radius: 8px;
  background: var(--grad); color: #fff !important;
  font-size: 14.5px; font-weight: 600; white-space: nowrap; border: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.07); }
.btn-lg { height: 56px; padding: 0 30px; border-radius: 10px; font-size: 16.5px; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 30px; border-radius: 10px;
  border: 1px solid #D8D2C8; color: var(--ink); font-size: 16.5px; font-weight: 600;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.nav-toggle svg { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .site-nav {
    display: none;
    position: absolute; top: 80px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav .btn { margin-top: 12px; }
}
@media (min-width: 961px) {
  .site-nav .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr));
}
.hero-copy { padding: clamp(56px, 7vw, 104px) clamp(0px, 5vw, 72px) clamp(56px, 7vw, 104px) 0; }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.kicker-squares { display: flex; gap: 3px; align-items: flex-end; }
.kicker-squares span { display: block; border-radius: 1px; }
.kicker-squares span:nth-child(1) { width: 6px; height: 6px; background: #FFC400; }
.kicker-squares span:nth-child(2) { width: 6px; height: 6px; background: #F89400; }
.kicker-squares span:nth-child(3) { width: 9px; height: 9px; background: var(--orange); }
.hero-kicker em {
  font-family: var(--mono); font-style: normal; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mono-gray);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.03; letter-spacing: -0.032em; font-weight: 700;
  margin: 0 0 30px; max-width: 15em; text-wrap: pretty;
}
.hero-sub { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 30em; margin: 0 0 42px; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-art { padding: clamp(24px, 4vw, 104px) 0 clamp(40px, 7vw, 104px) clamp(0px, 5vw, 72px); display: flex; align-items: center; }
.hero-art img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); display: block; }

/* ---------- Stats band ---------- */
.stats { border-bottom: 1px solid var(--line); }
.stats .container {
  padding-top: 38px; padding-bottom: 38px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 28px 40px; align-items: center;
}
.stat { display: flex; align-items: baseline; gap: 14px; }
.stat b {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 3.2vw, 44px); letter-spacing: -0.03em; line-height: 1;
}
.stat b span { color: var(--orange); }
.stat small { font-family: var(--mono); font-size: 12.5px; color: var(--mono-gray); }
.stats-note { font-family: var(--mono); font-size: 11.5px; color: var(--faint); line-height: 1.7; }

/* ---------- Brands strip ---------- */
.brands { background: var(--panel); border-top: 1px solid var(--line); margin-top: 112px; }
.brands + .platform { margin-top: 0; }
.brands .container {
  padding-top: 30px; padding-bottom: 30px;
  display: flex; align-items: center; gap: 24px 44px; flex-wrap: wrap;
}
.brands-label {
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint);
}
.brands-row { display: flex; align-items: center; gap: 28px 40px; flex-wrap: wrap; }
.brands-row img {
  width: auto; display: block;
  filter: brightness(0); opacity: 0.5;
  transition: opacity 0.3s ease;
}
.brands-row img:hover { opacity: 0.85; }
.brands-row img.reveal { opacity: 0; }
.brands-row img.reveal.in { opacity: 0.5; }
.brands-row img.reveal.in:hover { opacity: 0.85; }
@media (max-width: 700px) {
  .brands .container { display: block; }
  .brands-label { display: block; margin-bottom: 24px; }
  .brands-row {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 26px 20px; justify-items: center; align-items: center;
  }
  .brands-row img { max-width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding-top: 112px; }
.section-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: clamp(24px, 3vw, 64px); align-items: end;
  padding-bottom: 46px; border-bottom: 1px solid var(--line-strong);
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08; letter-spacing: -0.028em; font-weight: 700; margin: 0;
}
.section-head p { font-size: 17.5px; line-height: 1.65; color: var(--muted); margin: 0; max-width: 34em; text-wrap: pretty; }

/* ---------- Card grids (agentic + services) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  border-left: 1px solid var(--line);
}
.card {
  display: block; padding: 38px 34px 42px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--ink); background: var(--bg);
}
a.card:hover { background: var(--panel); color: var(--ink); }
.card-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--orange); margin-bottom: 42px; }
.card h3 { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.018em; margin: 0 0 13px; }
.card p { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin: 0 0 26px; text-wrap: pretty; }
.card-metric { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.card-cta { background: var(--panel); }
.card-cta .card-link { font-family: var(--mono); font-size: 12px; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.card-img {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--panel); padding: 18px;
  display: flex; align-items: center; justify-content: center;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 6px; }

/* Below the 3-column width, interleave the agentic cards with their
   matching illustrations: at 2 columns each row pairs a card with its
   image; at 1 column they alternate card → image → card → image. */
@media (max-width: 1039px) {
  #agentic .card:nth-child(1) { order: 1; }
  #agentic .card-img:nth-child(4) { order: 2; }
  #agentic .card:nth-child(2) { order: 3; }
  #agentic .card-img:nth-child(5) { order: 4; }
  #agentic .card:nth-child(3) { order: 5; }
  #agentic .card-img:nth-child(6) { order: 6; }
}

/* ---------- Results ---------- */
.results-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 46px; border-bottom: 1px solid var(--line-strong); }
.results-head h2 {
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08; letter-spacing: -0.028em; font-weight: 700; margin: 0;
}
.link-mono { font-family: var(--mono); font-size: 12.5px; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: 1px; background: var(--line);
}
.case { background: var(--bg); padding: 42px 34px 46px; }
.case-sector { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 30px; }
.case-figure {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(44px, 4.6vw, 62px); letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(135deg, #FFB100 0%, #F16700 70%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.case-metric { font-family: var(--display); font-size: 17px; font-weight: 600; margin: 12px 0 18px; }
.case p { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin: 0; text-wrap: pretty; }

/* ---------- Process ---------- */
.process-wrap { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 80px); align-items: start; }
.process-intro { flex: 1 1 260px; max-width: 380px; position: sticky; top: 120px; }
.process-intro h2 { font-family: var(--display); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.028em; font-weight: 700; margin: 0 0 22px; }
.process-intro p { font-size: 16.5px; line-height: 1.65; color: var(--muted); margin: 0; text-wrap: pretty; }
.process-steps { flex: 3 1 420px; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 7em 1fr; gap: 32px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: start; }
.step-week { font-family: var(--mono); font-size: 12px; color: var(--orange); padding-top: 7px; }
.step h3 { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.018em; margin: 0 0 10px; }
.step p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 40em; text-wrap: pretty; }
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; gap: 8px; }
  .process-intro { position: static; }
}

/* ---------- Platform ---------- */
.platform { margin-top: 112px; background: var(--dark); color: var(--bg); }
.platform .container {
  padding-top: 108px; padding-bottom: 108px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: clamp(40px, 5vw, 80px); align-items: start;
}
.platform .mono-label { color: var(--amber); }
.platform h2 { font-family: var(--display); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.028em; font-weight: 700; margin: 0 0 26px; max-width: 16em; }
.platform-sub { font-size: 17.5px; line-height: 1.65; color: var(--dark-muted); margin: 0 0 38px; max-width: 32em; text-wrap: pretty; }
.platform-points { display: grid; gap: 1px; background: var(--dark-line); border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); }
.platform-point { background: var(--dark); padding: 21px 0; display: grid; grid-template-columns: 3.5em 1fr; gap: 24px; align-items: baseline; }
.platform-point b { font-family: var(--mono); font-weight: 400; font-size: 11.5px; color: var(--amber); }
.platform-point span { font-size: 16.5px; line-height: 1.55; color: var(--bg); }
.platform-links { display: flex; gap: 28px; margin-top: 36px; align-items: center; flex-wrap: wrap; }
.platform-links .btn { height: 50px; padding: 0 26px; border-radius: 9px; font-size: 15.5px; }
.link-quiz { font-family: var(--mono); font-size: 12.5px; color: var(--bg); border-bottom: 1px solid var(--amber); padding-bottom: 3px; }
.link-quiz:hover { color: var(--amber); }
.platform-art img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--dark-line); display: block; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(120deg, #FFB100 0%, #F16700 62%, #E05F00 100%); color: #fff; }
.contact .container {
  padding-top: 96px; padding-bottom: 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: clamp(40px, 5vw, 80px); align-items: center;
}
.contact h2 {
  font-family: var(--display);
  font-size: clamp(34px, 4.3vw, 54px);
  line-height: 1.05; letter-spacing: -0.032em; font-weight: 700;
  margin: 0 0 20px; max-width: 18em;
}
.contact-sub { font-size: 18px; line-height: 1.6; margin: 0; max-width: 32em; color: rgba(255,255,255,0.92); text-wrap: pretty; }
.lead-form { display: grid; gap: 12px; }
.lead-form input {
  height: 54px; padding: 0 18px; border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.5); background: rgba(255,255,255,0.12);
  color: #fff; font-family: var(--body); font-size: 16px; outline: none;
}
.lead-form input:focus { border-color: #fff; background: rgba(255,255,255,0.2); }
.lead-form button {
  height: 54px; border: none; border-radius: 9px;
  background: var(--dark); color: #fff;
  font-family: var(--display); font-size: 16px; font-weight: 600; cursor: pointer;
}
.lead-form button:hover { background: #fff; color: var(--dark); }
.lead-form button:disabled { opacity: 0.6; cursor: wait; }
.form-note { font-family: var(--mono); font-size: 11.5px; color: rgba(255,255,255,0.85); margin-top: 4px; }
.form-status { font-family: var(--mono); font-size: 13px; margin-top: 4px; min-height: 1.4em; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-muted); }
.footer-cols { padding-top: 68px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 48px; }
.footer-brand { flex: 1 1 260px; }
.footer-logo { display: inline-flex; align-items: center; background: var(--bg); border-radius: 8px; padding: 12px 18px; margin-bottom: 26px; }
.footer-logo img { height: 30px; width: auto; display: block; }
.footer-brand address { font-family: var(--mono); font-style: normal; font-size: 12.5px; line-height: 1.9; margin: 0 0 18px; }
.footer-contact-link { font-family: var(--mono); font-size: 12.5px; color: var(--bg); border-bottom: 1px solid var(--amber); padding-bottom: 3px; }
.footer-contact-link:hover { color: var(--amber); }
.footer-col { flex: 0 1 170px; }
.footer-col h4 {
  font-family: var(--mono); font-weight: 400; font-size: 11.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--dark-faint); margin: 0 0 18px;
}
.footer-col nav { display: grid; gap: 10px; font-size: 14.5px; }
.footer-col a { color: var(--dark-muted); }
.footer-col a:hover { color: var(--bg); }
.footer-bottom {
  padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--dark-line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px;
  font-family: var(--mono); font-size: 11.5px;
}

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }

.card, .card-img {
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s ease,
    background-color 0.3s ease;
}
.card:hover, .card-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(31, 34, 38, 0.10);
  position: relative; z-index: 1;
}
.card-img { overflow: hidden; }
.card-img img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.card-img:hover img { transform: scale(1.04); }

.btn, .btn-ghost { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease, border-color 0.3s ease; }
.btn:hover, .btn-ghost:hover { transform: translateY(-2px); }

.hero-art img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.hero-art:hover img { transform: scale(1.02) rotate(-0.5deg); }

.platform-art img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.platform-art:hover img { transform: translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card-img, .btn, .btn-ghost, .card-img img, .hero-art img, .platform-art img { transition: none; }
  .card:hover, .card-img:hover, .btn:hover, .btn-ghost:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; z-index: 100;
  left: 20px; right: 20px; bottom: 20px;
  max-width: 480px; margin-left: auto;
  background: var(--dark); color: var(--dark-muted);
  border: 1px solid var(--dark-line); border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.cookie-banner p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; }
.cookie-banner a { color: var(--bg); border-bottom: 1px solid var(--amber); padding-bottom: 1px; }
.cookie-banner a:hover { color: var(--amber); }
.cookie-actions { display: flex; gap: 12px; align-items: center; }
.ck-accept {
  height: 42px; padding: 0 22px; border: none; border-radius: 8px;
  background: var(--grad); color: #fff;
  font-family: var(--body); font-size: 14px; font-weight: 600; cursor: pointer;
}
.ck-accept:hover { filter: brightness(1.07); }
.ck-decline {
  height: 42px; padding: 0 22px; border-radius: 8px;
  background: none; border: 1px solid var(--dark-line); color: var(--dark-muted);
  font-family: var(--body); font-size: 14px; font-weight: 600; cursor: pointer;
}
.ck-decline:hover { border-color: var(--dark-muted); color: var(--bg); }

/* ---------- Privacy / simple pages ---------- */
.page-simple { padding: 80px 0 120px; }
.page-simple h1 { font-family: var(--display); font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; margin: 0 0 32px; }
.page-simple h2 { font-family: var(--display); font-size: 22px; margin: 40px 0 12px; }
.page-simple p, .page-simple li { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 46em; }
