/* ============================================================
   ESTONIZ HOSPITAL MANAGEMENT SYSTEM — PRODUCT WEBSITE
   Design tokens: white + very light pink + soft healthcare tones
   Display: Fraunces (warmth/trust) | Body: IBM Plex Sans | Data: IBM Plex Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  --ink:#241f21;
  --ink-soft:#5c5254;
  --ink-faint:#948a8c;
  --paper:#ffffff;
  --blush:#fbf1f2;
  --blush-deep:#f6e4e7;
  --line:#efd9dd;
  --line-strong:#e3bfc6;
  --rose:#b5566b;
  --rose-deep:#96415a;
  --rose-tint:#f6dee2;
  --rose-tint-2:#eec3ca;
  --slate:#3a3436;
  --slate-panel:#211c1e;
  --good:#4b8f6b;

  --font-display:'Fraunces', serif;
  --font-body:'IBM Plex Sans', sans-serif;
  --font-mono:'IBM Plex Mono', monospace;

  --radius:4px;
  --container:1240px;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important;}
}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{margin:0; padding:0; list-style:none;}
h1,h2,h3,h4{font-family:var(--font-display); margin:0; font-weight:600; letter-spacing:-0.01em;}
p{margin:0;}
button{font-family:inherit; cursor:pointer;}

.wrap{max-width:var(--container); margin:0 auto; padding:0 32px;}

.eyebrow{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:0.13em;
  text-transform:uppercase;
  color:var(--rose-deep);
  display:flex; align-items:center; gap:10px;
  margin-bottom:18px;
}
.eyebrow::before{content:""; width:22px; height:1px; background:var(--rose-deep); display:inline-block;}

.section{padding:110px 0; border-bottom:1px solid var(--line);}
.section.tight{padding:80px 0;}
.section.blush{background:var(--blush);}
.section.dark{background:var(--slate-panel); color:#f2e9ea; border-bottom:none;}
.section.dark .eyebrow{color:var(--rose-tint-2);}
.section.dark .eyebrow::before{background:var(--rose-tint-2);}
.section-head{max-width:760px; margin-bottom:56px;}
.section-head h2{font-size:clamp(28px,3.4vw,42px); line-height:1.18;}
.section-head .lede{margin-top:18px; font-size:17px; color:var(--ink-soft); max-width:640px; line-height:1.75;}
.section.dark .section-head .lede{color:#cbb9bc;}

.reveal{opacity:0; transform:translateY(18px); transition:opacity 0.7s ease, transform 0.7s ease;}
.reveal.is-visible{opacity:1; transform:translateY(0);}

/* ============ HEADER ============ */
.site-header{position:sticky; top:0; z-index:100; background:rgba(255,255,255,0.93); backdrop-filter:blur(10px); border-bottom:1px solid var(--line);}
.nav{display:flex; align-items:center; justify-content:space-between; height:78px;}
.logo{font-family:var(--font-display); font-weight:700; font-size:21px; letter-spacing:-0.01em; display:flex; align-items:center; gap:10px;}
.logo-mark{width:11px;height:11px; background:var(--rose); display:inline-block; border-radius:50%;}
.logo small{
  display:block; font-family:var(--font-mono); font-size:9px; letter-spacing:0.08em;
  color:var(--ink-faint); font-weight:500; margin-top:2px;
}
.nav-links{display:flex; gap:32px; align-items:center;}
.nav-links a{font-size:14.5px; font-weight:500; color:var(--ink-soft); position:relative; padding:6px 0;}
.nav-links a:hover{color:var(--ink);}
.nav-links a::after{content:""; position:absolute; left:0; bottom:0; width:0; height:2px; background:var(--rose); transition:width 0.25s ease;}
.nav-links a:hover::after{width:100%;}
.nav-cta{padding:11px 22px; background:var(--rose); color:#fff !important; font-weight:600; font-size:14px; border-radius:20px; transition:background 0.2s ease;}
.nav-cta:hover{background:var(--rose-deep);}
.nav-toggle{display:none;}

/* ============ HERO ============ */
.hero{padding:92px 0 100px; overflow:hidden;}
.hero-grid{display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center;}
.hero-eyebrow{font-family:var(--font-mono); font-size:12px; letter-spacing:0.13em; text-transform:uppercase; color:var(--rose-deep); margin-bottom:22px;}
.hero h1{font-size:clamp(34px,4.3vw,52px); line-height:1.12;}
.hero h1 em{font-style:italic; color:var(--rose);}
.hero .sub{margin-top:24px; font-size:17.5px; color:var(--ink-soft); max-width:500px; line-height:1.75;}
.hero-actions{margin-top:36px; display:flex; gap:16px; flex-wrap:wrap;}
.btn{display:inline-flex; align-items:center; gap:8px; padding:15px 26px; font-weight:600; font-size:14.5px; border-radius:24px; border:1px solid transparent; transition:all 0.22s ease;}
.btn-primary{background:var(--rose); color:#fff;}
.btn-primary:hover{background:var(--rose-deep); transform:translateY(-1px);}
.btn-ghost{border-color:var(--line-strong); color:var(--ink);}
.btn-ghost:hover{border-color:var(--rose); color:var(--rose-deep);}
.btn-dark{background:var(--slate-panel); color:#fff;}
.btn-dark:hover{background:var(--rose-deep);}

.hero-tags{display:flex; gap:10px; flex-wrap:wrap; margin-top:40px;}
.hero-tag{font-family:var(--font-mono); font-size:12px; padding:8px 14px; border:1px solid var(--line-strong); border-radius:20px; color:var(--ink-soft);}

/* --- Dashboard mockup --- */
.dash-panel{
  background:var(--blush);
  border:1px solid var(--line);
  border-radius:14px;
  padding:26px;
  position:relative;
}
.dash-topbar{display:flex; justify-content:space-between; align-items:center; margin-bottom:20px;}
.dash-topbar .dots{display:flex; gap:6px;}
.dash-topbar .dots span{width:8px;height:8px;border-radius:50%; background:var(--line-strong); display:inline-block;}
.dash-topbar .title{font-family:var(--font-mono); font-size:11px; color:var(--ink-faint); letter-spacing:0.06em;}
.dash-grid{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px;}
.dash-card{background:var(--paper); border:1px solid var(--line); border-radius:10px; padding:16px;}
.dash-card .label{font-family:var(--font-mono); font-size:10.5px; text-transform:uppercase; letter-spacing:0.06em; color:var(--ink-faint);}
.dash-card .value{font-family:var(--font-display); font-size:26px; margin-top:6px; font-weight:600;}
.dash-card .value.good{color:var(--good);}
.dash-card .value.warn{color:var(--rose-deep);}
.dash-card .bar{height:5px; background:var(--blush-deep); border-radius:4px; margin-top:12px; overflow:hidden;}
.dash-card .bar span{display:block; height:100%; background:var(--rose); border-radius:4px; animation:fillBar 1.4s ease both;}
@keyframes fillBar{from{width:0;} }
.dash-wide{background:var(--paper); border:1px solid var(--line); border-radius:10px; padding:16px;}
.dash-wide .label{font-family:var(--font-mono); font-size:10.5px; text-transform:uppercase; letter-spacing:0.06em; color:var(--ink-faint); margin-bottom:12px; display:block;}
.pulse-row{display:flex; align-items:flex-end; gap:5px; height:44px;}
.pulse-row span{flex:1; background:var(--rose-tint-2); border-radius:2px; animation:pulseBar 2.4s ease-in-out infinite;}
.pulse-row span:nth-child(odd){background:var(--rose);}
@keyframes pulseBar{0%,100%{transform:scaleY(0.4);} 50%{transform:scaleY(1);}}
.pulse-row span:nth-child(1){animation-delay:0s;} .pulse-row span:nth-child(2){animation-delay:0.1s;}
.pulse-row span:nth-child(3){animation-delay:0.2s;} .pulse-row span:nth-child(4){animation-delay:0.3s;}
.pulse-row span:nth-child(5){animation-delay:0.4s;} .pulse-row span:nth-child(6){animation-delay:0.5s;}
.pulse-row span:nth-child(7){animation-delay:0.6s;} .pulse-row span:nth-child(8){animation-delay:0.7s;}
.pulse-row span:nth-child(9){animation-delay:0.8s;} .pulse-row span:nth-child(10){animation-delay:0.9s;}
.dash-foot{margin-top:14px; display:flex; justify-content:space-between; font-family:var(--font-mono); font-size:11px; color:var(--ink-faint);}
.dash-foot .live{display:flex; align-items:center; gap:6px; color:var(--good);}
.dash-foot .live .d{width:6px;height:6px;border-radius:50%; background:var(--good); animation:blink 1.6s ease-in-out infinite;}
@keyframes blink{0%,100%{opacity:1;} 50%{opacity:0.3;}}

/* ============ OVERVIEW / INTRO ============ */
.overview-grid{display:grid; grid-template-columns:0.9fr 1.1fr; gap:70px;}
.overview-list{display:grid; gap:0; margin-top:6px;}
.overview-list li{padding:18px 0; border-bottom:1px solid var(--line); font-size:15px; color:var(--ink-soft); display:flex; gap:12px;}
.overview-list li:last-child{border-bottom:none;}
.overview-list .mark{color:var(--rose); font-weight:700;}
.overview-copy p{font-size:16px; color:var(--ink-soft); line-height:1.85; margin-bottom:18px;}
.overview-copy p:last-child{margin-bottom:0;}
.overview-copy strong{color:var(--ink);}

/* ============ WORKFLOW ============ */
.workflow-track{display:flex; flex-wrap:wrap; gap:0; position:relative;}
.workflow-step{
  flex:1; min-width:150px; padding:26px 20px; text-align:center; position:relative;
  border-right:1px dashed var(--line-strong);
}
.workflow-step:last-child{border-right:none;}
.workflow-step .wf-icon{
  width:48px;height:48px; border-radius:50%; background:var(--blush); border:1px solid var(--line-strong);
  display:flex; align-items:center; justify-content:center; margin:0 auto 14px;
  font-family:var(--font-mono); font-size:13px; color:var(--rose-deep); font-weight:600;
}
.workflow-step h4{font-size:14.5px; margin-bottom:6px;}
.workflow-step p{font-size:12.5px; color:var(--ink-faint); line-height:1.5;}

/* ============ MODULES ============ */
.module-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line);}
.module-card{background:var(--paper); padding:32px 28px; transition:background 0.25s ease;}
.module-card:hover{background:var(--blush);}
.module-card .m-eyebrow{font-family:var(--font-mono); font-size:10.5px; text-transform:uppercase; letter-spacing:0.08em; color:var(--rose-deep); margin-bottom:14px; display:block;}
.module-card h3{font-size:18.5px; margin-bottom:10px;}
.module-card p{font-size:13.5px; color:var(--ink-soft); line-height:1.7;}

/* ============ DASHBOARD SHOWCASE ============ */
.showcase-wrap{display:grid; grid-template-columns:1fr; gap:0;}
.metric-row{display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); margin-top:40px;}
.metric-card{background:var(--paper); padding:26px 22px;}
.metric-card .m-label{font-family:var(--font-mono); font-size:10.5px; text-transform:uppercase; color:var(--ink-faint); letter-spacing:0.06em;}
.metric-card .m-value{font-family:var(--font-display); font-size:30px; margin-top:8px; font-weight:600;}

/* ============ DEEP MODULE SECTIONS (Patient/EMR/Pharmacy/Lab/Billing/Emergency/Beds/Reports) ============ */
.deep-module{display:grid; grid-template-columns:0.85fr 1.15fr; gap:56px; align-items:center; padding:70px 0; border-bottom:1px solid var(--line);}
.deep-module:last-child{border-bottom:none;}
.deep-module.reverse{grid-template-columns:1.15fr 0.85fr;}
.deep-module.reverse .deep-visual{order:-1;}
.deep-module h3{font-size:26px; margin-bottom:16px; line-height:1.25;}
.deep-module p{font-size:15px; color:var(--ink-soft); line-height:1.8; margin-bottom:20px;}
.deep-features{display:grid; gap:10px;}
.deep-features li{font-size:14px; color:var(--ink-soft); display:flex; gap:10px; align-items:baseline;}
.deep-features li::before{content:"—"; color:var(--rose); flex-shrink:0;}
.deep-visual{
  background:var(--blush);
  border:1px solid var(--line);
  border-radius:12px;
  padding:28px;
  min-height:220px;
}
.deep-visual .dv-title{font-family:var(--font-mono); font-size:10.5px; text-transform:uppercase; color:var(--ink-faint); letter-spacing:0.06em; margin-bottom:16px;}
.dv-list{display:grid; gap:10px;}
.dv-list .dv-row{background:var(--paper); border:1px solid var(--line); border-radius:6px; padding:12px 14px; display:flex; justify-content:space-between; align-items:center; font-size:13px;}
.dv-list .dv-row .dv-name{color:var(--ink); font-weight:500;}
.dv-list .dv-row .dv-status{font-family:var(--font-mono); font-size:10.5px; padding:4px 10px; border-radius:12px;}
.dv-status.ok{background:#e5f2ea; color:var(--good);}
.dv-status.pending{background:var(--rose-tint); color:var(--rose-deep);}
.dv-status.alert{background:#fbeaea; color:#c1483a;}

/* ============ DEPLOYMENT ============ */
.deploy-box{
  background:var(--slate-panel); color:#f2e9ea; border-radius:12px; padding:52px;
  display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center;
}
.deploy-box h3{font-size:26px; color:#fff; margin-bottom:16px;}
.deploy-box p{color:#cbb9bc; font-size:15px; line-height:1.8;}
.deploy-badge{display:inline-flex; align-items:center; gap:8px; font-family:var(--font-mono); font-size:11.5px; text-transform:uppercase; letter-spacing:0.08em; color:var(--rose-tint-2); border:1px solid rgba(255,255,255,0.16); padding:8px 14px; border-radius:20px; margin-bottom:22px;}
.deploy-badge .d{width:6px;height:6px;border-radius:50%; background:var(--good);}
.deploy-note{font-family:var(--font-mono); font-size:12px; color:#a99195; margin-top:16px; line-height:1.7;}

/* ============ WHY THIS HMS ============ */
.why-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line);}
.why-card{background:var(--paper); padding:32px 28px;}
.why-card .w-num{font-family:var(--font-mono); font-size:12px; color:var(--rose); margin-bottom:14px; display:block;}
.why-card h4{font-size:17px; margin-bottom:10px;}
.why-card p{font-size:14px; color:var(--ink-soft); line-height:1.7;}

/* ============ DEMO FORM ============ */
.demo-layout{display:grid; grid-template-columns:0.75fr 1.25fr; gap:60px;}
.demo-info h2{font-size:clamp(28px,3vw,36px); line-height:1.2; margin-bottom:18px;}
.demo-info p{font-size:15.5px; color:var(--ink-soft); line-height:1.8; max-width:380px;}
.demo-stats{margin-top:34px; display:grid; gap:16px;}
.demo-stats div{border-left:2px solid var(--rose-tint-2); padding-left:14px;}
.demo-stats b{display:block; font-family:var(--font-display); font-size:15px;}
.demo-stats span{font-family:var(--font-mono); font-size:11.5px; color:var(--ink-faint);}
.form-grid{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
.field{display:flex; flex-direction:column; gap:8px;}
.field.full{grid-column:1/-1;}
.field label{font-family:var(--font-mono); font-size:11px; text-transform:uppercase; letter-spacing:0.06em; color:var(--ink-faint);}
.field input, .field select, .field textarea{
  border:1px solid var(--line-strong); border-radius:8px; padding:13px 14px; font-family:var(--font-body);
  font-size:14.5px; color:var(--ink); background:var(--paper); transition:border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{outline:none; border-color:var(--rose);}
.field textarea{resize:vertical; min-height:100px;}
.form-actions{grid-column:1/-1; margin-top:6px;}

/* ============ FAQ ============ */
.faq-list{max-width:820px;}
.faq-item{border-bottom:1px solid var(--line);}
.faq-item summary{
  padding:24px 0; font-family:var(--font-display); font-size:16.5px; font-weight:600; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center; list-style:none;
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{content:"+"; font-family:var(--font-mono); font-size:20px; color:var(--rose); transition:transform 0.25s ease; margin-left:20px; flex-shrink:0;}
.faq-item[open] summary::after{transform:rotate(45deg);}
.faq-item p{padding-bottom:24px; font-size:15px; color:var(--ink-soft); max-width:640px; line-height:1.75;}

/* ============ FOOTER (shared brand, HMS palette) ============ */
.site-footer{background:var(--slate-panel); color:#cbb9bc; padding:80px 0 30px;}
.footer-top{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:56px; border-bottom:1px solid rgba(255,255,255,0.1);}
.footer-brand .logo{color:#fff;}
.footer-brand .logo-mark{background:var(--rose);}
.footer-brand p{margin-top:16px; font-size:14px; color:#a08d90; max-width:280px; line-height:1.7;}
.footer-col h5{font-family:var(--font-mono); font-size:11px; text-transform:uppercase; letter-spacing:0.08em; color:#8f7d80; margin-bottom:20px;}
.footer-col a, .footer-col span{display:block; font-size:14px; color:#cbb9bc; margin-bottom:13px;}
.footer-col a:hover{color:var(--rose-tint-2);}
.footer-bottom{display:flex; justify-content:space-between; padding-top:28px; font-size:12.5px; color:#786769; font-family:var(--font-mono); flex-wrap:wrap; gap:10px;}
.footer-bottom a{color:#786769;}
.footer-bottom a:hover{color:#cbb9bc;}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width:1024px){
  .wrap{padding:0 24px;}
  .hero-grid{grid-template-columns:1fr; gap:50px;}
  .overview-grid{grid-template-columns:1fr; gap:40px;}
  .module-grid{grid-template-columns:repeat(2,1fr);}
  .metric-row{grid-template-columns:repeat(2,1fr);}
  .deep-module, .deep-module.reverse{grid-template-columns:1fr; gap:32px;}
  .deep-module.reverse .deep-visual{order:0;}
  .deploy-box{grid-template-columns:1fr; padding:36px;}
  .why-grid{grid-template-columns:1fr 1fr;}
  .demo-layout{grid-template-columns:1fr; gap:40px;}
  .footer-top{grid-template-columns:1fr 1fr; row-gap:36px;}
  .workflow-track{flex-wrap:wrap;}
  .workflow-step{min-width:33%; border-bottom:1px dashed var(--line-strong);}
}
@media (max-width:768px){
  .section{padding:72px 0;}
  .nav-links{
    position:fixed; top:78px; left:0; right:0; bottom:0; background:var(--paper);
    flex-direction:column; align-items:flex-start; padding:30px 24px; gap:22px;
    transform:translateX(-100%); transition:transform 0.3s ease; overflow-y:auto;
  }
  .nav-links.open{transform:translateX(0);}
  .nav-toggle{display:flex; flex-direction:column; gap:5px; background:none; border:none; padding:6px;}
  .nav-toggle span{width:22px; height:2px; background:var(--ink);}
  .module-grid{grid-template-columns:1fr;}
  .metric-row{grid-template-columns:1fr 1fr;}
  .why-grid{grid-template-columns:1fr;}
  .form-grid{grid-template-columns:1fr;}
  .footer-top{grid-template-columns:1fr;}
  .footer-bottom{flex-direction:column;}
  .workflow-step{min-width:50%;}
}
@media (max-width:425px){
  .wrap{padding:0 18px;}
  .hero{padding:56px 0 60px;}
  .section{padding:56px 0;}
  .metric-row{grid-template-columns:1fr;}
  .deploy-box{padding:26px;}
  .dash-panel{padding:18px;}
  .dash-grid{grid-template-columns:1fr;}
  .btn{width:100%; justify-content:center;}
  .hero-actions{flex-direction:column;}
  .workflow-step{min-width:100%; border-right:none;}
}
