/* ═══════════════════════════════════════════════════════════════
   ClūMe™ — Shared Stylesheet
   Covers: reset, variables, typography, nav, footer,
           buttons, badges, utilities, animations, grid, cards
═══════════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design Tokens ── */
:root {
  --navy:        #080F1C;
  --navy-mid:    #0E1A2E;
  --navy-card:   #121F36;
  --navy-border: rgba(255,255,255,0.07);
  --teal:        #00C9B1;
  --teal-dark:   #00A896;
  --teal-glow:   rgba(0,201,177,0.18);
  --teal-dim:    rgba(0,201,177,0.08);
  --gold:        #F0A500;
  --white:       #FFFFFF;
  --text:        #94A3B8;
  --text-bright: #CBD5E1;
  --muted:       #5B6F8A;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h:       68px;
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--text-bright);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
strong { color: var(--white); }

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}
.section       { padding: 108px 0; }
.section-alt   { background: var(--navy-mid); }
.section-dark  { background: var(--navy); }
.divider       { height: 1px; background: var(--navy-border); }

/* ── Typography ── */
h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
}
h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--white);
}
h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
}
h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.accent        { color: var(--teal); }
.section-lead  { font-size: 1.05rem; line-height: 1.78; color: var(--text-bright); }
.section-sub   { font-size: 0.95rem; line-height: 1.72; color: var(--text); }
.center        { text-align: center; }

/* ── Scroll-Reveal Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.fade-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.fade-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.fade-up.visible, .fade-left.visible, .fade-right.visible {
  opacity: 1;
  transform: translate(0);
}
.d1 { transition-delay: 0.10s; }
.d2 { transition-delay: 0.20s; }
.d3 { transition-delay: 0.30s; }
.d4 { transition-delay: 0.40s; }
.d5 { transition-delay: 0.50s; }

/* ── Labels / Badges / Eyebrows ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--teal);
  flex-shrink: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  background: var(--teal-dim);
  border: 1px solid rgba(0,201,177,0.22);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 18px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: var(--navy);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,201,177,0.28);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-dim);
}

/* ── Checklist ── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.875rem; color: var(--text-bright); line-height: 1.55;
}
.check-list li::before {
  content: '✓'; color: var(--teal); font-weight: 800; flex-shrink: 0; margin-top: 1px;
}

/* ── Two-column grid ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.two-col h2, .two-col h3 { margin-bottom: 16px; }

/* ── Value quote block ── */
.value-quote {
  display: block;
  background: linear-gradient(135deg, rgba(0,201,177,0.12), rgba(0,201,177,0.04));
  border-left: 3px solid var(--teal);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.55;
  margin-top: 26px;
}

/* ── Feature list ── */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.fi-icon {
  width: 52px; height: 52px; border-radius: 13px; background: var(--teal-dim);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.55rem;
}
.fi-title { font-size: 0.93rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.fi-body  { font-size: 0.84rem; line-height: 1.65; color: var(--text); }

/* ── Generic card ── */
.card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 14px;
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.card:hover {
  border-color: rgba(0,201,177,0.28);
  background: rgba(0,201,177,0.025);
  transform: translateY(-4px);
}
.card-icon {
  width: 52px; height: 52px; border-radius: 13px; background: var(--teal-dim);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.4rem;
}
.card-title { font-size: 1.05rem; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.card-body  { font-size: 0.875rem; line-height: 1.72; color: var(--text); }

/* ── Progress bars ── */
.bar-rows { display: flex; flex-direction: column; gap: 16px; }
.bar-row  { display: flex; flex-direction: column; gap: 6px; }
.bar-meta { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text); }
.bar-meta span:last-child { color: var(--white); font-weight: 700; }
.bar-track { height: 7px; background: rgba(255,255,255,0.07); border-radius: 4px; overflow: hidden; }
.bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--teal-dark), var(--teal));
  width: 0;
  transition: width 1.3s var(--ease);
}
.bar-fill.run { width: var(--target-w); }

/* ── Stat box ── */
.stat-box {
  background: var(--navy-card);
  border: 1px solid rgba(0,201,177,0.13);
  border-radius: 16px;
  padding: 38px;
  display: flex; flex-direction: column; gap: 26px;
}
.stat-item  { display: flex; flex-direction: column; gap: 5px; }
.stat-num   { font-size: 3.2rem; font-weight: 900; color: var(--teal); line-height: 1; letter-spacing: -0.03em; }
.stat-num.white-num { color: var(--white); }
.stat-caption { font-size: 0.84rem; color: var(--text); line-height: 1.5; }
.stat-divider { height: 1px; background: var(--navy-border); }

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 28px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(8, 15, 28, 0.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--navy-border);
}
.nav-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-logo .accent { color: var(--teal); }
.nav-tagline {
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 3px;
  transition: opacity 0.2s;
}
nav.scrolled .nav-tagline { opacity: 0; pointer-events: none; }

/* Footer tagline */
.footer-tagline {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 5px;
  letter-spacing: 0.02em;
  font-style: italic;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-links a.active {
  color: var(--teal);
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 12px; right: 12px;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
}
.nav-cta {
  background: var(--teal) !important;
  color: var(--navy) !important;
  padding: 8px 18px !important;
  font-weight: 700 !important;
  font-size: 0.83rem !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover {
  background: var(--teal-dark) !important;
  color: var(--navy) !important;
  transform: translateY(-1px) !important;
}
.nav-cta.active::after { display: none; }
.nav-login {
  border: 1px solid rgba(0,201,177,0.45) !important;
  color: var(--teal) !important;
  padding: 7px 16px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 0.83rem !important;
  transition: background 0.2s, border-color 0.2s, transform 0.15s !important;
}
.nav-login:hover {
  background: rgba(0,201,177,0.1) !important;
  border-color: var(--teal) !important;
  color: var(--teal) !important;
  transform: translateY(-1px) !important;
}
.nav-login.active::after { display: none; }
.drawer-login {
  color: var(--teal) !important;
  font-weight: 600;
  border-top: 1px solid var(--navy-border);
  padding-top: 14px !important;
  margin-top: 4px;
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(8, 15, 28, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--navy-border);
  z-index: 190;
  padding: 20px 28px 28px;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.25s var(--ease), opacity 0.25s;
  pointer-events: none;
}
.nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-drawer a {
  display: block;
  color: var(--text-bright);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--navy-border);
  transition: color 0.2s;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover, .nav-drawer a.active { color: var(--teal); }
.nav-drawer .drawer-cta {
  display: block;
  background: var(--teal);
  color: var(--navy);
  text-align: center;
  font-weight: 700;
  padding: 12px;
  border-radius: 8px;
  margin-top: 12px;
  text-decoration: none;
  border-bottom: none !important;
}
.nav-drawer .drawer-cta:hover { background: var(--teal-dark); }

/* ══════════════════════════════════════
   PAGE HERO BASE (override per page)
══════════════════════════════════════ */
.page-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  padding-left: 28px;
  padding-right: 28px;
  position: relative;
  overflow: hidden;
}
.hero-bg-glow {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,201,177,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,201,177,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.hero-z { position: relative; z-index: 1; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--navy-border);
  padding: 36px 28px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.footer-logo .accent { color: var(--teal); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.82rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }
.footer-copy { font-size: 0.8rem; color: var(--muted); }
.footer-copy a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-copy a:hover { color: var(--teal); }

/* ══════════════════════════════════════
   CTA SECTION (shared)
══════════════════════════════════════ */
.cta-section {
  padding: 112px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 65% 65% at 50% 50%, rgba(0,201,177,0.055) 0%, transparent 68%);
  pointer-events: none;
}
.cta-inner {
  position: relative; z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.cta-inner h2 { margin-bottom: 18px; }
.cta-inner p  { font-size: 1.05rem; color: var(--text-bright); margin-bottom: 42px; line-height: 1.72; }
.cta-btns     { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════
   SHARED SCRIPT (nav behavior)
══════════════════════════════════════ */

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 860px) {
  .two-col           { grid-template-columns: 1fr; gap: 48px; }
  .nav-links         { display: none; }
  .nav-hamburger     { display: flex; }
  .nav-drawer        { display: flex; }
  .section           { padding: 72px 0; }
  .cta-section       { padding: 80px 28px; }
}
@media (max-width: 600px) {
  .page-hero { padding-top: calc(var(--nav-h) + 52px); padding-bottom: 56px; }
  h1  { font-size: 2.1rem; }
  h2  { font-size: 1.65rem; }
  .stat-num { font-size: 2.4rem; }
}

/* ══════════════════════════════════════
   CALCULATOR MODAL
══════════════════════════════════════ */
.calc-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(6, 12, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.calc-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.calc-modal-inner {
  width: 100%;
  max-width: 900px;
  background: var(--navy-card);
  border: 1px solid rgba(0,201,177,0.22);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  max-height: calc(100dvh - 20px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px rgba(0,0,0,0.65), 0 0 0 1px rgba(0,201,177,0.06);
  transform: translateY(22px) scale(0.98);
  transition: transform 0.32s var(--ease);
}
.calc-modal.open .calc-modal-inner {
  transform: translateY(0) scale(1);
}
.calc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--navy-border);
  flex-shrink: 0;
}
.calc-modal-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}
.calc-modal-title span { color: var(--teal); }
.calc-modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1;
  flex-shrink: 0;
}
.calc-modal-close:hover {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
}
.calc-modal-body {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.calc-modal-body iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: none;
  border-radius: 0 0 18px 18px;
}
@media (max-width: 600px) {
  .calc-modal { padding: 0; align-items: flex-end; }
  .calc-modal-inner { border-radius: 18px 18px 0 0; max-height: 97dvh; }
  .calc-modal-body iframe { border-radius: 0; }
}
