/* ========================================
   LifeOS — Clarity Labs Landing Page
   Warm parchment palette, Fraunces + DM Sans
   ======================================== */

:root {
  --bg: #FDFAF6;
  --bg-alt: #F5EFE6;
  --fg: #1A1917;
  --fg-muted: #7A7065;
  --accent: #2A6049;
  --accent-warm: #E8A045;
  --realm-home: #2A6049;
  --realm-family: #D4685A;
  --realm-health: #3A9B8A;
  --realm-wealth: #3D6B9E;
  --realm-business: #E8A045;
  --realm-adventure: #8B5FBF;
  --card-bg: #FFFFFF;
  --border: #E8E2D8;
  --shadow: rgba(26,25,23,0.08);
}

/* — Typography — */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, .hero-headline {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* — Nav — */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 28px;
  background: rgba(253,250,246,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
}
.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover {
  color: var(--fg);
  background: rgba(0,0,0,0.05);
}
.nav-link--cta {
  background: #2A6049;
  color: #fff;
  font-weight: 600;
}
.nav-link--cta:hover {
  background: #234a38;
  color: #fff;
}

/* — Hero — */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 120px 48px 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.hero-bg-texture {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(232,160,69,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(42,96,73,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content {
  position: relative;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-headline {
  font-size: clamp(52px, 6vw, 88px);
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent-warm);
}
.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background: #2A6049;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s;
}
.hero-cta:hover {
  background: #234a38;
  color: #fff;
}
.hero-realms-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.realm-pill {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(var(--rc, 42,96,73), 0.1);
  border: 1px solid color-mix(in srgb, var(--c, #2A6049) 25%, transparent);
  color: var(--c, #2A6049);
  background: color-mix(in srgb, var(--c, #2A6049) 10%, white);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* — Phone frame (hero visual) — */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.phone-frame {
  width: 260px;
  background: #1A1917;
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 40px 80px rgba(26,25,23,0.3),
    0 20px 40px rgba(26,25,23,0.2);
  position: relative;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 20px;
  background: #1A1917;
  border-radius: 12px;
  z-index: 2;
}
.phone-screen {
  background: #FDFAF6;
  border-radius: 28px;
  padding: 36px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.screen-greeting {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
}
.screen-date {
  font-size: 11px;
  color: var(--fg-muted);
}
.screen-energy {
  display: flex;
  align-items: center;
  gap: 10px;
}
.energy-label {
  font-size: 11px;
  color: var(--fg-muted);
  font-weight: 500;
  min-width: 40px;
}
.energy-bar {
  flex: 1;
  height: 6px;
  background: #E8E2D8;
  border-radius: 3px;
  overflow: hidden;
}
.energy-fill {
  height: 100%;
  background: linear-gradient(90deg, #3A9B8A, #E8A045);
  border-radius: 3px;
}
.energy-pct {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  min-width: 30px;
  text-align: right;
}
.screen-focus {}
.focus-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.focus-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(26,25,23,0.06);
}
.focus-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.focus-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
}
.focus-realm {
  font-size: 10px;
  color: var(--fg-muted);
  margin-top: 2px;
}
.screen-realms {}
.screen-realm-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.sr-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  padding: 7px 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 500;
}
.sr-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rc, #2A6049);
  flex-shrink: 0;
}
.sr-xp {
  margin-left: auto;
  font-size: 9px;
  color: var(--accent);
  font-weight: 700;
}

/* — Sections — */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-heading {
  font-size: clamp(36px, 4vw, 52px);
  margin-bottom: 16px;
}
.section-body {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* — Realms — */
.realms {
  padding: 100px 48px;
  background: var(--bg-alt);
}
.realm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.realm-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 3px solid var(--rc, var(--accent));
}
.realm-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--shadow);
}
.realm-card-tall {
  grid-row: span 2;
}
.realm-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--rc) 12%, white);
  color: var(--rc, var(--accent));
  margin-bottom: 16px;
}
.realm-name {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}
.realm-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}
.realm-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rp-bar {
  flex: 1;
  height: 5px;
  background: #E8E2D8;
  border-radius: 3px;
  overflow: hidden;
}
.rp-fill {
  height: 100%;
  background: var(--rc, var(--accent));
  border-radius: 3px;
}
.rp-lvl {
  font-size: 12px;
  font-weight: 600;
  color: var(--rc, var(--accent));
}

/* — Dashboard feature — */
.dashboard-feature {
  padding: 100px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.dash-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dash-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  color: var(--fg);
}
.dash-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.dash-card-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dash-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px var(--shadow);
}
.dsc-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 6px;
}
.dsc-val {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
}
.dsc-sub {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 4px;
}

/* — Philosophy — */
.philosophy {
  padding: 100px 48px;
  background: #1A1917;
  color: white;
  position: relative;
  overflow: hidden;
}
.philosophy-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.p-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
}
.p-ring-1 { width: 500px; height: 500px; top: -200px; right: -100px; }
.p-ring-2 { width: 800px; height: 800px; top: -400px; right: -300px; }
.p-ring-3 { width: 300px; height: 300px; bottom: -100px; left: -50px; }
.p-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
}
.p-orb-1 { width: 200px; height: 200px; background: #E8A045; top: 10%; left: 10%; }
.p-orb-2 { width: 150px; height: 150px; background: #D4685A; top: 60%; left: 5%; }
.p-orb-3 { width: 180px; height: 180px; background: #3A9B8A; top: 30%; right: 10%; }
.p-orb-4 { width: 120px; height: 120px; background: #3D6B9E; top: 70%; right: 20%; }
.p-orb-5 { width: 160px; height: 160px; background: #8B5FBF; bottom: 10%; left: 40%; }
.p-orb-6 { width: 100px; height: 100px; background: #2A6049; bottom: 20%; right: 5%; }
.philosophy-content {
  position: relative;
  max-width: 700px;
}
.philosophy .section-label { color: #E8A045; }
.philosophy .section-heading { color: white; }
.philosophy-body {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 20px;
}
.philosophy-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.phil-stat {}
.phil-num {
  font-family: 'Fraunces', serif;
  font-size: 40px;
  font-weight: 700;
  color: #E8A045;
}
.phil-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* — Closing — */
.closing {
  padding: 120px 48px;
  text-align: center;
  background: var(--bg);
}
.closing-inner {
  max-width: 600px;
  margin: 0 auto;
}
.closing-headline {
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 20px;
}
.closing-body {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}
.closing-realms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fg-muted);
}
.cr-sep { color: var(--border); }

/* — Footer — */
.footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 16px;
}
.footer-by {
  font-size: 13px;
  color: var(--fg-muted);
}

/* — Mobile responsive — */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 100px 24px 60px;
    text-align: center;
  }
  .hero-content { order: 1; }
  .hero-visual { order: 0; }
  .hero-sub { max-width: 100%; }
  .hero-realms-preview { justify-content: center; }
  .realm-grid {
    grid-template-columns: 1fr 1fr;
  }
  .realm-card-tall { grid-row: auto; }
  .dashboard-feature {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 24px;
  }
  .dash-card-stack { grid-template-columns: 1fr 1fr; }
  .realms { padding: 60px 24px; }
  .philosophy { padding: 60px 24px; }
  .closing { padding: 80px 24px; }
  .philosophy-stats { flex-direction: column; gap: 24px; }
}

@media (max-width: 480px) {
  .realm-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 42px; }
}