/* DentalFlow landing — custom styles layered on top of Tailwind CDN */

:root {
  --brand: #432177;
  --brand-700: #36185f;
  --brand-600: #4e2785;
  --brand-500: #5c2e9c;
  --brand-400: #7a4fbf;
  --brand-300: #b39ad6;
  --brand-100: #ede7f6;
  --brand-50: #f5f1fb;
  --bg: #fbfaff;
  --ink: #1a1530;
  --ink-2: #3f3857;
  --ink-3: #6b6583;
  --line: rgba(67, 33, 119, 0.10);
  --line-strong: rgba(67, 33, 119, 0.16);
  --grad: linear-gradient(135deg, #432177 0%, #6236b3 50%, #8b5cf6 100%);
  --grad-horiz: linear-gradient(90deg, #432177 0%, #6236b3 50%, #8b5cf6 100%);
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

.font-serif-it { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.font-mono-df { font-family: "JetBrains Mono", ui-monospace, monospace; font-feature-settings: "ss01","cv11"; }

.eyebrow {
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.3em; color: var(--brand); opacity: 0.75;
}

.bg-grid {
  background-image: radial-gradient(rgba(67,33,119,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.aurora {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.5;
  pointer-events: none; mix-blend-mode: multiply;
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(30px,-40px) scale(1.08); }
  100% { transform: translate(-20px,20px) scale(0.95); }
}

.banner-shimmer {
  background: linear-gradient(90deg, #432177 0%, #6236b3 25%, #8b5cf6 50%, #6236b3 75%, #432177 100%);
  background-size: 300% 100%;
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
.banner-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.9);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.5; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }

.nav-sticky {
  position: sticky; top: 0; z-index: 50;
  transition: background-color 200ms ease, box-shadow 200ms ease, backdrop-filter 200ms ease;
}
.nav-sticky.scrolled {
  background: rgba(251, 250, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 20px 40px -30px rgba(67,33,119,.25);
}

.lang-chip {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  padding: 4px 8px; border-radius: 6px; color: var(--ink-3);
  transition: all 150ms ease;
}
.lang-chip:hover { color: var(--brand); background: var(--brand-50); }
.lang-chip.active { color: #fff; background: var(--brand); }

.btn-primary {
  background: var(--grad); color: #fff;
  font-weight: 600; letter-spacing: -0.005em;
  border-radius: 12px; padding: 12px 20px;
  box-shadow: 0 10px 30px -10px rgba(67,33,119,.55), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform 200ms cubic-bezier(.2,.7,.2,1), box-shadow 200ms ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 44px -12px rgba(67,33,119,.7), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-ghost {
  border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 11px 18px;
  color: var(--ink); font-weight: 500;
  transition: all 200ms ease;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.6);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: #fff; }

.glass {
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 20px 60px -30px rgba(67,33,119,.25);
}

.browser {
  border: 1px solid var(--line-strong);
  border-radius: 16px; background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,1) inset, 0 40px 120px -30px rgba(67,33,119,.35), 0 2px 4px rgba(67,33,119,.05);
}
.browser-bar {
  height: 34px; display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
  background: linear-gradient(180deg, #f7f5fb 0%, #efebf6 100%);
  border-bottom: 1px solid var(--line);
}
.tl { width: 10px; height: 10px; border-radius: 50%; }
.tl-r { background: #ff5f57; } .tl-y { background: #febc2e; } .tl-g { background: #28c840; }
.browser-url {
  flex: 1; height: 22px; background: #fff;
  border: 1px solid var(--line); border-radius: 6px;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  color: var(--ink-3); padding: 0 8px;
  display: flex; align-items: center; gap: 6px;
}
.browser-body { position: relative; background: #fff; }
.browser-body img { display: block; width: 100%; height: auto; }

.ghost-cursor {
  position: absolute; width: 20px; height: 20px;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(67,33,119,.35));
  z-index: 5;
}

.rv { opacity: 0; transform: translateY(24px); transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv-delay-1 { transition-delay: 60ms; }
.rv-delay-2 { transition-delay: 120ms; }
.rv-delay-3 { transition-delay: 180ms; }
.rv-delay-4 { transition-delay: 240ms; }

.cta-final {
  position: relative; overflow: hidden;
  background: var(--grad);
  border-radius: 28px; color: #fff;
  padding: 64px 48px;
  box-shadow: 0 40px 100px -30px rgba(67,33,119,.6);
}
.cta-final::before {
  content: ""; position: absolute; inset: -50%;
  background: conic-gradient(from 0deg, rgba(255,255,255,.14), transparent 30%, rgba(255,255,255,.08) 60%, transparent 90%);
  animation: spin 10s linear infinite; opacity: 0.6;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cta-btn-white {
  background: #fff; color: var(--brand);
  font-weight: 600; border-radius: 14px;
  padding: 14px 24px;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.cta-btn-white:hover { transform: translateY(-1px) scale(1.01); }

.cta-btn-outline {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.6);
  font-weight: 600; border-radius: 14px;
  padding: 14px 24px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all 200ms ease;
}
.cta-btn-outline:hover {
  background: rgba(255,255,255,.15); border-color: #fff;
  transform: translateY(-1px);
}

#demo-modal.open { display: flex !important; }
#demo-modal .btn-primary { padding: 14px 20px; }

.float-card {
  position: absolute;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 20px 40px -15px rgba(67,33,119,.35);
  backdrop-filter: blur(8px);
  animation: floaty 7s ease-in-out infinite;
}
.float-card.delay-1 { animation-delay: -2.5s; }
.float-card.delay-2 { animation-delay: -5s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.section-rail {
  position: fixed; right: 20px; top: 50%;
  transform: translateY(-50%); z-index: 40;
  mix-blend-mode: multiply;
  display: flex; flex-direction: column; gap: 12px;
}
.section-rail a {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(67,33,119,.25);
  transition: all 250ms ease;
}
.section-rail a.active { background: var(--brand); height: 18px; border-radius: 4px; }
@media (max-width: 900px) { .section-rail { display: none; } }

#scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--grad-horiz);
  z-index: 100;
  transition: width 80ms linear;
}

.spark-path {
  stroke-dasharray: 300; stroke-dashoffset: 300;
  animation: draw 2.2s ease-out forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .banner-shimmer, .aurora, .cta-final::before,
  .float-card, .spark-path { animation: none !important; }
  .rv { opacity: 1 !important; transform: none !important; }
}

.tilt { transition: transform 400ms cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
.tilt:hover { transform: perspective(1200px) rotateX(1deg) rotateY(-1deg) translateY(-4px); }

::selection { background: rgba(139,92,246,.28); color: var(--brand-700); }
