/* =====================================================================
   DiagnoCare by TechShilpo — premium public landing theme
   Used by: features.php (and any marketing/public page that opts in).
   Self-contained: only depends on Bootstrap 5 + Bootstrap Icons.
   ===================================================================== */

:root {
  --brand:        #4f46e5;   /* indigo (matches app.css --primary) */
  --brand-dark:   #4338ca;
  --brand-2:      #14b8a6;   /* teal accent */
  --brand-3:      #ec4899;   /* rose */
  --ink-900:      #0f172a;
  --ink-700:      #334155;
  --ink-500:      #64748b;
  --ink-300:      #cbd5e1;
  --paper:        #ffffff;
  --soft:         #f8fafc;
  --line:         #e2e8f0;

  --grad-brand:   linear-gradient(135deg, #6366f1 0%, #4f46e5 45%, #7c3aed 100%);
  --grad-hero:    linear-gradient(135deg, #4338ca 0%, #4f46e5 38%, #7c3aed 75%, #2563eb 100%);
  --grad-soft:    linear-gradient(180deg, #f6f7ff 0%, #eef2ff 100%);

  --shadow-sm:    0 1px 2px rgba(15,23,42,.06);
  --shadow:       0 8px 24px rgba(15,23,42,.08);
  --shadow-lg:    0 24px 60px rgba(79,70,229,.18);
  --radius:       18px;
}

* { -webkit-font-smoothing: antialiased; }

body {
  font-family: "Inter", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink-700);
  background: var(--paper);
  overflow-x: hidden;
}
body.bn { font-family: "Hind Siliguri", "Inter", system-ui, sans-serif; }

h1, h2, h3, h4, h5, .display { color: var(--ink-900); font-weight: 800; letter-spacing: -0.02em; }

a { color: var(--brand); }

.text-brand { color: var(--brand) !important; }
.bg-brand   { background: var(--brand) !important; }

/* ------------------------------------------------------------------ Nav */
.landing-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding: .65rem 0;
}
.landing-nav .brand {
  display: flex; align-items: center; gap: .65rem;
  font-weight: 800; font-size: 1.18rem; color: var(--ink-900);
}
.landing-nav .brand .logo {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center; color: #fff; font-size: 1.25rem;
  background: var(--grad-brand);
  box-shadow: 0 6px 18px rgba(79,70,229,.35);
}
.landing-nav a.text-dark:hover { color: var(--brand) !important; }

/* ------------------------------------------------------------------ Buttons */
.btn { border-radius: 12px; font-weight: 600; }
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline-primary { color: var(--brand); border-color: #c7d2fe; }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); }
.btn-lg { padding: .8rem 1.6rem; }
.btn-ghost-white {
  color: #fff; border: 1.5px solid rgba(255,255,255,.55); background: transparent;
}
.btn-ghost-white:hover { color: var(--brand); background: #fff; border-color: #fff; }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: #fff;
  padding: 5.5rem 0 6.5rem;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(8px); opacity: .35; pointer-events: none;
}
.hero::before { width: 460px; height: 460px; top: -180px; right: -120px;
  background: radial-gradient(circle at center, #a78bfa, transparent 60%); }
.hero::after  { width: 420px; height: 420px; bottom: -200px; left: -120px;
  background: radial-gradient(circle at center, #22d3ee, transparent 60%); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.12; }
.hero .lead { color: rgba(255,255,255,.92); font-size: 1.12rem; max-width: 38rem; margin-top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .4rem .85rem; border-radius: 999px;
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.25);
}
.section .eyebrow {
  background: var(--brand-bg, #eef2ff); color: var(--brand);
  border-color: #e0e7ff;
}
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Floating hero artwork */
.hero-art { position: relative; animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-art .divider { height: 1px; background: var(--line); margin: .6rem 0; }

/* ------------------------------------------------------------------ Sections */
.section { padding: 5rem 0; }
.section-title { max-width: 46rem; margin: 0 auto 3rem; text-align: center; }
.section-title h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: .6rem 0 .5rem; }
.section-title p { color: var(--ink-500); font-size: 1.05rem; }

/* ------------------------------------------------------------------ Feature cards */
.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: #c7d2fe;
}
.feature-card .icon {
  width: 54px; height: 54px; border-radius: 15px;
  display: grid; place-items: center; font-size: 1.45rem; color: #fff;
  background: var(--grad-brand); margin-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(79,70,229,.28);
}
.feature-card h5 { font-size: 1.08rem; margin-bottom: .4rem; }
.feature-card p  { color: var(--ink-500); font-size: .94rem; margin: 0; }

/* ------------------------------------------------------------------ Stats strip */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow); margin-top: -3.2rem; position: relative; z-index: 3;
}
.stats-strip .num { font-size: 1.9rem; font-weight: 800; color: var(--brand); line-height: 1; }
.stats-strip .lbl { color: var(--ink-500); font-size: .9rem; margin-top: .35rem; }
@media (max-width: 720px) { .stats-strip { grid-template-columns: repeat(2, 1fr); margin-top: -2rem; } }

/* ------------------------------------------------------------------ Pricing */
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; height: 100%; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); position: relative; }
.price-card.featured .ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad-brand); color: #fff; font-size: .72rem; font-weight: 700;
  padding: .3rem .9rem; border-radius: 999px; letter-spacing: .04em;
}
.price-card .amount { font-size: 2.4rem; font-weight: 800; color: var(--ink-900); }
.price-card ul { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.price-card li { padding: .45rem 0; color: var(--ink-700); display: flex; align-items: center; gap: .55rem; }
.price-card li i { color: var(--brand-2); }

/* ------------------------------------------------------------------ CTA band */
.cta-section {
  background: var(--grad-hero); color: #fff; text-align: center;
  border-radius: 28px; padding: 3.4rem 1.5rem;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-section h2 { color: #fff; }
.cta-section::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 80% 0%, rgba(255,255,255,.18), transparent 70%);
}
.cta-section > * { position: relative; z-index: 2; }

/* ------------------------------------------------------------------ Footer */
.landing-footer { background: var(--ink-900); color: #cbd5e1; padding: 3.5rem 0 1.5rem; }
.landing-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.landing-footer a { color: #cbd5e1; text-decoration: none; transition: color .2s; }
.landing-footer a:hover { color: #fff; }
.landing-footer .bottom {
  margin-top: 2.4rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between;
  font-size: .86rem; color: #94a3b8;
}

/* helper for soft sections */
:root { --brand-bg: #eef2ff; }

/* Reveal-on-scroll (progressive enhancement; visible by default) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero-art { animation: none; } }
