/* EMR Studios — shared dark theme */

:root {
  --bg: #08090a;
  --bg-soft: #0e0f10;
  --panel: #16171a;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f5f5f6;
  --text-dim: #9a9ba0;
  --accent: #e8e9eb;
  --accent-2: #ffffff;
  --accent-grad: linear-gradient(120deg, #d4d5d8 0%, #ffffff 100%);
  --danger: #ff6b6b;
  --shadow: 0 20px 60px rgba(0,0,0,0.55);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- background ambience ---------- */

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-glow::before,
.bg-glow::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  animation: float 18s ease-in-out infinite alternate;
}

.bg-glow::before {
  background: #6a6c72;
  top: -20%;
  left: -10%;
}

.bg-glow::after {
  background: #3a3b3f;
  bottom: -25%;
  right: -10%;
  animation-delay: -9s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(4%, 6%) scale(1.08); }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 40%, transparent 90%);
}

/* ---------- nav ---------- */

nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6vw;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 130px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
}

.logo-mark {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent-grad);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
}

.nav-cta {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  transition: all 0.25s ease;
}

.nav-cta:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
}

/* ---------- buttons ---------- */

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.02rem;
  color: #08090c;
  background: var(--accent-grad);
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 50px rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary svg {
  transition: transform 0.25s ease;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-primary .shine {
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  animation: shine 3.2s ease-in-out infinite;
}

@keyframes shine {
  0% { left: -60%; }
  40% { left: 130%; }
  100% { left: 130%; }
}

/* ---------- mobile ---------- */

@media (max-width: 640px) {
  nav {
    padding: 10px 5vw;
  }

  .logo-img {
    height: 64px;
  }

  .nav-cta {
    font-size: 0.78rem;
    padding: 8px 14px;
  }

  .btn-primary {
    padding: 15px 26px;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .logo-img {
    height: 52px;
  }
}
