/* ============================================================
   Shucon MedAI — investor-grade landing theme
   Thesis: stop revenue leakage in Indian hospitals by unifying
   clinical, financial and inventory events into one transaction model.
   ============================================================ */

:root {
  --ink: #0a1020;
  --ink-2: #0f1a30;
  --navy: #0b1a3a;
  --paper: #f7f9fc;
  --paper-2: #eef2f9;
  --surface: #ffffff;
  --text: #0f1a30;
  --muted: #5a6680;
  --muted-2: #8a93a8;
  --line: rgba(15, 26, 48, 0.10);
  --line-soft: rgba(15, 26, 48, 0.06);
  --accent: #2563eb;
  --accent-2: #1e63d8;
  --accent-deep: #143f8c;
  --accent-soft: #dde8fd;
  --mint: #10a37f;
  --mint-soft: #d6f2ea;
  --amber: #c98a12;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 16px rgba(15, 26, 48, 0.06);
  --shadow-md: 0 18px 40px rgba(15, 26, 48, 0.10);
  --shadow-lg: 0 40px 80px rgba(9, 16, 32, 0.18);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Plus Jakarta Sans", "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }

.wrap { width: min(1180px, calc(100% - 44px)); margin: 0 auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-2);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--accent-2);
  display: inline-block;
}
.eyebrow.on-dark { color: #8fb4ff; }
.eyebrow.on-dark::before { background: #8fb4ff; }

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }

.section { padding: 96px 0; }
.section-head { max-width: 720px; }
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  margin: 16px 0 14px;
}
.section-sub { color: var(--muted); font-size: 18px; margin: 0; }

.grad { color: var(--accent-2); }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 249, 252, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px;
}
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink-2); color: #fff !important;
  padding: 11px 20px; border-radius: 999px;
  font-size: 14.5px; font-weight: 700;
}
.nav-cta:hover { background: var(--accent-deep); }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 22px; margin: 0 auto; background: var(--ink-2); border-radius: 2px; }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; padding: 15px 26px; border-radius: 999px; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.22); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-dark { background: var(--ink-2); color: #fff; }
.btn-dark:hover { background: var(--accent-deep); }

/* ============ HERO ============ */
.hero {
  position: relative;
  color: #eaf0fb;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(37, 99, 235, 0.30), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(16, 163, 127, 0.16), transparent 55%),
    linear-gradient(160deg, #0a1226 0%, #0b1a3a 55%, #0a1428 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 60% 20%, black, transparent 75%);
  opacity: .5;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding: 82px 0 96px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #cdd9f2;
}
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(16,163,127,0.22); }
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 5.4vw, 64px);
  margin: 22px 0 20px;
  color: #fff;
}
.hero h1 em { font-style: normal; color: #7fa8ff; }
.hero-lead { font-size: 19px; color: #b7c4de; max-width: 560px; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 22px; font-size: 13.5px; color: #8a97b6; }

.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.hero-metric { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); border-radius: var(--radius-sm); padding: 16px 16px; }
.hero-metric b { display: block; font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.hero-metric span { font-size: 12.5px; color: #9fb0d0; }

/* hero visual — reconciliation card */
.hero-visual { position: relative; }
.recon-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,255,0.98));
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 22px;
  color: var(--text);
}
.recon-card h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 4px; }
.recon-card .recon-amount { font-family: var(--serif); font-size: 30px; color: var(--mint); font-weight: 700; margin-bottom: 16px; }
.recon-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.recon-row:first-of-type { border-top: 0; }
.recon-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); flex: none; }
.recon-ico svg { width: 18px; height: 18px; }
.recon-row .rl { flex: 1; }
.recon-row .rl b { display: block; font-size: 14.5px; }
.recon-row .rl span { font-size: 12.5px; color: var(--muted); }
.recon-tag { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.recon-tag.ok { background: var(--mint-soft); color: #0c7a5e; }
.recon-tag.flag { background: #fde8e8; color: #b42318; }
.recon-foot { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.recon-foot .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }

/* ============ LOGO / CONTEXT STRIP ============ */
.strip { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; flex-wrap: wrap; }
.strip-item { display: flex; align-items: baseline; gap: 10px; }
.strip-item b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.strip-item span { font-size: 13.5px; color: var(--muted); }

/* ============ PROBLEM ============ */
.problem { background: var(--paper); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 46px; }
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm);
}
.panel h3 { font-size: 19px; margin-bottom: 8px; }
.panel.bad { border-top: 3px solid #e0503a; }
.panel.good { border-top: 3px solid var(--mint); }
.silo-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.silo-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); font-size: 14.5px; font-weight: 600; }
.silo-list li .tag { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; }
.good .silo-list li { background: var(--mint-soft); }
.good .silo-list li .tag { color: #0c7a5e; background: #fff; border-color: var(--mint-soft); }

.leak-quote {
  margin-top: 40px; background: linear-gradient(120deg, #0f1a30, #16264a);
  color: #eaf0fb; border-radius: var(--radius); padding: 40px 42px;
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
}
.leak-quote .big { font-family: var(--serif); font-size: clamp(40px, 6vw, 64px); color: var(--mint); line-height: 1; font-weight: 700; }
.leak-quote p { margin: 0; font-size: 18px; color: #c6d2ea; }
.leak-quote p b { color: #fff; }

/* ============ HOW IT WORKS ============ */
.how { background: var(--surface); }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 46px; position: relative; }
.flow-node {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 18px; position: relative;
}
.flow-node .n { font-size: 12px; font-weight: 800; color: var(--accent-2); letter-spacing: 0.1em; }
.flow-node h4 { font-size: 16px; margin: 8px 0 6px; }
.flow-node p { margin: 0; font-size: 13.5px; color: var(--muted); }
.flow-node::after {
  content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  color: var(--muted-2); font-size: 20px; z-index: 2;
}
.flow-node:last-child::after { display: none; }

.how-band {
  margin-top: 40px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 34px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.how-band .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; flex: none; }
.how-band p { margin: 0; font-size: 16px; color: var(--muted); }
.how-band p b { color: var(--text); }

/* ============ TRACTION ============ */
.traction { color: #eaf0fb; background: linear-gradient(160deg, #0a1226, #0f1f42 60%, #0a1428); }
.traction .section-title { color: #fff; }
.traction .section-sub { color: #b7c4de; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; }
.metric {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius); padding: 26px 22px;
}
.metric b { font-family: var(--serif); font-size: 40px; font-weight: 700; color: #fff; display: block; letter-spacing: -0.02em; }
.metric span { font-size: 14px; color: #9fb0d0; }
.traction-note { margin-top: 34px; font-size: 15px; color: #9fb0d0; display: flex; align-items: center; gap: 10px; }
.traction-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(16,163,127,0.2); }

/* ============ MODULES ============ */
.modules { background: var(--paper); }
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.mod {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.mod:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mod .mico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; margin-bottom: 14px; }
.mod.ai .mico { background: linear-gradient(135deg, #eef3ff, #e6fbf4); color: var(--accent-2); }
.mod h3 { font-size: 17px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.mod .ai-badge { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; color: #0c7a5e; background: var(--mint-soft); padding: 2px 7px; border-radius: 999px; }
.mod p { margin: 0; font-size: 14px; color: var(--muted); }
.mod-band { text-align: center; margin: 52px auto 0; max-width: 680px; }
.mod-band .eyebrow { justify-content: center; display: inline-flex; }
.mod-band h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3vw, 32px); margin: 14px 0 10px; }
.mod-band p { color: var(--muted); margin: 0; }

/* ============ CONNECTORS / WHY NOW ============ */
.connect { background: var(--surface); }
.connect-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.connect-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.connect-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.connect-card li { display: flex; gap: 14px; align-items: flex-start; }
.connect-card li .ck { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; flex: none; }
.connect-card li b { display: block; font-size: 15.5px; }
.connect-card li span { font-size: 13.5px; color: var(--muted); }

/* ============ PRICING ============ */
.pricing { background: var(--paper); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; align-items: stretch; }
.price {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
}
.price.feat { border: 1.5px solid var(--accent); box-shadow: var(--shadow-md); position: relative; }
.price-tag { position: absolute; top: -13px; left: 26px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; padding: 5px 12px; border-radius: 999px; }
.price h3 { font-size: 19px; }
.price .desc { font-size: 13.5px; color: var(--muted); margin: 6px 0 18px; }
.price .amount { font-family: var(--serif); font-size: 30px; font-weight: 700; }
.price .per { font-size: 13px; color: var(--muted-2); margin-bottom: 20px; }
.price ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 11px; }
.price li { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.price li svg { width: 18px; height: 18px; color: var(--mint); flex: none; margin-top: 1px; }
.price .btn { margin-top: auto; justify-content: center; }
.price-foot { margin-top: 26px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* ============ CTA / CONTACT ============ */
.contact { background: linear-gradient(160deg, #0a1226, #0f1f42 60%, #0a1428); color: #eaf0fb; }
.contact .section-title { color: #fff; }
.contact .section-sub { color: #b7c4de; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; margin-top: 44px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.cinfo { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); border-radius: var(--radius-sm); padding: 18px; }
.cinfo .ci { width: 40px; height: 40px; border-radius: 10px; background: rgba(127,168,255,0.14); color: #9fb9ff; display: grid; place-items: center; flex: none; }
.cinfo h4 { font-size: 15px; margin: 0 0 4px; color: #fff; }
.cinfo p, .cinfo a { margin: 0; font-size: 13.5px; color: #b7c4de; }
.cinfo a:hover { color: #fff; }

.form-card { background: var(--surface); border-radius: var(--radius); padding: 30px; color: var(--text); box-shadow: var(--shadow-lg); }
.form-card h3 { font-size: 21px; margin-bottom: 4px; }
.form-card .fsub { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.fg { margin-bottom: 16px; }
.fg label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink-2); }
.fg input, .fg textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-family: var(--sans); font-size: 15px; color: var(--text); background: var(--paper); transition: border .2s ease, box-shadow .2s ease; }
.fg input:focus, .fg textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #fff; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 4px; }

/* ============ FOOTER ============ */
.footer { background: #070c18; color: #9fb0d0; padding: 56px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer img { height: 42px; margin-bottom: 14px; }
.footer p { font-size: 14px; color: #8a97b6; max-width: 320px; margin: 0; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: #cdd9f2; margin: 0 0 14px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: #9fb0d0; margin-bottom: 9px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #6f7d9b; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,0.06); display: grid; place-items: center; color: #cdd9f2; }
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }

/* back to top */
#back-top { position: fixed; bottom: 26px; right: 26px; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .2s ease; z-index: 90; box-shadow: 0 12px 28px rgba(37,99,235,0.4); }
#back-top.show { opacity: 1; pointer-events: auto; }
#back-top:hover { transform: translateY(-2px); }

#form-alert .ok { background: var(--mint-soft); color: #0c7a5e; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; font-size: 14px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; }
  .split, .connect-inner, .contact-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-node:nth-child(2)::after { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .mod-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .nav-links { position: fixed; inset: 68px 0 auto 0; background: #fff; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 22px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); display: none; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; font-size: 16px; }
  .nav-links .nav-cta { margin: 8px 0; }
  .nav-toggle { display: flex; }
  .flow, .metric-grid, .mod-grid, .footer-top { grid-template-columns: 1fr; }
  .flow-node::after { content: "↓"; right: 50%; top: auto; bottom: -16px; transform: translateX(50%); }
  .leak-quote { grid-template-columns: 1fr; gap: 12px; padding: 30px 26px; }
  .frow { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: 1fr 1fr; }
}
