@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Source+Serif+4:wght@300;400;600&family=DM+Mono:wght@400;500&display=swap');

/* =============================================
   THE LIVER WHISPERER — liverwhisperer.com
   Production CSS v1.0
   ============================================= */

:root {
  --black:        #0a0805;
  --deep:         #1a1008;
  --ember:        #c44a0a;
  --ember-light:  #e8621a;
  --gold:         #d4942a;
  --gold-light:   #f0b84a;
  --heal:         #2a7a4a;
  --heal-light:   #3aaa6a;
  --cream:        #f5f0e8;
  --warm-white:   #faf7f2;
  --mid:          #8a7a6a;
  --text:         #2a1e14;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--black);
  color: var(--cream);
  overflow-x: hidden;
  line-height: 1.7;
}

/* =============================================
   NAVIGATION
   ============================================= */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 4rem;
  background: rgba(10, 8, 5, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 74, 10, 0.2);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold-light);
}

/* =============================================
   HERO
   ============================================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 4rem 6rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(196, 74, 10, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(42, 122, 74, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 10%, rgba(212, 148, 42, 0.08) 0%, transparent 50%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--warm-white);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-headline em {
  font-style: italic;
  color: var(--ember-light);
}

.hero-headline .line-2 {
  color: var(--gold);
}

.hero-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--ember), transparent);
  margin: 2rem 0;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--cream);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
  max-width: 580px;
}

.hero-sub strong {
  color: var(--gold-light);
  font-weight: 600;
}

.hero-sub .heal-text {
  color: var(--heal-light);
}

.hero-cta {
  margin-top: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--ember);
  color: var(--warm-white);
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-primary:hover {
  background: var(--ember-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 74, 10, 0.4);
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.hero-stat {
  margin-top: 4rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.1s forwards;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--heal-light);
  line-height: 1;
}

.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  line-height: 1.6;
}

.stat-label span {
  display: block;
  color: var(--cream);
  font-size: 0.75rem;
}

/* =============================================
   SECTION — THE WHISPERER STORY
   ============================================= */

.section-story {
  padding: 8rem 4rem;
  background: var(--deep);
  position: relative;
}

.section-story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--warm-white);
  margin-bottom: 2rem;
  max-width: 700px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-top: 4rem;
}

.story-text p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--cream);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.story-text p strong {
  color: var(--gold-light);
}

.story-pull {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--ember-light);
  border-left: 3px solid var(--ember);
  padding-left: 2rem;
  margin: 3rem 0;
}

/* =============================================
   SECTION — THE DATA
   ============================================= */

.section-data {
  padding: 8rem 4rem;
  background: var(--black);
  position: relative;
}

.section-data::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.infographic-wrapper {
  margin-top: 3rem;
  border: 1px solid rgba(196, 74, 10, 0.2);
  overflow: hidden;
  position: relative;
}

.infographic-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.infographic-caption {
  padding: 1.2rem 2rem;
  background: rgba(26, 16, 8, 0.8);
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--mid);
  border-top: 1px solid rgba(196, 74, 10, 0.15);
}

/* =============================================
   SECTION — THE PHILOSOPHY
   ============================================= */

.section-philosophy {
  padding: 8rem 4rem;
  background: var(--deep);
  position: relative;
  overflow: hidden;
}

.section-philosophy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--heal), transparent);
}

.philosophy-quote {
  max-width: 800px;
  margin: 4rem auto;
  text-align: center;
}

.philosophy-quote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--warm-white);
  margin-bottom: 1.5rem;
}

.philosophy-quote cite {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  font-style: normal;
}

.habits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

.habit-card {
  padding: 2rem;
  border: 1px solid rgba(196, 74, 10, 0.15);
  background: rgba(10, 8, 5, 0.5);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.habit-card:hover {
  border-color: rgba(196, 74, 10, 0.4);
  transform: translateY(-4px);
}

.habit-number {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--ember);
  margin-bottom: 0.8rem;
}

.habit-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}

.habit-desc {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
}

/* =============================================
   SECTION — JOIN
   ============================================= */

.section-join {
  padding: 8rem 4rem;
  background: var(--black);
  text-align: center;
  position: relative;
}

.section-join::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
}

.join-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--warm-white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.join-headline em {
  color: var(--ember-light);
  font-style: italic;
}

.join-sub {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 500px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

/* =============================================
   FOOTER
   ============================================= */

footer {
  padding: 3rem 4rem;
  background: var(--deep);
  border-top: 1px solid rgba(196, 74, 10, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-crest {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(196, 74, 10, 0.08);
  margin-bottom: 0.5rem;
}

.footer-crest img {
  opacity: 0.9;
  filter: invert(1);
  transition: opacity 0.4s ease;
}

.footer-crest img:hover {
  opacity: 1;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--gold);
  font-weight: 700;
}

.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--mid);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--mid);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold-light);
}

/* =============================================
   ANIMATIONS
   ============================================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 900px) {
  nav { padding: 1rem 2rem; }
  .nav-links { gap: 1.5rem; }
  .hero { padding: 7rem 2rem 5rem; }
  .section-story,
  .section-data,
  .section-philosophy,
  .section-join { padding: 5rem 2rem; }
  .story-grid { grid-template-columns: 1fr; gap: 3rem; }
  footer { flex-direction: column; gap: 1.5rem; text-align: center; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero-headline { font-size: 2.4rem; }
  .stat-number { font-size: 2.5rem; }
}
