/* Interactive identity and dimensional hero. */
:root { --ink: #202f5c; --muted: #697793; --green: #4164e8; }
body { background: #fcfdff; }
header { background: #ffffffd9; backdrop-filter: blur(18px); }
.demo { background: #edf0ff; color: #5e6b92; }
.brand { color: #3659ce; }
.mark { background: linear-gradient(145deg,#d8f8ff,#e3ddff); color: #4c64df; box-shadow: inset 0 1px 1px #fff; }
.btn { background: linear-gradient(110deg,#356de6,#7061e9); box-shadow: 0 8px 20px #496de523; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg,transparent 25%,#ffffff40 50%,transparent 75%); transform: translateX(-120%); transition: transform .65s; pointer-events: none; }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { background: linear-gradient(110deg,#356de6,#7061e9); box-shadow: 0 12px 30px #496de543; transform: translateY(-3px); }
.btn span { transition: transform .25s; }
.btn:hover span { transform: translate(3px,-3px); }
.btn.outline { background: #ffffffc9; box-shadow: none; color: #465895; border: 1px solid #ffffff; }
.hero-shell { background: #edf4ff; isolation: isolate; border: 1px solid #ecedff; }
.hero-shell::before { content: ''; position: absolute; inset: -25%; z-index: -1; background: radial-gradient(ellipse at 77% 30%,#bfc0ff 0,transparent 44%),radial-gradient(ellipse at 70% 80%,#90e4e6 0,transparent 43%),radial-gradient(ellipse at 15% 20%,#f0e5ff 0,transparent 45%); animation: ambient 18s ease-in-out infinite alternate; }
.hero-shell::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(ellipse at var(--glow-x,70%) var(--glow-y,45%),#fff9,transparent 45%); }
.hero { min-height: 680px; gap: 12px; grid-template-columns: 1fr 1.08fr; padding-top: 35px; padding-bottom: 45px; }
.hero-copy { z-index: 3; }
.hero .eyebrow { color: #5871ad; background: #ffffff99; border: 1px solid white; }
h1 { font-size: clamp(52px,5.3vw,74px); letter-spacing: -3.5px; line-height: 1.06; font-weight: 800; }
h1 em { background: linear-gradient(100deg,#206cce 5%,#7158d7 54%,#159fae); background-clip: text; -webkit-background-clip: text; color: transparent; }
.hero p { color: #5e6d8b; max-width: 365px; }
.hero .small-note { color: #667595; }
.scene { position: relative; height: 550px; perspective: 1000px; touch-action: pan-y; }
.scene-world { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateY(var(--scroll-shift,0px)) rotateX(var(--pitch,0deg)) rotateY(var(--yaw,0deg)); transition: transform .3s ease-out; }
.halo { position: absolute; width: 390px; height: 390px; left: 50%; top: 48%; border-radius: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle at 30% 20%,#ffffffdd,#e5f5ff55 40%,#92c5ff55 75%); border: 1px solid #ffffffa8; box-shadow: inset -18px -20px 50px #6888d720,inset 12px 15px 35px #ffffffaa,0 40px 80px #4d65d017; }
.orbit { position: absolute; width: 450px; height: 250px; left: 50%; top: 48%; transform: translate(-50%,-50%) rotate(-32deg); border: 1px solid #fff9; border-radius: 50%; }
.orbit::before { content: ''; position: absolute; width: 12px; height: 12px; border-radius: 50%; top: 15%; left: 9%; background: #fff; box-shadow: 0 0 20px #fff; }
.cross-float { position: absolute; left: 50%; top: 46%; width: 235px; height: 235px; margin: -117px; animation: buoy 6s ease-in-out infinite; transform-style: preserve-3d; }
.medical-cross { position: absolute; inset: 0; transform: rotateX(18deg) rotateY(-24deg) rotateZ(-13deg); transform-style: preserve-3d; }
.cross-layer { position: absolute; inset: 0; border-radius: 35px; clip-path: polygon(34% 0,66% 0,66% 34%,100% 34%,100% 66%,66% 66%,66% 100%,34% 100%,34% 66%,0 66%,0 34%,34% 34%); background: #687ce0; transform: translateZ(var(--depth)); }
.cross-layer:last-child { background: linear-gradient(135deg,#ffffff 0%,#e9faff 34%,#becbff 68%,#a9b9f4 100%); }
.cross-layer:last-child::after { content: ''; position: absolute; inset: 5px; background: linear-gradient(120deg,#fff9,transparent 48%); clip-path: inherit; }
.scene-shadow { position: absolute; width: 260px; height: 40px; background: #426dc638; filter: blur(22px); border-radius: 50%; left: 50%; bottom: 70px; transform: translateX(-50%); }
.capsule-float { position: absolute; left: 6%; top: 12%; animation: buoy 7s ease-in-out -2s infinite; }
.capsule { width: 63px; height: 140px; border-radius: 40px; transform: rotate(-35deg); background: linear-gradient(90deg,#0002,transparent 28%,#fff9 48%,transparent 72%,#0002),linear-gradient(#bcb1f4 50%,#f5fbff 50%); box-shadow: inset -8px -5px 12px #47479130, inset 5px 5px 10px #fff9, 14px 22px 28px #55569b25; }
.orb { position: absolute; right: 2%; bottom: 22%; height: 75px; width: 75px; border-radius: 50%; background: radial-gradient(circle at 28% 25%,#fff,#8de6e3 30%,#399eb8 80%); box-shadow: 10px 18px 22px #4d8eb42b; animation: buoy 5.5s ease-in-out -1s infinite; }
.glass-card { position: absolute; border-radius: 20px; background: linear-gradient(130deg,#ffffffed,#ffffff9c); backdrop-filter: blur(12px); border: 1px solid #fff; box-shadow: 0 15px 45px #374ba01a; }
.appointment-float { top: 8%; right: 0; padding: 18px; width: 205px; transform: rotate(8deg) translateZ(65px); }
.appointment-float strong { font-size: 13px; display: block; }
.appointment-float small { color: #7986a0; font-size: 10px; display: block; margin-top: 4px; }
.calendar-days { display: flex; gap: 6px; margin-top: 13px; }
.calendar-days span { background: #edf0fc; width: 29px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 11px; color: #637394; }
.calendar-days span:nth-child(3) { background: #6965df; color: white; box-shadow: 0 4px 10px #615ee94d; }
.human-card { bottom: 28px; left: 0; width: 210px; padding: 8px; transform: rotate(-7deg) translateZ(45px); }
.human-card img { width: 100%; height: 115px; object-fit: cover; border-radius: 13px; display: block; }
.human-card p { font-size: 11px; font-weight: 600; color: #435574; margin: 9px 6px 4px; }
.care-float { right: 10px; bottom: 22px; padding: 13px 17px; display: flex; align-items: center; gap: 10px; transform: rotate(5deg) translateZ(80px); }
.care-float .heart { font-size: 28px; color: #7364dc; }
.care-float strong { font-size: 12px; }
.care-float small { display: block; font-size: 10px; color: #6e7c98; margin-top: 3px; }
.motion-toggle { position: absolute; right: 20px; bottom: 15px; z-index: 5; color: #617299; background: #ffffffa6; border: 1px solid #fff; border-radius: 30px; padding: 7px 12px; font-size: 10px; }
.eyebrow { color: #5268bb; }
.service { overflow: hidden; background: linear-gradient(130deg,#f1f8ff,#f3f2ff); border-color: #e5e8fb; transition: transform .3s,box-shadow .3s,border-color .3s; }
.service:nth-child(2), .service:nth-child(5) { background: linear-gradient(125deg,#ecfaf9,#eef5ff); }
.service:nth-child(3), .service:nth-child(6) { background: linear-gradient(125deg,#f4efff,#f9f3fb); }
.service::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--card-x,50%) var(--card-y,50%),#fff,transparent 65%); opacity: 0; transition: opacity .3s; }
.service > * { position: relative; }
.service:hover, .service:focus-visible { transform: translateY(-7px); box-shadow: 0 18px 35px #555aaf17; border-color: #b9b9f1; }
.service:hover::before { opacity: .65; }
.service .symbol { background: linear-gradient(145deg,white,#e0e9ff); color: #6672cf; box-shadow: 3px 5px 9px #5a6cc516,inset 1px 1px 1px white; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.service:hover .symbol { transform: rotate(-12deg) scale(1.12); }
.service footer span { transition: transform .3s,background .3s,color .3s; }
.service:hover footer span { transform: rotate(45deg); background: #6c6adb; color: white; }
.care-story { background: radial-gradient(ellipse at 95% 10%,#d8cbff,transparent 50%),linear-gradient(120deg,#e1f7f8,#edf2ff); }
.care-photo { transition: transform .6s; }
.care-photo:hover { transform: rotate(-2deg) scale(1.015); }
.doctor { transition: transform .3s,box-shadow .3s; background: linear-gradient(125deg,#f0f7ff,#f5f0ff); }
.doctor:hover { transform: translateY(-5px); box-shadow: 0 16px 35px #444e9612; }
.booking-section { background: radial-gradient(at 0% 100%,#c7f0ee,transparent 55%),linear-gradient(125deg,#e7efff,#eee6ff); }
.location { background: linear-gradient(115deg,#246bcb,#6358cb 70%,#7b62ca); }
.reveal-pending { opacity: 0; transform: translateY(25px); }
.reveal-visible { opacity: 1; transform: translateY(0); transition: opacity .7s,transform .7s; }
.motion-paused *, .motion-paused::before { animation-play-state: paused !important; }
.motion-paused .scene-world { transform: none; transition: none; }
@keyframes buoy { 0%,100% { transform: translateY(0) rotateZ(0deg); } 50% { transform: translateY(-18px) rotateZ(4deg); } }
@keyframes ambient { from { transform: translate(-2%,-2%) rotate(-5deg); } to { transform: translate(3%,2%) rotate(8deg); } }
@media(max-width:1000px) and (min-width:621px) { .scene { transform: scale(.83); margin: -35px; } h1 { font-size: 55px; } }
@media(max-width:620px) {
  .hero { padding-top: 35px; padding-bottom: 40px; gap: 5px; min-height: 0; }
  h1 { font-size: 49px; letter-spacing: -2.4px; }
  .hero-copy { width: 100%; }
  .hero p { max-width: 100%; }
  .scene { height: 390px; width: 100%; margin-top: 15px; }
  .halo { width: 275px; height: 275px; }
  .orbit { width: 310px; height: 180px; }
  .cross-float { width: 160px; height: 160px; margin: -80px; }
  .capsule { width: 42px; height: 95px; }
  .capsule-float { top: 15%; left: 4%; }
  .orb { width: 48px; height: 48px; right: 0; bottom: 25%; }
  .appointment-float { padding: 12px; width: 153px; right: 0; top: 3%; border-radius: 15px; }
  .appointment-float strong { font-size: 11px; }
  .calendar-days { gap: 4px; margin-top: 9px; }
  .calendar-days span { width: 22px; height: 27px; font-size: 9px; }
  .human-card { width: 145px; bottom: 15px; left: -3px; border-radius: 15px; }
  .human-card img { height: 80px; }
  .human-card p { font-size: 9px; margin: 6px 2px 2px; }
  .care-float { padding: 10px; right: -5px; bottom: 0; gap: 5px; border-radius: 13px; }
  .care-float strong { font-size: 10px; }
  .care-float small { font-size: 8px; }
  .care-float .heart { font-size: 23px; }
  .motion-toggle { bottom: 9px; right: 12px; font-size: 9px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scene-world { transform: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
}
