/* ============================================================
   DocSider Landing Page — Modern Design
   Color tokens mirror the internal app theme
   ============================================================ */

:root {
  --ds-navy:        #0b1220;
  --ds-navy-2:      #0f1b2d;
  --ds-navy-3:      #1a2744;
  --ds-primary:     #0b66e4;
  --ds-primary-h:   #0954be;
  --ds-accent:      #38bdf8;
  --ds-accent-2:    #7dd3fc;
  --ds-green:       #16a34a;
  --ds-teal:        #0891b2;
  --ds-purple:      #7c3aed;
  --ds-amber:       #d97706;
  --ds-text:        #0f172a;
  --ds-text-2:      #334155;
  --ds-text-muted:  #64748b;
  --ds-bg-light:    #f8fafc;
  --ds-border:      #e2e8f0;
  --ds-radius-sm:   12px;
  --ds-radius-md:   18px;
  --ds-radius-lg:   24px;
  --ds-shadow-sm:   0 4px 16px rgba(15, 23, 42, 0.06);
  --ds-shadow-md:   0 12px 36px rgba(15, 23, 42, 0.10);
  --ds-shadow-lg:   0 24px 60px rgba(15, 23, 42, 0.14);
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.ds-landing {
  font-family: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  color: var(--ds-text);
  background: var(--ds-bg-light);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

body.ds-landing h1,
body.ds-landing h2,
body.ds-landing h3,
body.ds-landing h4,
body.ds-landing h5 {
  font-family: 'Manrope', 'IBM Plex Sans', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ── Topbar strip ─────────────────────────────────────────── */
.ds-topbar-strip {
  background: var(--ds-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.45rem 0;
  font-size: 0.8rem;
}

.ds-topbar-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.ds-topbar-link:hover { color: var(--ds-accent); }

.ds-topbar-divider {
  color: rgba(255, 255, 255, 0.2);
}

.ds-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.06);
}
.ds-social-icon:hover {
  color: var(--ds-accent);
  background: rgba(56, 189, 248, 0.12);
}

/* ── Navbar ───────────────────────────────────────────────── */
.ds-navbar {
  background: rgba(11, 18, 32, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.75rem 0;
  transition: box-shadow 0.3s, background 0.3s;
  z-index: 1000;
}
.ds-navbar.scrolled {
  box-shadow: 0 4px 24px rgba(11, 18, 32, 0.35);
  background: rgba(11, 18, 32, 0.99);
}

.ds-logo { text-decoration: none; }

.ds-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ds-primary) 0%, var(--ds-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}

.ds-logo-icon-sm {
  width: 32px;
  height: 32px;
  font-size: 1rem;
  border-radius: 8px;
}

.ds-logo-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.1;
}

.ds-logo-tagline {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
  margin-top: 1px;
}

.ds-btn-outline-white {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.2s;
}
.ds-btn-outline-white:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.ds-btn-primary {
  background: var(--ds-primary);
  border: 1px solid var(--ds-primary);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.2s;
}
.ds-btn-primary:hover {
  background: var(--ds-primary-h);
  border-color: var(--ds-primary-h);
  color: #fff;
}

/* ── Hero ─────────────────────────────────────────────────── */
.ds-hero {
  background: linear-gradient(160deg, var(--ds-navy) 0%, var(--ds-navy-2) 45%, #0d2045 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}

.ds-hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ds-hero-orb-1 {
  width: 600px; height: 600px;
  top: -200px; left: -150px;
  background: radial-gradient(circle, rgba(11, 102, 228, 0.22) 0%, transparent 70%);
}
.ds-hero-orb-2 {
  width: 500px; height: 500px;
  top: -100px; right: -100px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
}

.ds-hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.min-vh-hero {
  min-height: calc(100vh - 100px);
}

.ds-hero-kicker {
  display: inline-flex;
  align-items: center;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: var(--ds-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.38rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.ds-hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.ds-hero-accent {
  background: linear-gradient(90deg, var(--ds-accent), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ds-hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 48ch;
  line-height: 1.65;
  margin-bottom: 0;
}

.ds-btn-hero-primary {
  background: var(--ds-primary);
  border: 1.5px solid var(--ds-primary);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  transition: all 0.22s;
  box-shadow: 0 8px 24px rgba(11, 102, 228, 0.35);
}
.ds-btn-hero-primary:hover {
  background: var(--ds-primary-h);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(11, 102, 228, 0.45);
}

.ds-btn-hero-outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  transition: all 0.22s;
}
.ds-btn-hero-outline:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.ds-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ds-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

/* ── Hero mockup card ─────────────────────────────────────── */
.ds-hero-card-stack {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding: 2rem 0;
}

.ds-hero-mockup {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  overflow: hidden;
  width: 340px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}

.ds-mockup-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ds-mockup-dots { display: flex; gap: 5px; }
.ds-mockup-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.ds-mockup-title {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ds-mockup-body { padding: 1rem; }

.ds-stat-row { display: flex; gap: 0.75rem; }

.ds-stat-pill {
  flex: 1;
  border-radius: 12px;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ds-stat-blue   { background: rgba(11, 102, 228, 0.22); }
.ds-stat-teal   { background: rgba(8, 145, 178, 0.22); }
.ds-stat-green  { background: rgba(22, 163, 74, 0.22); }
.ds-stat-purple { background: rgba(124, 58, 237, 0.22); }

.ds-stat-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ds-stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  line-height: 1.2;
}

.ds-mockup-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0.75rem 0;
}

.ds-mockup-list { display: flex; flex-direction: column; gap: 0.5rem; }
.ds-mockup-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
}

.ds-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.ds-badge-blue   { background: rgba(11, 102, 228, 0.3); color: var(--ds-accent-2); }
.ds-badge-amber  { background: rgba(217, 119, 6, 0.3);  color: #fcd34d; }
.ds-badge-green  { background: rgba(22, 163, 74, 0.3);  color: #86efac; }

/* ── Stats bar ────────────────────────────────────────────── */
.ds-stats-bar {
  background: var(--ds-navy-3);
  padding: 2.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ds-stat-item {
  text-align: center;
  padding: 1rem 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.ds-stat-item:last-child { border-right: none; }

.ds-stat-number {
  font-family: 'Manrope', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--ds-accent);
  line-height: 1;
}
.ds-stat-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.3rem;
  font-weight: 500;
}

/* ── Sections ─────────────────────────────────────────────── */
.ds-section { padding: 5rem 0; }
.ds-section-light { background: #f8fafc; }
.ds-section-dark  {
  background: linear-gradient(160deg, var(--ds-navy) 0%, var(--ds-navy-2) 100%);
}

.ds-section-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ds-primary);
  background: rgba(11, 102, 228, 0.08);
  border: 1px solid rgba(11, 102, 228, 0.2);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.ds-kicker-light {
  color: var(--ds-accent);
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
}

.ds-section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--ds-text);
  margin-bottom: 0.65rem;
}
.ds-section-sub {
  font-size: 1rem;
  color: var(--ds-text-muted);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Feature cards ────────────────────────────────────────── */
.ds-feature-card {
  background: #fff;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: transform 0.22s, box-shadow 0.22s;
  box-shadow: var(--ds-shadow-sm);
}
.ds-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ds-shadow-md);
}

.ds-feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.ds-icon-blue   { background: rgba(11, 102, 228, 0.1); color: var(--ds-primary); }
.ds-icon-teal   { background: rgba(8, 145, 178, 0.1);  color: var(--ds-teal); }
.ds-icon-green  { background: rgba(22, 163, 74, 0.1);  color: var(--ds-green); }
.ds-icon-purple { background: rgba(124, 58, 237, 0.1); color: var(--ds-purple); }

.ds-feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ds-text);
  margin-bottom: 0.5rem;
}
.ds-feature-desc {
  font-size: 0.88rem;
  color: var(--ds-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── How it works steps ───────────────────────────────────── */
.ds-step-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ds-radius-md);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: border-color 0.22s;
}
.ds-step-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.ds-step-number {
  font-family: 'Manrope', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--ds-primary), var(--ds-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}
.ds-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.ds-step-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin: 0;
}

/* ── Role cards ───────────────────────────────────────────── */
.ds-role-card {
  background: #fff;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  padding: 1.75rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s;
  box-shadow: var(--ds-shadow-sm);
}
.ds-role-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ds-shadow-md);
}

.ds-role-badge {
  display: inline-flex;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  width: fit-content;
}
.ds-role-admin  { background: rgba(11, 102, 228, 0.1); color: var(--ds-primary); }
.ds-role-staff  { background: rgba(8, 145, 178, 0.1);  color: var(--ds-teal); }
.ds-role-doctor { background: rgba(22, 163, 74, 0.1);  color: var(--ds-green); }
.ds-role-pharma { background: rgba(124, 58, 237, 0.1); color: var(--ds-purple); }

.ds-role-icon {
  font-size: 2rem;
  color: var(--ds-text-muted);
  margin-bottom: 0.75rem;
}

.ds-role-title {
  font-weight: 700;
  color: var(--ds-text);
  margin-bottom: 0.75rem;
}

.ds-role-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  flex: 1;
}
.ds-role-list li {
  font-size: 0.84rem;
  color: var(--ds-text-muted);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--ds-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ds-role-list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ds-primary);
  flex-shrink: 0;
}
.ds-role-list li:last-child { border-bottom: none; }

.ds-btn-role {
  background: var(--ds-bg-light);
  border: 1px solid var(--ds-border);
  color: var(--ds-primary);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.55rem 1rem;
  transition: all 0.2s;
  text-align: center;
}
.ds-btn-role:hover {
  background: var(--ds-primary);
  border-color: var(--ds-primary);
  color: #fff;
}

/* ── CTA section ─────────────────────────────────────────── */
.ds-cta-section {
  background: linear-gradient(135deg, var(--ds-navy) 0%, #0d2045 50%, var(--ds-navy-2) 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.ds-cta-orb {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ds-cta-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ds-accent);
  margin-bottom: 0.75rem;
}

.ds-cta-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.75rem;
}

.ds-cta-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 48ch;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Footer ──────────────────────────────────────────────── */
.ds-footer {
  background: var(--ds-navy);
  padding: 4rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ds-footer-brand {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

.ds-footer-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.ds-footer-tagline {
  font-size: 0.8rem;
  color: var(--ds-accent);
  font-style: italic;
  margin: 0;
}

.ds-footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

.ds-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ds-footer-links li {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.55rem;
  line-height: 1.5;
}
.ds-footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.ds-footer-links a:hover { color: var(--ds-accent); }

.ds-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 3rem;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

.ds-social-icon-sm {
  width: 32px; height: 32px;
  border-radius: 8px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
}

/* ── Scroll top button ────────────────────────────────────── */
.ds-scroll-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--ds-primary);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(11, 102, 228, 0.4);
  z-index: 999;
}
.ds-scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ds-scroll-top:hover { background: var(--ds-primary-h); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .ds-hero { padding: 3rem 0 3rem; }
  .min-vh-hero { min-height: auto; }
  .ds-hero-title { font-size: 2rem; }
  .ds-section { padding: 3.5rem 0; }
  .ds-cta-section { padding: 4rem 0; }
  .ds-stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .ds-stat-item:last-child { border-bottom: none; }
  .ds-footer { padding: 3rem 0 0; }
  .ds-footer-bottom { justify-content: center; text-align: center; }
}
