/* ==========================================================================
   NOVA DENTAL - ARCHITECTURAL LUXURY DESIGN SYSTEM
   Theme: Violet Aurora Biometrics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;
  --bg: #2A1E6E;          /* page base, lifted violet (no pure black anywhere) */
  --bg-2: #1F1650;        /* deep end of gradients */
  --surface: rgba(255, 255, 255, 0.06);
  --ink: #F6F3FF;         /* headings */
  --ink-2: #CFC6F5;       /* body & labels */
  --line: rgba(199, 184, 255, 0.22); /* hair-lines */
  --primary: #C7B8FF;     /* main interactive (buttons, active states, borders) */
  --ray: #8B7CFF;         /* holographic rings, glow envelopes, icons */
  --ray-hi: #C7B8FF;      /* reticle accent arc & bright rings */
  --accent: #FF8FB1;      /* single warm-rose highlight (spark dot, pulse) */
  --glow: rgba(139, 124, 255, 0.45);
  --shadow: rgba(10, 0, 40, 0.50);
  --grad-text: linear-gradient(90deg, #C7B8FF, #FF8FB1);
  --film-bg: #1f164a;     /* sampled continuous tooth film background */
  --tooth-hue: 62deg;     /* crystal tooth hue shift (cyan -> violet) */

  /* Biomimetic Ceramic Shading Tokens (Lifted & Cool Pearl Porcelain) */
  --ceramic-hi: #F6F3F8;  /* lifted pearl porcelain highlight */
  --ceramic-mid: #E2DCE6; /* cool pearl enamel mid tone */
  --ceramic-lo: #A79FC9;  /* violet-cool shaded crevices */

  /* Retain geometry tokens */
  --tooth-cx: 66%;
  --tooth-w: min(560px, 42vw);
  --tooth-h: calc(var(--tooth-w) * 1.1);

  /* Legacy & section token aliases mapping to new system */
  --bg-darkest: var(--bg-2);
  --bg-primary: var(--bg);
  --bg-secondary: #241A5E;
  --bg-tertiary: #2F227A;
  --bg-card: rgba(31, 22, 80, 0.75);
  --bg-card-hover: rgba(42, 30, 110, 0.85);
  --bg-glass: rgba(31, 22, 80, 0.65);

  --cyan-primary: var(--primary);
  --cyan-glow: var(--ray-hi);
  --cyan-deep: var(--ray);
  --cyan-soft: rgba(199, 184, 255, 0.15);
  --cyan-subtle: rgba(199, 184, 255, 0.06);

  --accent-emerald: #0df2c9;
  --accent-violet: var(--ray);

  --text-main: var(--ink);
  --text-secondary: var(--ink-2);
  --text-muted: rgba(207, 198, 245, 0.65);
  --text-cyan: var(--primary);

  --border-light: var(--line);
  --border-cyan: rgba(199, 184, 255, 0.22);
  --border-cyan-bright: rgba(199, 184, 255, 0.6);

  --shadow-cyan-sm: 0 4px 20px var(--glow);
  --shadow-cyan-lg: 0 10px 40px var(--glow);
  --shadow-card: 0 20px 40px -15px var(--shadow);

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-brand: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.25s var(--ease-smooth);
  --transition-base: 0.4s var(--ease-smooth);
  --transition-slow: 0.7s var(--ease-smooth);

  --container-max: 1280px;
  --header-height: 80px;
}

/* --------------------------------------------------------------------------
   CSS Reset & Base Rules
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, var(--bg) 0%, var(--bg-2) 70%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.6;
  overflow-x: clip;
  position: relative;
}

::selection {
  background: var(--primary);
  color: var(--bg-2);
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea, option {
  font-family: var(--font-body);
  font-size: 14px;
  color: inherit;
  outline: none;
  border: none;
}

b, strong, h1, h2, h3, h4, h5, h6, th {
  font-weight: 600;
}

.btn-primary,
.btn-book-nav,
.btn-explore-process,
button[type="submit"] {
  font-weight: 600;
  font-size: 14px;
}

.btn-primary span,
.btn-book-nav span,
.btn-explore-process span {
  font-weight: 600;
  font-size: 14px;
}

button {
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Preloader HUD
   -------------------------------------------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.35s ease, visibility 0.35s;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-emblem {
  position: relative;
  width: 80px;
  height: 80px;
}

.preloader-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: preloaderSpin 1.2s linear infinite;
}

.preloader-ring-outer {
  inset: -8px;
  border: 1px dashed var(--line);
  animation: preloaderSpinReverse 8s linear infinite;
}

.preloader-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 26px;
  filter: drop-shadow(0 0 10px var(--glow));
}

.preloader-text-wrapper {
  text-align: center;
}

.preloader-title {
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.preloader-status {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.preloader-progress-track {
  width: 240px;
  height: 3px;
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.preloader-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--grad-text);
  box-shadow: 0 0 12px var(--glow);
  transition: width 0.15s ease-out;
}

.header {
  position: relative;
  z-index: 1000;
  isolation: isolate;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 1000;
  isolation: isolate;
  background: color-mix(in srgb, var(--bg-2) 62%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  border-bottom: none;
  box-shadow: none;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: color-mix(in srgb, var(--bg-2) 75%, transparent);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  border-bottom: none;
  box-shadow: none;
}

.nav-container {
  height: 100%;
  width: 94%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.brand-tooth-svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 10px var(--glow));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.brand-logo:hover .brand-tooth-svg {
  transform: scale(1.05);
  filter: drop-shadow(0 0 14px var(--glow));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.15;
}

.brand-tagline {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin-top: 3px;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 34px;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.92;
  text-shadow: 0 1px 3px rgba(12, 6, 36, 0.60);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast), opacity var(--transition-fast), text-shadow var(--transition-fast);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.nav-link:hover,
.nav-link.active {
  color: #FFFFFF;
  opacity: 1;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(199, 184, 255, 0.45);
}

/* Indicator bar directly below active item */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--glow);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 16px;
}

.nav-link.active::after {
  width: 28px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-book-nav {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 24px;
  border-radius: 50px;
  border: 1.5px solid var(--primary);
  background: var(--primary);
  color: var(--bg-2);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 0 15px var(--glow);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-book-nav .btn-arrow-svg {
  color: var(--bg-2);
  transition: transform var(--transition-fast);
}

.btn-book-nav:hover {
  background: var(--ray-hi);
  border-color: var(--ray-hi);
  box-shadow: 0 8px 24px var(--glow);
  transform: translateY(-1px);
}

.btn-book-nav:hover .btn-arrow-svg {
  transform: translateX(4px);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  color: var(--ink);
  font-size: 1.5rem;
  padding: 8px;
  border: none;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   CTA Buttons & Interactive Pills
   -------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--ray) 100%);
  color: var(--bg-2);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px var(--glow);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 35%, transparent), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border-color: var(--border-cyan);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--glow);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--primary);
  text-transform: uppercase;
}

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

/* --------------------------------------------------------------------------
   Hero Section Layout (Dark Futuristic Medical)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg);
}

/* Full-bleed background layer with violet overlays & mouse parallax */
.hero-bg {
  position: absolute;
  inset: -4%; /* Oversized by 4% so blur does not leave transparent edges */
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  overflow: hidden;
  background-color: var(--bg-2);
  background-image: url('data:image/webp;base64,UklGRmYAAABXRUJQVlA4IFoAAACQAwCdASoYAA4APtFcpkyoJSOiMAgBABoJZgAAW4FY6Z4t0MwwAP70nTa1e6YBcv5IgtuzPT88bzb59Ibp/Ilxtgm71qov2Ng6rPywUjUz/+cb/xXONKCgAAA=');
  background-size: cover;
  background-position: center;
}

.hero-bg-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(5px) saturate(1.05) brightness(0.92);
  display: block;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at var(--tooth-cx, 66%) 46%, color-mix(in srgb, var(--ray) 30%, transparent), transparent 55%),
    linear-gradient(90deg, color-mix(in srgb, var(--bg-2) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 40%, transparent) 48%, color-mix(in srgb, var(--bg-2) 60%, transparent) 100%);
  pointer-events: none;
}

.hero-container {
  --tooth-cx: 66%;
  --tooth-w: min(560px, 42vw, calc((100svh - 180px) * 0.88));
  --tooth-h: calc(var(--tooth-w) * 1.1);
  position: relative;
  width: 92%;
  max-width: 1600px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  padding-top: max(0px, calc((780px - 100svh) * 0.20));
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 52% 38% 10%;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 0;
}

/* Left Column */
.hero-left-col {
  max-width: 720px;
  z-index: 5;
  padding-right: 0;
}

.hero-pretitle {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.4vw, 84px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.heading-line-1 {
  color: var(--ink);
  display: block;
}

.heading-line-2 {
  display: block;
  filter: drop-shadow(0 0 30px var(--glow));
}

.heading-line-2 .hero-word-inner,
.heading-line-2:not(:has(.hero-word-inner)) {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 42ch;
  margin-bottom: 32px;
}

/* 4 Features Row with hairline dividers */
.hero-features-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
  width: 100%;
}

.hero-feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}

.feature-icon {
  color: var(--ray);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  filter: drop-shadow(0 0 10px var(--glow));
}

.feature-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 3px;
  white-space: nowrap;
}

.feature-desc {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.3;
  white-space: nowrap;
}

.feature-divider {
  width: 1px;
  height: 42px;
  background: var(--line);
  flex-shrink: 0;
}

/* Primary CTA Button */
.hero-cta-wrap {
  margin-top: 28px;
}

.btn-explore-process {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 34px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 0 20px var(--glow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-explore-process:hover {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border-color: var(--ray-hi);
  box-shadow: 0 0 32px var(--glow);
  transform: translateY(-2px);
}

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

.btn-explore-process svg {
  color: var(--primary);
  transition: transform 0.25s ease;
}

/* Center Column: 3D Crystal Tooth Showcase (~40% width) */
.hero-center-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  z-index: 2;
}

/* Light Emission Bloom Layer behind tooth (B1) */
.tooth-light-emission {
  position: absolute;
  top: calc(50% - var(--tooth-h) * 0.04);
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(1.5 * var(--tooth-w));
  height: calc(1.5 * var(--tooth-h));
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--ink) 55%, transparent) 0%, color-mix(in srgb, var(--ray) 38%, transparent) 38%, transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
  animation: toothBreathing 6s ease-in-out infinite;
}

@keyframes toothBreathing {
  0%, 100% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(0.98);
  }
  50% {
    opacity: 1.0;
    transform: translate(-50%, -50%) scale(1.02);
  }
}

/* Holographic Circular Reticle Behind Tooth (B3) */
.hologram-backdrop-rings {
  position: absolute;
  top: calc(50% - var(--tooth-h) * 0.04);
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(1.15 * var(--tooth-h));
  height: calc(1.15 * var(--tooth-h));
  pointer-events: none;
  z-index: 1;
}

.backdrop-rings-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 14px var(--glow));
}

.reticle-rot-cw {
  animation: reticleSpinCw 90s linear infinite;
  transform-origin: 300px 300px;
}

.reticle-rot-ccw {
  animation: reticleSpinCcw 140s linear infinite;
  transform-origin: 300px 300px;
}

@keyframes reticleSpinCw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes reticleSpinCcw {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.hero-canvas-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--tooth-w);
  aspect-ratio: 1 / 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  touch-action: pan-y;
  cursor: crosshair;
}

.film-stage-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 1;
  mix-blend-mode: normal;
  touch-action: pan-y;
  cursor: grab;
}

.film-stage-canvas:active {
  cursor: grabbing;
}

/* Hologram Pedestal Under Tooth (B4: 3 concentric glowing ellipses, NO dark dome/bowl) */
.hologram-pedestal {
  position: absolute;
  top: calc(50% - var(--tooth-h) / 2 + var(--root-y, 573px));
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--tooth-w);
  height: 100px;
  pointer-events: none;
  z-index: 2;
  fill: none;
}

.pedestal-floor-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240%;
  height: 100px;
  background: radial-gradient(ellipse at center, var(--glow) 0%, transparent 70%);
  opacity: 0.55;
  filter: blur(16px);
  pointer-events: none;
  fill: none;
}

.pedestal-rings-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 16px var(--glow)) drop-shadow(0 0 30px color-mix(in srgb, var(--glow) 50%, transparent));
}

/* Right Column: Floating Typography & Indicators (~14% width) */
.hero-right-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  height: 100%;
  padding: 0 0 28px 0;
  z-index: 5;
  min-width: 190px;
}

.hero-badge-right {
  display: flex;
  align-items: stretch;
  gap: 14px;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  margin-top: clamp(140px, 28vh, 230px);
}

.badge-accent-bar {
  width: 2px;
  min-height: 52px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--glow);
}

.badge-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge-title,
.badge-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.15em;
  line-height: 1.25;
  white-space: nowrap;
}

.badge-caption {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: color-mix(in srgb, var(--ink) 85%, var(--ink-2));
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 8px;
  white-space: nowrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: max(30px, env(safe-area-inset-bottom));
  right: clamp(20px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  z-index: 10;
  margin: 0;
}

.scroll-mouse-line {
  width: 1px;
  height: 18px;
  background: linear-gradient(to bottom, transparent, var(--line));
}

.scroll-mouse-icon {
  width: 20px;
  height: 32px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  position: relative;
  box-shadow: 0 0 10px var(--glow);
}

.scroll-mouse-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 6px;
  background: var(--primary);
  border-radius: 2px;
  animation: mouseScroll 1.8s ease-in-out infinite;
}

.scroll-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.2em;
  text-align: center;
  line-height: 1.35;
  text-transform: uppercase;
}

.scroll-arrow-down {
  color: var(--primary);
  animation: arrowBounce 1.8s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Sections General Styling
   -------------------------------------------------------------------------- */
section:not(.hero-section):not(.film-panel) {
  position: relative;
  padding: 120px 0;
  z-index: 10;
}

.confirm-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.4;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 70px auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 16px 0 18px 0;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Section: Advanced Technologies (Bento Grid)
   -------------------------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.4), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.bento-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-cyan-sm), var(--shadow-card);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-col-8 {
  grid-column: span 8;
}

.bento-col-4 {
  grid-column: span 4;
}

.bento-col-6 {
  grid-column: span 6;
}

.bento-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  margin-bottom: 24px;
  font-size: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

.bento-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.bento-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.bento-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.bento-visual-preview {
  margin-top: 28px;
  background: rgba(3, 7, 13, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Section: Signature Clinical Services
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 36px 30px;
  transition: all var(--transition-base);
  position: relative;
}

.service-card:hover {
  border-color: var(--border-cyan);
  transform: translateY(-6px);
  box-shadow: var(--shadow-cyan-sm), var(--shadow-card);
}

.service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.service-number {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan-primary);
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.service-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-main);
}

.service-feature-icon {
  color: var(--cyan-primary);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Section: Interactive Before & After Comparator
   -------------------------------------------------------------------------- */
.comparison-container {
  max-width: 980px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-card), var(--shadow-cyan-sm);
}

.comparison-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: 16px;
  overflow: hidden;
  user-select: none;
  background: #020509;
}

.comparison-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-slide-before {
  z-index: 1;
}

.comparison-slide-after {
  z-index: 2;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  transition: clip-path 0.05s linear;
}

.comparison-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--cyan-primary);
  z-index: 10;
  transform: translateX(-50%);
  cursor: ew-resize;
  box-shadow: 0 0 15px var(--cyan-primary);
}

.comparison-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #040810;
  border: 2px solid var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  box-shadow: 0 0 20px var(--cyan-primary);
}

.comparison-badge {
  position: absolute;
  top: 20px;
  padding: 6px 16px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  z-index: 5;
}

.badge-before {
  left: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-after {
  right: 20px;
  background: rgba(0, 212, 255, 0.2);
  color: var(--cyan-primary);
  border: 1px solid var(--border-cyan);
}

/* --------------------------------------------------------------------------
   Section: VIP Patient Experience Timeline
   -------------------------------------------------------------------------- */
.timeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 40px;
}

.timeline-step {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 30px 24px;
  position: relative;
  transition: all var(--transition-base);
}

.timeline-step:hover {
  border-color: var(--border-cyan);
  transform: translateY(-4px);
}

.timeline-step-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cyan-soft);
  border: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 20px;
}

.timeline-step-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.timeline-step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Section: VIP Consultation Booking Form
   -------------------------------------------------------------------------- */
.booking-section-card {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(8, 16, 32, 0.95), rgba(4, 9, 18, 0.95));
  border: 1px solid var(--border-cyan);
  border-radius: 28px;
  padding: 56px 48px;
  box-shadow: var(--shadow-card), 0 0 50px rgba(0, 212, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.booking-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.booking-col-span-2 {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(3, 7, 13, 0.7);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.25);
  background: rgba(4, 10, 20, 0.9);
}

/* --------------------------------------------------------------------------
   Modal Consultation System
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(3, 7, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  width: 100%;
  max-width: 640px;
  background: #081120;
  border: 1px solid var(--border-cyan);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 212, 255, 0.15);
  transform: translateY(20px) scale(0.96);
  transition: transform var(--transition-base);
}

.modal-backdrop.open .modal-window {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(0, 212, 255, 0.15);
  color: #fff;
  border-color: var(--cyan-primary);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-light);
  background: #020509;
  padding: 80px 0 36px 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 18px;
  max-width: 340px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-nav-link:hover {
  color: var(--cyan-primary);
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .hero-container {
    padding: 20px 32px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .hero-right-col {
    grid-column: span 2;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: auto;
    padding: 10px 0;
  }

  .hero-badge-right {
    margin-top: 0;
  }

  .hero-canvas-box {
    max-width: 440px;
  }

  .hologram-backdrop-rings {
    width: 500px;
    height: 500px;
  }

  .hologram-pedestal {
    width: 440px;
    bottom: 0px;
  }

  .hero-scroll-indicator {
    margin-top: 0;
    flex-direction: row;
    gap: 12px;
  }

  .hero-scroll-indicator .scroll-label {
    text-align: left;
  }

  .bento-col-8, .bento-col-4 {
    grid-column: span 12;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .timeline-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .hero-container {
    --tooth-cx: 50%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding-bottom: 40px;
  }

  .hero-left-col {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-features-row {
    justify-content: center;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
    max-width: 520px;
    gap: 20px 24px;
  }

  .feature-divider {
    display: none;
  }

  .hero-center-col {
    min-height: 420px;
    margin: 10px 0;
  }

  .hero-canvas-box {
    max-width: 380px;
  }

  .hologram-backdrop-rings {
    width: 400px;
    height: 400px;
  }

  .hologram-pedestal {
    width: 360px;
  }

  .hero-right-col {
    grid-column: span 1;
    justify-content: center;
    gap: 24px;
    flex-direction: column;
    align-items: center;
    min-height: auto;
    padding: 0;
  }

  .hero-scroll-indicator {
    flex-direction: column;
  }

  .hero-scroll-indicator .scroll-label {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--header-height));
    background: color-mix(in srgb, var(--bg-2) 96%, transparent);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 99999;
    border-top: 1px solid var(--line);
    padding: 30px 20px;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-link {
    font-size: 1.2rem;
    font-weight: 700;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-container {
    padding: 16px 20px;
  }

  .hero-heading {
    font-size: 2.2rem;
  }

  .timeline-track {
    grid-template-columns: 1fr;
  }

  .booking-form-grid {
    grid-template-columns: 1fr;
  }

  .booking-col-span-2 {
    grid-column: span 1;
  }

  .booking-section-card {
    padding: 36px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-features-row {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .hero-canvas-box {
    max-width: 300px;
  }

  .hologram-backdrop-rings {
    width: 300px;
    height: 300px;
  }

  .hologram-pedestal {
    width: 280px;
  }

  .btn-explore-process {
    width: 100%;
    justify-content: center;
  }

  .btn-book-nav {
    display: none;
  }
}
