/* ══════════════════════════════════════════════════════════
   DOCIVAULT — Shared Design System
   Brand: Playfair Display + DM Sans + DM Mono
   Primary: Dark mode (#141414 bg, #4ADE80 mint accent)
   v1.0 · India · 2026
══════════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --bg:             #141414;
  --bg-deep:        #0E0E0E;
  --surface:        #1E1E1E;
  --surface2:       #252525;
  --surface3:       #2E2E2E;
  --accent:         #4ADE80;
  --accent-dim:     #1A2E1F;
  --accent-mid:     #2D6A4F;
  --text:           #F0EDE8;
  --text-muted:     #9CA3AF;
  --text-faint:     #6B7280;
  --border:         #2A2A2A;
  --border-strong:  #3A3A3A;
  --danger:         #DC2626;
  --warning:        #D97706;
  --success:        #059669;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;
  --font-mono:   'DM Mono', 'Courier New', monospace;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm:     0 1px 3px rgba(0,0,0,0.4);
  --shadow:        0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:     0 12px 48px rgba(0,0,0,0.6);
  --shadow-accent: 0 0 32px rgba(74,222,128,0.12);

  --nav-h:  64px;
  --max-w:  1200px;
  --gutter: clamp(20px, 5vw, 80px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }

/* ── Wordmark ── */
.wordmark {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  color: var(--text);
}
.wordmark .i { color: var(--accent); font-style: italic; }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Utility ── */
.label-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 100px;
  padding: 4px 14px 4px 10px;
  margin-bottom: 24px;
}
.section-tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition: all 200ms var(--ease-out);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #0E0E0E; font-weight: 600; }
.btn-primary:hover {
  background: #6EE89A;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(74,222,128,0.3);
}
.btn-ghost { color: var(--text-muted); border: 1px solid var(--border-strong); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-outline { border: 1px solid rgba(74,222,128,0.4); color: var(--accent); }
.btn-outline:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.btn-lg { padding: 15px 30px; font-size: 15px; border-radius: var(--radius-lg); }

/* ── Nav ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 300ms ease, border-color 300ms ease;
}
#nav.scrolled {
  background: rgba(14,14,14,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo { font-size: 22px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 150ms ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 250ms ease;
}
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(14,14,14,0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 24px var(--gutter) 32px;
  flex-direction: column;
  gap: 20px;
  z-index: 99;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 16px; color: var(--text-muted); padding: 6px 0; }
.nav-mobile .nav-actions-mobile {
  display: flex; flex-direction: column; gap: 10px; margin-top: 8px;
}
.nav-mobile .btn { justify-content: center; }

/* ── Section headings ── */
.section-head { margin-bottom: 60px; }
.section-head.centered { text-align: center; }
.section-head.centered .section-tag { margin: 0 auto 24px; }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-sub {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}
.section-head.centered .section-sub { margin: 0 auto; }

section { padding: 100px 0; }
.section-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── Dot grid bg ── */
.dot-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

/* ── Footer ── */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.6;
  max-width: 220px;
  margin-top: 12px;
}
.footer-col-title {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 150ms ease;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 13px; color: var(--text-faint); }
.footer-love { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.footer-love span { color: var(--accent); }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: calc(var(--nav-h) + 72px) 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 20px;
}
.page-hero-title em { font-style: italic; color: var(--accent); }
.page-hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

/* ── Card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 250ms ease, transform 250ms ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
}
.badge-green { background: rgba(74,222,128,0.1); color: var(--accent); }
.badge-amber { background: rgba(217,119,6,0.1); color: #D97706; }
.badge-blue  { background: rgba(59,130,246,0.1); color: #60A5FA; }
.badge-red   { background: rgba(220,38,38,0.1); color: #EF4444; }

/* ── Pricing shared ── */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  position: relative;
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pricing-card.featured {
  border-color: rgba(74,222,128,0.4);
  background: linear-gradient(160deg, rgba(74,222,128,0.05) 0%, var(--surface) 60%);
  box-shadow: 0 0 40px rgba(74,222,128,0.08);
}
.pricing-popular-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0E0E0E;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pricing-plan {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.pricing-price { display: flex; align-items: flex-end; gap: 4px; margin-bottom: 4px; }
.price-currency { font-size: 20px; font-weight: 600; color: var(--text-muted); padding-bottom: 6px; }
.price-amount {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.price-period { font-size: 13px; color: var(--text-faint); padding-bottom: 6px; }
.price-annual { font-size: 12px; color: var(--text-faint); margin-bottom: 20px; min-height: 18px; }
.pricing-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.pricing-divider { border: none; border-top: 1px solid var(--border); margin-bottom: 20px; }
.pricing-features { display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; }
.pricing-feature {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-muted); line-height: 1.4;
}
.pf-check { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.pricing-btn { width: 100%; text-align: center; justify-content: center; }

/* ── Responsive ── */
@media (max-width: 700px) {
  :root { --nav-h: 60px; }
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
