/* ============================================================
   COMPONENTS.CSS — Invasionism UI Components v2
   ============================================================ */

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
}

.btn .arr { transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn.primary {
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 95%, white 5%), var(--accent-deep));
  color: #0a0a0b;
  border-color: transparent;
  font-weight: 600;
}
.btn.primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn.outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-2);
}
.btn.outline:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}

.btn.ghost {
  background: transparent;
  color: var(--fg-dim);
  border-color: transparent;
  padding-left: 16px;
  padding-right: 16px;
}
.btn.ghost:hover { color: var(--fg); }

.btn-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── NAV ── */
nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 14px 0;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--ink-0) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
nav.top.scrolled { border-bottom-color: var(--line); }
nav.top .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 15px;
  color: var(--fg);
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0%, var(--accent) 35%, var(--accent-deep) 70%, #1a1a20 100%);
  box-shadow: 0 0 12px var(--glow);
  flex-shrink: 0;
}

nav.top ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
nav.top ul a {
  font-size: 13.5px;
  color: var(--fg-dim);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  letter-spacing: -0.01em;
}
nav.top ul a:hover { color: var(--fg); background: rgba(255,255,255,0.05); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ── EYEBROW (hero badge) ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line-2);
  background: color-mix(in oklab, var(--ink-2) 80%, transparent);
  border-radius: 999px;
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── FEATURE CARDS ── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.feat {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-1);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.feat:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  background: var(--ink-2);
}
.feat .f-ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-wash);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feat .f-ic svg { width: 17px; height: 17px; }
.feat h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  font-family: var(--sans);
}
.feat p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ── STEPS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-1);
  margin-top: 40px;
}
.step {
  padding: 32px 28px 28px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background .3s;
}
.step:last-child { border-right: 0; }
.step:hover { background: var(--ink-2); }
.step .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.step h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  font-family: var(--sans);
  color: var(--fg);
}
.step p {
  font-size: 13.5px;
  color: var(--fg-dim);
  line-height: 1.6;
  margin: 0;
}

/* Step visual icons */
.viz { margin-bottom: 16px; height: 32px; display: flex; align-items: center; }
.viz-gear {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--accent);
  position: relative;
  animation: spin 4s linear infinite;
}
.viz-gear::after {
  content: ''; position: absolute;
  inset: 4px; border-radius: 50%;
  background: var(--accent-wash);
}
@keyframes spin { to { transform: rotate(360deg); } }

.viz-stars { display: flex; gap: 3px; align-items: center; }
.viz-stars i {
  width: 18px; height: 18px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: starPop 0.4s ease backwards;
}
.viz-stars i:nth-child(1) { animation-delay: 0s; }
.viz-stars i:nth-child(2) { animation-delay: 0.08s; }
.viz-stars i:nth-child(3) { animation-delay: 0.16s; }
.viz-stars i:nth-child(4) { animation-delay: 0.24s; }
.viz-stars i:nth-child(5) { animation-delay: 0.32s; }
@keyframes starPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.viz-bars { display: flex; gap: 4px; align-items: flex-end; height: 28px; }
.viz-bars i {
  width: 6px; border-radius: 2px;
  background: var(--accent);
  animation: barGrow 0.5s ease backwards;
}
.viz-bars i:nth-child(1) { height: 40%; animation-delay: 0s; }
.viz-bars i:nth-child(2) { height: 70%; animation-delay: 0.08s; }
.viz-bars i:nth-child(3) { height: 55%; animation-delay: 0.16s; }
.viz-bars i:nth-child(4) { height: 90%; animation-delay: 0.24s; }
.viz-bars i:nth-child(5) { height: 65%; animation-delay: 0.32s; }
@keyframes barGrow {
  from { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
  to { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
}

.viz-doc {
  width: 22px; height: 28px;
  border-radius: 3px;
  background: var(--ink-4);
  border: 1px solid var(--line-2);
  position: relative;
  overflow: hidden;
}
.viz-doc::before, .viz-doc::after {
  content: '';
  position: absolute;
  left: 3px; right: 3px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
}
.viz-doc::before { top: 6px; }
.viz-doc::after { top: 11px; width: 60%; background: var(--fg-mute); }

/* ── STATS ROW ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-1);
  margin-top: 48px;
}
.stat-box {
  padding: 36px 28px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat-box:last-child { border-right: 0; }
.stat-num {
  font-family: var(--serif);
  font-size: 52px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--fg) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--mono);
}

/* ── TESTIMONIAL CARDS ── */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.quote {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-1);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.quote .stars {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.quote p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.65;
  flex: 1;
}
.quote .who {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.quote .who .av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-wash);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.quote .who b { font-weight: 500; font-size: 13px; display: block; color: var(--fg); }
.quote .who span { font-size: 11px; color: var(--fg-mute); display: block; margin-top: 2px; }

/* ── NICHES ── */
.niches-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.niche-tag {
  padding: 7px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--fg-dim);
  font-weight: 400;
  transition: all 0.2s ease;
  cursor: default;
  letter-spacing: -0.01em;
}
.niche-tag:hover {
  border-color: color-mix(in oklab, var(--accent) 40%, transparent);
  color: var(--fg);
  background: var(--accent-wash);
}

/* ── FAQ ── */
.faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink-1);
}
.faq-q {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  text-align: left;
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 0.2s ease;
}
.faq-q:hover { background: var(--ink-2); }
.faq-q.open { background: var(--accent-wash); color: var(--fg); }
.faq-icon {
  font-size: 18px;
  color: var(--fg-mute);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.23,1,0.32,1);
  line-height: 1;
  font-style: normal;
}
.faq-q.open .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  display: none;
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--fg-dim);
}
.faq-a.open { display: block; }

/* ── CITY LINKS ── */
.city-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.city-link {
  padding: 7px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: var(--mono);
}
.city-link:hover {
  border-color: color-mix(in oklab, var(--accent) 50%, transparent);
  color: var(--accent);
  background: var(--accent-wash);
}

/* ── CONTACT FORM ── */
.inv-form { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.inv-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inv-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  transition: border-color 0.2s ease;
  outline: none;
}
.inv-input:focus { border-color: color-mix(in oklab, var(--accent) 50%, transparent); }
.inv-input::placeholder { color: var(--fg-mute); }
.inv-textarea { resize: vertical; min-height: 110px; }

/* ── FOOTER ── */
footer.site {
  padding: 56px 0 36px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 13px;
  color: var(--fg-mute);
  line-height: 1.65;
  max-width: 28ch;
}
.footer-col-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-family: var(--mono);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: 13px;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-link:hover { color: var(--fg); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--fg-mute);
}

/* ── LIVE DOT ── */
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 1.6s infinite;
  display: inline-block;
  flex-shrink: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:nth-child(odd) { border-right: 1px solid var(--line); }
  .step:nth-last-child(-n+2) { border-bottom: 0; }
  .quotes { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .feat-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  nav.top ul { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .inv-form-row { grid-template-columns: 1fr; }
}