/* 
  Warm Light Theme CSS for Heula App
  Aesthetics: Oat/Cream Base, Warm Terracotta & Sage Accents, Soft Glassmorphism
*/

:root {
  --bg-light: #FDFBF7;
  --bg-surface: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.85);
  
  --color-text-main: #2C2623;
  --color-text-muted: #7A6E67;
  
  --color-terracotta: #E29578;
  --color-terracotta-dark: #C86D51;
  --color-terracotta-glow: rgba(226, 149, 120, 0.25);
  
  --color-sage: #6B7F64;
  --color-sage-light: #F0F4EF;
  --color-sage-glow: rgba(107, 127, 100, 0.2);

  --color-gold: #D99B26;
  --color-gold-light: #FFF8E7;
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(226, 149, 120, 0.18);
  --glass-border-hover: rgba(226, 149, 120, 0.35);
  --glass-blur: blur(16px);
  
  --shadow-soft: 0 10px 30px -5px rgba(44, 38, 35, 0.05);
  --shadow-card: 0 20px 40px rgba(44, 38, 35, 0.07);
}

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

body {
  background-color: var(--bg-light);
  color: var(--color-text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Ambient Background Glows */
.ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.6;
  animation: pulse-glow 10s infinite alternate ease-in-out;
}

.glow-1 {
  background: radial-gradient(circle, var(--color-terracotta-glow) 0%, transparent 70%);
  top: -150px;
  right: -150px;
}

.glow-2 {
  background: radial-gradient(circle, var(--color-sage-glow) 0%, transparent 70%);
  top: 35%;
  left: -200px;
}

@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.1); opacity: 0.75; }
}

/* Typography & Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--color-terracotta-dark) 0%, var(--color-terracotta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 247, 0.8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(226, 149, 120, 0.12);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(107, 127, 100, 0.2);
}

.logo-badge {
  width: 40px;
  height: 40px;
  background: var(--color-sage-light);
  border: 1px solid rgba(107, 127, 100, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sage);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--color-text-main);
}

/* Buttons */
.btn-primary {
  background: var(--color-terracotta);
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px var(--color-terracotta-glow);
  border: none;
}

.btn-primary.lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.glow-btn:hover {
  background: var(--color-terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 109, 81, 0.35);
}

/* Hero Section */
.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-sage-light);
  border: 1px solid rgba(107, 127, 100, 0.25);
  color: var(--color-sage);
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--color-text-main);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
  line-height: 1.7;
}

/* Showcase UI - Pure CSS abstract representation */
.showcase-container {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.glass-widget {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  position: absolute;
}

.main-widget {
  width: 340px;
  z-index: 2;
  transform: rotateY(-5deg) rotateX(5deg);
}

.side-widget {
  width: 260px;
  right: -20px;
  bottom: 20px;
  z-index: 1;
  transform: rotateY(-10deg) rotateX(10deg) translateZ(-50px);
  background: rgba(255, 255, 255, 0.65);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.widget-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.energy-badge {
  background: var(--color-gold-light);
  border: 1px solid rgba(217, 155, 38, 0.25);
  color: var(--color-gold);
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.entry-item {
  background: #FFFFFF;
  border: 1px solid rgba(226, 149, 120, 0.15);
  border-radius: 18px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(44, 38, 35, 0.03);
}

.mood-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--color-sage-light);
  color: var(--color-sage);
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.entry-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.75rem;
}

.entry-line {
  height: 6px;
  background: rgba(44, 38, 35, 0.06);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.entry-line.short {
  width: 60%;
}

.ai-insight-box {
  background: rgba(226, 149, 120, 0.08);
  border: 1px solid rgba(226, 149, 120, 0.2);
  border-radius: 18px;
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
}

.ai-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--color-terracotta);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-main);
  font-weight: 500;
}

.chart-mockup {
  margin-top: 1rem;
  height: 120px;
  border-bottom: 1px solid rgba(226, 149, 120, 0.15);
  position: relative;
}

.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Features Grid */
.features-section {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--color-text-main);
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: #FFFFFF;
  border: 1px solid rgba(226, 149, 120, 0.15);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-soft);
}

.hover-glow:hover {
  border-color: var(--color-terracotta);
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(226, 149, 120, 0.12);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.bg-terracotta { background: rgba(226, 149, 120, 0.12); color: var(--color-terracotta-dark); }
.bg-sage { background: var(--color-sage-light); color: var(--color-sage); }
.bg-gold { background: var(--color-gold-light); color: var(--color-gold); }

.feature-h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text-main);
}

.feature-p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.glass-banner {
  background: linear-gradient(135deg, rgba(226, 149, 120, 0.08) 0%, rgba(240, 244, 239, 0.6) 100%);
  border: 1px solid rgba(226, 149, 120, 0.2);
  backdrop-filter: var(--glass-blur);
  border-radius: 32px;
  padding: 4rem 2rem;
  text-align: center;
}

.glass-banner h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--color-text-main);
}

.glass-banner p {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Footer */
footer {
  border-top: 1px solid rgba(226, 149, 120, 0.15);
  padding: 3rem 2rem;
  margin-top: 5rem;
  background: #FFFFFF;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

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

.footer-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--color-text-main);
}

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes floatSlow {
  0% { transform: rotateY(-5deg) rotateX(5deg) translateY(0px); }
  50% { transform: rotateY(-5deg) rotateX(5deg) translateY(-12px); }
  100% { transform: rotateY(-5deg) rotateX(5deg) translateY(0px); }
}

@keyframes floatSlowSide {
  0% { transform: rotateY(-10deg) rotateX(10deg) translateZ(-50px) translateY(0px); }
  50% { transform: rotateY(-10deg) rotateX(10deg) translateZ(-50px) translateY(-8px); }
  100% { transform: rotateY(-10deg) rotateX(10deg) translateZ(-50px) translateY(0px); }
}

@keyframes revealText {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-text {
  animation: revealText 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

.float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

.side-widget.float-slow {
  animation: floatSlowSide 7s ease-in-out infinite 1s;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

/* Legal Document Styling */
.legal-container {
  max-width: 860px;
  margin: 3rem auto 6rem auto;
  padding: 3.5rem 3rem;
  background: #FFFFFF;
  border-radius: 28px;
  border: 1px solid rgba(226, 149, 120, 0.18);
  box-shadow: var(--shadow-card);
}

.legal-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(226, 149, 120, 0.15);
}

.legal-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.legal-date {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.legal-section {
  margin-bottom: 2.25rem;
}

.legal-h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text-main);
}

.legal-p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.legal-ul {
  padding-left: 1.5rem;
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.legal-ul li {
  margin-bottom: 0.5rem;
}

.legal-ul strong {
  color: var(--color-text-main);
}

/* Responsive */
@media (max-width: 968px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 3rem;
  }
  .hero-desc { margin: 0 auto 2.5rem auto; }
  .showcase-container {
    margin-top: 2rem;
    height: 380px;
  }
  .main-widget {
    left: 50%;
    transform: translateX(-50%) rotateY(0) rotateX(0);
    animation: none;
  }
  .side-widget { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
