/* =========================================
   VARIABLES & THEMING
   (Matching v2.5.0 Premium UI)
   ========================================= */
:root {
  --primary: #6366f1; /* Indigo 500 */
  --primary-hover: #4f46e5;
  --primary-light: #e0e7ff;
  --secondary: #8b5cf6; /* Violet 500 */
  --bg-main: #f8fafc; /* Slate 50 */
  --bg-card: #ffffff;
  --text-main: #0f172a; /* Slate 900 */
  --text-muted: #6b7280; /* Gray 500 - Updated from v2.5.0 */
  --text-secondary: #4b5563; /* Gray 600 - Updated from v2.5.0 */

  /* V2.5.0 Soft Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.05); /* The Premium Float */

  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* =========================================
   BASE RESET
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

a { text-decoration: none; }
ul { list-style: none; }

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

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 {
  color: var(--text-main);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* =========================================
   COMPONENTS
   ========================================= */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}
.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.btn-secondary {
  background-color: white;
  color: var(--text-main);
  border: 1px solid #e2e8f0;
}
.btn-secondary:hover {
  background-color: #f1f5f9;
}
.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary-light);
}

/* =========================================
   NAVIGATION (Glassmorphism)
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding: 1rem 0;
}
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a:not(.btn) {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover {
  color: var(--primary);
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* =========================================
   HERO SECTION (Pastel Header Gradient)
   ========================================= */
.hero {
  position: relative;
  padding: 8rem 0 6rem;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 30%, #fef2f2 70%, #dbeafe 100%);
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: white;
  color: var(--primary);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
}
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.no-cc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* App Mockup UI */
.hero-image {
  perspective: 1000px;
}
.glass-mockup {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s ease;
}
.glass-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg);
}
.mockup-header {
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: -1.5rem;
}
.mockup-greeting {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}
.mockup-weather {
  background: white;
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: 0 1rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  position: relative;
  z-index: 2;
}
.mockup-pills {
  display: flex;
  gap: 0.5rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.pill {
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.mockup-list {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 4rem; /* space for nav */
}
.mockup-list h4 { margin-bottom: 1rem; }
.mockup-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.mockup-item:last-child { border: none; }
.mockup-item input[type="checkbox"] { width: 1.2rem; height: 1.2rem; accent-color: var(--primary); }

.mockup-bottom-nav {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  border-radius: 50px;
  display: flex;
  justify-content: space-around;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
}
.mockup-bottom-nav .nav-item { color: var(--text-muted); }
.mockup-bottom-nav .nav-item.active { color: var(--primary); }

/* =========================================
   FEATURES
   ========================================= */
.features {
  padding: 6rem 0;
  background: white;
}
.section-title {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.feature-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-main);
  transition: transform 0.3s;
  border: 1px solid #f1f5f9;
}
.feature-card:hover {
  transform: translateY(-5px);
  background: white;
  box-shadow: var(--shadow-lg);
}
.icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.icon-wrapper.blue { background: #dbeafe; color: #3b82f6; }
.icon-wrapper.purple { background: #ede9fe; color: #8b5cf6; }
.icon-wrapper.green { background: #dcfce3; color: #22c55e; }
.icon-wrapper.orange { background: #ffedd5; color: #f97316; }

/* =========================================
   PRICING
   ========================================= */
.pricing {
  padding: 6rem 0;
  background: var(--bg-main);
}
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  font-weight: 500;
}

/* Switch Styles */
.switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(22px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

.save-badge {
  background: #dcfce3;
  color: #166534;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  margin-left: 0.5rem;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.pricing-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  border: 1px solid #e2e8f0;
}
.pricing-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
}

.price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 1rem 0;
  display: flex;
  align-items: baseline;
}
.currency { font-size: 1.5rem; font-weight: 600; margin-right: 0.2rem; }
.period { font-size: 1rem; color: var(--text-muted); font-weight: 500; margin-left: 0.2rem; }

.plan-desc {
  margin-bottom: 2rem;
  min-height: 50px;
}
.feature-list {
  margin-bottom: 2.5rem;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}
.feature-list li i {
  color: var(--primary);
  width: 20px;
}
.feature-list li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
}
.feature-list li.disabled i {
  color: #cbd5e1;
}
.crypto-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
.crypto-note i { width: 14px; }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: white;
  padding: 4rem 0 2rem;
  border-top: 1px solid #e2e8f0;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  margin-top: 1rem;
  max-width: 300px;
}
.footer-links {
  display: flex;
  gap: 4rem;
}
.link-group h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}
.link-group a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.link-group a:hover { color: var(--primary); }

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding-top: 2rem;
  border-top: 1px solid #f1f5f9;
}

/* =========================================
   MEDIA QUERIES (Responsiveness)
   ========================================= */
@media (max-width: 1024px) {
  h1 { font-size: clamp(2rem, 5vw, 3rem); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-cta {
    align-items: center;
    margin: 0 auto;
  }
  .pricing-card.popular {
    transform: scale(1);
  }
  .footer-content {
    flex-direction: column;
  }
}
