/* Import Modern Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Brand Identity & Design System Tokens */
:root {
  /* Colors */
  --bg-primary: #0d0d0d;
  --bg-secondary: #131313;
  --bg-tertiary: #1c1b1b;
  --bg-surface: #201f1f;
  --bg-surface-high: #2a2a2a;
  --bg-overlay: rgba(46, 46, 46, 0.6);

  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-tertiary: #606060;

  --accent-primary: #cebdff;
  --accent-primary-container: #6c3ce1;
  --accent-secondary: #ffb688;
  --accent-subtle: rgba(108, 60, 225, 0.10);

  /* Fonts */
  --font-display: 'Outfit', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows & Blurs */
  --glass-blur: blur(20px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --shadow-premium: 0 24px 48px -12px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(108, 60, 225, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 182, 136, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Typography Utilities */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(13, 13, 13, 0.85);
  padding: 10px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--bg-surface);
  border: var(--glass-border);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0;
}

.logo-text span {
  color: var(--accent-primary);
  background: linear-gradient(135deg, var(--accent-primary), #a885ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

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

.nav-cta {
  background: linear-gradient(135deg, var(--accent-primary-container), #5120be);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 60, 225, 0.3);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding-top: 180px;
  padding-bottom: 100px;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-tag {
  display: inline-flex;
  align-self: flex-start;
  background: rgba(108, 60, 225, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(206, 189, 255, 0.25);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #ab95f8 50%, var(--accent-primary-container) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.7;
}

.badge-container {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-tertiary);
  border: var(--glass-border);
  color: var(--text-primary);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 14px;
  transition: var(--transition-smooth);
}

.store-badge:hover {
  background: var(--bg-surface-high);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.store-badge svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.store-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge .badge-sub {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.store-badge .badge-main {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Device Mockup Graphic */
.mockup-container {
  display: flex;
  justify-content: center;
  position: relative;
}

.mockup-container::after {
  content: '';
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(108, 60, 225, 0.2) 0%, transparent 70%);
  z-index: -1;
  top: 10%;
  left: 10%;
  filter: blur(40px);
}

.device-frame {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 375 / 812;
  border-radius: 44px;
  background: var(--bg-tertiary);
  border: 4px solid #2c2c2c;
  padding: 12px;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
}

.device-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: #0d0d0d;
  overflow: hidden;
  position: relative;
}

.device-screen img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Features Grid Section */
.features-section {
  padding: 120px 0;
  position: relative;
}

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

.section-tag {
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

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

.feature-card {
  background: rgba(28, 27, 27, 0.4);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 24px;
  padding: 36px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

/* Onboarding Feature Custom Colors & Hover Effects */
/* 1. Build new habits (Purple: #C471ED) */
.feature-card.f-purple .feature-icon-wrapper {
  color: #C471ED;
  background: rgba(196, 113, 237, 0.1);
  border: 1px solid rgba(196, 113, 237, 0.2);
}

.feature-card.f-purple:hover {
  border-color: rgba(196, 113, 237, 0.35);
  box-shadow: 0 20px 40px rgba(196, 113, 237, 0.08);
}

/* 2. Check it off (Green: #4ADE80) */
.feature-card.f-green .feature-icon-wrapper {
  color: #4ADE80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.feature-card.f-green:hover {
  border-color: rgba(74, 222, 128, 0.35);
  box-shadow: 0 20px 40px rgba(74, 222, 128, 0.08);
}

/* 3. See the big picture (Blue: #60A5FA) */
.feature-card.f-blue .feature-icon-wrapper {
  color: #60A5FA;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.feature-card.f-blue:hover {
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 20px 40px rgba(96, 165, 250, 0.08);
}

/* 4. Get motivation from streaks (Orange: #FB923C) */
.feature-card.f-orange .feature-icon-wrapper {
  color: #FB923C;
  background: rgba(251, 146, 60, 0.1);
  border: 1px solid rgba(251, 146, 60, 0.2);
}

.feature-card.f-orange:hover {
  border-color: rgba(251, 146, 60, 0.35);
  box-shadow: 0 20px 40px rgba(251, 146, 60, 0.08);
}

/* 5. Don't miss a completion (Cyan: #22D3EE) */
.feature-card.f-cyan .feature-icon-wrapper {
  color: #22D3EE;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.feature-card.f-cyan:hover {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 20px 40px rgba(34, 211, 238, 0.08);
}

/* 6. Build your dashboard (Lime: #A3E635) */
.feature-card.f-lime .feature-icon-wrapper {
  color: #A3E635;
  background: rgba(163, 230, 53, 0.1);
  border: 1px solid rgba(163, 230, 53, 0.2);
}

.feature-card.f-lime:hover {
  border-color: rgba(163, 230, 53, 0.35);
  box-shadow: 0 20px 40px rgba(163, 230, 53, 0.08);
}

/* 7. Search through your history (Indigo: #818CF8) */
.feature-card.f-indigo .feature-icon-wrapper {
  color: #818CF8;
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.2);
}

.feature-card.f-indigo:hover {
  border-color: rgba(129, 140, 248, 0.35);
  box-shadow: 0 20px 40px rgba(129, 140, 248, 0.08);
}

/* 8. Share your progress (Teal: #34D399) */
.feature-card.f-teal .feature-icon-wrapper {
  color: #34D399;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.feature-card.f-teal:hover {
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 20px 40px rgba(52, 211, 153, 0.08);
}

/* 9. Home Screen Widgets (Pink: #F472B6) */
.feature-card.f-pink .feature-icon-wrapper {
  color: #F472B6;
  background: rgba(244, 114, 182, 0.1);
  border: 1px solid rgba(244, 114, 182, 0.2);
}

.feature-card.f-pink:hover {
  border-color: rgba(244, 114, 182, 0.35);
  box-shadow: 0 20px 40px rgba(244, 114, 182, 0.08);
}

/* Privacy Statement Block */
.privacy-section {
  padding: 100px 0;
  position: relative;
}

.privacy-card {
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.6) 0%, rgba(10, 10, 10, 0.8) 100%);
  border: var(--glass-border);
  border-radius: 32px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  box-shadow: var(--shadow-premium);
}

.privacy-badge-icon {
  font-size: 5rem;
  color: var(--accent-primary);
  text-shadow: 0 0 40px rgba(108, 60, 225, 0.4);
  text-align: center;
}

.privacy-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.privacy-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1.1rem;
}

.privacy-bullets li svg {
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 4px;
  width: 20px;
  height: 20px;
}

/* Legal Pages Template Formatting (privacy.html and terms.html) */
.legal-layout {
  padding-top: 150px;
  padding-bottom: 100px;
  min-height: 80vh;
}

.legal-header {
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 30px;
}

.legal-header h1 {
  font-size: 2.75rem;
  margin-bottom: 8px;
}

.legal-date {
  color: var(--text-tertiary);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-content-card {
  background: rgba(28, 27, 27, 0.3);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--shadow-premium);
}

.legal-content-card h2 {
  font-size: 1.6rem;
  margin-top: 36px;
  margin-bottom: 16px;
  color: var(--accent-primary);
  border-left: 3px solid var(--accent-primary-container);
  padding-left: 14px;
}

.legal-content-card h2:first-of-type {
  margin-top: 0;
}

.legal-content-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.legal-content-card ul {
  list-style: none;
  margin-bottom: 24px;
  padding-left: 10px;
}

.legal-content-card li {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}

.legal-content-card li::before {
  content: "•";
  color: var(--accent-primary);
  font-size: 1.3rem;
  position: absolute;
  left: 0;
  top: -2px;
}

.back-btn-wrapper {
  margin-bottom: 24px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.back-btn:hover {
  color: var(--text-primary);
  transform: translateX(-4px);
}

.back-btn svg {
  width: 18px;
  height: 18px;
}

/* Call to Action pre-footer */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
}

.cta-card {
  background: radial-gradient(circle at top, rgba(108, 60, 225, 0.15) 0%, transparent 60%), rgba(20, 20, 20, 0.4);
  border: var(--glass-border);
  border-radius: 32px;
  padding: 80px 40px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-premium);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.cta-card h2 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
}

.cta-card p {
  max-width: 550px;
  margin: 0 auto 2.5rem auto;
  font-size: 1.15rem;
}

.cta-card .badge-container {
  justify-content: center;
}

/* Footer styling */
footer {
  background-color: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0;
  color: var(--text-tertiary);
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-logo-text span {
  color: var(--accent-primary);
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-link {
  color: var(--text-secondary);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
}

.social-link:hover {
  color: var(--text-primary);
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-link {
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

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

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* App Screenshots Slider Section */
.screenshots-section {
  padding: 80px 0;
  position: relative;
}

.screenshots-slider-wrapper {
  position: relative;
  width: 100%;
}

.screenshots-container {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 30px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 60, 225, 0.4) transparent;
  -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for screenshots */
.screenshots-container::-webkit-scrollbar {
  height: 6px;
}

.screenshots-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 99px;
}

.screenshots-container::-webkit-scrollbar-thumb {
  background: rgba(108, 60, 225, 0.3);
  border-radius: 99px;
}

.screenshots-container::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary-container);
}

.screenshot-item {
  flex: 0 0 280px;
  scroll-snap-align: center;
  transition: var(--transition-smooth);
}

.screenshot-item:hover {
  transform: translateY(-8px);
}

.screenshot-device {
  max-width: 340px;
  width: 340px;
}

.placeholder-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 16px;
}

.placeholder-subtitle {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* Premium Glassmorphic Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  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-card {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 28px;
  width: 90%;
  max-width: 420px;
  padding: 36px;
  box-shadow: var(--shadow-premium);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-icon {
  font-size: 3rem;
  line-height: 1;
  color: var(--accent-primary);
  text-shadow: 0 0 20px rgba(108, 60, 225, 0.4);
}

.modal-header h2 {
  font-size: 1.8rem;
  margin: 0;
  color: var(--text-primary);
}

.modal-body p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.modal-btn {
  background: linear-gradient(135deg, var(--accent-primary-container), #5120be);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 28px;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 60, 225, 0.3);
}

.modal-btn:active {
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }

  .hero-grid {
    gap: 40px;
  }

  .privacy-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px;
  }

  .privacy-bullets {
    align-items: center;
  }

  .privacy-bullets li {
    text-align: left;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .nav-menu {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .hero-content {
    align-items: center;
  }

  .badge-container {
    justify-content: center;
    flex-wrap: wrap;
  }

  .legal-content-card {
    padding: 32px;
  }

  .footer-wrapper {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    margin-bottom: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
    padding-top: 20px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }

  .store-badge {
    width: 100%;
    justify-content: center;
  }
}