/* ============================================================
   MotoVibe — global styles
   ============================================================ */

:root {
  --bg-0: #07070a;
  --bg-1: #0c0c10;
  --bg-2: #14141a;
  --bg-3: #1c1c24;

  --fg-0: #ffffff;
  --fg-1: #e8e8ee;
  --fg-2: #a5a5b3;
  --fg-3: #6b6b78;
  --fg-4: #3a3a44;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --brand-red: #dc3545;
  --brand-pink: #d63384;
  --brand-grad: linear-gradient(95deg, #dc3545 0%, #d63384 100%);
  --brand-grad-soft: linear-gradient(95deg, rgba(220,53,69,0.18) 0%, rgba(214,51,132,0.18) 100%);

  --glass-bg: rgba(20, 20, 26, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-xl: 32px;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--fg-1);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(214,51,132,0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(220,53,69,0.08), transparent 60%),
    var(--bg-0);
  min-height: 100vh;
}

/* subtle grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
  mix-blend-mode: overlay;
}

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

/* ============== TYPOGRAPHY ============== */
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; }
p { margin: 0; line-height: 1.55; color: var(--fg-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--brand-grad);
  box-shadow: 0 0 12px rgba(220,53,69,0.6);
}

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

/* ============== LAYOUT ============== */
.container {
  width: min(1280px, 92vw);
  margin: 0 auto;
}
section {
  position: relative;
  z-index: 1;
  padding: 140px 0;
}
@media (max-width: 720px) {
  section { padding: 90px 0; }
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(220,53,69,0.55), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { box-shadow: 0 12px 40px -10px rgba(220,53,69,0.75), inset 0 1px 0 rgba(255,255,255,0.35); }

.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--fg-1);
  backdrop-filter: blur(20px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--line-strong); }

.btn-bare {
  padding: 0;
  color: var(--fg-2);
  font-size: 13px;
  transition: color 0.2s;
}
.btn-bare:hover { color: var(--fg-0); }

/* ============== GLASS CARD ============== */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-l);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
}
.glass-soft {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

/* ============== ANIMATIONS ============== */
@keyframes waveBar {
  0%, 100% { transform: scaleY(0.25); }
  50%      { transform: scaleY(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(2);   opacity: 0;   }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scan {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(2000%); }
}
@keyframes dash {
  to { stroke-dashoffset: -100; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* hero paths stack on small screens */
@media (max-width: 600px) {
  .hero-paths { grid-template-columns: 1fr !important; }
}

/* ============== IMG PLACEHOLDER ============== */
.img-placeholder {
  position: relative;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 16px),
    linear-gradient(180deg, #15151c, #0c0c10);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.img-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(220,53,69,0.08), transparent 70%),
    radial-gradient(60% 60% at 100% 100%, rgba(214,51,132,0.08), transparent 70%);
  pointer-events: none;
}
.img-placeholder .ph-label {
  position: relative;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
}

/* ============== UTILS ============== */
.mono { font-family: var(--font-mono); }
.muted { color: var(--fg-2); }
.dim { color: var(--fg-3); }
.hr {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  border: 0;
  margin: 0;
}

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #2a2a36; }
