/* Livingstone Marketing — base styles */

:root {
  --bg: #07070a;
  --bg-1: #0b0b11;
  --bg-2: #11111a;
  --surface: #14141d;
  --surface-2: #1b1b27;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f7;
  --text-2: #b8b8c4;
  --text-3: #6e6e7e;
  --text-4: #4a4a57;

  --blue: #ff3366;
  --blue-2: #ff708f;
  --violet: #ff8c42;
  --violet-2: #ffae73;
  --cyan: #f5a524;
  --green: #3ee07f;
  --amber: #f5a524;
  --red: #ff5a6a;

  --grad-1: linear-gradient(135deg, #ff3366 0%, #ff8c42 100%);
  --grad-2: linear-gradient(135deg, #f5a524 0%, #ff3366 50%, #ff8c42 100%);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-display: "Instrument Serif", "Geist", serif;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "ss02", "cv11";
  line-height: 1.45;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(255, 51, 102, 0.26), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(255, 140, 66, 0.18), transparent 60%),
    var(--bg);
}

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

::selection { background: rgba(255, 51, 102, 0.38); color: #fff; }

/* Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  position: relative;
  padding: 120px 0;
  scroll-margin-top: 96px;
}

.section-narrow { padding: 80px 0; }

/* Grid background */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}

/* Type */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-2);
  text-transform: uppercase;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

h1, h2, h3, h4 {
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 500;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.h-section {
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.h-card {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 620px;
}

.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-display); font-style: italic; font-weight: 400; }

.gradient-text {
  background: var(--grad-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: #fff;
  color: #07070a;
}
.btn-primary:hover { background: #e8e8ee; }

.btn-glow {
  background: var(--grad-1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--blue) 45%, transparent), 0 18px 50px -12px color-mix(in oklab, var(--blue) 65%, transparent);
}
.btn-glow:hover { filter: brightness(1.08); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--line-2); }

/* Cards */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.card-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* Nav */
.nav {
  position: fixed;
  top: 16px;
  left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: rgba(11, 11, 17, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
}
.nav-inner a.nav-link {
  color: var(--text-2);
  font-size: 13.5px;
  transition: color 0.15s;
}
.nav-inner a.nav-link:hover { color: var(--text); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 22px; height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: var(--grad-1);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 6px 20px -4px color-mix(in oklab, var(--blue) 70%, transparent);
}
.brand-mark svg { display: block; }

/* Sparkles / dots */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.pulse { animation: pulse 1.6s ease-in-out infinite; }

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

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-text {
  background: linear-gradient(90deg, #b8b8c4 0%, #fff 50%, #b8b8c4 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}

/* Marquee */
.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  padding-right: 56px;
  animation: marquee 40s linear infinite;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* Caret */
@keyframes blink { 50% { opacity: 0; } }
.caret { display: inline-block; width: 8px; height: 1.1em; background: #fff; vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(2) infinite; }

/* Section heading block */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 56px;
  max-width: 760px;
}

/* Service card */
.service-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 230px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.service-card:hover {
  border-color: var(--line-2);
  background: linear-gradient(180deg, color-mix(in oklab, var(--blue) 9%, transparent), color-mix(in oklab, var(--violet) 5%, transparent));
  transform: translateY(-2px);
}
.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
}
.service-desc {
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.55;
}

/* Stat */
.stat-num {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 36px;
  margin-top: 80px;
}
.footer a { color: var(--text-2); font-size: 13.5px; }
.footer a:hover { color: var(--text); }

/* Utility */
.row { display: flex; align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }
.center { text-align: center; }
.hide-mobile { }
@media (max-width: 760px) {
  .hide-mobile { display: none !important; }
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
}

@media (max-width: 860px) {
  .stats-grid,
  .process-grid,
  .analytics-stats-grid,
  .case-metrics-grid,
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .geo-grid,
  .analytics-chart-grid,
  .case-card,
  .contact-card,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .case-card,
  .contact-card {
    gap: 24px !important;
  }
}

@media (max-width: 600px) {
  html,
  body {
    overflow-x: clip;
  }

  body {
    background:
      radial-gradient(700px 360px at 45% -120px, rgba(255, 51, 102, 0.28), transparent 65%),
      radial-gradient(520px 320px at 100% 10%, rgba(255, 140, 66, 0.18), transparent 70%),
      var(--bg);
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 64px 0;
    scroll-margin-top: 112px;
  }

  .hero-section {
    padding-top: 112px !important;
    padding-bottom: 44px !important;
  }

  .nav {
    top: 10px;
    padding: 0 10px;
  }

  .nav-inner {
    width: 100%;
    max-width: 420px;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 7px 7px 10px;
  }

  .brand {
    min-width: 0;
    gap: 7px;
    font-size: 13px;
  }

  .brand > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
  }

  .nav-inner .btn {
    padding: 8px 11px !important;
    font-size: 12px !important;
  }

  .h-display {
    font-size: clamp(40px, 13vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.025em;
  }

  .h-section {
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.02em;
  }

  .lede {
    font-size: 15.5px;
    line-height: 1.55;
  }

  .eyebrow {
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
  }

  .hero-copy {
    gap: 18px !important;
    margin-bottom: 34px !important;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  .hero-trust {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px !important;
    font-size: 11px !important;
  }

  .ai-demo {
    border-radius: 14px !important;
  }

  .ai-demo-grid {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  .ai-demo-grid > div:first-child {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
  }

  .ai-demo-grid > div {
    padding: 16px !important;
  }

  .process-grid,
  .analytics-stats-grid,
  .stats-grid,
  .stack-grid,
  .case-metrics-grid {
    grid-template-columns: 1fr !important;
  }

  .stack-card {
    padding: 15px 16px !important;
  }

  .case-card,
  .contact-card {
    padding: 24px !important;
    overflow: hidden;
  }

  .case-metrics-grid {
    width: 100% !important;
    min-width: 0 !important;
    gap: 1px !important;
  }

  .case-metrics-grid > div {
    min-width: 0;
  }

  .contact-card form {
    padding: 20px !important;
  }

  .footer-grid {
    gap: 24px !important;
  }

  .orb {
    filter: blur(48px);
    opacity: 0.45;
    max-width: 82vw;
    max-height: 82vw;
    transform: translateZ(0);
  }

  .marquee {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    contain: paint;
  }

  .marquee-track {
    gap: 36px;
    padding-right: 36px;
  }
}

@media (max-width: 390px) {
  .brand > span {
    max-width: 116px;
  }

  .nav-inner .btn {
    padding: 8px 10px !important;
  }

  .container {
    padding: 0 14px;
  }

  .h-display {
    font-size: clamp(36px, 12vw, 48px);
  }
}

/* Glow tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid var(--line);
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.02);
}
.tag-blue { color: var(--blue-2); border-color: color-mix(in oklab, var(--blue) 35%, transparent); background: color-mix(in oklab, var(--blue) 10%, transparent); }
.tag-violet { color: var(--violet-2); border-color: color-mix(in oklab, var(--violet) 35%, transparent); background: color-mix(in oklab, var(--violet) 10%, transparent); }
.tag-green { color: var(--green); border-color: rgba(62,224,127,0.3); background: rgba(62,224,127,0.07); }
.tag-cyan { color: var(--cyan); border-color: rgba(88,225,255,0.3); background: rgba(88,225,255,0.07); }

/* Floating orb */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  pointer-events: none;
}

/* Code-ish block */
.terminal {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}
.terminal .prompt { color: var(--violet-2); }
.terminal .key { color: var(--blue-2); }
.terminal .val { color: var(--text); }
.terminal .num { color: var(--green); }
.terminal .comment { color: var(--text-4); }
