/* ============================================================
   BMG Marketing — dark redesign
   Edit colors here: change the --accent values to re-theme.
   ============================================================ */
:root {
  --bg: #06080f;
  --bg-2: #0a0e1a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-border: rgba(255, 255, 255, 0.09);
  --text: #eef1f8;
  --text-dim: #9aa3b8;
  --accent: #4f7cff;      /* electric blue */
  --accent-2: #22d3ee;    /* cyan */
  --accent-3: #f59e0b;    /* amber — CTA warmth */
  --radius: 18px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

.container { width: min(1160px, 92%); margin: 0 auto; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }

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

em { font-style: italic; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 1000;
  box-shadow: 0 0 12px var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background 0.3s, border-color 0.3s, color 0.3s;
  will-change: transform;
}
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #3b5fe0 60%);
  color: #fff;
  box-shadow: 0 8px 30px rgba(79, 124, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { box-shadow: 0 12px 44px rgba(79, 124, 255, 0.55), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(110%); }
.btn-outline {
  border-color: rgba(255,255,255,0.25); color: var(--text);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { border-color: var(--accent-2); color: var(--accent-2); background: rgba(34,211,238,0.06); }
.btn-ghost { color: var(--text-dim); padding: 10px 14px; }
.btn-ghost:hover { color: var(--text); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(6, 8, 15, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07), 0 10px 40px rgba(0,0,0,0.45);
}
.nav-inner {
  width: min(1240px, 94%); margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 16px 0;
}
.brand { display: flex; align-items: baseline; gap: 7px; font-family: var(--font-display); }
.brand-mark {
  font-weight: 800; font-size: 20px; letter-spacing: 0.5px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-name { font-weight: 600; font-size: 15px; color: var(--text-dim); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--text-dim);
  position: relative; padding: 4px 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out);
  border-radius: 2px;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  display: none; flex-direction: column; gap: 4px;
  padding: 10px 4% 22px;
  background: rgba(6, 8, 15, 0.95); backdrop-filter: blur(16px);
}
.nav-mobile a { padding: 12px 8px; font-weight: 500; color: var(--text-dim); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-mobile a:hover { color: var(--text); }
.nav-mobile.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: 120px 5% 80px;
}
#shader-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
}
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 45%, transparent 0%, rgba(6,8,15,0.55) 75%, rgba(6,8,15,0.92) 100%),
    linear-gradient(to bottom, rgba(6,8,15,0.35), transparent 30%, transparent 70%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 880px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--surface-border);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 28px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}
.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 4.9rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.hero-title .word {
  display: inline-block; overflow: hidden; vertical-align: bottom;
}
.hero-title .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: word-up 0.9s var(--ease-out) forwards;
}
@keyframes word-up { to { transform: translateY(0); } }
.hero-title .grad {
  background: linear-gradient(120deg, var(--accent) 10%, var(--accent-2) 55%, #8b5cf6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--text-dim); max-width: 720px; margin: 0 auto 36px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-chips {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  list-style: none; margin-top: 44px;
}
.hero-chips li {
  font-size: 13px; font-weight: 500; color: var(--text-dim);
  border: 1px solid var(--surface-border); border-radius: 999px;
  padding: 7px 15px; background: rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.hero-chips li:hover { color: var(--accent-2); border-color: rgba(34,211,238,0.4); transform: translateY(-2px); }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--text-dim);
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-hint:hover { color: var(--text); }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Sections ---------- */
section { position: relative; }
.services, .why { padding: 110px 0; }
.section-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -0.015em;
  margin-bottom: 52px; max-width: 640px;
}

/* ---------- Service cards (3D tilt) ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
  perspective: 1200px;
}
.tilt-card {
  position: relative; display: block;
  background: linear-gradient(160deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 34px 32px 30px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.35s, box-shadow 0.35s;
  will-change: transform;
}
.tilt-card:hover {
  border-color: rgba(79, 124, 255, 0.45);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(79,124,255,0.15), 0 0 60px -18px rgba(79,124,255,0.4);
}
.card-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(79,124,255,0.16), transparent 65%);
  transition: opacity 0.4s;
}
.tilt-card:hover .card-glow { opacity: 1; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  color: var(--accent-2);
  background: linear-gradient(150deg, rgba(79,124,255,0.18), rgba(34,211,238,0.08));
  border: 1px solid rgba(79,124,255,0.25);
  transition: transform 0.4s var(--ease-out), color 0.3s;
  transform: translateZ(30px);
}
.card-icon svg { width: 26px; height: 26px; }
.tilt-card:hover .card-icon { transform: translateZ(46px) scale(1.08); color: #fff; }
.tilt-card h3 {
  font-size: 1.25rem; font-weight: 700; margin-bottom: 10px;
  transform: translateZ(24px);
}
.tilt-card p { color: var(--text-dim); font-size: 15px; transform: translateZ(16px); }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  color: var(--accent-2); transform: translateZ(20px);
}
.card-link em { font-style: normal; transition: transform 0.3s var(--ease-out); }
.tilt-card:hover .card-link em { transform: translateX(5px); }

/* ---------- Why ---------- */
.why {
  background:
    radial-gradient(700px 340px at 15% 0%, rgba(79,124,255,0.07), transparent 70%),
    radial-gradient(700px 340px at 90% 100%, rgba(34,211,238,0.05), transparent 70%),
    var(--bg-2);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-item {
  padding: 30px 26px;
  border: 1px solid var(--surface-border); border-radius: var(--radius);
  background: rgba(255,255,255,0.025);
  transition: transform 0.4s var(--ease-out), border-color 0.35s, background 0.35s;
}
.why-item:hover { transform: translateY(-6px); border-color: rgba(34,211,238,0.35); background: rgba(255,255,255,0.045); }
.why-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  color: var(--accent); margin-bottom: 18px;
  background: rgba(79,124,255,0.12); border: 1px solid rgba(79,124,255,0.22);
}
.why-icon svg { width: 24px; height: 24px; }
.why-item h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.why-item p { color: var(--text-dim); font-size: 15px; }

/* ---------- CTA ---------- */
.cta { padding: 130px 0; overflow: hidden; text-align: center; }
.cta-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 300px at 50% 20%, rgba(79,124,255,0.16), transparent 70%),
    radial-gradient(680px 360px at 50% 110%, rgba(139,92,246,0.10), transparent 70%);
}
.cta-bg::before {
  content: ""; 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: 44px 44px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, black 20%, transparent 75%);
  animation: grid-drift 16s linear infinite;
}
@keyframes grid-drift { to { background-position: 44px 44px; } }
.cta-inner { position: relative; z-index: 2; }
.cta .section-title { margin-left: auto; margin-right: auto; margin-bottom: 20px; text-align: center; }
.cta-sub { color: var(--text-dim); max-width: 620px; margin: 0 auto 36px; font-size: 1.06rem; }
.contact-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.contact-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 500; color: var(--text-dim);
  border: 1px solid var(--surface-border); border-radius: 999px;
  padding: 11px 20px; background: rgba(255,255,255,0.03);
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.contact-chip svg { width: 17px; height: 17px; color: var(--accent-2); }
.contact-chip:hover { color: var(--text); border-color: rgba(79,124,255,0.45); transform: translateY(-3px); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 34px 0; background: var(--bg-2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer p { color: var(--text-dim); font-size: 13.5px; }
.footer p a { color: var(--text-dim); border-bottom: 1px dotted rgba(255,255,255,0.25); }
.footer p a:hover { color: var(--text); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .word > span { transform: none; animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav { background: rgba(6, 8, 15, 0.72); backdrop-filter: blur(16px); }
  .services, .why { padding: 80px 0; }
  .cta { padding: 96px 0; }
}
@media (max-width: 520px) {
  .hero { padding-top: 104px; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { justify-content: center; text-align: center; }
}
