:root {
  --ink: #10231f;
  --muted: #60716d;
  --line: #e8efed;
  --paper: #ffffff;
  --soft: #f6fbf9;
  --mint: #6adf9b;
  --teal: #0ea9a3;
  --blue: #2475ff;
  --shadow: 0 24px 70px rgba(20, 45, 38, 0.12);
  --story: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

html[dir="rtl"] body {
  font-family: "IBM Plex Sans Arabic", Manrope, system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.scroll-meter {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 100;
  width: calc(var(--page-progress, 0) * 100%);
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--mint), #fff0a8);
}

.site-header {
  position: fixed;
  inset: 18px 24px auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(232, 239, 237, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 60px rgba(21, 47, 40, 0.09);
  backdrop-filter: blur(24px);
}

.brand-mark,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark img,
.footer-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-links a,
.language-toggle {
  min-height: 38px;
  padding: 10px 13px;
  border-radius: 999px;
  color: #31433f;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.language-toggle:hover,
.language-toggle:focus-visible {
  transform: translateY(-2px);
  background: #eff9f5;
  color: #0d7c70;
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  cursor: pointer;
  background: #f5faf8;
}

.globe {
  font-size: 20px;
  line-height: 1;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, background 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px) scale(1.015);
  outline: none;
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button-dark {
  background: #10231f;
  color: white;
  box-shadow: 0 12px 32px rgba(16, 35, 31, 0.18);
}

.button-soft {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.button-whatsapp {
  background: linear-gradient(135deg, #1cc86f, #0fa59e);
  color: white;
  box-shadow: 0 18px 48px rgba(17, 181, 122, 0.25);
}

.hero-story {
  min-height: 440vh;
  background:
    radial-gradient(circle at 50% calc(16% + var(--story) * 22%), rgba(125, 240, 176, calc(0.07 + var(--story) * 0.12)), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbfffd 48%, #ffffff 100%);
}

.story-canvas {
  position: sticky;
  top: 0;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.84fr);
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  overflow: hidden;
  padding: 120px clamp(18px, 5vw, 82px) 54px;
}

.clinic-stage {
  position: relative;
  min-height: min(70vw, 650px);
  border: 1px solid rgba(226, 236, 233, 0.92);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transform: perspective(1100px) rotateX(calc(2deg - var(--story) * 2deg)) translateY(calc(var(--story) * -14px));
}

.back-wall,
.floor,
.window,
.desk,
.counter-line,
.plant,
.chair,
.patient,
.staff,
.message-bubble,
.qr-tile,
.meta-chip,
.voice-wave,
.light-burst,
.growth-line,
.ambient-glow {
  position: absolute;
}

.back-wall {
  inset: 0 0 38%;
  background:
    linear-gradient(90deg, rgba(18, 126, 116, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff, #f6fbf9);
  background-size: 56px 56px, auto;
}

.floor {
  inset: 62% 0 0;
  background:
    linear-gradient(135deg, rgba(16, 35, 31, 0.05) 25%, transparent 25%) 0 0 / 58px 58px,
    linear-gradient(225deg, rgba(16, 35, 31, 0.04) 25%, transparent 25%) 0 0 / 58px 58px,
    #f7fbfa;
}

.ambient-glow {
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(38px);
  opacity: calc(0.18 + var(--story) * 0.32);
}

.glow-a {
  left: -12%;
  top: 5%;
  background: rgba(106, 223, 155, 0.44);
}

.glow-b {
  right: -14%;
  bottom: -16%;
  background: rgba(36, 117, 255, 0.18);
}

.window {
  top: 13%;
  width: 18%;
  height: 26%;
  border: 10px solid #ffffff;
  border-radius: 18px;
  background: linear-gradient(180deg, #e9fbff, #ffffff);
  box-shadow: inset 0 0 0 1px #dfecea, 0 18px 50px rgba(42, 120, 140, 0.09);
}

.window-left {
  left: 9%;
}

.window-right {
  right: 11%;
  opacity: calc(0.25 + var(--story) * 0.7);
  transform: translateX(calc((1 - var(--story)) * 34px));
}

.desk {
  left: 25%;
  right: 24%;
  bottom: 22%;
  height: 18%;
  border-radius: 22px 22px 12px 12px;
  background: linear-gradient(180deg, #ffffff, #eaf4f1);
  box-shadow: 0 22px 45px rgba(31, 68, 62, 0.12);
}

.counter-line {
  left: 28%;
  right: 27%;
  bottom: 37%;
  height: 10px;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--teal), var(--mint));
  opacity: calc(0.35 + var(--story) * 0.45);
}

.plant {
  bottom: 18%;
  width: 48px;
  height: 118px;
  border-radius: 24px 24px 8px 8px;
  background: linear-gradient(180deg, #7adf9e, #0f9c8f);
  transform-origin: bottom;
}

.plant::after,
.chair::after,
.patient::after,
.staff::after {
  content: "";
  position: absolute;
}

.plant::after {
  left: -18px;
  top: 20px;
  width: 84px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 151, 132, 0.22);
  transform: rotate(-22deg);
}

.plant-one {
  left: 7%;
}

.plant-two {
  right: 7%;
  opacity: calc(var(--story) * 1.1);
  transform: translateY(calc((1 - var(--story)) * 60px));
}

.chair {
  bottom: 19%;
  width: 90px;
  height: 62px;
  border-radius: 24px 24px 10px 10px;
  background: #dfecea;
}

.chair::after {
  inset: 52px 14px auto;
  height: 32px;
  border-radius: 12px;
  background: #cbdcd8;
}

.chair-one {
  left: 17%;
  opacity: calc(0.45 + var(--story) * 0.4);
}

.chair-two {
  right: 19%;
  opacity: calc(var(--story) * 1.2);
  transform: translateY(calc((1 - var(--story)) * 44px));
}

.patient,
.staff {
  width: 46px;
  height: 86px;
  border-radius: 22px 22px 12px 12px;
  background: #10231f;
  box-shadow: 0 18px 40px rgba(16, 35, 31, 0.12);
}

.patient::after,
.staff::after {
  left: 7px;
  top: -30px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #bddbd5;
}

.patient-one {
  left: 31%;
  bottom: 28%;
  transform: translateY(calc((1 - min(var(--story) * 2.2, 1)) * 75px));
  opacity: min(var(--story) * 2.2, 1);
}

.patient-two {
  left: 51%;
  bottom: 25%;
  background: #1fae8d;
  transform: translateY(calc((1 - min(max((var(--story) - 0.22) * 2.4, 0), 1)) * 80px));
  opacity: min(max((var(--story) - 0.22) * 2.4, 0), 1);
}

.patient-three {
  right: 24%;
  bottom: 28%;
  background: #2475ff;
  transform: translateY(calc((1 - min(max((var(--story) - 0.38) * 2.4, 0), 1)) * 80px));
  opacity: min(max((var(--story) - 0.38) * 2.4, 0), 1);
}

.staff-one {
  left: 43%;
  bottom: 39%;
  background: #f3fffb;
  border: 2px solid #bfe7dd;
  opacity: calc(0.65 + var(--story) * 0.35);
}

.message-bubble {
  max-width: 180px;
  padding: 12px 14px;
  border-radius: 18px;
  background: white;
  color: #28413b;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 16px 44px rgba(21, 47, 40, 0.12);
}

.bubble-one {
  left: 24%;
  top: 18%;
  opacity: min(max((var(--story) - 0.14) * 4, 0), 1);
  transform: translateY(calc((1 - min(max((var(--story) - 0.14) * 4, 0), 1)) * 28px));
}

.bubble-two {
  right: 22%;
  top: 33%;
  color: white;
  background: linear-gradient(135deg, #12b981, #0ea9a3);
  opacity: min(max((var(--story) - 0.3) * 4, 0), 1);
}

.bubble-three {
  right: 12%;
  top: 17%;
  opacity: min(max((var(--story) - 0.46) * 4, 0), 1);
}

.qr-tile {
  right: 35%;
  bottom: 37%;
  width: 64px;
  height: 64px;
  border: 8px solid white;
  border-radius: 14px;
  background:
    linear-gradient(90deg, #10231f 50%, transparent 50%) 0 0 / 14px 14px,
    linear-gradient(#10231f 50%, transparent 50%) 0 0 / 14px 14px,
    #ffffff;
  opacity: min(max((var(--story) - 0.56) * 4, 0), 1);
  box-shadow: 0 18px 40px rgba(16, 35, 31, 0.14);
}

.meta-chip {
  left: 13%;
  top: 49%;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eef5ff;
  color: #2360ce;
  font-size: 13px;
  font-weight: 800;
  opacity: min(max((var(--story) - 0.64) * 4, 0), 1);
}

.voice-wave {
  right: 12%;
  bottom: 28%;
  display: flex;
  align-items: center;
  gap: 5px;
  width: 78px;
  height: 46px;
  padding: 9px;
  border-radius: 999px;
  background: #10231f;
  opacity: min(max((var(--story) - 0.7) * 4, 0), 1);
}

.voice-wave span {
  width: 8px;
  height: 14px;
  border-radius: 10px;
  background: var(--mint);
  animation: wave 900ms ease-in-out infinite alternate;
}

.voice-wave span:nth-child(2) {
  animation-delay: 120ms;
}

.voice-wave span:nth-child(3) {
  animation-delay: 220ms;
}

.voice-wave span:nth-child(4) {
  animation-delay: 340ms;
}

.light-burst {
  inset: -22%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, min(max((var(--story) - 0.79) * 3.2, 0), 0.95)) 0 15%, rgba(255, 244, 180, min(max((var(--story) - 0.79) * 2.4, 0), 0.72)) 24%, rgba(105, 225, 157, 0) 58%),
    conic-gradient(from 120deg, transparent, rgba(255, 255, 255, 0.9), transparent, rgba(106, 223, 155, 0.5), transparent);
  opacity: min(max((var(--story) - 0.78) * 3.2, 0), 1);
  transform: scale(calc(0.42 + min(max((var(--story) - 0.78) * 3, 0), 1) * 0.9)) rotate(calc(var(--story) * 70deg));
  mix-blend-mode: screen;
  pointer-events: none;
}

.growth-line {
  left: 50%;
  top: 50%;
  width: min(84%, 620px);
  color: #10231f;
  font-size: clamp(38px, 5.8vw, 82px);
  font-weight: 850;
  line-height: 0.98;
  text-align: center;
  opacity: min(max((var(--story) - 0.82) * 5, 0), 1);
  transform: translate(-50%, calc(-56% + min(max((var(--story) - 0.82) * 4, 0), 1) * 86px)) scale(calc(0.86 + min(max((var(--story) - 0.82) * 4, 0), 1) * 0.14));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
  transform: translateY(calc(var(--story) * -22px));
}

.hero-logo {
  width: 78px;
  height: 78px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #0b8f83;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h1 span {
  display: block;
  color: #0b8f83;
  font-size: 0.42em;
  line-height: 1.1;
}

h1 strong {
  display: block;
}

.hero-description {
  color: var(--muted);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.section {
  padding: clamp(86px, 11vw, 150px) clamp(18px, 5vw, 82px);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-heading h2,
.clinic-copy h2,
.demo-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.animated-video {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 45% 42%, rgba(106, 223, 155, 0.2), transparent 30%),
    radial-gradient(circle at 60% 70%, rgba(36, 117, 255, 0.1), transparent 30%),
    #fbfffd;
  box-shadow: var(--shadow);
}

.phone-frame,
.demo-phone {
  width: min(340px, 78vw);
  min-height: 470px;
  padding: 20px;
  border: 10px solid #14231f;
  border-radius: 38px;
  background: #f6fbf9;
  box-shadow: 0 30px 90px rgba(16, 35, 31, 0.2);
}

.phone-top,
.demo-phone-top {
  height: 42px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: #ffffff;
  color: #0b8f83;
  display: grid;
  place-items: center;
  font-weight: 850;
}

.chat-row,
.demo-message {
  width: fit-content;
  max-width: 88%;
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 18px;
  color: #213934;
  background: white;
  box-shadow: 0 12px 30px rgba(16, 35, 31, 0.08);
  animation: chatFloat 3.8s ease-in-out infinite;
}

.outgoing {
  margin-left: auto;
  color: white;
  background: linear-gradient(135deg, #12b981, #0ea9a3);
  animation-delay: 500ms;
}

html[dir="rtl"] .outgoing {
  margin-right: auto;
  margin-left: 0;
}

.small {
  font-size: 13px;
}

.orbit {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 230px;
  padding: 12px 14px;
  border: 1px solid rgba(232, 239, 237, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 50px rgba(16, 35, 31, 0.1);
  backdrop-filter: blur(18px);
  font-size: 14px;
  font-weight: 800;
  animation: orbitFloat 4.2s ease-in-out infinite;
}

.orbit img {
  width: 38px;
  height: 38px;
}

.orbit-one {
  left: 10%;
  top: 18%;
}

.orbit-two {
  right: 12%;
  top: 22%;
  animation-delay: 400ms;
}

.orbit-three {
  left: 12%;
  bottom: 16%;
  animation-delay: 800ms;
}

.orbit-four {
  right: 13%;
  bottom: 18%;
  animation-delay: 1200ms;
}

.clinics-section,
.demo-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  align-items: center;
  gap: clamp(28px, 6vw, 82px);
}

.clinic-visual img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fbfffd;
  box-shadow: var(--shadow);
}

.clinic-copy p,
.demo-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.check-list,
.price-card ul {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.price-card li {
  position: relative;
  padding-inline-start: 30px;
  color: #40534f;
  line-height: 1.55;
}

.check-list li::before,
.price-card li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.35em;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--teal));
  box-shadow: inset 0 0 0 5px white;
}

.features-section,
.pricing-section {
  background: linear-gradient(180deg, #ffffff, #f8fcfb 45%, #ffffff);
}

.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.price-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 55px rgba(16, 35, 31, 0.07);
}

.feature-card {
  min-height: 345px;
  padding: 26px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 169, 163, 0.28);
  box-shadow: var(--shadow);
}

.feature-card img {
  width: 88px;
  height: 88px;
  margin-bottom: 24px;
}

.feature-card h3,
.price-card h3 {
  margin-bottom: 12px;
  font-size: 23px;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-card strong {
  color: #0d766d;
  line-height: 1.55;
}

.demo-section {
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  background:
    radial-gradient(circle at 80% 20%, rgba(106, 223, 155, 0.18), transparent 30%),
    #ffffff;
}

.demo-phone {
  justify-self: center;
  transform: rotate(2deg);
}

.demo-phone-top {
  background: #10231f;
  color: white;
}

.demo-message.outgoing {
  margin-left: auto;
}

.pricing-grid {
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: 28px;
  overflow: hidden;
}

.price-card.featured {
  border-color: rgba(14, 169, 163, 0.36);
  transform: translateY(-12px);
  box-shadow: var(--shadow);
}

.plan-badge {
  position: absolute;
  inset: 22px 22px auto auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eafff6;
  color: #0d766d;
  font-size: 12px;
  font-weight: 850;
}

html[dir="rtl"] .plan-badge {
  inset: 22px auto auto 22px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 16px;
}

.price span {
  font-size: 48px;
  font-weight: 850;
  line-height: 1;
}

.price small {
  color: var(--muted);
  font-weight: 800;
}

.price-card p {
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(18px, 5vw, 82px);
  border-top: 1px solid var(--line);
  background: #fbfffd;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
  font-weight: 800;
}

.footer-links a:hover {
  color: #0b8f83;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes wave {
  to {
    height: 30px;
  }
}

@keyframes chatFloat {
  50% {
    transform: translateY(-5px);
  }
}

@keyframes orbitFloat {
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 1080px) {
  .site-header {
    inset: 12px 12px auto;
    border-radius: 24px;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .story-canvas,
  .clinics-section,
  .demo-section {
    grid-template-columns: 1fr;
  }

  .story-canvas {
    padding-top: 166px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .feature-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    gap: 10px;
  }

  .brand-mark span {
    display: none;
  }

  .header-actions {
    margin-inline-start: auto;
  }

  .button {
    padding-inline: 14px;
  }

  .story-canvas {
    padding-inline: 14px;
    padding-top: 128px;
    align-content: start;
    gap: 24px;
  }

  .clinic-stage {
    min-height: 360px;
    border-radius: 18px;
  }

  .hero-copy {
    order: -1;
  }

  h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-logo {
    width: 64px;
    height: 64px;
  }

  .section {
    padding-inline: 16px;
  }

  .animated-video {
    min-height: 690px;
  }

  .orbit {
    position: static;
    margin: 8px;
    animation: none;
  }

  .animated-video {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 28px 12px;
  }

  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

/* Luxury photo-led redesign */
:root {
  --ink: #111713;
  --muted: #6e746f;
  --line: rgba(17, 23, 19, 0.1);
  --soft: #faf9f6;
  --mint: #50d994;
  --teal: #109985;
  --shadow: 0 30px 90px rgba(17, 23, 19, 0.1);
}

body {
  background: #fff;
  color: var(--ink);
  font-weight: 500;
}

.site-header {
  inset: 20px 24px auto;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(17, 23, 19, 0.08);
}

.brand-mark span,
.footer-brand span {
  font-weight: 800;
}

.nav-links a,
.language-toggle,
.button {
  font-size: 13px;
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.language-toggle:hover,
.language-toggle:focus-visible {
  background: rgba(17, 23, 19, 0.05);
  color: var(--ink);
}

.button-dark {
  background: #111713;
  box-shadow: 0 16px 40px rgba(17, 23, 19, 0.18);
}

.hero-story {
  min-height: 460vh;
  background: #fff;
}

.story-canvas {
  position: sticky;
  top: 0;
  display: flex;
  min-height: 100vh;
  align-items: center;
  overflow: hidden;
  padding: 132px clamp(18px, 6vw, 92px) 64px;
}

.photo-story {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
}

.story-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(calc(1.02 + var(--story) * 0.035));
  filter: saturate(0.92) contrast(0.98);
  transition: opacity 160ms linear;
}

.photo-1 {
  opacity: calc(1 - min(var(--story) * 3.2, 1));
}

.photo-2 {
  opacity: min(max((var(--story) - 0.12) * 3.4, 0), 1);
}

.photo-3 {
  opacity: min(max((var(--story) - 0.38) * 3.4, 0), 1);
}

.photo-4 {
  opacity: min(max((var(--story) - 0.68) * 3.6, 0), 1);
}

.photo-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.84) 26%, rgba(255,255,255,0.3) 52%, rgba(255,255,255,0.05) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.54), rgba(255,255,255,0.08) 40%, rgba(255,255,255,0.5));
}

html[dir="rtl"] .photo-vignette {
  background:
    linear-gradient(270deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.84) 26%, rgba(255,255,255,0.3) 52%, rgba(255,255,255,0.05) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.54), rgba(255,255,255,0.08) 40%, rgba(255,255,255,0.5));
}

.story-intelligence {
  position: absolute;
  right: clamp(22px, 7vw, 110px);
  bottom: clamp(34px, 7vw, 96px);
  display: grid;
  gap: 10px;
  opacity: calc(min(max((var(--story) - 0.22) * 2.3, 0), 0.95) * (1 - min(max((var(--story) - 0.72) * 5, 0), 1)));
  transform: translateY(calc((1 - min(max((var(--story) - 0.22) * 2.3, 0), 1)) * 28px));
}

html[dir="rtl"] .story-intelligence {
  right: auto;
  left: clamp(22px, 7vw, 110px);
}

.story-intelligence span {
  width: fit-content;
  max-width: 270px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 45px rgba(17, 23, 19, 0.08);
  backdrop-filter: blur(18px);
  color: #18221d;
  font-size: 13px;
  font-weight: 800;
}

.growth-line {
  z-index: 3;
  width: min(760px, 78vw);
  color: #111713;
  font-size: clamp(42px, 7vw, 104px);
  font-weight: 800;
  letter-spacing: 0;
  text-align: left;
  opacity: min(max((var(--story) - 0.78) * 4, 0), 1);
  transform: translate(-50%, calc(-50% + min(max((var(--story) - 0.78) * 3.4, 0), 1) * 80px));
}

html[dir="rtl"] .growth-line {
  text-align: right;
}

.hero-copy {
  max-width: 680px;
  padding-top: 34px;
  opacity: calc(1 - min(max((var(--story) - 0.68) * 4.5, 0), 1));
  transform: translateY(calc(var(--story) * -18px));
}

.hero-logo {
  width: 70px;
  height: 70px;
  margin-bottom: 22px;
}

.eyebrow {
  color: #117f71;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

html[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(46px, 6.2vw, 88px);
  font-weight: 800;
  line-height: 0.98;
}

html[dir="rtl"] h1 {
  max-width: 700px;
  font-size: clamp(42px, 5.35vw, 76px);
  font-weight: 700;
  line-height: 1.08;
}

h1 span {
  color: #117f71;
  font-size: 0.28em;
  font-weight: 800;
  margin-bottom: 10px;
}

.hero-description {
  max-width: 620px;
  color: #525a55;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.9;
}

.section {
  padding-block: clamp(110px, 13vw, 180px);
}

.section-heading h2,
.clinic-copy h2,
.demo-copy h2 {
  font-weight: 750;
  line-height: 1.08;
}

.animated-video {
  min-height: 620px;
  border-radius: 28px;
  border-color: rgba(17, 23, 19, 0.08);
  background:
    linear-gradient(115deg, rgba(255,255,255,0.88), rgba(255,255,255,0.48)),
    url("assets/hero-clinic-02-active.png") center / cover;
  box-shadow: 0 38px 120px rgba(17, 23, 19, 0.1);
}

.phone-frame,
.demo-phone {
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 30px 90px rgba(17, 23, 19, 0.13);
  backdrop-filter: blur(22px);
}

.orbit {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.66);
}

.orbit img {
  display: none;
}

.clinic-visual img {
  border-radius: 28px;
  border: 1px solid rgba(17, 23, 19, 0.08);
  box-shadow: 0 38px 120px rgba(17, 23, 19, 0.11);
}

.feature-grid {
  gap: 16px;
}

.feature-card {
  min-height: 330px;
  padding: 30px;
  border-radius: 22px;
  border-color: rgba(17, 23, 19, 0.08);
  background: linear-gradient(180deg, #fff, #fbfaf7);
  box-shadow: 0 24px 70px rgba(17, 23, 19, 0.06);
}

.feature-card:hover {
  border-color: rgba(17, 23, 19, 0.16);
  box-shadow: 0 38px 110px rgba(17, 23, 19, 0.1);
}

.feature-number {
  display: inline-grid;
  width: 56px;
  height: 56px;
  margin-bottom: 42px;
  place-items: center;
  border-radius: 50%;
  background: #111713;
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.feature-card h3,
.price-card h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.feature-card p,
.feature-card strong,
.clinic-copy p,
.demo-copy p,
.price-card p,
.check-list li,
.price-card li {
  color: #5c645f;
}

.feature-card strong {
  display: block;
  color: #15211c;
  font-weight: 800;
}

.price-card {
  border-radius: 24px;
  border-color: rgba(17, 23, 19, 0.08);
  box-shadow: 0 24px 70px rgba(17, 23, 19, 0.06);
}

.price-card.featured {
  border-color: rgba(17, 23, 19, 0.2);
}

.site-footer {
  background: #fff;
}

@media (max-width: 1080px) {
  .site-header {
    inset: 12px 12px auto;
    align-items: center;
  }
}

@media (max-width: 720px) {
  .site-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 12px;
    padding: 10px;
    border-radius: 22px;
  }

  .header-actions {
    justify-self: end;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: initial;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .story-canvas {
    align-items: flex-start;
    padding-top: 160px;
  }

  .photo-vignette {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.9) 34%, rgba(255,255,255,0.34) 68%, rgba(255,255,255,0.04) 100%),
      linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.08));
  }

  .story-photo {
    object-position: 64% center;
  }

  h1 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .hero-copy {
    max-width: 100%;
    padding-top: 0;
  }

  .hero-description {
    max-width: 95%;
  }

  .story-intelligence {
    right: 18px;
    bottom: 28px;
  }

  .growth-line {
    width: 88vw;
    font-size: clamp(42px, 13vw, 64px);
  }
}
