:root {
  --blue: #2f638f;
  --blue-deep: #183b52;
  --green: #8aaa78;
  --green-soft: #dfe9da;
  --paper: #f8faf9;
  --white: #ffffff;
  --ink: #183b52;
  --muted: #5f7080;
  --ring: rgba(47, 99, 143, 0.16);
  --shadow: rgba(24, 59, 82, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: Manrope, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 42%), rgba(138, 170, 120, 0.13), transparent 24rem),
    radial-gradient(circle at 50% 22%, rgba(47, 99, 143, 0.09), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 58%, #f3f7f4 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.site-shell {
  position: relative;
  isolation: isolate;
  flex: 1 0 auto;
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(2.25rem, 5vw, 4.25rem) 1.25rem clamp(3.5rem, 7vh, 5rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(100%, 48rem);
  text-align: center;
  transform-style: preserve-3d;
}

.brand-logo {
  position: relative;
  z-index: 2;
  width: clamp(15.5rem, 30vw, 24rem);
  max-width: min(70vw, 24rem);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1.5rem 2.2rem rgba(24, 59, 82, 0.08));
  opacity: 0;
  transform: translateY(2.4rem) scale(0.84);
  animation: logoEntrance 1400ms cubic-bezier(0.16, 1, 0.3, 1) 100ms forwards;
  transition: transform 450ms ease, filter 450ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .brand-logo:hover {
    transform: translateY(-0.2rem) scale(1.006);
    filter: drop-shadow(0 2rem 2.7rem rgba(24, 59, 82, 0.11));
  }
}

.logo-stage {
  position: absolute;
  top: 4%;
  left: 50%;
  width: clamp(15.5rem, 30vw, 24rem);
  aspect-ratio: 1;
  transform: translateX(-50%);
  pointer-events: none;
}

.logo-glow,
.cross-halo,
.ambient,
.grain {
  position: absolute;
  pointer-events: none;
}

.logo-glow {
  inset: 5%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(138, 170, 120, 0.22) 34%, rgba(47, 99, 143, 0.08) 54%, transparent 72%);
  filter: blur(1.65rem);
  opacity: 0;
  animation:
    glowEntrance 1500ms cubic-bezier(0.16, 1, 0.3, 1) 80ms forwards,
    glowBreath 7s ease-in-out 1500ms infinite;
}

.cross-halo {
  top: 26%;
  left: 50%;
  width: 20%;
  aspect-ratio: 1;
  border-radius: 35%;
  transform: translateX(-50%);
  background: rgba(47, 99, 143, 0.16);
  filter: blur(1.1rem);
  opacity: 0;
  animation: crossPulse 5.8s ease-in-out 1.1s infinite;
}

.status-block {
  position: relative;
  z-index: 3;
  margin-top: clamp(1.05rem, 2vw, 1.75rem);
  opacity: 0;
  transform: translateY(2.2rem) scale(0.94);
  animation: contentEntrance 1150ms cubic-bezier(0.16, 1, 0.3, 1) 720ms forwards;
}

.status-block::before {
  content: "";
  display: block;
  width: clamp(3rem, 8vw, 4.75rem);
  height: 2px;
  margin: 0 auto clamp(0.95rem, 1.6vw, 1.2rem);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(47, 99, 143, 0.55), rgba(138, 170, 120, 0.72), transparent);
  opacity: 0;
  transform: scaleX(0.35);
  animation: lineReveal 1050ms cubic-bezier(0.16, 1, 0.3, 1) 1000ms forwards;
}

.practice-name {
  max-width: 13ch;
  margin: 0 auto clamp(1rem, 1.8vw, 1.35rem);
  color: var(--blue-deep);
  font-size: clamp(3rem, 6.4vw, 5.75rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  text-wrap: balance;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  margin: 0 auto clamp(0.85rem, 1.5vw, 1.15rem);
  padding: 0.28rem;
  border: 1px solid rgba(47, 99, 143, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 0.9rem 2rem rgba(24, 59, 82, 0.07);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(0.9rem) scale(0.96);
  animation: contentEntrance 860ms cubic-bezier(0.16, 1, 0.3, 1) 1060ms forwards;
}

.language-button {
  min-width: 2.65rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  padding: 0 0.72rem;
  color: rgba(24, 59, 82, 0.72);
  background: transparent;
  font: 700 0.76rem/1 Manrope, Arial, Helvetica, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.language-button:hover {
  color: var(--blue-deep);
  transform: translateY(-1px);
}

.language-button.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 0.55rem 1rem rgba(47, 99, 143, 0.2);
}

.language-status {
  display: grid;
  justify-items: center;
  min-height: clamp(3.9rem, 7vw, 5.5rem);
}

.status-line {
  display: none;
  grid-area: 1 / 1;
  width: fit-content;
  max-width: min(100%, 16ch);
  margin: 0 auto;
  color: var(--green);
  font-size: clamp(1.75rem, 3.35vw, 2.95rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(1.5rem) scale(0.92);
  animation: headlineEntrance 980ms cubic-bezier(0.16, 1, 0.3, 1) 1180ms forwards;
}

.status-line.is-visible {
  display: block;
}

.status-ar {
  font-family: Cairo, Manrope, Arial, Helvetica, sans-serif;
  font-size: clamp(2.05rem, 4vw, 3.35rem);
  line-height: 1.04;
}

.status-en,
.status-de {
  font-family: Manrope, Arial, Helvetica, sans-serif;
}

.status-en {
  color: rgba(138, 170, 120, 0.9);
  font-size: clamp(1.42rem, 2.65vw, 2.25rem);
}

.status-de {
  color: rgba(47, 99, 143, 0.82);
  font-size: clamp(1.34rem, 2.35vw, 2.05rem);
}

.doctor-stack {
  display: grid;
  justify-items: center;
  min-height: clamp(1.85rem, 3vw, 2.3rem);
  margin: clamp(1rem, 1.8vw, 1.35rem) 0 0;
  color: var(--blue);
  font-size: clamp(0.98rem, 1.8vw, 1.28rem);
  line-height: 1.45;
  font-weight: 600;
  opacity: 0;
  transform: translateY(1.35rem) scale(0.96);
  animation: contentEntrance 880ms cubic-bezier(0.16, 1, 0.3, 1) 1460ms forwards;
}

.doctor-stack p {
  display: none;
  grid-area: 1 / 1;
  margin: 0;
}

.doctor-stack p.is-visible {
  display: block;
}

.doctor-stack [lang="ar"] {
  font-family: Cairo, Manrope, Arial, Helvetica, sans-serif;
  font-size: 1.15em;
}

.ambient {
  z-index: 0;
  border-radius: 999px;
  filter: blur(2rem);
  opacity: 0.42;
}

.ambient-one {
  width: clamp(13rem, 24vw, 24rem);
  aspect-ratio: 1;
  top: 10%;
  left: -7rem;
  background: rgba(47, 99, 143, 0.14);
  animation: floatOne 16s ease-in-out infinite;
}

.ambient-two {
  width: clamp(12rem, 22vw, 22rem);
  aspect-ratio: 1;
  right: -6rem;
  bottom: 15%;
  background: rgba(138, 170, 120, 0.18);
  animation: floatTwo 18s ease-in-out infinite;
}

.ambient-three {
  width: clamp(8rem, 15vw, 15rem);
  aspect-ratio: 1;
  right: 17%;
  top: 13%;
  background: rgba(47, 99, 143, 0.08);
  animation: floatThree 20s ease-in-out infinite;
}

.grain {
  inset: 0;
  z-index: 1;
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(24, 59, 82, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 59, 82, 0.018) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  mask-image: radial-gradient(circle at 50% 39%, transparent 0%, rgba(0, 0, 0, 0.42) 54%, transparent 84%);
}

.site-footer {
  position: relative;
  flex: 0 0 auto;
  z-index: 5;
  margin-top: -3.85rem;
  padding: 1.1rem 1rem 1.2rem;
  text-align: center;
  color: rgba(24, 59, 82, 0.58);
  font-size: 0.82rem;
  line-height: 1.4;
}

.site-footer p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid rgba(47, 99, 143, 0.45);
  outline-offset: 4px;
}

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: translateY(2.4rem) scale(0.84);
    filter: drop-shadow(0 0.35rem 0.7rem rgba(24, 59, 82, 0));
  }
  58% {
    opacity: 1;
    transform: translateY(-0.45rem) scale(1.035);
    filter: drop-shadow(0 2.1rem 2.8rem rgba(24, 59, 82, 0.12));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 1.5rem 2.2rem rgba(24, 59, 82, 0.08));
  }
}

@keyframes contentEntrance {
  0% {
    opacity: 0;
    transform: translateY(2.2rem) scale(0.94);
  }
  70% {
    opacity: 1;
    transform: translateY(-0.18rem) scale(1.006);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes headlineEntrance {
  0% {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.92);
  }
  68% {
    opacity: 1;
    transform: translateY(-0.14rem) scale(1.018);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes glowBreath {
  0%, 100% {
    transform: scale(0.98);
    opacity: 0.52;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.82;
  }
}

@keyframes glowEntrance {
  from {
    opacity: 0;
    transform: scale(0.76);
  }
  to {
    opacity: 0.78;
    transform: scale(1);
  }
}

@keyframes lineReveal {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes crossPulse {
  0%, 100% {
    opacity: 0.05;
    transform: translateX(-50%) scale(0.9);
  }
  48% {
    opacity: 0.22;
    transform: translateX(-50%) scale(1.16);
  }
}

@keyframes floatOne {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(2rem, 1rem, 0);
  }
}

@keyframes floatTwo {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-1.6rem, -1.1rem, 0);
  }
}

@keyframes floatThree {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0.8rem, -1.4rem, 0);
  }
}

@media (max-width: 48rem) {
  .hero {
    align-items: center;
    padding: 2.25rem 1rem 4.5rem;
  }

  .brand-logo {
    width: clamp(13.75rem, 66vw, 22rem);
    max-width: 78vw;
  }

  .logo-stage {
    top: 3%;
    width: clamp(13.75rem, 66vw, 22rem);
  }

  .status-block {
    margin-top: 0.75rem;
  }

  .practice-name {
    margin-bottom: 0.85rem;
    font-size: clamp(2.45rem, 12vw, 4.1rem);
  }

  .status-line {
    font-size: clamp(1.42rem, 7vw, 2.25rem);
  }

  .status-ar {
    font-size: clamp(1.85rem, 8.6vw, 2.65rem);
  }

  .status-en,
  .status-de {
    font-size: clamp(1.25rem, 6vw, 1.85rem);
  }

  .doctor-stack {
    font-size: clamp(0.86rem, 4vw, 1.05rem);
  }

  .site-footer {
    padding-bottom: 0.9rem;
    font-size: 0.76rem;
  }
}

@media (max-width: 22.5rem) {
  .hero {
    padding-top: 1.5rem;
  }

  .brand-logo {
    width: 12.6rem;
    max-width: 76vw;
  }

  .logo-stage {
    width: 12.6rem;
  }

  .practice-name {
    font-size: 2.15rem;
  }

  .status-ar {
    font-size: 1.72rem;
  }

  .status-en,
  .status-de {
    font-size: 1.18rem;
  }

  .doctor-stack {
    font-size: 0.82rem;
  }
}

@media (max-height: 42rem) {
  .hero {
    min-height: 36rem;
  }

  .brand-logo {
    width: clamp(12.5rem, 42vh, 20.5rem);
  }

  .logo-stage {
    width: clamp(12.5rem, 42vh, 20.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  body {
    background:
      radial-gradient(circle at 50% 24%, rgba(47, 99, 143, 0.08), transparent 28rem),
      linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  }
}
