:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #f3f4f6;
  --text-main: #111827;
  --text-muted: #6b7280;
  --bg-light: #ffffff;
  --bg-off: #f9fafb;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

.logo i {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.mobile-menu-button {
  display: none;
  cursor: pointer;
}

.nav-links a:not(.btn-primary) {
  color: var(--text-muted);
  font-weight: 500;
}

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

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text-main);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  background: radial-gradient(circle at top right, #eff6ff, transparent 40%);
}

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

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.highlight {
  color: var(--primary);
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
}

.badge {
  display: inline-block;
  background: #eff6ff;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.cta-group {
  display: flex;
  gap: 16px;
}

/* Phone Mockup */
.phone-mockup {
  width: 300px;
  height: 600px;
  background: #111;
  border-radius: 40px;
  padding: 12px;
  margin: 0 auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
}

.screen {
  background: #fff;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: var(--primary);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-card {
  margin: 20px;
  padding: 20px;
  background: var(--primary);
  color: white;
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.app-list {
  padding: 0 20px;
  flex: 1;
}

.list-item {
  height: 60px;
  background: var(--secondary);
  border-radius: 12px;
  margin-bottom: 12px;
}

/* Features */
.features {
  padding: 100px 0;
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

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

.feature-card {
  padding: 32px;
  background: var(--bg-off);
  border-radius: 24px;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.icon-box {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Changelog */
.changelog {
  padding: 100px 0;
  background: var(--bg-off);
}

.changelog-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.changelog-header {
  text-align: left;
}

.changelog-timeline {
  position: relative;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
}

.timeline-marker {
  position: absolute;
  left: -39px;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-content {
  background: var(--bg-light);
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin: 10px;
}

.version {
  display: inline-block;
  background: #eff6ff;
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.date {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-left: 12px;
}

.timeline-content ul {
  list-style: none;
  margin-top: 16px;
}

.timeline-content li {
  margin-bottom: 20px; /* Increased spacing for better readability */
  color: var(--text-main);
}

/* Add some space to the last item */
.timeline-content li:last-child {
  margin-bottom: 0;
}

/* Download */
.download {
  padding: 100px 0;
}

.download-card {
  background: #111; /* Changed to black */
  color: white;
  border-radius: 32px;
  padding: 48px 64px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.download-text h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.download-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  max-width: 500px;
}

.download-action {
  flex-shrink: 0;
}

.download-buttons {
  /* This is now a wrapper */
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
/* New white button style for the download card */
.download-card .btn-primary.large {
  background: white;
  color: var(--text-main);
}

.download-card .btn-primary.large:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.btn-primary.large,
.btn-secondary.large {
  padding: 16px 32px;
  font-size: 1.125rem;
  justify-content: center; /* Center content within the button */
}

.sub-text {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 400;
}

/* Footer */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.social-links a {
  color: var(--text-muted);
}

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

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* Mobile Navigation */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-light);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px 24px;
    width: 100%;
    text-align: center;
  }

  .nav-links a.btn-primary {
    margin: 8px 24px 0;
    width: auto;
  }

  .mobile-menu-button {
    display: block;
  }

  /* Hero Section */
  .hero {
    padding: 120px 0 60px;
  }

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

  .hero-text h1 {
    font-size: 2.25rem; /* Further reduced font size */
  }

  .hero-text p {
    font-size: 1rem; /* Reduced paragraph font size */
    margin-bottom: 24px;
  }

  .cta-group {
    justify-content: center;
    flex-direction: column; /* Stack buttons on mobile */
    align-items: center;
    gap: 12px;
  }

  .cta-group .btn-primary,
  .cta-group .btn-secondary {
    width: 100%;
    max-width: 320px; /* Constrain button width */
    justify-content: center;
  }

  .phone-mockup {
    transform: scale(0.9);
    margin-top: -20px;
  }

  /* Sections */
  .features,
  .changelog,
  .download {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
  }

  .section-header p {
    font-size: 1rem;
  }

  .feature-card {
    padding: 24px; /* Reduced padding */
  }

  /* Changelog */
  .changelog-wrapper {
    grid-template-columns: 1fr; /* Stack columns */
    gap: 32px;
  }

  .changelog-header {
    text-align: center; /* Center header on mobile */
  }

  .changelog-timeline {
    /* Remove timeline styles for mobile card UI */
    border-left: none;
    padding-left: 0;
  }

  .timeline-marker {
    display: none; /* Hide marker on mobile */
  }

  .timeline-content {
    /* Make it a standalone card */
    padding: 24px;
    box-shadow: var(--shadow);
  }

  .timeline-content {
    padding: 24px;
  }

  .timeline-content li {
    line-height: 1.5; /* Improved line spacing */
    font-size: 0.95rem; /* Adjust list font size */
  }

  /* Download Section */
  .download-card {
    padding: 48px 32px;
    flex-direction: column;
    text-align: center;
  }

  .download-text h2 {
    font-size: 2rem;
  }

  .download-text p {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .btn-primary.large,
  .btn-secondary.large {
    width: 100%;
    max-width: 320px; /* Constrain button width */
    font-size: 1rem; /* Adjust button font size for mobile */
    padding: 14px 24px; /* Adjust button padding for mobile */
  }

  /* Footer */
  footer .container {
    flex-direction: column;
    gap: 16px;
  }
  footer p {
    font-size: 0.9rem;
  }
}
