/* ============================================================
   clicktimedia - design tokens
   Design read: agency / performance-marketing landing for SMB
   owners buying Meta Ads management. Bold, energetic, locked
   dark theme, single lime accent (growth / performance coded,
   deliberately not AI-purple, not literal Facebook blue).
   DESIGN_VARIANCE 8 / MOTION_INTENSITY 7 / VISUAL_DENSITY 4
   Radius lock: buttons = pill, cards = 20px, chips = 999px.
   ============================================================ */

:root{
  --bg: #0a0a0b;
  --bg-elevated: #131316;
  --bg-elevated-2: #1a1a1e;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);
  --text: #f4f4f2;
  --text-muted: #a3a3a8;
  --text-dim: #6f6f76;
  --accent: #d6ff3f;
  --accent-dim: #b9dd2f;
  --accent-ink: #0a0a0b;
  --accent-wash: rgba(214,255,63,.10);
  --radius-card: 20px;
  --radius-chip: 999px;
  --radius-input: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}

p{ margin: 0; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
img{ max-width: 100%; display: block; }
.mono{ font-family: var(--font-mono); }

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-input) 0;
  z-index: 200;
}
.skip-link:focus{ left: 0; }

:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }

.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

#navSentinel{ position: absolute; top: 0; height: 1px; width: 1px; pointer-events: none; }

/* fixed grain overlay, never on scrolling containers */
.grain{
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-chip);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9375rem;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.btn:active{ transform: scale(.97); }
.btn--primary{ background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover{ background: var(--accent-dim); transform: translateY(-1px); }
.btn--ghost{ background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover{ border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn--lg{ padding: .9rem 1.85rem; font-size: 1rem; }
.btn--sm{ padding: .6rem 1.2rem; font-size: .875rem; }

/* ---------- nav ---------- */
.nav{
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(10,10,11,.7);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.nav.is-scrolled{ border-bottom-color: var(--border); background: rgba(10,10,11,.92); }
.nav__inner{
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand{ display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand__word{ font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand__accent{ color: var(--accent); }
.nav__links{ display: flex; align-items: center; gap: 2rem; flex: 1; justify-content: center; }
.nav__links a{ font-size: .9375rem; font-weight: 600; color: var(--text-muted); transition: color .2s var(--ease); }
.nav__links a:hover{ color: var(--text); }
.nav__actions{ display: flex; align-items: center; gap: 1rem; }
.nav__toggle{
  display: none; background: transparent; border: 1px solid var(--border-strong);
  color: var(--text); width: 40px; height: 40px; border-radius: var(--radius-input);
  align-items: center; justify-content: center; font-size: 1.25rem; cursor: pointer;
}
.nav__mobile{
  display: none; flex-direction: column; gap: 0; padding: .5rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}
.nav__mobile a{ padding: .875rem 0; font-weight: 600; border-bottom: 1px solid var(--border); }
.nav__mobile .btn{ margin-top: 1rem; width: 100%; }
.nav__mobile.is-open{ display: flex; }

@media (max-width: 1023px){
  .nav__links{ display: none; }
  .nav__actions .btn--sm{ display: none; }
  .nav__toggle{ display: flex; }
}

/* ---------- hero ---------- */
.hero{ padding: 5rem 1.5rem; display: flex; align-items: center; min-height: calc(100dvh - 72px); }
.hero__inner{
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem;
  align-items: center;
}
.hero__title{
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.05;
  font-weight: 700;
  max-width: 14ch;
}
.hero__title em{ font-style: italic; color: var(--accent); line-height: 1.15; padding-bottom: .1em; display: inline-block; }
.hero__subtitle{
  margin-top: 1.5rem; max-width: 46ch;
  font-size: 1.125rem; color: var(--text-muted); line-height: 1.6;
}
.hero__ctas{ display: flex; gap: 1rem; margin-top: 2.25rem; flex-wrap: wrap; }

.hero__visual{ position: relative; }
.chart-card{
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.5);
}
.chart-card__head{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.chart-card__label{ font-size: .875rem; color: var(--text-muted); font-weight: 600; }
.chart-card__pill{
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--accent-wash); color: var(--accent);
  padding: .3rem .7rem; border-radius: var(--radius-chip);
  font-size: .8125rem; font-weight: 700;
}
.chart-svg{ width: 100%; height: auto; overflow: visible; }
.chart-grid{ stroke: var(--border); stroke-width: 1; }
.chart-bar{
  fill: var(--bg-elevated-2);
  transform-origin: bottom;
  animation: growBar .7s var(--ease) both;
  animation-delay: calc(var(--i) * 70ms + 200ms);
}
.chart-line{
  stroke: var(--accent); stroke-width: 2.5; fill: none;
  stroke-dasharray: 400; stroke-dashoffset: 400;
  animation: drawLine 1.4s var(--ease) .3s forwards;
}
.chart-dot{ fill: var(--accent); opacity: 0; animation: fadeIn .4s var(--ease) 1.6s forwards; }
@keyframes growBar{ from{ transform: scaleY(0); opacity: 0; } to{ transform: scaleY(1); opacity: 1; } }
@keyframes drawLine{ to{ stroke-dashoffset: 0; } }
@keyframes fadeIn{ to{ opacity: 1; } }
.chart-card__foot{ display: flex; gap: 2rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.chart-card__foot span{ display: block; font-size: 1.375rem; font-weight: 700; color: var(--text); }
.chart-card__foot small{ display: block; font-size: .8125rem; color: var(--text-dim); margin-top: .15rem; }

@media (max-width: 900px){
  .hero__inner{ grid-template-columns: 1fr; min-height: auto; gap: 2.5rem; }
  .hero{ padding-top: 2.5rem; }
  .hero__title{ max-width: none; }
}

/* ---------- marquee (single use on the page) ---------- */
.marquee{
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden; padding: 1.1rem 0; background: var(--bg-elevated);
}
.marquee__track{
  display: flex; gap: .75rem; width: max-content;
  animation: scrollMarquee 32s linear infinite;
  font-family: var(--font-display); font-weight: 600; font-size: .9375rem;
  color: var(--text-muted); white-space: nowrap;
}
.marquee__track span:nth-child(2n){ color: var(--accent); padding: 0 .25rem; }
@keyframes scrollMarquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee__track{ animation: none; overflow-x: auto; } }

/* ---------- sections ---------- */
.section{ padding: 6rem 0; }
.section--alt{ background: var(--bg-elevated); }
.eyebrow{
  font-size: .75rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--accent); font-weight: 700; margin: 0 0 .75rem;
}
.section__title{
  font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.15;
  max-width: 20ch; margin-bottom: 3rem;
}

/* ---------- bento (5 cells: 1 large tinted + 3 plain + 1 tinted) ---------- */
.bento{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.bento__cell{
  grid-column: span 2;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.bento__cell:hover{ transform: translateY(-4px); border-color: var(--border-strong); }
.bento__cell--lg{ grid-column: span 4; display: grid; grid-template-columns: auto 1fr; gap: 1.25rem 2rem; align-items: start; }
.bento__cell--lg h3{ font-size: 1.375rem; }
.bento__cell--lg p{ max-width: 52ch; }
.bento__cell--tint{ background: linear-gradient(135deg, rgba(214,255,63,.16), var(--bg-elevated) 62%); border-color: rgba(214,255,63,.18); }
.bento__cell--tint2{ background: linear-gradient(135deg, rgba(214,255,63,.13), var(--bg-elevated-2) 68%); border-color: rgba(214,255,63,.14); }
.bento__cell i{ font-size: 1.75rem; color: var(--accent); margin-bottom: 1rem; display: block; }
.bento__cell--lg i{ margin-bottom: 0; grid-row: span 2; }
.bento__cell h3{ font-size: 1.125rem; font-weight: 700; margin-bottom: .5rem; }
.bento__cell p{ font-size: .9375rem; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 780px){
  .bento{ grid-template-columns: 1fr; }
  .bento__cell, .bento__cell--lg{ grid-column: span 1; grid-template-columns: 1fr; }
  .bento__cell--lg i{ grid-row: auto; }
}

/* ---------- steps ---------- */
.steps{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  position: relative;
}
.step{
  border-top: 2px solid var(--border-strong);
  padding-top: 1.5rem;
}
.step__num{ font-family: var(--font-mono); font-size: .875rem; color: var(--accent); font-weight: 500; }
.step h3{ font-size: 1.125rem; font-weight: 700; margin: .6rem 0 .5rem; }
.step p{ font-size: .9375rem; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 900px){
  .steps{ grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- why us (featured stat + list) ---------- */
.why{
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 3.5rem; align-items: center;
}
.why__stat{
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 2.5rem; text-align: left;
}
.why__number{ font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 700; color: var(--accent); line-height: 1; display: block; margin-bottom: .75rem; }
.why__stat p{ color: var(--text-muted); font-size: 1rem; max-width: 26ch; }
.why__list ul{ display: flex; flex-direction: column; gap: 1.75rem; margin-top: 2rem; }
.why__list li{ display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.why__list i{ font-size: 1.375rem; color: var(--accent); margin-top: .2rem; }
.why__list h4{ font-size: 1.0625rem; font-weight: 700; margin-bottom: .25rem; }
.why__list p{ font-size: .9375rem; color: var(--text-muted); line-height: 1.55; }

@media (max-width: 900px){
  .why{ grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- stats grid ---------- */
.stats{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.stat{
  border-top: 1px solid var(--border-strong); padding-top: 1.25rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.stat__num{ font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; color: var(--text); }
.stat__label{ font-size: .875rem; color: var(--text-muted); line-height: 1.4; }
.stats__note{ margin-top: 2rem; font-size: .8125rem; color: var(--text-dim); max-width: 60ch; }

@media (max-width: 780px){
  .stats{ grid-template-columns: 1fr 1fr; }
}

/* ---------- testimonial ---------- */
.testimonial__inner{
  display: flex; align-items: center; gap: 2.5rem; max-width: 760px;
}
.testimonial__photo{
  width: 88px; height: 88px; border-radius: 999px; object-fit: cover;
  border: 2px solid var(--accent); flex-shrink: 0;
}
blockquote{ margin: 0; }
blockquote p{
  font-family: var(--font-display); font-size: 1.375rem; line-height: 1.4; font-weight: 600;
  max-width: 46ch;
}
blockquote footer{ margin-top: 1.25rem; display: flex; flex-direction: column; gap: .1rem; }
blockquote footer strong{ font-size: .9375rem; }
blockquote footer span{ font-size: .875rem; color: var(--text-muted); }

@media (max-width: 700px){
  .testimonial__inner{ flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

/* ---------- cta band ---------- */
.cta{ position: relative; overflow: hidden; padding: 6rem 0; }
.cta__bg{ position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(40%); }
.cta__scrim{ position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,.85), rgba(10,10,11,.94)); }
.cta__inner{ position: relative; text-align: center; max-width: 640px; margin: 0 auto; }
.cta__inner h2{ font-size: clamp(1.875rem, 3.5vw, 2.75rem); font-weight: 700; line-height: 1.15; }
.cta__inner p{ margin-top: 1rem; color: var(--text-muted); font-size: 1.0625rem; }
.cta__inner .btn{ margin-top: 2rem; }

/* ---------- contact ---------- */
.contact__inner{ text-align: center; }
.contact__intro{ margin-top: .75rem; color: var(--text-muted); font-size: 1.0625rem; }
.contact__cards{
  margin-top: 2.5rem; display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap;
}
.contact__card{
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 1.25rem 1.75rem; min-width: 260px; text-align: left;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.contact__card:hover{ transform: translateY(-3px); border-color: var(--accent); }
.contact__card i{ font-size: 1.5rem; color: var(--accent); }
.contact__card span{ display: block; font-size: .8125rem; color: var(--text-dim); }
.contact__card strong{ display: block; font-size: 1.0625rem; margin-top: .1rem; }

/* ---------- footer ---------- */
.footer{ border-top: 1px solid var(--border); padding: 3rem 0 2rem; }
.footer__inner{
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding-bottom: 2rem; border-bottom: 1px solid var(--border);
}
.footer__links{ display: flex; gap: 1.75rem; }
.footer__links a{ font-size: .9375rem; color: var(--text-muted); font-weight: 600; }
.footer__links a:hover{ color: var(--text); }
.footer__social{ display: flex; gap: .75rem; }
.footer__social a{
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.footer__social a:hover{ border-color: var(--accent); color: var(--accent); }
.footer__bottom{
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.5rem; font-size: .8125rem; color: var(--text-dim);
}

@media (max-width: 640px){
  .footer__inner{ flex-direction: column; align-items: flex-start; }
}

/* ---------- scroll reveal ---------- */
.reveal{
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
  .chart-bar, .chart-line, .chart-dot{ animation: none; opacity: 1; stroke-dashoffset: 0; transform: none; }
}
