/* MedSaakshi website · blue & white, motion-rich but calm. v3 */
:root {
  --navy: #0D3A80; --blue: #1F5FAF; --blue2: #2F7BE0; --teal: #1AA7A0; --teal2: #35C7BF; --orange: #F26522;
  --pale: #E8F0FB; --ink: #12213A; --muted: #55627A; --bg: #FFFFFF; --bg2: #F4F7FB; --line: #D9E2EF;
  --radius: 18px; --max: 1160px;
  --shadow-sm: 0 6px 20px rgba(13,58,128,.08); --shadow-lg: 0 30px 80px rgba(13,58,128,.18);
  --ease: cubic-bezier(.22,.61,.36,1);
  --font-head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Telugu", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 var(--font-body); color: var(--ink); background: var(--bg); overflow-x: hidden; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 800; color: var(--blue); margin-bottom: .8rem; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--teal)); }
.center { text-align: center; }
.lead { font-size: 1.22rem; color: var(--muted); max-width: 36rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 14px; font-weight: 700; text-decoration: none;
  border: 2px solid var(--blue); color: var(--blue); background: #fff; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; cursor: pointer; font-family: inherit; font-size: 1rem; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn.primary { background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%); border-color: transparent; color: #fff; }
.btn.primary:hover { box-shadow: 0 12px 30px rgba(31,95,175,.35); }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.small { padding: .55rem 1.05rem; font-size: .9rem; border-radius: 12px; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(13,58,128,.06); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand .mark { height: 38px; width: auto; }
.brand .word { height: 21px; width: auto; margin-top: 2px; }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a:not(.btn) { position: relative; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .3rem 0; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--teal)); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); box-shadow: 0 -6px 0 var(--navy), 0 6px 0 var(--navy); }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.4rem; gap: .2rem; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(13,58,128,.12); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .25s var(--ease); }
  .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: .7rem 0; font-size: 1.05rem; }
  .nav-links .btn { margin-top: .6rem; justify-content: center; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 5rem 0 4rem; background: #F6F9FE; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; opacity: .7; }
.hero::before { width: 640px; height: 640px; left: -220px; top: -260px; background: radial-gradient(circle, rgba(31,95,175,.35), rgba(31,95,175,0) 70%); animation: drift 14s ease-in-out infinite alternate; }
.hero::after { width: 560px; height: 560px; right: -180px; bottom: -260px; background: radial-gradient(circle, rgba(26,167,160,.35), rgba(26,167,160,0) 70%); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(60px, 40px) scale(1.12); } }
.hero .grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(13,58,128,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(13,58,128,.06) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.hero h1 { margin-bottom: .6rem; }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(24px); animation: rise .7s var(--ease) forwards; }
.hero h1 .w.accent { background: linear-gradient(90deg, var(--blue), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero .cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero .fade { opacity: 0; animation: rise .7s var(--ease) forwards; }
.chips { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.4rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 1px solid var(--line); color: var(--navy); border-radius: 999px; padding: .4rem .95rem; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow-sm); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(26,167,160,.18); }

/* device mockup */
.device { position: relative; perspective: 1400px; }
.device .frame { position: relative; border-radius: 26px; background: #0D3A80; padding: 12px; box-shadow: var(--shadow-lg); transform: rotateY(-8deg) rotateX(4deg); transition: transform .4s var(--ease); will-change: transform; }
.device .frame img { border-radius: 16px; }
.device:hover .frame { transform: rotateY(-3deg) rotateX(2deg); }
.device .float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .6rem .9rem; box-shadow: var(--shadow-lg); font-size: .85rem; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: .55rem; animation: floaty 6s ease-in-out infinite; }
.device .float small { display: block; font-weight: 500; color: var(--muted); }
.device .f1 { left: -28px; top: 14%; animation-delay: -1s; }
.device .f2 { right: -26px; top: 46%; animation-delay: -3s; }
.device .f3 { left: 8%; bottom: -22px; animation-delay: -5s; }
.device .float .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue), var(--teal)); }
.device .float .ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 2.5rem; } .hero { padding-top: 3rem; } .device .frame { transform: none; } .device .f1 { left: 0; } .device .f2 { right: 0; } }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -2.4rem; position: relative; z-index: 2; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-family: var(--font-head); font-size: 1.9rem; color: var(--navy); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; font-weight: 600; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); margin-top: 1.5rem; } }

/* marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; padding: .9rem 0; margin-top: 2.6rem; }
.marquee .track { display: flex; gap: 3rem; width: max-content; animation: scroll 38s linear infinite; }
.marquee span { white-space: nowrap; color: var(--muted); font-weight: 700; letter-spacing: .06em; font-size: .85rem; text-transform: uppercase; display: inline-flex; align-items: center; gap: 1rem; }
.marquee span::after { content: "·"; color: var(--teal); font-size: 1.4rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: 4.5rem 0; }
section.alt { background: var(--bg2); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 3rem; align-items: center; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card.lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(31,95,175,.35); }
.card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue), var(--teal)); margin-bottom: 1rem; box-shadow: 0 8px 20px rgba(31,95,175,.25); }
.card .ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card .n { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: .8rem; font-size: 1.1rem; font-family: var(--font-head); }
.shot { border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff; transition: transform .35s var(--ease); }
.shot:hover { transform: translateY(-4px) scale(1.01); }
.quote { border-left: 6px solid var(--navy); background: var(--pale); padding: 1.2rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.15rem; }
.list { padding-left: 1.2rem; } .list li { margin: .35rem 0; }
.check li { list-style: none; position: relative; padding-left: 1.9rem; }
.check li::before { content: "✓"; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; font-size: .8rem; font-weight: 800; display: grid; place-items: center; }
.badge-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.badge { background: #fff; border: 1px solid var(--line); color: var(--navy); border-radius: 999px; padding: .35rem .9rem; font-weight: 700; font-size: .85rem; }
video { width: 100%; border-radius: var(--radius); background: #000; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* problem section */
.problem .big { font-family: var(--font-head); font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -0.03em; margin: 0 0 1rem; }
.problem .big span { color: var(--orange); }
.paper { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow-sm); transform: rotate(-2deg); max-width: 420px; margin: 0 auto; }
.paper .t { font-family: var(--font-head); font-weight: 800; color: var(--navy); margin-bottom: .6rem; }
.paper .line { height: 10px; border-radius: 6px; background: var(--pale); margin: .7rem 0; }
.paper .line.short { width: 55%; } .paper .line.mid { width: 80%; }
.paper .sig { margin-top: 1.4rem; height: 34px; width: 46%; border-bottom: 2px solid var(--muted); font-family: cursive; color: var(--muted); }
.paper .miss { color: var(--muted); font-size: .85rem; margin-top: .4rem; }
.paper .stamp { position: absolute; right: -14px; top: -14px; background: #fff; border: 2px solid var(--orange); color: var(--orange); border-radius: 999px; padding: .35rem .8rem; font-weight: 800; font-size: .8rem; transform: rotate(8deg); animation: stampin .6s var(--ease) both; animation-delay: .6s; }
@keyframes stampin { from { transform: rotate(8deg) scale(1.6); opacity: 0; } to { transform: rotate(8deg) scale(1); opacity: 1; } }

/* timeline (how it works) */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2rem; }
.timeline::before { content: ""; position: absolute; left: 6%; right: 6%; top: 32px; height: 4px; border-radius: 4px; background: var(--line); }
.timeline .bar { position: absolute; left: 6%; top: 32px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--teal)); width: 0; transition: width 1.6s var(--ease); }
.timeline.in .bar { width: 88%; }
.step { position: relative; padding-top: 1rem; }
.step .dot { width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 4px solid var(--line); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: var(--navy); margin: 0 auto 1rem; transition: border-color .4s, transform .4s var(--ease); font-size: 1.15rem; }
.timeline.in .step .dot { border-color: var(--blue); }
.timeline.in .step:nth-child(3) .dot { transition-delay: .35s; } .timeline.in .step:nth-child(4) .dot { transition-delay: .7s; } .timeline.in .step:nth-child(5) .dot { transition-delay: 1.05s; }
.step h3 { text-align: center; }
.step p { text-align: center; color: var(--muted); font-size: .95rem; }
@media (max-width: 820px) { .timeline { grid-template-columns: 1fr 1fr; } .timeline::before, .timeline .bar { display: none; } }

/* two worlds */
.worlds { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: stretch; }
.world { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.world .tag { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); font-weight: 800; }
.link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: var(--muted); font-weight: 700; font-size: .85rem; text-align: center; min-width: 120px; }
.link .beam { width: 4px; height: 90px; border-radius: 4px; background: linear-gradient(180deg, var(--blue), var(--teal)); position: relative; overflow: hidden; }
.link .beam::after { content: ""; position: absolute; left: 0; right: 0; height: 30px; background: #fff; opacity: .7; animation: beam 2.2s linear infinite; }
@keyframes beam { from { top: -30px; } to { top: 100%; } }
@media (max-width: 820px) { .worlds { grid-template-columns: 1fr; } .link { flex-direction: row; } .link .beam { width: 90px; height: 4px; } .link .beam::after { width: 30px; height: 100%; animation: beamx 2.2s linear infinite; } @keyframes beamx { from { left: -30px; } to { left: 100%; } } }

/* AI section */
.typer { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; font-weight: 600; color: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 1rem; box-shadow: var(--shadow-sm); margin: 1rem 0; min-height: 58px; }
.typer .txt::after { content: "|"; color: var(--blue); animation: blink 1s steps(2) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.typer .go { background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; border-radius: 10px; padding: .5rem .9rem; font-size: .85rem; font-weight: 800; white-space: nowrap; box-shadow: 0 0 0 0 rgba(31,95,175,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,95,175,.45); } 70% { box-shadow: 0 0 0 14px rgba(31,95,175,0); } 100% { box-shadow: 0 0 0 0 rgba(31,95,175,0); } }
.ai-steps { display: grid; gap: .7rem; margin-top: 1.2rem; }
.ai-steps div { display: flex; gap: .8rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.ai-steps b { width: 28px; height: 28px; border-radius: 50%; background: var(--pale); color: var(--navy); display: grid; place-items: center; flex: none; font-size: .85rem; }

/* video cards */
.vcard { position: relative; }
.vcard .play { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: rgba(13,58,128,.85); color: #fff; display: grid; place-items: center; pointer-events: none; animation: pulse 2.4s infinite; transition: opacity .3s; }
.vcard.playing .play { opacity: 0; }
.vcard .play svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }

/* band + security */
.band { position: relative; overflow: hidden; background: linear-gradient(135deg, #0D3A80 0%, #1F5FAF 60%, #1AA7A0 140%); color: #fff; text-align: center; padding: 4rem 0; }
.band::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at 30% 40%, rgba(255,255,255,.18), transparent 40%), radial-gradient(circle at 70% 60%, rgba(255,255,255,.12), transparent 40%); animation: drift 16s ease-in-out infinite alternate; }
.band .wrap { position: relative; }
.band h2 { color: #fff; } .band p { color: #DCE6F5; }
.band .btn.primary { background: #fff; color: var(--navy); }
.band .cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.security-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.sec { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; display: flex; gap: .8rem; align-items: flex-start; }
.sec .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--pale); color: var(--navy); display: grid; place-items: center; }
.sec .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sec b { display: block; color: var(--navy); }
.sec span { color: var(--muted); font-size: .92rem; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > :nth-child(2) { transition-delay: .1s; } .stagger.in > :nth-child(3) { transition-delay: .2s; } .stagger.in > :nth-child(4) { transition-delay: .3s; }
.stagger.in > :nth-child(5) { transition-delay: .4s; } .stagger.in > :nth-child(6) { transition-delay: .5s; }

/* forms */
form label { display: block; font-weight: 700; color: var(--navy); margin: .8rem 0 .3rem; font-size: .92rem; }
form input, form select, form textarea { width: 100%; padding: .85rem .95rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; transition: border-color .2s, box-shadow .2s; }
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,95,175,.15); }
form textarea { min-height: 120px; }
.notice { background: var(--pale); border-radius: 10px; padding: .9rem 1rem; margin-top: 1rem; }
.error { color: #C62828; font-weight: 700; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; color: var(--muted); font-size: .92rem; background: #fff; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
footer h4 { margin: 0 0 .6rem; color: var(--navy); font-family: var(--font-head); }
footer .cols a { color: var(--muted); text-decoration: none; display: block; margin: .3rem 0; }
footer .cols a:hover { color: var(--blue); }
footer .bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.2rem; }
footer .bottom a { color: var(--muted); margin-right: .9rem; }
footer .flogo { height: 24px; width: auto; margin-bottom: .6rem; }
@media (max-width: 720px) { footer .cols { grid-template-columns: 1fr; } }

/* docs pages */
.doc { max-width: 780px; margin: 0 auto; padding: 3rem 1.25rem; }
.doc h2 { font-size: 1.35rem; margin-top: 2rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.doc th { background: var(--pale); color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal, .stagger > * { opacity: 1; transform: none; }
  .hero h1 .w, .hero .fade { opacity: 1; transform: none; }
}
