/* ============================================================
   MediKloud — Design System (Tema #037185)
   ============================================================ */
:root {
  --brand: #037185;
  --brand-600: #025f70;
  --brand-700: #024d5c;
  --brand-050: #e6f2f5;
  --brand-100: #cbe4ea;
  --brand-glow: #0899b3;
  --accent-light: #7fd6e5;

  --bg: #ffffff;
  --bg-soft: #f6fafb;
  --bg-muted: #eef4f6;
  --fg: #0e1b22;
  --fg-muted: #4a5b64;
  --fg-soft: #6d7d85;
  --border: #e3ecef;
  --border-strong: #cbd8dd;

  --success: #16a34a;
  --danger: #dc2626;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(3,113,133,.06), 0 1px 3px rgba(3,113,133,.08);
  --shadow: 0 10px 25px -12px rgba(3,113,133,.25);
  --shadow-lg: 0 30px 60px -20px rgba(3,113,133,.35);

  --grad-brand: linear-gradient(135deg, var(--brand) 0%, var(--brand-glow) 100%);
  --grad-hero: radial-gradient(1200px 600px at 90% -10%, rgba(3,113,133,.08), transparent 60%),
               radial-gradient(800px 500px at -10% 30%, rgba(3,113,133,.05), transparent 60%);
  --grad-band: linear-gradient(135deg, #024a58 0%, #037185 60%, #04889f 100%);

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --container: 1200px;
}

[hidden] { display: none !important; }
.mobile-nav[hidden] { display: none; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: #fff;
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background-color:#f4f5fa;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: transparent; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--fg); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--fg-muted); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

.text-accent { color: var(--brand); }
.text-accent-light { color: var(--accent-light); }
.muted { color: var(--fg-muted); }
.light { color: #fff; }
.light-muted { color: rgba(255,255,255,.78); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 2rem; }

.brand img
{
  width:5rem;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--fg); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand-050); color: var(--brand);
  display: grid; place-items: center; font-size: 1.15rem;
  border: 1.5px solid var(--brand-100);
}
.nav-desktop ul { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  color: var(--fg); font-weight: 500; font-size: .95rem;
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .4rem 0; position: relative; transition: color .2s;
}
.nav-link:hover { color: var(--brand); }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: -1rem; min-width: 260px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .2s; z-index: 60;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: .7rem .8rem; border-radius: 10px; transition: background .15s; }
.dropdown a:hover { background: var(--brand-050); }
.dropdown a strong { display: block; font-size: .92rem; color: var(--fg); }
.dropdown a span { font-size: .8rem; color: var(--fg-soft); }
.header-actions { display: flex; align-items: center; gap: .75rem; }

.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; background: var(--bg-soft); font-size: 1.3rem; }

.mobile-nav {
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-nav a { padding: .85rem .5rem; border-bottom: 1px solid var(--border); font-weight: 500; }
.mobile-nav a.btn { border-bottom: none; margin-top: .5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap; cursor: pointer;
}
.btn:focus-visible { outline: 3px solid var(--brand-100); outline-offset: 2px; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(3,113,133,.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(3,113,133,.55); }
.btn-primary:active { transform: translateY(0); }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: var(--brand-050); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero { padding: 3.5rem 0 5rem; background: var(--grad-hero); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.eyebrow {
  display: flex; align-items: center; gap: .75rem;
  color: var(--brand); font-weight: 700; font-size: .8rem; letter-spacing: .12em;
  margin-bottom: 1.25rem;
}
.eyebrow .line { flex: 0 0 40px; height: 2px; background: var(--brand-100); }
.eyebrow-sm { color: var(--brand); font-weight: 700; font-size: .78rem; letter-spacing: .18em; display: inline-block; margin-bottom: .75rem; text-transform: uppercase; }
.eyebrow-light { color: var(--accent-light); }
.display { margin-bottom: 1rem; }
.lead { font-style: italic; font-size: 1.35rem; color: var(--fg); font-family: var(--font-display); font-weight: 500; margin-bottom: 1.5rem; }
.hero-desc { max-width: 560px; font-size: 1.05rem; margin-bottom: 2rem; }
.hero-badges {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem 1.5rem;
  margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border);
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--brand);
}
.hero-badges li { display: inline-flex; align-items: center; gap: .5rem; }

/* Hero visual card */
.hero-visual { display: flex; justify-content: center; }
.card-visual {
  width: 100%; max-width: 460px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: 1.5rem; position: relative;
}
.cv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.cv-title { display: flex; align-items: center; gap: .75rem; }
.cv-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-050); color: var(--brand);
  display: grid; place-items: center; font-size: 1.2rem;
  border: 1px solid var(--brand-100);
}
.cv-icon.sm { width: 36px; height: 36px; font-size: 1rem; }
.cv-title strong { display: block; font-family: var(--font-display); font-weight: 700; }
.cv-title small { font-size: .6rem; letter-spacing: .12em; color: var(--fg-soft); font-weight: 600; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .75rem; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  background: #ecfdf5; color: #059669;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.flow-board {
  position: relative; height: 240px;
  background: radial-gradient(circle at 1px 1px, var(--border-strong) 1px, transparent 0);
  background-size: 14px 14px;
  border-radius: var(--radius); margin-bottom: 1.25rem;
  overflow: hidden;
}
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow-lines path { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 8 6; animation: dash 2.5s linear infinite; opacity: .6; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.flow-node {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: .35rem;
  z-index: 2;
}
.flow-node .flow-icon {
  width: 44px; height: 44px; border-radius: 12px; background: #fff;
  border: 1.5px solid var(--brand-100); color: var(--brand);
  display: grid; place-items: center; font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.flow-node.accent .flow-icon { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 10px 20px -8px rgba(3,113,133,.5); }
.flow-node small { font-size: .65rem; font-weight: 700; letter-spacing: .1em; color: var(--fg-soft); }
.chip {
  position: absolute; bottom: 12px; right: 12px;
  background: #111; color: #fff; padding: .3rem .7rem;
  border-radius: 999px; font-size: .7rem; font-weight: 600;
}
.cv-metric {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.15rem; border: 1px solid var(--border); border-radius: var(--radius);
}
.cv-metric small { font-size: .68rem; letter-spacing: .12em; color: var(--fg-soft); font-weight: 700; display: block; margin-bottom: .2rem; }
.cv-metric strong { font-family: var(--font-display); font-size: 1.05rem; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.center-copy { max-width: 780px; margin: 0 auto 3rem; text-align: center; }
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center; }

/* Phone mock */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 290px; height: 580px; background: #0e1b22; padding: 12px;
  border-radius: 42px; box-shadow: var(--shadow-lg); position: relative;
}
.phone::before {
  content: ''; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 22px; background: #000; border-radius: 999px; z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%; background: var(--bg-soft);
  border-radius: 32px; padding: 40px 16px 16px; overflow: hidden;
  display: flex; flex-direction: column; gap: .75rem;
}
.ps-header { display: flex; align-items: center; justify-content: space-between; padding: .5rem .25rem; background: var(--grad-brand); color: #fff; border-radius: 14px; padding: .75rem; }
.ps-header small { font-size: .6rem; letter-spacing: .1em; opacity: .8; font-weight: 700; }
.ps-header strong { display: block; font-size: .9rem; }
.ps-header .cv-icon { background: rgba(255,255,255,.2); color: #fff; border-color: transparent; }
.ps-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.ps-stats > div { background: #fff; border-radius: 10px; padding: .6rem; }
.ps-stats small { font-size: .6rem; letter-spacing: .1em; color: var(--fg-soft); font-weight: 700; }
.ps-stats strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--brand); }
.ps-card { background: #fff; border-radius: 12px; padding: .8rem; }
.ps-card small { font-size: .6rem; letter-spacing: .1em; color: var(--fg-soft); font-weight: 700; }
.ps-card .row { display: flex; align-items: center; justify-content: space-between; margin: .3rem 0; }
.ps-card strong { font-family: var(--font-display); font-size: .95rem; }
.ps-card p { font-size: .75rem; margin: 0 0 .6rem; color: var(--fg-soft); }
.tag { font-size: .65rem; padding: .2rem .5rem; border-radius: 999px; background: #fef3c7; color: #92400e; font-weight: 700; }
.ps-actions small { font-size: .6rem; letter-spacing: .1em; color: var(--fg-soft); font-weight: 700; }
.ps-actions .row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .4rem; }
.ps-actions button {
  background: #fff; border-radius: 12px; padding: .8rem .5rem;
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 600; color: var(--fg); transition: transform .15s;
}
.ps-actions button:hover { transform: translateY(-2px); }
.ps-actions button i { font-size: 1.1rem; color: var(--brand); }

/* Feature list */
.feature-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.fi {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-050); color: var(--brand);
  display: grid; place-items: center; font-size: 1.1rem;
  border: 1px solid var(--brand-100);
}
.feature-list strong { font-family: var(--font-display); font-size: 1.05rem; display: block; margin-bottom: .2rem; }
.feature-list p { margin: 0; font-size: .95rem; }

/* Banner */
.banner { padding: 3rem 0; }
.banner-inner {
  background: var(--grad-band); color: #fff; text-align: center;
  padding: 4rem 2rem; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.banner-inner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(127,214,229,.2), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(127,214,229,.15), transparent 50%);
  pointer-events: none;
}
.banner-inner h2 { color: #fff; margin-bottom: 1.5rem; position: relative; }
.banner-tags {
  display: inline-flex; gap: 1.5rem; padding-top: 1rem; flex-wrap: wrap; justify-content: center;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: rgba(255,255,255,.85);
  position: relative;
}
.banner-tags span { display: inline-flex; align-items: center; gap: .5rem; }

/* Tabs */
.tabs-grid { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: .5rem; }
.tab {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; text-align: left; border-radius: var(--radius);
  border: 1px solid var(--border); background: #fff;
  font-weight: 600; color: var(--fg); transition: all .2s;
}
.tab:hover { border-color: var(--brand-100); color: var(--brand); }
.tab.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--shadow); }
.tab.active i { color: #fff; }
.tab i { color: var(--fg-soft); }
.tp { display: none; }
.tp.active { display: block; animation: fade .25s ease; }
.tp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mini-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; transition: all .2s;
}
.mini-card:hover { border-color: var(--brand-100); transform: translateY(-3px); box-shadow: var(--shadow); }
.mc-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand-050); color: var(--brand);
  display: grid; place-items: center; font-size: 1.05rem;
  margin-bottom: 1rem; border: 1px solid var(--brand-100);
}
.mini-card p { font-size: .9rem; margin: 0; }

/* Security dark band */
.dark-band { background: var(--grad-band); color: #fff; border-radius: var(--radius-xl); margin: 3rem auto; max-width: calc(var(--container) + 3rem); }
.dark-band .two-col { padding: 4rem 2rem; }
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.sec-card {
  background: rgba(255,255,255,.08); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius);
  padding: 1.5rem; color: #fff; transition: all .2s;
}
.sec-card:hover { background: rgba(255,255,255,.14); transform: translateY(-3px); }
.sec-card p { color: rgba(255,255,255,.75); font-size: .9rem; margin: 0; }
.sec-card h4 { color: #fff; }
.sec-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.15); color: var(--accent-light);
  display: grid; place-items: center; font-size: 1.05rem; margin-bottom: 1rem;
}

/* Comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.cmp-table th, .cmp-table td { padding: 1rem 1.25rem; text-align: left; font-size: .92rem; border-bottom: 1px solid var(--border); }
.cmp-table th { font-family: var(--font-display); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-soft); background: var(--bg-soft); }
.cmp-table th.hl { background: var(--grad-brand); color: #fff; }
.cmp-table td.hl { background: rgba(3,113,133,.04); font-weight: 500; color: var(--fg); }
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table .pos { color: var(--brand); font-weight: 700; }
.cmp-table .neg { color: var(--fg-soft); }
.icon-check::before, .icon-x::before { display: inline-block; margin-right: .35rem; font-weight: 700; }
.icon-check::before { content: '✓'; color: var(--brand); }
.icon-x::before { content: '✕'; color: #b8c3c8; }

/* Footer */
.site-footer { background: var(--bg-soft); padding: 4rem 0 1.5rem; border-top: 1px solid var(--border); margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2.5rem; }
.footer-brand p { font-size: .9rem; max-width: 320px; margin-top: 1rem; }
.site-footer h5 { font-size: .78rem; letter-spacing: .15em; color: var(--fg-soft); font-weight: 700; margin-bottom: 1rem; }
.site-footer ul li { margin-bottom: .6rem; }
.site-footer ul a { font-size: .92rem; color: var(--fg-muted); transition: color .15s; }
.site-footer ul a:hover { color: var(--brand); }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  font-size: .85rem; color: var(--fg-soft);
}
.footer-links { display: flex; gap: 1.25rem; align-items: center; }
.footer-links a { color: var(--fg-soft); transition: color .15s; }
.footer-links a:hover { color: var(--brand); }
.heart { color: #e11d48; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px);
  background: var(--fg); color: #fff; padding: .85rem 1.25rem; border-radius: 999px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; z-index: 100;
  font-size: .9rem;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* ---------- Icons via CSS pseudo ---------- */
[class^="icon-"]:not(.icon-check):not(.icon-x)::before {
  font-family: 'lucide'; display: inline-block; font-style: normal; line-height: 1;
}
/* Custom minimal icon fallback if Lucide font missing — use unicode/svg via mask */

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 3rem; }
  .tabs-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .dark-band { border-radius: 0; margin: 3rem 0; max-width: 100%; }
}
@media (max-width: 720px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .header-actions .btn { display: none; }
  .section { padding: 3.5rem 0; }
  .hero { padding: 2.5rem 0 3.5rem; }
  .hero-badges { grid-template-columns: 1fr; }
  .tp-grid, .sec-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .banner-inner { padding: 2.5rem 1.25rem; border-radius: var(--radius-lg); }
  .cmp-table th, .cmp-table td { padding: .75rem .85rem; font-size: .85rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .display { font-size: 2rem; }
  h2 { font-size: 1.65rem; }
  .lead { font-size: 1.1rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
