:root {
  --color-background: #f9fafb;
  --color-background-end: #f3f4f6;
  --color-foreground: #000000;
  --color-foreground-muted: #6b7280;
  --color-primary: #3d5fff;
  --color-primary-dark: ##4d6dff;
  --color-primary-light: #a78bfa;
  --color-card: #ffffff;
  --color-card-muted: #f9fafb;
  --color-border: #e5e7eb;
  --color-recommended: #10b981;
  --color-recommended-bg: #d1fae5;
  --border-radius: 0.75rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: linear-gradient(
    to bottom,
    var(--color-background),
    var(--color-background-end)
  );
  color: var(--color-foreground);
  min-height: 100vh;
  line-height: 1.5;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.header {
  width: 100%;
  padding: 1.5rem 1rem;
}

.header-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  width: 2.5rem;
  height: 2.5rem;
  background-color: #000;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: 3.5rem;
  height: 3.5rem;
}

.logo span {
  color: white;
  font-weight: bold;
  font-size: 1.125rem;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 500;
  display: none;
}

@media (min-width: 640px) {
  .logo-text {
    display: inline-block;
  }
}

.navigation ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.navigation a {
  color: var(--color-foreground-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.navigation a:hover {
  color: var(--color-foreground);
}

.navigation a.active {
  font-weight: 500;
  color: var(--color-foreground);
}

/* Main Content Styles */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

@media (min-width: 640px) {
  .main-content {
    padding: 4rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .main-content {
    padding: 6rem 2rem;
  }
}

.hero {
  text-align: center;
  margin-bottom: 4rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

.hero .accent {
  color: var(--color-primary);
}

.hero p {
  font-size: 1.125rem;
  color: var(--color-foreground-muted);
  max-width: 36rem;
  margin: 0 auto;
}

.download-container {
  width: 100%;
  max-width: 1024px;
}

.download-card {
  background-color: var(--color-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.download-content {
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .download-content {
    padding: 2.5rem;
  }
}

@media (min-width: 768px) {
  .download-content {
    padding: 3rem;
  }
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .download-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.platform-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.platform-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
}

.windows-icon {
  background-color: #e6f0ff;
}

.macos-icon {
  background-color: #f3f4f6;
}

.platform-icon img {
  width: 1.5rem;
  height: auto;
}

.platform-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.download-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  color: var(--color-foreground);
  transition: all 0.2s;
}

.download-button:hover {
  background-color: #f9fafb;
  box-shadow: var(--shadow-md);
}

.header-btn {
  background: black;
  color: white !important;
  padding: 1rem;
  border-radius: 4px;
}

.top-title img {
  width: 4rem;
  height: 4rem;
}

.top-title h1 {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.button-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.download-icon-container {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: #f3f4f6;
}

.download-icon {
  color: var(--color-foreground-muted);
}

.button-label {
  font-weight: 500;
}

.button-meta {
  font-size: 0.75rem;
  opacity: 0.8;
}

.recommended-tag {
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--color-recommended-bg);
  color: var(--color-recommended);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--color-recommended);
}

.button-highlight {
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-primary);
  border-radius: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.download-button:hover .button-highlight {
  opacity: 0.3;
}

.download-button.primary:hover .button-highlight {
  opacity: 0.5;
}

.system-requirements {
  font-size: 0.875rem;
  color: var(--color-foreground-muted);
}

.system-requirements p {
  margin-bottom: 0.25rem;
}

.terms-section {
  background-color: var(--color-card-muted);
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* Section tabs styles */
.section-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 5px;
  position: sticky;
  top: 0;
  background-color: var(--color-card);
  z-index: 10;
}

.section-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  margin: 0 10px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  color: var(--color-foreground-muted);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-tab span {
  font-weight: 500;
  font-size: 16px;
}

.section-tab.active {
  color: var(--color-primary);
}

.section-tab.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 3px 3px 0 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-tab:hover {
  color: var(--color-foreground);
}

/* Container for sections to maintain consistent height */
.sections-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Section content styles with improved animations */
.section-content {
  display: none;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.section-content.active {
  display: block;
  position: relative;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

/* Slide animations */
.section-content.slide-in {
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section-content.slide-out {
  animation: slideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Android icon styles */
.android-icon {
  background-color: #e8f5e9;
}

.android-icon img {
  width: 2.2rem;
  height: auto;
}

/* Fixed hero section */
.hero {
  position: relative;
  z-index: 5;
}

/* Ensure the top title doesn't move */
.top-title {
  position: relative;
  z-index: 5;
}

/* Primary button styles */
.download-button.primary {
  border-color: var(--color-primary);
  background-color: rgba(61, 95, 255, 0.05);
}

.download-icon-container.primary {
  background-color: var(--color-primary);
}

.download-icon-container.primary .download-icon {
  color: white;
}

/* Section header styles */
.section-header {
  margin: 20px 0;
  text-align: center;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-foreground);
  margin: 0;
}

/* Section divider */
.section-divider {
  height: 1px;
  background-color: var(--color-border);
  margin: 30px 0;
  width: 100%;
}

/* Android icon styles */
.android-icon {
  background-color: #e8f5e9;
}

.android-icon img {
  width: 2rem;
  height: auto;
}

@media (min-width: 640px) {
  .terms-section {
    padding: 1rem 2.5rem;
  }
}

.terms-section p {
  font-size: 0.875rem;
  color: var(--color-foreground-muted);
}

.terms-link {
  color: var(--color-foreground-muted);
  text-decoration: none;
  transition: all .3s ease-in-out;
}

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

.terms-link:hover {
  text-decoration: underline;
}

.support-section {
  margin-top: 3rem;
  text-align: center;
}

.support-section p {
  color: var(--color-foreground-muted);
}

.support-link {
  color: var(--color-primary);
  text-decoration: none;
}

.support-link:hover {
  text-decoration: underline;
}

/* Footer Styles */
.footer {
  padding: 2rem 1rem;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .footer-logo {
    margin-bottom: 0;
  }
}

.footer-logo-icon {
  width: 2rem;
  height: 2rem;
  background-color: #000;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-icon span {
  color: white;
  font-weight: bold;
  font-size: 0.75rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--color-foreground-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-foreground-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-foreground);
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

.fade-in-delayed {
  opacity: 0;
  animation: fadeIn 0.5s ease-out 0.6s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
