/* ================================================================
   Aurelia — Apple-Inspired Design System
   ================================================================ */
:root {
  /* Accent — kept but used with extreme restraint */
  --accent: #d4ff00;
  --accent-dim: rgba(212, 255, 0, 0.10);
  --accent-border: rgba(212, 255, 0, 0.20);

  /* Raw */
  --white: #ffffff;
  --black: #000000;

  /* Glass surfaces — the soul of this design */
  --glass-subtle:   rgba(255, 255, 255, 0.04);
  --glass-regular:  rgba(255, 255, 255, 0.07);
  --glass-elevated: rgba(255, 255, 255, 0.10);
  --glass-high:     rgba(255, 255, 255, 0.16);

  /* Borders */
  --border-whisper: rgba(255, 255, 255, 0.07);
  --border-subtle:  rgba(255, 255, 255, 0.11);
  --border-regular: rgba(255, 255, 255, 0.18);
  --border-strong:  rgba(255, 255, 255, 0.28);

  /* Typography stacks */
  --font-sans:  -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Cormorant Garamond', 'New York', 'Iowan Old Style', Georgia, serif;

  /* Text hierarchy */
  --text-1: rgba(255, 255, 255, 0.95);
  --text-2: rgba(255, 255, 255, 0.60);
  --text-3: rgba(255, 255, 255, 0.35);
  --text-4: rgba(255, 255, 255, 0.22);

  /* Radius scale */
  --r-xs:   8px;
  --r-sm:   12px;
  --r-md:   16px;
  --r-lg:   22px;
  --r-pill: 100px;

  /* Motion */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease:   cubic-bezier(0.25, 0.8,  0.25, 1.0);

  /* Legacy aliases (used in HTML) */
  --color-neon:      var(--accent);
  --color-white:     var(--white);
  --color-black:     var(--black);
  --color-text-muted: var(--text-2);
  --color-text-dark: #0a0a0a;
  --transition-smooth: all 0.38s var(--ease);
}

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

body {
  font-family: var(--font-sans);
  background-color: #000000;
  color: var(--text-1);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 2.75rem;
  box-sizing: border-box;
}

.hero-bg {
  position: fixed;
  inset: 0;
  background-image: url('assets/bg.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* Richer, layered overlay — Apple-style depth */
.hero-overlay {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.48) 42%, rgba(0,0,0,0.05) 78%),
    linear-gradient(175deg, rgba(0,0,0,0.30) 0%, transparent 55%),
    radial-gradient(ellipse at 5% 10%, rgba(255, 210, 120, 0.08) 0%, transparent 40%);
  z-index: 2;
}

/* ---- Header ---- */
.header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Glass button — Apple vitreous style */
.btn {
  background: var(--glass-elevated);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: var(--text-1);
  border: 0.5px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.28s var(--ease);
}

.btn-white {
  background: var(--glass-elevated);
  color: var(--text-1);
  border-color: var(--border-subtle);
}

.btn-white:hover {
  background: var(--glass-high);
  border-color: var(--border-regular);
  transform: scale(1.02);
}

.btn-square {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
}

.btn-pill {
  height: 40px;
  padding: 0 1.2rem;
  border-radius: var(--r-pill);
  letter-spacing: -0.01em;
}

/* Brand wordmark */
.brand-logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-1);
  text-decoration: none;
  letter-spacing: 0.12em;
  transition: opacity 0.3s var(--ease), letter-spacing 0.4s var(--ease);
}

.brand-logo:hover {
  opacity: 0.75;
  letter-spacing: 0.16em;
}

/* ---- Hero Content Grid ---- */
.hero-content {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: flex-end;
  height: 100%;
  margin-top: auto;
  padding-bottom: 2.25rem;
}

.content-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 960px;
  width: 100%;
  padding-right: 1rem;
}

/* Stars + subtitle */
.rating-group {
  margin-bottom: 2.5rem;
}

.stars {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.85rem;
  letter-spacing: 0.22em;
}

.subtitle {
  font-size: clamp(1.05rem, 1.3vw, 1.45rem);
  line-height: 1.5;
  font-weight: 300;
  color: var(--text-2);
  max-width: 520px;
  letter-spacing: -0.01em;
}

/* Doctor profile card — glass card */
.profile-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 4rem;
  padding: 0.9rem 1.2rem;
  background: var(--glass-subtle);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 0.5px solid var(--border-whisper);
  border-radius: var(--r-md);
  width: fit-content;
}

.profile-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 0.5px solid var(--border-subtle);
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.profile-name {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-1);
}

.profile-title {
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.profile-rating {
  margin-left: 1.25rem;
  padding-left: 1.25rem;
  border-left: 0.5px solid var(--border-whisper);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rating-label {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: -0.005em;
}

.rating-bar-container {
  width: 96px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.rating-bar {
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.7), rgba(255,255,255,0.4));
  border-radius: 2px;
}

/* Main display headline — Apple thin large type */
.main-heading {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 7.2vw, 9.5rem);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin-bottom: 2rem;
}

.description {
  font-size: clamp(1.05rem, 1.3vw, 1.55rem);
  line-height: 1.55;
  font-weight: 300;
  color: var(--text-2);
  max-width: 620px;
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

/* ---- CTA Buttons — Apple pill style ---- */
.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-cta {
  height: 54px;
  padding: 0 2rem;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
  transition: all 0.32s var(--ease);
}

.btn-neon {
  background: var(--accent);
  color: #000000;
  border: none;
}

.btn-neon:hover {
  transform: scale(1.025) translateY(-1px);
  box-shadow: 0 12px 32px rgba(212, 255, 0, 0.28);
}

.btn-outline {
  background: var(--glass-regular);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 0.5px solid var(--border-regular);
  color: var(--text-1);
}

.btn-outline:hover {
  background: var(--glass-elevated);
  border-color: var(--border-strong);
  transform: scale(1.025) translateY(-1px);
}

.chevron {
  transition: transform 0.28s var(--ease);
  opacity: 0.7;
}

.btn-cta:hover .chevron {
  transform: translateX(3px);
  opacity: 1;
}

/* ---- Right content spacer ---- */
.content-right {
  position: relative;
  height: 100%;
  width: 100%;
}

/* ---- Scan Grid Overlay ---- */
.scan-grid-overlay {
  position: fixed;
  top: calc(50vh - 16.8vw - 170px);
  left: calc(67.87vw - 140px);
  width: 400px;
  height: 400px;
  pointer-events: none;
  z-index: 3;
}

/* ---- Enter animations ---- */
.hero-content > * {
  animation: fadeUp 1.2s var(--ease) both;
}

.content-left {
  animation-delay: 0.15s;
}

.main-heading {
  animation: fadeUp 1.4s var(--ease) both;
  animation-delay: 0.35s;
}

.description {
  animation: fadeUp 1.4s var(--ease) both;
  animation-delay: 0.45s;
}

.cta-group {
  animation: fadeUp 1.4s var(--ease) both;
  animation-delay: 0.55s;
}

/* ---- Scanner lines ---- */
.scan-line-v {
  position: absolute;
  top: -200%;
  bottom: -200%;
  left: 240px;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
  transform-origin: top;
  animation: drawV 1.6s var(--ease) both;
  animation-delay: 0.7s;
}

.scan-line-h {
  position: absolute;
  left: -200%;
  right: -200%;
  top: 240px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
  transform-origin: left;
  animation: drawH 1.6s var(--ease) both;
  animation-delay: 0.7s;
}

.scan-target-box {
  position: absolute;
  top: 100px;
  left: 40px;
  width: 200px;
  height: 140px;
  pointer-events: none;
  animation:
    scaleIn 1s var(--ease) both 1.1s,
    pulseGrid 5s ease-in-out infinite 2.1s;
}

.corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid transparent;
}

.corner-tr {
  top: 0; right: 0;
  border-top-color: rgba(255,255,255,0.75);
  border-right-color: rgba(255,255,255,0.75);
}

.corner-bl {
  bottom: 0; left: 0;
  border-bottom-color: rgba(255,255,255,0.75);
  border-left-color: rgba(255,255,255,0.75);
}

.clean-eye-pointer {
  position: absolute;
  left: -4px;
  bottom: -32px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  opacity: 0;
  animation: fadeIn 0.8s ease-out both 1.8s;
}

.pointer-triangle {
  width: 0; height: 0;
  border-left: 4px solid rgba(255,255,255,0.8);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  display: inline-block;
  transform: translateY(1px);
}

.pointer-text {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
  text-transform: lowercase;
}

/* ---- Keyframes ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 0.9; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1);    }
}

@keyframes drawV {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

@keyframes drawH {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes pulseGrid {
  0%, 100% { transform: scale(1);     opacity: 0.8; }
  50%       { transform: scale(1.02); opacity: 1.0; }
}

/* ================================================================
   Menu Overlay — Apple frosted glass sheet
   ================================================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 6, 0.82);
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s var(--ease);
  overflow: hidden;
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.menu-overlay-inner {
  position: relative;
  z-index: 1;
  padding: 2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Close button — Apple-style glass circle */
.menu-overlay-close {
  position: absolute;
  top: 2.5rem;
  right: 2.75rem;
  width: 40px;
  height: 40px;
  background: var(--glass-regular);
  border: 0.5px solid var(--border-subtle);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.22s var(--ease);
  z-index: 2;
}

.menu-overlay-close span {
  display: block;
  width: 14px;
  height: 1px;
  background: rgba(255, 255, 255, 0.80);
  transition: all 0.22s var(--ease);
}

.menu-overlay-close span:first-child { transform: rotate(45deg)  translateY(3px); }
.menu-overlay-close span:last-child  { transform: rotate(-45deg) translateY(-3px); }

.menu-overlay-close:hover {
  background: var(--glass-elevated);
  border-color: var(--border-regular);
  transform: scale(1.08);
}

/* Nav links */
.menu-nav {
  display: flex;
  flex-direction: column;
}

.menu-nav-link {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  text-decoration: none;
  padding: 0.85rem 0;
  border-bottom: 0.5px solid var(--border-whisper);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity  0.38s var(--ease),
    transform 0.38s var(--ease),
    border-color 0.25s;
}

.menu-overlay.is-open .menu-nav-link              { opacity: 1; transform: translateY(0); }
.menu-overlay.is-open .menu-nav-link:nth-child(1) { transition-delay: 0.06s; }
.menu-overlay.is-open .menu-nav-link:nth-child(2) { transition-delay: 0.12s; }
.menu-overlay.is-open .menu-nav-link:nth-child(3) { transition-delay: 0.18s; }
.menu-overlay.is-open .menu-nav-link:nth-child(4) { transition-delay: 0.24s; }

.menu-nav-link:hover { border-bottom-color: var(--border-subtle); }

.menu-link-num {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-4);
  letter-spacing: 0.16em;
  min-width: 2rem;
  padding-top: 0.6rem;
  transition: color 0.25s;
}

.menu-link-text {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: 0.01em;
  line-height: 1;
  transition: color 0.25s;
}

.menu-nav-link:hover .menu-link-text,
.menu-nav-link.active .menu-link-text {
  color: var(--text-1);
}

.menu-nav-link:hover .menu-link-num,
.menu-nav-link.active .menu-link-num {
  color: rgba(255, 255, 255, 0.45);
}

/* Meta footer */
.menu-overlay-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.38s ease 0.32s;
}

.menu-overlay.is-open .menu-overlay-meta { opacity: 1; }

.menu-meta-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.02em;
  margin-bottom: 0.15rem;
}

.menu-meta-sub {
  font-size: 0.74rem;
  font-weight: 300;
  color: var(--text-4);
  letter-spacing: 0.04em;
}

.menu-overlay-deco {
  position: absolute;
  right: -2rem;
  bottom: -1rem;
  font-family: var(--font-serif);
  font-size: clamp(9rem, 17vw, 20rem);
  font-weight: 200;
  color: rgba(255, 255, 255, 0.018);
  letter-spacing: 0.06em;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
  line-height: 1;
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 1600px) {
  .rating-group { margin-bottom: 2rem; }
  .profile-card { margin-bottom: 3rem; }
  .description  { margin-bottom: 2.5rem; }
}

@media (max-width: 1440px) {
  .hero         { padding: 1.75rem 2.25rem; }
  .rating-group { margin-bottom: 1.6rem; }
  .profile-card { margin-bottom: 2.25rem; }
  .main-heading { font-size: clamp(4.2rem, 6.5vw, 7.5rem); margin-bottom: 1.6rem; }
  .description  { margin-bottom: 1.85rem; }
  .btn-cta      { height: 50px; }
}

@media (max-width: 1280px) {
  .hero         { padding: 1.5rem 2rem; }
  .rating-group { margin-bottom: 1.2rem; }
  .stars        { font-size: 1.05rem; margin-bottom: 0.65rem; }
  .subtitle     { font-size: clamp(0.92rem, 1.1vw, 1.2rem); }
  .profile-card { margin-bottom: 1.6rem; }
  .profile-avatar { width: 38px; height: 38px; }
  .main-heading { font-size: clamp(3.5rem, 5.8vw, 6.5rem); margin-bottom: 1.1rem; }
  .description  { font-size: clamp(0.95rem, 1.2vw, 1.35rem); margin-bottom: 1.4rem; }
  .btn-cta      { height: 48px; font-size: 0.9rem; padding: 0 1.7rem; }
}

@media (max-width: 992px) {
  body { overflow: auto; }
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 2rem;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: flex-start;
    padding-top: 8rem;
  }
  .content-right { height: 300px; }
  .scan-grid-overlay {
    left: calc(50vw + 17.87vh - 140px);
    top: calc(33.20vh - 170px);
  }
  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.82) 100%),
      linear-gradient(135deg, rgba(255,210,120,0.06) 0%, transparent 60%);
  }
}

@media (max-width: 768px) {
  body { overflow: auto; }
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 1.5rem;
    justify-content: flex-start;
  }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.68) 100%),
      linear-gradient(135deg, rgba(255,210,120,0.07) 0%, transparent 60%);
  }
  .scan-grid-overlay { display: none; }
  .hero-content {
    grid-template-columns: 1fr;
    align-items: flex-start;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    height: auto;
    margin-top: 0;
  }
  .content-right { display: none; }
  .rating-group  { margin-bottom: 1.4rem; }
  .profile-card  {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.6rem;
  }
  .profile-rating { margin-left: 0; border-left: none; padding-left: 0; }
  .main-heading  { font-size: clamp(2.8rem, 8vw, 4.8rem); margin-bottom: 0.9rem; }
  .subtitle,
  .description   { font-size: clamp(0.92rem, 3.8vw, 1.35rem); }
  .description   { margin-bottom: 1.6rem; }
  .cta-group     { flex-direction: column; gap: 0.7rem; }
  .btn-cta       { height: 52px; width: 100%; justify-content: center; font-size: 0.95rem; }
  .profile-avatar { width: 42px; height: 42px; }
  .content-left  { padding-right: 0; }

  .menu-overlay-inner { padding: 2rem 1.5rem; gap: 2rem; }
  .menu-overlay-close { top: 1.5rem; right: 1.5rem; }
  .menu-overlay-deco  { display: none; }
  .menu-link-text     { font-size: clamp(2rem, 9vw, 3.5rem); }
}

@media (max-width: 576px) {
  .hero          { padding: 1.25rem 1rem; }
  .main-heading  { font-size: clamp(2.4rem, 9vw, 3.6rem); margin-bottom: 0.8rem; }
  .stars         { font-size: 1rem; }
  .cta-group     { gap: 0.55rem; }
  .btn-cta       { height: 48px; font-size: 0.88rem; }
  .profile-card  { margin-bottom: 1.1rem; }
  .rating-group  { margin-bottom: 1rem; }
  .description   { margin-bottom: 1.1rem; }
}
