/* Habit Hero Modern Web App Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #6C5CE7;
  --primary-dark: #4834D4;
  --accent-gold: #F1C40F;
  --accent-orange: #FF7675;
  --accent-green: #2ECC71;
  --accent-blue: #0984E3;
  --accent-pink: #FD79A8;
  --bg-dark: #0F0C20;
  --bg-card: rgba(255, 255, 255, 0.07);
  --bg-card-hover: rgba(255, 255, 255, 0.12);
  --border-light: rgba(255, 255, 255, 0.15);
  --text-main: #FFFFFF;
  --text-muted: #B2BEC3;
  --shadow-glow: 0 10px 30px rgba(108, 92, 231, 0.35);
  --shadow-gold: 0 10px 30px rgba(241, 196, 15, 0.35);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-logo {
  font-family: 'Outfit', sans-serif;
}

/* Background Animated Gradient Orbs */
.bg-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}
.glow-purple { top: -100px; left: -100px; background: #6C5CE7; }
.glow-orange { bottom: 10%; right: -100px; background: #FF7675; }
.glow-gold { top: 40%; left: 30%; background: #F1C40F; width: 400px; opacity: 0.2; }

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  background: rgba(15, 12, 32, 0.85);
  backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, #FFF, #F1C40F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.brand-icon {
  font-size: 28px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.btn-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #FFF;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(108, 92, 231, 0.5);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 80px 8% 60px;
  gap: 40px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(241, 196, 15, 0.15);
  border: 1px solid var(--accent-gold);
  border-radius: 20px;
  color: var(--accent-gold);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #FFFFFF 40%, #A29BFE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--border-light);
  transition: background 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-image-wrapper {
  position: relative;
  text-align: center;
}

.hero-image {
  width: 100%;
  max-width: 520px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(108, 92, 231, 0.4);
  border: 1px solid var(--border-light);
}

/* Feature Showcase Grid */
.section {
  padding: 80px 8%;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-subtitle {
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 20px;
  background: rgba(108, 92, 231, 0.2);
  border: 1px solid rgba(108, 92, 231, 0.4);
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #FFF;
}

.subfeatures-list {
  list-style: none;
  margin-top: 16px;
}

.subfeatures-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 14px;
}

.subfeatures-list li::before {
  content: "✨";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
}

/* Interactive Streak Playground */
.playground-container {
  background: none;
  border: none;
  padding: 10px;
  max-width: 700px;
  margin: 0 auto;
}

.streak-simulator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.character-display {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  text-align: center;
}

.character-avatar {
  margin-bottom: 10px;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.character-3d-img {
  height: 120px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.bday-character-img {
  height: 180px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.4));
  margin: 10px 0;
  animation: floatBday 3s ease-in-out infinite;
}

@keyframes floatBday {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.character-msg {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-gold);
}

.slider-group {
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.slider-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 16px;
}

.streak-slider {
  width: 100%;
  accent-color: var(--accent-gold);
  height: 8px;
  border-radius: 4px;
  cursor: pointer;
}

.gender-toggle {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.gender-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
  cursor: pointer;
  font-weight: 600;
}

.gender-btn.active {
  background: var(--primary);
  border-color: var(--primary);
}

/* Dashboard Switcher Tabs */
.dashboard-preview {
  background: rgba(15, 12, 32, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 28px;
  overflow: hidden;
  margin-top: 40px;
}

.tabs-header {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border-light);
}

.tab-btn {
  flex: 1;
  padding: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: #FFF;
  background: var(--primary);
}

.tab-content {
  padding: 40px;
  display: none;
}

.tab-content.active {
  display: block;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.preview-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-box h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--accent-gold);
}

/* Prize Store Demo */
.prize-demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.prize-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border-light);
}

.prize-emoji { font-size: 40px; margin-bottom: 8px; }
.prize-title { font-weight: 700; margin-bottom: 6px; }
.prize-cost { color: var(--accent-gold); font-weight: 800; font-size: 14px; }

/* Birthday Modal Demo */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: linear-gradient(135deg, #6C5CE7, #FD79A8);
  padding: 40px;
  border-radius: 28px;
  text-align: center;
  max-width: 450px;
  box-shadow: var(--shadow-gold);
  border: 2px solid var(--accent-gold);
}

/* Download Bar */
.download-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--bg-dark));
  border-top: 1px solid var(--border-light);
  text-align: center;
  padding: 80px 8%;
}

.download-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.download-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-light);
  padding: 16px 28px;
  border-radius: 20px;
  color: #FFF;
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background: var(--accent-gold);
  color: #000;
  transform: translateY(-3px);
}

/* Footer */
footer {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px;
  border-top: 1px solid var(--border-light);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

.social-icon:hover {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

/* Email Capture Modal Styles */
.email-input {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 16px;
  font-family: 'Nunito', sans-serif;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.email-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.3);
}

.email-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-title { font-size: 38px; }
  .nav-links { display: none; }
}
