:root {
  --bg-1: #120c18;
  --bg-2: #1c1021;
  --bg-3: #2b1831;
  --panel: rgba(255, 255, 255, 0.1);
  --panel-strong: rgba(255, 255, 255, 0.14);
  --panel-border: rgba(255, 255, 255, 0.12);
  --pearl: #f6efe9;
  --blush: #efc6c6;
  --rose: #f6d7d2;
  --gold: #d8b170;
  --mint: #a9c8bc;
  --danger: #ff9d8c;
  --warning: #f2cb87;
  --success: #9fd6b5;
  --shadow-deep: 0 20px 60px rgba(7, 6, 12, 0.35);
  --shadow-soft: 0 14px 40px rgba(239, 198, 198, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(239, 198, 198, 0.14), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(216, 177, 112, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 42%, #09070d 100%);
  color: var(--pearl);
}

[class*="text-pearl\\/48"] { color: rgba(246, 239, 233, 0.78) !important; }
[class*="text-pearl\\/50"] { color: rgba(246, 239, 233, 0.8) !important; }
[class*="text-pearl\\/52"] { color: rgba(246, 239, 233, 0.82) !important; }
[class*="text-pearl\\/55"] { color: rgba(246, 239, 233, 0.84) !important; }
[class*="text-pearl\\/56"] { color: rgba(246, 239, 233, 0.84) !important; }
[class*="text-pearl\\/58"] { color: rgba(246, 239, 233, 0.86) !important; }
[class*="text-pearl\\/60"] { color: rgba(246, 239, 233, 0.87) !important; }
[class*="text-pearl\\/62"] { color: rgba(246, 239, 233, 0.88) !important; }
[class*="text-pearl\\/64"] { color: rgba(246, 239, 233, 0.89) !important; }
[class*="text-pearl\\/70"] { color: rgba(246, 239, 233, 0.92) !important; }
[class*="text-pearl\\/72"] { color: rgba(246, 239, 233, 0.93) !important; }
[class*="text-pearl\\/74"] { color: rgba(246, 239, 233, 0.94) !important; }
[class*="text-pearl\\/76"] { color: rgba(246, 239, 233, 0.95) !important; }
[class*="text-blush\\/62"] { color: rgba(239, 198, 198, 0.9) !important; }
[class*="text-blush\\/70"] { color: rgba(239, 198, 198, 0.94) !important; }

img {
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
  touch-action: manipulation;
}

.site-background {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
}

.grain-layer {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 90px 90px;
  inset: 0;
  opacity: 0.14;
  position: absolute;
}

.floating-blob {
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.55;
  position: absolute;
}

.blob-one {
  animation: drift 18s ease-in-out infinite;
  background: radial-gradient(circle, rgba(239, 198, 198, 0.38), transparent 72%);
  height: 22rem;
  left: -5rem;
  top: 2rem;
  width: 22rem;
}

.blob-two {
  animation: drift 24s ease-in-out infinite reverse;
  background: radial-gradient(circle, rgba(216, 177, 112, 0.24), transparent 70%);
  height: 28rem;
  right: -8rem;
  top: 12rem;
  width: 28rem;
}

.blob-three {
  animation: drift 20s ease-in-out infinite;
  background: radial-gradient(circle, rgba(169, 200, 188, 0.18), transparent 70%);
  bottom: 0;
  height: 18rem;
  left: 30%;
  width: 18rem;
}

.glass-panel,
.surface-card,
.ambient-card,
.score-card,
.mini-stat,
.error-card {
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-deep);
}

.surface-card,
.score-card,
.mini-stat {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07));
}

.hero-panel {
  position: relative;
}

.hero-panel::after {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 60%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.brand-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-title {
  color: var(--pearl);
  font-family: "Cormorant Garamond", serif;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.primary-btn {
  background: linear-gradient(135deg, #f7ddd7, #d9b37d);
  box-shadow: var(--shadow-soft);
}

.primary-btn:hover,
.primary-btn:focus-visible {
  transform: translateY(-1px);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.secondary-btn:hover,
.secondary-btn:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.hero-device,
.camera-stage,
.preview-stage,
.scan-preview-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(145deg, rgba(239, 198, 198, 0.06), rgba(216, 177, 112, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.scan-preview-shell {
  align-items: center;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.scan-preview-face,
.scanner-face {
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px 999px 46% 46%;
  height: 100%;
  max-height: 22rem;
  overflow: hidden;
  position: relative;
  width: min(18rem, 100%);
}

.preview-mesh,
.scanner-mesh {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  inset: 10% 12%;
  mask-image: radial-gradient(circle at center, black 55%, transparent 88%);
  -webkit-mask-image: radial-gradient(circle at center, black 55%, transparent 88%);
  position: absolute;
}

.preview-line,
.scanner-line {
  animation: scanLine 2.8s linear infinite;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  box-shadow: 0 0 24px rgba(239, 198, 198, 0.45);
  height: 34%;
  left: 10%;
  position: absolute;
  right: 10%;
  top: -32%;
}

.preview-line {
  animation-duration: 3.4s;
}

.ambient-card {
  position: absolute;
  width: 10.5rem;
}

.ambient-card-left {
  bottom: 4.5rem;
  left: -1.5rem;
}

.ambient-card-right {
  right: -1.75rem;
  top: 2rem;
}

.mini-stat {
  min-height: 5rem;
}

.drop-zone {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  cursor: pointer;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.dragover {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.11), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border-color: rgba(239, 198, 198, 0.42);
  transform: translateY(-1px);
}

.upload-orb {
  align-items: center;
  background: radial-gradient(circle, rgba(247, 215, 210, 0.26), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: 0 0 42px rgba(247, 215, 210, 0.16);
  display: flex;
  height: 5.25rem;
  justify-content: center;
  width: 5.25rem;
}

.upload-orb__inner {
  background: linear-gradient(135deg, rgba(247, 215, 210, 0.82), rgba(216, 177, 112, 0.8));
  border-radius: 999px;
  display: block;
  height: 2.65rem;
  width: 2.65rem;
}

.preview-hud {
  background: rgba(7, 6, 12, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  bottom: 1rem;
  color: var(--pearl);
  display: flex;
  font-size: 0.72rem;
  gap: 0.75rem;
  left: 50%;
  padding: 0.65rem 0.9rem;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.face-oval-guide {
  border: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  box-shadow:
    0 0 0 999px rgba(9, 7, 13, 0.12),
    0 0 36px rgba(255, 255, 255, 0.14);
  height: 74%;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 62%;
}

.face-oval-guide--preview,
.face-oval-guide--camera {
  border-color: rgba(247, 215, 210, 0.72);
}

.instruction-row {
  align-items: center;
  display: flex;
  gap: 0.9rem;
}

.instruction-badge {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 700;
  height: 2.15rem;
  justify-content: center;
  letter-spacing: 0.18em;
  min-width: 2.15rem;
}

.error-card {
  background: linear-gradient(180deg, rgba(255, 157, 140, 0.16), rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 157, 140, 0.28);
}

.error-card__icon {
  align-items: center;
  background: rgba(255, 157, 140, 0.22);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  height: 2.5rem;
  justify-content: center;
  min-width: 2.5rem;
}

.scanner-stage {
  align-items: center;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  display: flex;
  justify-content: center;
  min-height: 23rem;
  overflow: hidden;
  padding: 1.5rem;
  position: relative;
}

.scanner-points {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.62) 0 2px, transparent 2px),
    radial-gradient(circle, rgba(247, 215, 210, 0.8) 0 1.5px, transparent 1.5px);
  background-position:
    20% 26%,
    72% 38%;
  background-repeat: no-repeat;
  inset: 0;
  position: absolute;
}

.scanner-glow {
  background: radial-gradient(circle at center, rgba(247, 215, 210, 0.16), transparent 58%);
  inset: 0;
  position: absolute;
}

.progress-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  height: 0.7rem;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, rgba(247, 215, 210, 0.85), rgba(216, 177, 112, 0.95));
  border-radius: inherit;
  box-shadow: 0 0 24px rgba(247, 215, 210, 0.24);
  height: 100%;
  transition: width 260ms ease;
  width: 0%;
}

.score-ring-wrap {
  align-items: center;
  display: grid;
  min-height: 13rem;
  place-items: center;
  position: relative;
}

.score-ring {
  height: 8.5rem;
  transform: rotate(-90deg);
  width: 8.5rem;
}

.score-ring__track,
.score-ring__fill {
  fill: none;
  r: 46;
  stroke-linecap: round;
  stroke-width: 10;
}

.score-ring__track {
  stroke: rgba(255, 255, 255, 0.1);
}

.score-ring__fill {
  stroke: url(#unused);
  stroke: #f6d7d2;
  stroke-dasharray: 289.03;
  stroke-dashoffset: 289.03;
  transition: stroke-dashoffset 360ms ease;
}

.score-ring__fill.secondary {
  stroke: #d8b170;
}

.score-ring__content {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  inset: 0;
  justify-content: center;
  position: absolute;
  text-align: center;
}

.score-ring__label {
  color: rgba(246, 239, 233, 0.58);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.score-ring__value {
  color: var(--pearl);
  font-size: 2.1rem;
  font-weight: 800;
}

.concern-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.85rem 1rem;
}

.analysis-card,
.metric-card,
.quality-card,
.health-ring-panel {
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.analysis-card::after,
.metric-card::after,
.health-ring-panel::after {
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 42%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.analysis-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: var(--pearl);
  display: inline-flex;
  height: 2.9rem;
  justify-content: center;
  width: 2.9rem;
}

.health-ring-panel,
.quality-card {
  position: relative;
}

.score-ring-wrap--large {
  min-height: 16rem;
}

.score-ring--large {
  height: 12rem;
  width: 12rem;
}

.score-ring__value--large {
  font-size: 2.8rem;
}

.quality-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
}

.quality-pill {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.quality-pill__badge {
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  padding: 0.65rem 0.95rem;
  text-transform: uppercase;
}

.quality-pill__badge--good {
  background: rgba(159, 214, 181, 0.14);
  color: var(--success);
}

.quality-pill__badge--mid {
  background: rgba(242, 203, 135, 0.16);
  color: var(--warning);
}

.quality-pill__badge--low {
  background: rgba(255, 157, 140, 0.18);
  color: var(--danger);
}

.analysis-bar {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  height: 0.65rem;
  overflow: hidden;
}

.analysis-bar__fill {
  border-radius: inherit;
  height: 100%;
  transition: width 500ms ease;
  width: 0%;
}

.severity-pill {
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 0.45rem 0.7rem;
  text-transform: uppercase;
}

.severity-low {
  background: rgba(159, 214, 181, 0.15);
  color: var(--success);
}

.severity-moderate {
  background: rgba(242, 203, 135, 0.16);
  color: var(--warning);
}

.severity-high {
  background: rgba(255, 157, 140, 0.18);
  color: var(--danger);
}

.metric-card {
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.metric-card--highlight {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
}

.metric-card__score {
  color: var(--pearl);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.analysis-details {
  overflow: hidden;
}

.analysis-details__summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}

.analysis-details__summary::-webkit-details-marker {
  display: none;
}

.analysis-details__toggle {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(246, 239, 233, 0.88);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 0.7rem 0.9rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.analysis-details[open] .analysis-details__toggle {
  background: rgba(255, 255, 255, 0.08);
}

.analysis-details__content {
  padding-top: 0.25rem;
}

.service-card {
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  position: relative;
}

.service-card__image {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.service-card__recommended {
  background: rgba(216, 177, 112, 0.15);
  border: 1px solid rgba(216, 177, 112, 0.28);
  border-radius: 999px;
  color: var(--gold);
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 0.48rem 0.72rem;
  text-transform: uppercase;
}

.camera-modal {
  inset: 0;
  position: fixed;
  z-index: 60;
}

.camera-modal__backdrop {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(8, 6, 12, 0.72);
  inset: 0;
  position: absolute;
}

.camera-modal__panel {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  overflow-y: auto;
  padding: 1rem;
  position: relative;
}

.camera-modal__panel .glass-panel {
  margin: auto;
  max-width: 36rem;
  width: 100%;
}

.camera-stage {
  aspect-ratio: 4 / 5;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.sticky-cta {
  bottom: 1rem;
  left: 50%;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%);
  width: min(92%, 28rem);
  z-index: 55;
}

.sticky-cta__button {
  background: linear-gradient(135deg, rgba(247, 221, 215, 0.96), rgba(216, 177, 112, 0.94));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(7, 6, 12, 0.42);
  color: #1b1320;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 1rem 1.35rem;
  pointer-events: auto;
  width: 100%;
}

.sticky-cta__button:hover,
.sticky-cta__button:focus-visible {
  transform: translateY(-1px);
}

.hidden {
  display: none !important;
}

@keyframes scanLine {
  0% {
    top: -34%;
  }
  100% {
    top: 104%;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(1rem, -1rem, 0) scale(1.04);
  }
}

@media (max-width: 767px) {
  .ambient-card {
    display: none;
  }

  .glass-panel,
  .surface-card,
  .score-card,
  .service-card,
  .analysis-card,
  .metric-card,
  .quality-card,
  .health-ring-panel {
    border-radius: 24px;
  }

  .scanner-stage {
    min-height: 19rem;
  }

  .score-ring--large {
    height: 10.5rem;
    width: 10.5rem;
  }

  .score-ring__value--large {
    font-size: 2.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
