/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4f46e5;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 2px solid #4f46e5;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #4f46e5;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: #4f46e5;
  color: white;
}

.btn-primary:hover {
  background-color: #4338ca;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: #4f46e5;
  border: 2px solid #4f46e5;
}

.btn-secondary:hover {
  background-color: #4f46e5;
  color: white;
  transform: translateY(-2px);
}

.btn-download {
  color: white !important;
}

.btn-download:hover {
  color: #9996ff !important;
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-buttons .btn-secondary {
  border-color: white;
  color: white;
}

.hero-buttons .btn-secondary:hover {
  background-color: white;
  color: #4f46e5;
}

/* Phone Mockup */
.phone-mockup {
  position: relative;
  width: 300px;
  height: 600px;
  margin: 0 auto;
  background: #000;
  border-radius: 40px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.app-preview {
  padding: 15px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  color: white;
  font-size: 0.8rem;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px 0;
}

.app-header h3 {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.header-icons {
  display: flex;
  gap: 10px;
}

.status-bar {
  height: 15px;
  background: #333;
  border-radius: 8px;
  margin-bottom: 15px;
  position: absolute;
  top: 10px;
  left: 15px;
  right: 15px;
}

.filters-section {
  margin-bottom: 15px;
}

.filter-toggle {
  background: #2a2a2a;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  color: #ccc;
}

.episode-card {
  background: #2a2a2a;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 15px;
  border-left: 4px solid #ef4444;
  position: relative;
}

.episode-card.active {
  border-left-color: #ef4444;
}

.episode-date {
  color: #60a5fa;
  font-size: 0.7rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.episode-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.severity-badge {
  background: #fbbf24;
  color: black;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 600;
}

.severity-badge.high {
  background: #ef4444;
  color: white;
}

.intensity-badge {
  background: #f97316;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 600;
}

.status-badge {
  background: #ef4444;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 600;
}

.episode-time {
  color: #9ca3af;
  font-size: 0.7rem;
  margin-bottom: 10px;
}

.episode-details {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.duration,
.fullness {
  background: #374151;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.6rem;
  text-align: center;
  flex: 1;
  min-width: 80px;
}

.triggers {
  margin-bottom: 15px;
}

.trigger-label {
  color: #9ca3af;
  font-size: 0.7rem;
  display: block;
  margin-bottom: 5px;
}

.trigger-item {
  background: #10b981;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.6rem;
  display: inline-block;
}

.episode-actions {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.action-btn {
  background: transparent;
  border: none;
  color: #60a5fa;
  font-size: 0.6rem;
  padding: 5px;
  cursor: pointer;
  flex: 1;
  text-align: center;
}

.action-btn.delete {
  color: #ef4444;
}

.floating-add-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: #4f46e5;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* Features Section */
.features {
  padding: 6rem 0;
  background-color: #f8fafc;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

.section-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: #222222;
  margin-bottom: 4rem;
}

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

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

.feature-card p {
  color: #64748b;
  line-height: 1.6;
}

/* About Section */
.about {
  padding: 6rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #1e293b;
}

.about-text p {
  font-size: 1.125rem;
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.benefits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.benefit-icon {
  color: #10b981;
  font-size: 1.2rem;
}

.stats-card {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.3);
}

.stats-card h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.stat {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.stat-icon {
  font-size: 1.5rem;
  min-width: 2rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.95;
  font-weight: 500;
}

/* Download Section */
.download {
  padding: 6rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.download h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0;
}

.download-btn {
  position: relative;
  display: inline-block;
}

.download-btn img {
  height: 60px;
  transition: transform 0.3s ease;
}

.download-btn.available:hover img {
  transform: scale(1.05);
}

.download-btn.coming-soon {
  position: relative;
}

.download-btn.coming-soon img {
  opacity: 0.6;
  filter: grayscale(50%);
}

.coming-soon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.download-note {
  opacity: 0.9;
  font-size: 1rem;
  font-weight: 500;
}

/* Footer */
.footer {
  background-color: #1e293b;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.2rem;
}

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

.footer-nav a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 2rem;
  text-align: center;
  color: #94a3b8;
}

.disclaimer {
  font-size: 0.9rem;
  margin-top: 1rem;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 16px 16px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex !important;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    display: block;
    text-align: center;
    transition: color 0.3s ease;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a:hover {
    color: #4f46e5;
  }

  .nav-links .btn-primary {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .phone-mockup {
    width: 240px;
    height: 480px;
    margin: 0 auto;
  }

  .hero-image {
    display: flex;
    justify-content: center;
    padding: 0 25px;
    overflow: visible;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .nav {
    padding: 1rem;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 6rem 0 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }

  .features h2,
  .about h2,
  .download h2 {
    font-size: 2rem;
  }

  .phone-mockup {
    width: 240px;
    height: 500px;
  }

  .app-preview {
    padding: 12px;
    font-size: 0.75rem;
  }

  .hero-image {
    padding: 0 15px;
  }

  .container {
    padding: 0 15px;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus States */
a:focus,
button:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}
