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

:root {
  --primary-color: #1A9FFF;    /* Primary Accent - Deeper modern blue */
  --primary-dark: #1c7cd6;     /* Darker shade for hover states */
  --secondary-color: #00C8E8;  /* Secondary Accent - Vibrant aqua */
  --support-color: #19D3B8;    /* Support Brand Color - Blue-green */
  --text-primary: #111827;     /* Primary body text - High contrast */
  --text-secondary: #4B5563;   /* Secondary text - Subtle but readable */
  --bg-page: #F7F9FC;          /* Warm off-white page background */
  --bg-panel: #F0F4F8;         /* Subtle blue-tinted panel (approx 4%) */
  --bg-white: #FFFFFF;
  --border-color: #E5E7EB;     /* Updated neutral border */
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);

  /* Spacing Rhythm */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 64px;
}

html {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Navigation */
.navbar {
  background: rgba(247, 249, 252, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.8;
}

.logo-icon {
  height: 40px;
  width: auto;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

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

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

.cta-button {
  background: var(--primary-color);
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-button.large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.secondary-button {
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
  font-size: 1.1rem;
}

.secondary-button:hover {
  background: var(--primary-color);
  color: white;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding: var(--space-xxl) 0;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  font-weight: 800;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 65ch;
  margin: 0 auto var(--space-lg);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  align-items: center;
    margin-bottom: var(--space-xl);
  }
  .apple-badge-link {
    display: inline-block;
    transition: transform 0.3s, filter 0.3s;
    line-height: 0;
  }
  .apple-badge-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
  }
  .apple-badge-img {
    height: 64px; /* Matches the height of the large cta-button */
    width: auto;
    display: block;
}

.app-preview {
  max-width: 1000px;
  margin: 0 auto;
}

.preview-screenshot {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
}

.preview-screenshot img {
  height: auto;
  max-width: 250px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  transform: rotate(-5deg);
}

.preview-screenshot img:nth-child(2) {
  transform: rotate(0deg) scale(1.1);
  z-index: 2;
}

.preview-screenshot img:nth-child(3) {
  transform: rotate(5deg);
}

.preview-screenshot img:hover {
  transform: rotate(0deg) scale(1.15) !important;
  z-index: 10;
}

/* Sections */
section {
  padding: var(--space-xxl) 0;
  background: var(--bg-panel);
  border-radius: 24px;
  margin: var(--space-lg) var(--space-md);
  scroll-margin-top: 80px;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  font-weight: 800;
}

.desktop-br::before {
  content: "\A";
  white-space: pre;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* About Section */
.about-section {
  /* Inherits panel styling */
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text p {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

.feel-at-home-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-lg);
}

.feel-at-home-list {
  list-style: none;
  padding: 0;
  max-width: 650px;
  margin: 0 auto;
  text-align: left;
}

.feel-at-home-list li {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
  padding-left: 2.5rem;
  position: relative;
}

.feel-at-home-list li:before {
  content: "✓";
  color: var(--support-color);
  font-weight: bold;
  font-size: 1.2rem;
  position: absolute;
  left: 0.5rem;
  top: 0;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  padding: var(--space-lg);
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.03);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  margin-bottom: var(--space-sm);
  display: flex;
  justify-content: center;
}

.feature-icon img {
  width: 56px;
  height: 56px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

.feature-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Pricing Section */
.pricing-section {
  /* Inherits panel styling */
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 450px;
  margin: 0 auto;
}

.pricing-card {
  padding: var(--space-xl);
  background: var(--bg-white);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 2px solid var(--primary-color);
  transition: all 0.3s;
  text-align: center;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.plan-price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: var(--space-lg);
  line-height: 1;
}

.plan-price span {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.plan-features {
  list-style: none;
  margin-bottom: var(--space-lg);
  padding: 0;
  text-align: left;
}

.plan-features li {
  padding: var(--space-xs) 0;
  font-size: 1.1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  line-height: 1.6;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-button {
  width: 100%;
  padding: 1.25rem;
  background: var(--primary-color);
  color: white;
  text-align: center;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  display: block;
  transition: all 0.3s;
  font-size: 1.1rem;
}

.plan-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: #000000;
  color: white;
  padding: var(--space-xl) 0;
  margin-top: var(--space-xxl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: white;
  text-decoration: none;
}

.footer-logo-icon {
  height: 40px;
  width: auto;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}

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

.footer-separator {
  color: rgba(255, 255, 255, 0.2);
}

.footer-tagline {
  text-align: center;
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-tagline p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .desktop-br::before {
    content: none;
  }
  .desktop-br {
    display: none;
  }
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .footer-separator {
    display: none;
  }

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

  .hero p {
    font-size: 1.15rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
  
  section {
    margin: var(--space-md) var(--space-xs);
    border-radius: 16px;
    padding: var(--space-xl) 0;
  }

  .pricing-grid {
    max-width: 100%;
  }

  .preview-screenshot {
    overflow-x: auto;
    justify-content: flex-start;
    padding: var(--space-md);
    gap: var(--space-md);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .preview-screenshot::-webkit-scrollbar {
    display: none;
  }

  .preview-screenshot img {
    min-width: 260px;
    scroll-snap-align: center;
    transform: none !important;
  }
}

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

  .plan-price {
    font-size: 3rem;
  }
}
