/* ============================================================
   Social Lyft — Dark Editorial
   Pure black canvas. Surgical white type. Electric violet accent.
   Adelaide, est. 2022.
   ============================================================ */

:root {
  /* Palette */
  --bg:           #000000;
  --bg-elev:      #0a0a0a;
  --bg-card:      #0d0d0f;
  --surface:      #111114;
  --line:         rgba(255, 255, 255, 0.08);
  --line-strong:  rgba(255, 255, 255, 0.16);
  --ink:          #ffffff;
  --ink-2:        #f5f5f5;
  --ink-soft:     rgba(255, 255, 255, 0.72);
  --ink-mute:     rgba(255, 255, 255, 0.52);
  --ink-faint:    rgba(255, 255, 255, 0.34);

  /* Single accent — electric violet, used like punctuation */
  --purple:       #b794f4;
  --purple-bright:#d6bcfa;
  --purple-deep:  #7c3aed;
  --purple-glow:  rgba(183, 148, 244, 0.22);
  --purple-soft:  rgba(183, 148, 244, 0.10);

  /* Type */
  --font-display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-italic:  'Instrument Serif', 'Times New Roman', serif;
  --font-mono:    ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Layout */
  --container: 1240px;
  --pad: 32px;

  /* Radii */
  --r-sm: 6px;
  --r:    10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Motion */
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   Reset + base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: #000;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-optical-sizing: auto;
}

/* Subtle ambient violet glow — atmospheric depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 12% 8%, rgba(124, 58, 237, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 35% at 92% 92%, rgba(183, 148, 244, 0.10), transparent 65%);
}

/* Fine noise overlay for texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--purple); color: #000; }

main, header, footer, section { position: relative; z-index: 2; }

/* ============================================================
   Container
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
}

@media (max-width: 720px) {
  :root { --pad: 22px; }
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(46px, 7.4vw, 108px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

h2 {
  font-size: clamp(32px, 4.4vw, 60px);
  font-weight: 500;
  letter-spacing: -0.034em;
  line-height: 1.02;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.014em;
  line-height: 1.25;
}

h4 {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}

p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

p.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 620px;
  letter-spacing: -0.005em;
  font-weight: 400;
}

/* The signature italic-purple word — used like punctuation */
.ital {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--purple);
  letter-spacing: -0.02em;
  font-size: 1.04em;
}

/* Purple accent without italic */
.acc { color: var(--purple); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-feature-settings: 'tnum' 1;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  display: inline-block;
  opacity: 0.6;
}

.eyebrow.dot::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 12px var(--purple-glow);
  opacity: 1;
}

/* ============================================================
   Header / Nav
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.028em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.logo img {
  height: 28px;
  width: auto;
  display: block;
  transition: transform 600ms var(--ease);
}

.logo .logo-text {
  word-spacing: -0.04em;
}

.logo:hover img {
  transform: rotate(8deg) scale(1.04);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav ul a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: -0.005em;
  transition: color 200ms var(--ease-snap);
  position: relative;
  padding: 6px 0;
}

.nav ul a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--purple);
  transition: width 320ms var(--ease);
}

.nav ul a:hover,
.nav ul a.active {
  color: var(--ink);
}

.nav ul a.active::after,
.nav ul a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.burger {
  display: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px;
  color: var(--ink);
  background: transparent;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background 220ms var(--ease-snap), border-color 220ms var(--ease-snap), color 220ms var(--ease-snap), transform 220ms var(--ease-snap);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.32);
}

.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 320ms var(--ease);
}

.btn:hover svg { transform: translateX(3px); }

.btn.primary {
  background: var(--ink);
  color: #000;
  border-color: var(--ink);
}

.btn.primary:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: #000;
}

.btn.violet {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 30px -8px var(--purple-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn.violet:hover {
  filter: brightness(1.08);
  box-shadow: 0 14px 40px -8px var(--purple-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn.lg {
  padding: 16px 28px;
  font-size: 14px;
}

.btn.lg svg { width: 16px; height: 16px; }

.btn.ghost {
  background: transparent;
  border-color: transparent;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

/* ============================================================
   Hero — front page
   ============================================================ */
.hero {
  position: relative;
  padding: 80px 0 110px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 1100px;
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.34), transparent 55%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, #000 30%, transparent 100%);
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-bottom: 36px;
  backdrop-filter: blur(6px);
}

.hero-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple);
  position: relative;
}

.hero-tag .dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--purple);
  opacity: 0.4;
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%   { transform: scale(0.8); opacity: 0.5; }
  70%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero h1 {
  max-width: 1100px;
  margin-bottom: 40px;
}

.hero p.lead {
  max-width: 580px;
  margin-bottom: 44px;
  font-size: clamp(17px, 1.5vw, 22px);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-meta {
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.hero-meta .k {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

.hero-meta .v {
  font-size: 16px;
  color: var(--ink);
  font-feature-settings: 'tnum' 1;
}

/* Static hero (subpages) */
.hero-static {
  position: relative;
  padding: 140px 0 120px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-static::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.20), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-static .container { position: relative; z-index: 2; }
.hero-static .eyebrow { margin-bottom: 28px; }
.hero-static h1 { max-width: 980px; margin-bottom: 28px; }
.hero-static p.lead { max-width: 640px; }

/* ============================================================
   Sections
   ============================================================ */
section {
  padding: 128px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

section.compact { padding: 72px 0; }
section.tight { padding: 96px 0; }

.section-head {
  margin-bottom: 72px;
  max-width: 760px;
}

.section-head .eyebrow { margin-bottom: 24px; }
.section-head h2 { margin-bottom: 24px; }

/* ============================================================
   Two column
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 96px;
  align-items: start;
}

.two-col.even { grid-template-columns: 1fr 1fr; }
.two-col.tight { gap: 64px; }
.two-col.flip { grid-template-columns: 7fr 5fr; }
.two-col.center { align-items: center; }

/* ============================================================
   Cards / Service tiles
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 28px;
  transition: border-color 320ms var(--ease), background 320ms var(--ease), transform 320ms var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0;
  transition: opacity 400ms var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.card:hover::before { opacity: 0.6; }

.card .icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(183, 148, 244, 0.04);
  color: var(--purple);
  margin-bottom: 32px;
  transition: background 400ms var(--ease), color 400ms var(--ease);
}

.card:hover .icon {
  background: rgba(183, 148, 244, 0.10);
}

.card .icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.6;
}

.card h3 { margin-bottom: 12px; }

.card p {
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink-soft);
}

.card .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  font-family: var(--font-display);
}

.card .more svg {
  width: 13px;
  height: 13px;
  transition: transform 320ms var(--ease);
}

.card:hover .more { color: var(--purple); }
.card:hover .more svg { transform: translateX(4px); }

.card .num {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}

/* ============================================================
   Stats
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 56px 36px;
  border-right: 1px solid var(--line);
  position: relative;
}

.stat:last-child { border-right: none; }

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 14px;
  font-feature-settings: 'tnum' 1;
}

.stat .num .acc { color: var(--purple); }

.stat .label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ============================================================
   Logo bar
   ============================================================ */
.logo-bar {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.logo-bar .container { text-align: center; }

.logo-bar .label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  margin-bottom: 36px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  align-items: center;
}

.logo-grid .brand {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  text-align: center;
  transition: color 320ms var(--ease-snap);
  white-space: nowrap;
}

.logo-grid .brand:hover { color: var(--ink); }

/* ============================================================
   Form
   ============================================================ */
.form {
  display: grid;
  gap: 22px;
  max-width: 600px;
}

.field { display: grid; gap: 8px; }

.form label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form input,
.form textarea {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  padding: 14px 18px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 220ms var(--ease-snap), box-shadow 220ms var(--ease-snap), background 220ms var(--ease-snap);
}

.form input::placeholder,
.form textarea::placeholder { color: var(--ink-faint); }

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--purple-soft);
}

.form textarea {
  min-height: 160px;
  resize: vertical;
}

.form .btn { justify-self: start; margin-top: 8px; }

/* ============================================================
   List (key/value rows)
   ============================================================ */
.list {
  display: grid;
  border-top: 1px solid var(--line);
}

.list-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.list-row .k {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-feature-settings: 'tnum' 1;
}

.list-row .v {
  font-size: 17px;
  color: var(--ink);
  line-height: 1.5;
}

.list-row .v p { color: var(--ink-soft); margin-top: 4px; font-size: 14px; }

.list-row .v a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: color 220ms var(--ease-snap), border-color 220ms var(--ease-snap);
}

.list-row .v a:hover {
  color: var(--purple);
  border-color: var(--purple);
}

/* ============================================================
   Process (numbered steps)
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step {
  position: relative;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.step .n {
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 28px;
  background: var(--purple);
}

.step .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--purple);
  margin-bottom: 16px;
  font-feature-settings: 'tnum' 1;
}

.step h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.step p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  text-align: center;
  padding: 144px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.16), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.cta .container { position: relative; z-index: 2; }

.cta .eyebrow {
  justify-content: center;
  margin-bottom: 28px;
}

.cta .eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  display: inline-block;
  opacity: 0.6;
}

.cta h2 {
  max-width: 920px;
  margin: 0 auto 28px;
  font-size: clamp(40px, 6vw, 88px);
}

.cta p.lead { margin: 0 auto 44px; }

.cta .actions {
  display: inline-flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   SEO Tool — bespoke
   ============================================================ */
.seo-tool {
  max-width: 940px;
  margin: 0 auto;
}

.seo-input {
  display: flex;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  align-items: center;
  transition: border-color 240ms var(--ease-snap), box-shadow 240ms var(--ease-snap);
  position: relative;
}

.seo-input:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px var(--purple-soft);
}

.seo-input .prefix {
  font-family: var(--font-mono);
  color: var(--ink-mute);
  font-size: 14px;
  user-select: none;
}

.seo-input input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 14px 0;
  font-size: 16px;
  color: var(--ink);
  font-family: inherit;
}

.seo-input input::placeholder { color: var(--ink-faint); }

.seo-input button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--ink);
  color: #000;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background 220ms var(--ease-snap), color 220ms var(--ease-snap);
  flex-shrink: 0;
}

.seo-input button:hover {
  background: var(--purple);
}

.seo-input button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.seo-input button svg { width: 14px; height: 14px; }

/* Result panel */
.seo-result {
  margin-top: 56px;
  display: none;
}

.seo-result.show { display: block; animation: slideUp 600ms var(--ease) both; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.seo-status {
  text-align: center;
  padding: 60px 0;
  color: var(--ink-mute);
  font-size: 14px;
  display: none;
}

.seo-status.show { display: block; }

.seo-status .spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 18px;
  border: 2px solid var(--line);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Score grid */
.score-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

.score-card {
  background: var(--bg-card);
  padding: 32px;
  text-align: center;
  position: relative;
}

.score-card.main { text-align: left; }

.score-card .label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
}

.score-ring {
  --pct: 0;
  --col: var(--purple);
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background:
    conic-gradient(var(--col) calc(var(--pct) * 1%), rgba(255,255,255,0.06) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 700ms var(--ease);
}

.score-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--bg-card);
}

.score-ring .v {
  position: relative;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  z-index: 2;
}

.score-card.main .score-ring {
  width: 140px;
  height: 140px;
  margin: 8px 0 0;
}

.score-card.main .score-ring .v {
  font-size: 38px;
  letter-spacing: -0.02em;
}

.score-card .grade {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.score-card .grade.good   { color: var(--purple-bright); }
.score-card .grade.avg    { color: #c9a778; }
.score-card .grade.poor   { color: #c47878; }

.score-card.main h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.score-card.main p {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 320px;
}

/* SEO tips */
.seo-tips {
  display: grid;
  gap: 12px;
}

.seo-tip {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  align-items: start;
}

.seo-tip .icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.seo-tip.pass .icon { background: var(--purple-soft); color: var(--purple); }
.seo-tip.warn .icon { background: rgba(201, 167, 120, 0.10); color: #c9a778; }
.seo-tip.fail .icon { background: rgba(196, 120, 120, 0.10); color: #c47878; }

.seo-tip .icon svg { width: 16px; height: 16px; stroke-width: 2; }

.seo-tip h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  text-transform: none;
}

.seo-tip p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.seo-error {
  padding: 24px;
  text-align: center;
  background: rgba(196, 120, 120, 0.06);
  border: 1px solid rgba(196, 120, 120, 0.2);
  border-radius: 14px;
  color: #c47878;
  font-size: 14px;
}

/* Pending Lighthouse ring (when PageSpeed fails / times out) */
.score-card.pending .score-ring,
.score-ring.muted {
  background: conic-gradient(rgba(255,255,255,0.08) 0deg, rgba(255,255,255,0.08) 360deg);
  opacity: 0.55;
}
.grade.muted {
  color: var(--ink-faint);
}

/* Pass/warn/fail pill chips */
.summary-pills {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 99px;
  border: 1px solid transparent;
  font-feature-settings: 'tnum' 1;
}
.pill.pass { color: var(--purple-bright); background: var(--purple-soft); border-color: rgba(183, 148, 244, 0.24); }
.pill.warn { color: #c9a778; background: rgba(201, 167, 120, 0.08); border-color: rgba(201, 167, 120, 0.22); }
.pill.fail { color: #c47878; background: rgba(196, 120, 120, 0.08); border-color: rgba(196, 120, 120, 0.22); }

/* Core Web Vitals row */
.vitals-row {
  margin: 28px 0 40px;
  padding: 22px 26px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.vitals-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.vitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.vital {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vital .vk {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.vital .vv {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-feature-settings: 'tnum' 1;
}

/* Lighthouse error fallback note */
.seo-note {
  margin: 24px 0 32px;
  padding: 14px 18px;
  background: rgba(201, 167, 120, 0.05);
  border: 1px solid rgba(201, 167, 120, 0.18);
  border-radius: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.seo-note strong { color: #c9a778; font-weight: 600; }

/* Categorized check sections */
.seo-categories {
  display: grid;
  gap: 32px;
}
.seo-cat {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.seo-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.seo-cat-head h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
}
.seo-cat-head p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 520px;
}
.seo-cat-counts {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.seo-cat-body {
  display: grid;
  gap: 10px;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  padding: 96px 0 40px;
  background: #000;
  color: var(--ink);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  bottom: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.18), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

footer .container { position: relative; z-index: 2; }

.foot-mark {
  font-family: var(--font-display);
  font-size: clamp(59px, 11.5vw, 175px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--ink);
  margin-bottom: 64px;
  white-space: nowrap;
  overflow: hidden;
}

.foot-mark .ital {
  font-size: 1em;
  letter-spacing: -0.05em;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.foot-grid h4 {
  margin-bottom: 22px;
  color: var(--ink-mute);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.foot-grid a,
.foot-grid p {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 220ms var(--ease-snap);
}

.foot-grid a:hover { color: var(--purple); }

.foot-tag {
  color: var(--ink-soft) !important;
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
  margin-top: 16px !important;
}

.foot-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-mute);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.foot-bottom .abn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.socials { display: flex; gap: 8px; }

.socials a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  transition: color 220ms var(--ease-snap), border-color 220ms var(--ease-snap), background 220ms var(--ease-snap);
  margin-bottom: 0 !important;
}

.socials a svg { width: 15px; height: 15px; }

.socials a:hover {
  color: #000;
  background: var(--purple);
  border-color: var(--purple);
}

/* ============================================================
   Marquee — hero scrolling words
   ============================================================ */
.marquee {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg);
}

.marquee-track {
  display: flex;
  gap: 64px;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 64px;
}

.marquee-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  display: inline-block;
}

.marquee-item .ital {
  font-size: 1.1em;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal.d1 { transition-delay: 80ms; }
.reveal.d2 { transition-delay: 160ms; }
.reveal.d3 { transition-delay: 240ms; }
.reveal.d4 { transition-delay: 320ms; }
.reveal.d5 { transition-delay: 400ms; }

/* ============================================================
   Page-load + cross-page transitions
   ============================================================ */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 320ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

::view-transition-old(root) {
  animation-name: pageOut;
}
::view-transition-new(root) {
  animation-name: pageIn;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pageOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-8px); }
}

/* JS-driven fallback for browsers without view-transitions */
body.is-leaving {
  animation: pageOut 240ms var(--ease) forwards;
}

body {
  animation: pageIn 360ms var(--ease) both;
}

/* ============================================================
   Utilities
   ============================================================ */
.center  { text-align: center; }
.muted   { color: var(--ink-mute); }
.divider { height: 1px; background: var(--line); width: 100%; }
.purple  { color: var(--purple); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .two-col,
  .two-col.flip,
  .two-col.even {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .cards,
  .cards.three {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards.two { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stat:nth-child(even) { border-right: none; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .score-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 96px 0; }
  .hero { padding: 56px 0 80px; }
}

@media (max-width: 720px) {
  .nav { height: 64px; }
  .nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    background: var(--bg-elev);
    padding: 20px 26px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    gap: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
    align-items: flex-start;
  }
  .nav ul.open { display: flex; }
  .burger { display: inline-flex; }
  .nav-actions .btn:not(.burger) { display: none; }
  .hero { padding: 40px 0 64px; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-static { padding: 80px 0 64px; }
  section { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
  .cta { padding: 88px 0; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none !important; border-bottom: 1px solid var(--line); padding: 36px 24px; }
  .stat:last-child { border-bottom: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-bottom { flex-direction: column; gap: 10px; text-align: center; align-items: center; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .list-row { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .card { padding: 28px 24px; }
  .card .num { top: 24px; right: 24px; }
  .cards, .cards.three, .cards.two { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: 1fr; }
  .seo-input {
    flex-direction: column;
    border-radius: 22px;
    padding: 16px;
    gap: 8px;
    align-items: stretch;
  }
  .seo-input .prefix { display: none; }
  .seo-input input { padding: 8px 12px; }
  .seo-input button { width: 100%; justify-content: center; padding: 14px; }
  .foot-mark { font-size: clamp(40px, 9.7vw, 87px); }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ============================================================
   Client logos (homepage)
   ============================================================ */
.client-logos-section {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}
.client-logos-section .section-head {
  margin-bottom: 72px;
}
.client-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 56px 48px;
  align-items: center;
  justify-items: center;
}
.client-logos .logo-item {
  width: 100%;
  max-width: 170px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity 320ms var(--ease), transform 320ms var(--ease), filter 320ms var(--ease);
}
.client-logos .logo-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.client-logos .logo-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.client-logos .logo-item.tall { height: 78px; }
.client-logos .logo-item.wide { max-width: 200px; }
.client-logos .logo-item.compact { max-width: 130px; height: 56px; }
.client-logos .logo-item.boost { max-width: 240px; height: 90px; }
.client-logos .logo-item.bump { transform: scale(1.1); }
.client-logos .logo-item.bump:hover { transform: scale(1.1) translateY(-2px); }
.client-logos .logo-item.bump-xl { transform: scale(1.518); }
.client-logos .logo-item.bump-xl:hover { transform: scale(1.518) translateY(-2px); }
.client-logos .logo-item.bump-md { transform: scale(1.271); }
.client-logos .logo-item.bump-md:hover { transform: scale(1.271) translateY(-2px); }
.client-logos .logo-item.bump-25 { transform: scale(1.50); }
.client-logos .logo-item.bump-25:hover { transform: scale(1.50) translateY(-2px); }
.client-logos .logo-item.bump-35 { transform: scale(1.62); }
.client-logos .logo-item.bump-35:hover { transform: scale(1.62) translateY(-2px); }
.client-logos .logo-item.bump-15 { transform: scale(1.15); }
.client-logos .logo-item.bump-15:hover { transform: scale(1.15) translateY(-2px); }
.client-logos .logo-item.bump-21 { transform: scale(1.21); }
.client-logos .logo-item.bump-21:hover { transform: scale(1.21) translateY(-2px); }
.client-logos .logo-item.shrink-20 { transform: scale(0.8); }
.client-logos .logo-item.shrink-20:hover { transform: scale(0.8) translateY(-2px); }

@media (max-width: 1024px) {
  .client-logos { grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
  .client-logos-section { padding: 96px 0; }
}
@media (max-width: 720px) {
  .client-logos { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .client-logos-section { padding: 72px 0; }
}

/* ============================================================
   Reel grid (homepage video showcase)
   ============================================================ */
.reel-section {
  padding: 220px 0 120px;
  border-bottom: 1px solid var(--line);
}

.reel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.reel-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 320ms var(--ease), transform 420ms var(--ease), box-shadow 420ms var(--ease);
  isolation: isolate;
}

.reel-item:hover,
.reel-item:focus-visible {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -24px rgba(124, 58, 237, 0.45);
  outline: none;
}

.reel-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.reel-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease), filter 320ms var(--ease);
}

.reel-item:hover .reel-frame img {
  transform: scale(1.04);
}

.reel-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 320ms var(--ease);
  z-index: 1;
}

.reel-item:hover::after { opacity: 0.85; }

@media (max-width: 1024px) {
  .reel-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .reel-section { padding: 160px 0 96px; }
}

@media (max-width: 720px) {
  .reel-grid { grid-template-columns: 1fr; gap: 16px; }
  .reel-section { padding: 120px 0 72px; }
}

/* ============================================================
   Form checkbox grid
   ============================================================ */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 6px;
}
.checkbox-grid .check {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  user-select: none;
  transition: border-color 220ms var(--ease-snap), background 220ms var(--ease-snap), color 220ms var(--ease-snap), transform 220ms var(--ease-snap);
}
.checkbox-grid .check:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  transform: translateY(-1px);
}
.checkbox-grid .check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin: 0;
  transition: border-color 200ms var(--ease-snap), background 200ms var(--ease-snap), box-shadow 200ms var(--ease-snap);
}
.checkbox-grid .check:hover input[type="checkbox"]:not(:checked) {
  border-color: var(--ink-mute);
}
.checkbox-grid .check input[type="checkbox"]:checked {
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(183, 148, 244, 0.15);
}
.checkbox-grid .check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 47%;
  width: 6px;
  height: 11px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
.checkbox-grid .check:has(input:checked) {
  border-color: var(--purple);
  color: var(--ink);
  background: rgba(183, 148, 244, 0.08);
}

/* ============================================================
   Form pill toggles (click to select, no visible checkbox)
   ============================================================ */
.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.tag-pills .tag {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  user-select: none;
  transition: background 200ms var(--ease-snap), border-color 200ms var(--ease-snap), color 200ms var(--ease-snap);
}
.tag-pills .tag input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.tag-pills .tag:hover {
  border-color: var(--ink-mute);
  color: var(--ink);
}
.tag-pills .tag:has(input:checked) {
  background: var(--purple);
  border-color: var(--purple);
  color: #000;
}
