:root {
  --brand-900: #23384f;
  --brand-700: #37455e;
  --neutral-500: #9b9b9b;
  --neutral-300: #d0d0d0;
  --surface: #f6f7f8;
  --white: #ffffff;
  --text: #14212f;
  --muted: #526275;
  --radius-lg: 28px;
  --radius-md: 16px;
  --shadow-soft: 0 18px 50px rgba(35, 56, 79, 0.12);
  --shadow-card: 0 10px 26px rgba(35, 56, 79, 0.08);
  --font-serif: "Coldiac", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Montserrat", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(1100px 500px at 90% -10%, rgba(55, 69, 94, 0.12), transparent),
    radial-gradient(800px 420px at -5% 25%, rgba(35, 56, 79, 0.08), transparent),
    linear-gradient(180deg, #f8f9fb 0%, #f0f2f4 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1160px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  z-index: -2;
}

.orb-a {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(35, 56, 79, 0.16), transparent 70%);
  top: -120px;
  right: -150px;
}

.orb-b {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(155, 155, 155, 0.2), transparent 70%);
  bottom: 8%;
  left: -120px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(246, 247, 248, 0.84);
  border-bottom: 1px solid rgba(35, 56, 79, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-monogram {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--brand-900), var(--brand-700));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.brand-logo-round {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-weight: 600;
  font-size: 0.95rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu a {
  text-decoration: none;
  color: var(--brand-900);
  font-size: 0.9rem;
  font-weight: 500;
}

.menu a.nav-cta {
  color: var(--white);
}

.nav-cta {
  margin-left: 0.3rem;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(35, 56, 79, 0.22);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--brand-900);
  margin: 6px auto;
}

.hero {
  padding: clamp(3.2rem, 7vw, 6rem) 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-700);
  font-weight: 600;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--brand-900);
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.03;
  margin-bottom: 1.1rem;
}

h1 em {
  font-style: italic;
  color: var(--brand-700);
  font-weight: 500;
}

.hero-content p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 48ch;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(145deg, var(--brand-900), var(--brand-700));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(35, 56, 79, 0.25);
}

.btn-ghost {
  border-color: rgba(35, 56, 79, 0.25);
  color: var(--brand-900);
  background: rgba(255, 255, 255, 0.7);
}

.hero-photo-wrap {
  position: relative;
}

.hero-photo-frame {
  border-radius: 44% 56% 52% 48% / 38% 43% 57% 62%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(150deg, var(--brand-900), var(--brand-700));
}

.hero-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
}

.floating-card {
  position: absolute;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(35, 56, 79, 0.1);
  color: var(--brand-900);
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.card-a {
  left: -8px;
  top: 16%;
}

.card-b {
  right: -10px;
  bottom: 10%;
}

.highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  padding: 2.2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(35, 56, 79, 0.08);
  box-shadow: var(--shadow-card);
}

.highlights h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.8vw, 2.35rem);
  margin-bottom: 0.9rem;
}

.highlights p,
.highlights li {
  color: var(--muted);
}

.highlights ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.62rem;
}

.section {
  padding: clamp(4.2rem, 9vw, 7.4rem) 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.35));
  border-block: 1px solid rgba(35, 56, 79, 0.08);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 1.8rem;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.8vw, 3rem);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.journey-card {
  background: var(--white);
  border: 1px solid rgba(35, 56, 79, 0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}

.journey-card span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
}

.journey-card h3 {
  font-size: 1rem;
  margin-bottom: 0.42rem;
}

.journey-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.simulator {
  overflow: hidden;
}

.sim-note {
  margin: 0.6rem 0 0;
  color: var(--muted);
  max-width: 64ch;
}

.sim-controls {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.model-switch {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.model-btn {
  border: 1px solid rgba(35, 56, 79, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-700);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.model-btn.active {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(145deg, var(--brand-900), var(--brand-700));
}

.sim-aux {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.sim-aux label {
  color: var(--brand-700);
  font-size: 0.83rem;
  font-weight: 600;
}

.sim-aux input[type="range"] {
  width: 170px;
  padding: 0;
}

.sim-stage {
  border: 1px solid rgba(35, 56, 79, 0.12);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 250, 0.95));
  box-shadow: var(--shadow-soft);
  padding: 1.45rem;
}

.sim-stage-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.1rem;
  align-items: stretch;
}

.three-wrap {
  position: relative;
  height: clamp(280px, 44vw, 420px);
  border-radius: 22px;
  border: 1px solid rgba(35, 56, 79, 0.08);
  background:
    radial-gradient(circle at 22% 16%, rgba(255, 255, 255, 0.75), rgba(208, 208, 208, 0.36)),
    linear-gradient(180deg, rgba(247, 249, 252, 0.92), rgba(234, 238, 243, 0.9));
  overflow: hidden;
}

.surgery-stage {
  width: 100%;
  height: 100%;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.surgery-model {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: rotateY(var(--sim-rotate, 0deg)) rotateX(-7deg) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.surgery-model.active {
  opacity: 1;
  pointer-events: auto;
  animation: simFloat 6s ease-in-out infinite;
}

.surgery-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.shadow-ell {
  fill: rgba(35, 56, 79, 0.14);
  filter: blur(8px);
}

.bone-path {
  fill: url(#boneShadeA);
  stroke: rgba(35, 56, 79, 0.16);
  stroke-width: 2;
}

.surgery-model[data-scene="femur-nail"] .bone-path {
  fill: url(#boneShadeB);
}

.surgery-model[data-scene="hip-prosthesis"] .bone-path {
  fill: url(#boneShadeC);
}

.implant-main,
.implant-screw,
.joint-head {
  fill: url(#metalShadeA);
}

.surgery-model[data-scene="femur-nail"] .implant-main,
.surgery-model[data-scene="femur-nail"] .implant-screw {
  fill: url(#metalShadeB);
}

.surgery-model[data-scene="hip-prosthesis"] .implant-main,
.surgery-model[data-scene="hip-prosthesis"] .joint-head {
  fill: url(#metalShadeC);
}

.implant-main {
  animation: implantPulse 3s ease-in-out infinite;
}

.implant-screw {
  animation: screwShift 2.8s ease-in-out infinite;
}

.surgery-model[data-scene="femur-nail"] .nail {
  animation: nailSlide 3s ease-in-out infinite;
}

.fracture-mark {
  stroke: #be2f3e;
  stroke-width: 5;
  stroke-linecap: round;
  animation: fractureBlink 1.6s ease-in-out infinite;
}

.cup-ring {
  fill: none;
  stroke: rgba(70, 88, 114, 0.88);
  stroke-width: 22;
}

.cup-core {
  fill: rgba(246, 248, 251, 0.9);
  stroke: rgba(35, 56, 79, 0.22);
  stroke-width: 2;
}

.surgery-model[data-scene="hip-prosthesis"] .joint-head {
  animation: prosthesisSwing 2.4s ease-in-out infinite;
  transform-origin: 365px 188px;
}

.three-hint {
  position: absolute;
  left: 0.8rem;
  bottom: 0.7rem;
  font-size: 0.76rem;
  color: var(--brand-700);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(35, 56, 79, 0.12);
  border-radius: 999px;
  padding: 0.34rem 0.7rem;
  backdrop-filter: blur(5px);
}

.scene-copy {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid rgba(35, 56, 79, 0.09);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}

.model-scene {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: center;
}

.model-scene.active {
  display: grid;
}

.scene-visual {
  --rotate-y: 0deg;
  position: relative;
  height: 330px;
  border-radius: 22px;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.7), rgba(208, 208, 208, 0.45));
  border: 1px solid rgba(35, 56, 79, 0.08);
  transform-style: preserve-3d;
  transform: perspective(920px) rotateY(var(--rotate-y)) rotateX(-9deg);
  animation: floatModel 7s ease-in-out infinite;
  overflow: hidden;
}

.scene-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 14px;
  width: 68%;
  height: 26px;
  margin-inline: auto;
  border-radius: 50%;
  background: rgba(35, 56, 79, 0.12);
  filter: blur(9px);
}

.scene-text h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.scene-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.pelvis-shape,
.femur-shape,
.shaft,
.head,
.acetabulum,
.stem {
  position: absolute;
  background: linear-gradient(155deg, #fefefe, #cad2db);
  border: 1px solid rgba(35, 56, 79, 0.12);
  box-shadow: inset -10px -8px 18px rgba(35, 56, 79, 0.08);
}

.pelvis-shape {
  width: 170px;
  height: 128px;
  border-radius: 48% 52% 45% 55%;
  left: 48px;
  top: 36px;
}

.femur-shape {
  width: 82px;
  height: 210px;
  border-radius: 40px;
  left: 116px;
  top: 105px;
  transform: rotate(11deg);
}

.fracture-line {
  position: absolute;
  width: 66px;
  border-top: 2px dashed #be2f3e;
  left: 107px;
  top: 180px;
  transform: rotate(20deg);
  opacity: 0.84;
}

.plate-shape {
  position: absolute;
  width: 148px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(155deg, #8e99a7, #53627a);
  left: 76px;
  top: 206px;
  transform: rotate(20deg);
  animation: implantSlide 4.8s ease-in-out infinite;
}

.screw {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #5f6e84;
  background: #e3e7ee;
  animation: screwPulse 2.2s ease-in-out infinite;
}

.s-1 {
  left: 127px;
  top: 210px;
}

.s-2 {
  left: 155px;
  top: 222px;
  animation-delay: 0.45s;
}

.s-3 {
  left: 185px;
  top: 235px;
  animation-delay: 0.85s;
}

.shaft {
  width: 92px;
  height: 248px;
  border-radius: 52px;
  left: 96px;
  top: 58px;
}

.head {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  left: 150px;
  top: 35px;
}

.nail {
  position: absolute;
  width: 18px;
  height: 246px;
  border-radius: 20px;
  background: linear-gradient(180deg, #c0c7d1, #73829a);
  left: 133px;
  top: 66px;
  animation: rodInsert 4s ease-in-out infinite;
}

.lock {
  position: absolute;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(145deg, #98a4b6, #55657f);
}

.screw-a {
  width: 72px;
  left: 95px;
  top: 145px;
}

.screw-b {
  width: 64px;
  left: 106px;
  top: 188px;
}

.screw-c {
  width: 70px;
  left: 100px;
  top: 242px;
}

.acetabulum {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  left: 62px;
  top: 46px;
}

.stem {
  width: 58px;
  height: 200px;
  border-radius: 20px;
  left: 169px;
  top: 102px;
  transform: rotate(11deg);
}

.cup {
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 11px solid #5f6f86;
  left: 113px;
  top: 80px;
  box-shadow: inset -6px -6px 14px rgba(35, 56, 79, 0.14);
}

.head-ball {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(155deg, #ebeff6, #9aa6b8);
  left: 178px;
  top: 116px;
  animation: jointMove 3.5s ease-in-out infinite;
}

.motion-arc {
  position: absolute;
  width: 112px;
  height: 112px;
  border: 2px dashed rgba(35, 56, 79, 0.35);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  left: 160px;
  top: 88px;
  animation: spinArc 5s linear infinite;
}

.simulator.pause-motion .scene-visual,
.simulator.pause-motion .plate-shape,
.simulator.pause-motion .screw,
.simulator.pause-motion .nail,
.simulator.pause-motion .head-ball,
.simulator.pause-motion .motion-arc {
  animation-play-state: paused;
}

.simulator.pause-motion .surgery-model.active,
.simulator.pause-motion .implant-main,
.simulator.pause-motion .implant-screw,
.simulator.pause-motion .fracture-mark,
.simulator.pause-motion .joint-head {
  animation-play-state: paused;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.tech-card {
  background: var(--white);
  border: 1px solid rgba(35, 56, 79, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 1rem;
}

.tech-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.tech-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.timeline {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px dashed rgba(35, 56, 79, 0.28);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.timeline-item {
  background: rgba(35, 56, 79, 0.05);
  border-radius: 12px;
  padding: 0.75rem;
  display: grid;
  gap: 0.3rem;
}

.timeline-item strong {
  color: var(--brand-900);
  font-size: 0.9rem;
}

.timeline-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.testi-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
}

.testi-rating {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(35, 56, 79, 0.15);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-900);
}

.testi-rating .stars {
  letter-spacing: 0.06em;
  color: #d8a23a;
  font-size: 0.9rem;
}

.testi-rating strong {
  font-size: 0.9rem;
}

.testi-rating span:not(.stars) {
  font-size: 0.8rem;
  color: var(--muted);
}

.testi-nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(35, 56, 79, 0.22);
  background: rgba(255, 255, 255, 0.84);
  color: var(--brand-900);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.testi-viewport {
  overflow: hidden;
  border-radius: 20px;
}

.testi-grid {
  display: flex;
  gap: 0.9rem;
  transition: transform 0.35s ease;
}

.testi-card {
  min-width: calc((100% - 1.8rem) / 3);
  background: linear-gradient(165deg, rgba(35, 56, 79, 0.98), rgba(55, 69, 94, 0.97));
  border-radius: 18px;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.testi-card p {
  margin: 0;
  line-height: 1.64;
  font-size: 0.92rem;
}

.testi-card h4 {
  margin: 0.8rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.testi-dots {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(35, 56, 79, 0.28);
  cursor: pointer;
}

.dot.active {
  background: var(--brand-900);
}

.final-cta {
  border-top: 1px solid rgba(35, 56, 79, 0.09);
}

.final-cta-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.final-cta-wrap h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.4vw, 3.05rem);
}

.final-cta-wrap p {
  color: var(--muted);
  margin: 0.7rem auto 1.1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes floatModel {
  0%,
  100% {
    transform: perspective(920px) rotateY(var(--rotate-y)) rotateX(-9deg) translateY(0);
  }
  50% {
    transform: perspective(920px) rotateY(var(--rotate-y)) rotateX(-9deg) translateY(-7px);
  }
}

@keyframes implantSlide {
  0%,
  100% {
    transform: rotate(20deg) translateX(-2px);
  }
  50% {
    transform: rotate(20deg) translateX(4px);
  }
}

@keyframes screwPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@keyframes rodInsert {
  0%,
  100% {
    transform: translateY(-6px);
  }
  50% {
    transform: translateY(2px);
  }
}

@keyframes jointMove {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-10px, 6px);
  }
}

@keyframes spinArc {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fbFloat {
  0%,
  100% {
    transform: translateY(0) rotateY(0deg);
  }
  50% {
    transform: translateY(-7px) rotateY(8deg);
  }
}

@keyframes fbImplant {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

@keyframes simFloat {
  0%,
  100% {
    transform: rotateY(var(--sim-rotate, 0deg)) rotateX(-7deg) translateY(0) scale(1);
  }
  50% {
    transform: rotateY(calc(var(--sim-rotate, 0deg) + 2deg)) rotateX(-7deg) translateY(-6px) scale(1.01);
  }
}

@keyframes implantPulse {
  0%,
  100% {
    opacity: 0.95;
  }
  50% {
    opacity: 1;
  }
}

@keyframes screwShift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

@keyframes fractureBlink {
  0%,
  100% {
    opacity: 0.95;
  }
  50% {
    opacity: 0.45;
  }
}

@keyframes nailSlide {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

@keyframes prosthesisSwing {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(7px);
  }
}

.spec-card {
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid rgba(35, 56, 79, 0.1);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.spec-card:hover {
  transform: translateY(-5px);
  border-color: rgba(35, 56, 79, 0.35);
}

.spec-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

.spec-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.two-col h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  margin: 0.2rem 0 0.8rem;
}

.two-col p {
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

.metric-row {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.metric-row div {
  background: rgba(35, 56, 79, 0.06);
  border-radius: 12px;
  padding: 0.85rem;
  display: grid;
}

.metric-row strong {
  font-size: 1.2rem;
  color: var(--brand-900);
}

.metric-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.panel {
  background: var(--white);
  border: 1px solid rgba(35, 56, 79, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.panel-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(35, 56, 79, 0.1);
}

.tab {
  font: inherit;
  font-weight: 600;
  font-size: 0.84rem;
  border: 0;
  padding: 0.9rem 0.55rem;
  color: var(--brand-700);
  background: transparent;
  cursor: pointer;
}

.tab.active {
  background: linear-gradient(180deg, rgba(35, 56, 79, 0.12), rgba(35, 56, 79, 0.03));
  color: var(--brand-900);
}

.tab-content {
  display: none;
  padding: 1.15rem;
  color: var(--muted);
  line-height: 1.65;
}

.tab-content.active {
  display: block;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid rgba(35, 56, 79, 0.1);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-btn {
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  font-weight: 600;
  color: var(--brand-900);
  padding: 1rem 1rem 0.9rem;
  cursor: pointer;
  position: relative;
}

.faq-btn::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 0.95rem;
  font-size: 1rem;
}

.faq-item.open .faq-btn::after {
  content: "-";
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  padding: 0 1rem;
  transition: max-height 0.35s ease, padding-bottom 0.35s ease;
}

.faq-item.open .faq-content {
  max-height: 180px;
  padding-bottom: 1rem;
}

.contact {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  align-items: start;
}

.contact h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin: 0.35rem 0 0.9rem;
}

.contact p,
.contact-list {
  color: var(--muted);
}

.contact-list {
  padding-left: 1rem;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(35, 56, 79, 0.11);
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--brand-700);
  font-weight: 600;
}

input,
textarea {
  font: inherit;
  width: 100%;
  border: 1px solid rgba(35, 56, 79, 0.22);
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(35, 56, 79, 0.22);
  border-color: var(--brand-700);
}

.footer {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(35, 56, 79, 0.12);
  background: rgba(35, 56, 79, 0.98);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.footer p,
.footer a {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.82rem;
}

.toast {
  position: fixed;
  bottom: 1.1rem;
  right: 1rem;
  background: rgba(35, 56, 79, 0.95);
  color: var(--white);
  padding: 0.72rem 1rem;
  border-radius: 12px;
  font-size: 0.84rem;
  box-shadow: var(--shadow-soft);
  transform: translateY(130%);
  opacity: 0;
  transition: transform 0.34s ease, opacity 0.34s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-grid,
  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testi-card {
    min-width: calc((100% - 0.9rem) / 2);
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .sim-stage-grid {
    grid-template-columns: 1fr;
  }

  .three-wrap {
    height: clamp(260px, 52vw, 340px);
  }

  .hero-photo-wrap {
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 840px) {
  .menu-btn {
    display: block;
  }

  .menu {
    position: absolute;
    right: 1rem;
    top: 72px;
    width: min(320px, calc(100% - 2rem));
    padding: 0.85rem;
    display: grid;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(35, 56, 79, 0.12);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 0.24s ease;
  }

  .menu.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  .nav-cta {
    margin-left: 0;
    justify-content: center;
    display: inline-flex;
  }

  .highlights,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .highlights {
    padding: 1.3rem;
  }

  .journey-grid,
  .tech-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .testi-wrap {
    grid-template-columns: 1fr;
  }

  .testi-nav {
    display: none;
  }

  .testi-card {
    min-width: 100%;
  }

  .panel-tabs {
    grid-template-columns: 1fr;
  }

  .floating-card {
    position: static;
    margin-top: 0.7rem;
    width: fit-content;
  }

  .hero-photo-wrap {
    display: grid;
    justify-items: center;
  }
}

@media (max-width: 520px) {
  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 0.86rem;
    max-width: 165px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1;
    text-align: center;
    min-width: 140px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .model-btn {
    width: 100%;
  }

  .sim-aux {
    align-items: stretch;
  }

  .sim-aux input[type="range"] {
    width: 100%;
  }

  .three-wrap {
    height: 280px;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
