/* Base styles for ad-revolutions.com marketing site */
:root {
  --bg: #0b0d12;
  --panel: #11151c;
  --text: #e6eef8;
  --muted: #a9b4c0;
  --brand: #5c8dff;
  --brand-2: #8a5cff;
  --accent: #00d4ff;
  --cta: #00c16a;
  --cta-text: #05130a;
  --header-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(17,21,28,0.9), rgba(17,21,28,0.6));
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  z-index: 50;
}
.header-inner {
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 12px rgba(92,141,255,0.6);
}
.menu-btn {
  height: 38px;
  width: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
  color: var(--text);
}
.menu-btn:hover { background: rgba(255,255,255,0.06); }

/* Mobile menu */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
  z-index: 40;
}
.menu-panel {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100dvh;
  background: var(--panel);
  border-left: 1px solid rgba(255,255,255,0.08);
  transition: right 220ms ease;
  z-index: 41;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 10px;
}
.menu.open .menu-overlay { opacity: 1; visibility: visible; }
.menu.open .menu-panel { right: 0; }
.menu a {
  padding: 12px 10px;
  border-radius: 10px;
  color: var(--text);
}
.menu a:hover { background: rgba(255,255,255,0.06); }

/* Main layout */
main {
  min-height: 100dvh;
  padding-top: calc(var(--header-h) + 16px);
  padding-bottom: calc(96px + var(--safe-bottom));
}
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Ticker strip */
.ticker { border-block: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); }
.ticker-inner { max-width: 1200px; margin: 0 auto; padding: 10px 0; overflow: hidden; }
.ticker-track { display: inline-flex; align-items: center; gap: 22px; white-space: nowrap; will-change: transform; animation: ticker-scroll 28s linear infinite; }
.ticker-item { color: var(--muted); font-weight: 600; letter-spacing: 0.2px; }
.ticker-sep { opacity: 0.6; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Use-case tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tile { background: var(--panel); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 16px; }
.tile h3 { margin: 0 0 6px; font-size: 18px; }
.tile p { margin: 0; color: var(--muted); }

/* How it works (zig-zag) */
.how { display: grid; gap: 18px; position: relative; }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.step .num { font-weight: 800; color: var(--brand); }
.step .copy { background: var(--panel); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 14px; }
.step:nth-child(odd) .copy { grid-column: 1; }
.step:nth-child(odd) .visual { grid-column: 2; }
.step:nth-child(even) .copy { grid-column: 2; }
.step:nth-child(even) .visual { grid-column: 1; }
.visual { min-height: 120px; border: 1px dashed rgba(255,255,255,0.12); border-radius: 12px; display: grid; place-items: center; color: var(--muted); }

.how-section { position: relative; }
.how-3d { display: block; position: relative; margin: 4px 0 0; height: auto; min-height: 0; }
.how-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: transparent; }
.how-3d.failed::after { content: '3D preview unavailable on this device.'; position: absolute; left: 50%; bottom: clamp(16px, 5vh, 42px); transform: translateX(-50%); padding: 7px 9px; border-radius: 14px; background: rgba(11,13,18,0.78); color: var(--muted); font-size: 14px; text-align: center; backdrop-filter: blur(6px); }
@media (max-width: 900px) {
  .step { grid-template-columns: 1fr; }
  .step .copy, .step .visual { grid-column: auto !important; }
}

/* FAQ accordion */
.faq { max-width: 900px; margin: 0 auto; }
.faq details { background: var(--panel); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.faq summary { cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.faq .a { color: var(--muted); margin-top: 8px; }

/* Sticky CTA pill */
.cta-pill {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(30px + var(--safe-bottom));
  display: flex;
  justify-content: center;
  padding: calc(10px + var(--safe-bottom));
  z-index: 60;
}
.cta-pill a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--cta), #00e6a8);
  color: var(--cta-text);
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 193, 106, 0.35);
  border: 1px solid rgba(0,0,0,0.2);
}
.cta-pill a:hover { transform: translateY(-1px); }

/* Hero section */
.hero {
  min-height: 66vh;
  display: grid;
  align-items: center;
  background:
    radial-gradient(80% 60% at 20% -10%, rgba(92,141,255,0.25), transparent 60%),
    radial-gradient(80% 60% at 80% 110%, rgba(0,212,255,0.2), transparent 60%);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 8px;
  display: grid;
  gap: 20px;
  grid-template-columns: 1.1fr 0.9fr;
}
.hero-inner > div:first-child {
  text-align: center;
}
.hero-title {
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: clamp(16px, 3.4vw, 20px);
  color: var(--muted);
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; justify-content: center; }
.hero-visual {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  min-height: 280px;
  overflow: hidden;
}
.hero-visual::before{
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 40% at 70% 30%, rgba(92,141,255,0.35), transparent 60%),
    radial-gradient(60% 40% at 40% 70%, rgba(0,212,255,0.25), transparent 60%);
  filter: blur(20px);
}
.hero-visual .placeholder{
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  /* Place visual first on mobile */
  .hero-visual { order: -1; }
}
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04); color: var(--text);
}
.btn:hover { background: rgba(255,255,255,0.08); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: rgba(255,255,255,0.16); }

/* Demo replay */
.demo-replay { text-align: center; }
.demo-replay p { color: var(--muted); }

/* Quote CTA band */
.quote-band { text-align: center; background: linear-gradient(135deg, rgba(92,141,255,0.15), rgba(0,212,255,0.12)); border-block: 1px solid rgba(255,255,255,0.08); }
.quote-band .inner { max-width: 900px; margin: 0 auto; padding: 24px 16px; }
.quote-band p { margin: 8px 0 0; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02); }
footer .inner { max-width: 1200px; margin: 0 auto; padding: 18px 16px 110px; display: grid; gap: 8px; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .menu-overlay, .menu-panel, .cta-pill a { transition: none; }
}


.how-section h2 { margin-bottom: 2px; }
@media (max-width: 900px) { .section.how-section { padding-bottom: 2px; } }
.hero-visual img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: inherit; }
@media (max-width: 900px) { .section.how-section { padding: 2px 2px 2px; } }
