:root {
  --primary: #0071e3;
  --primary-hover: #0077ED;
  --text: #1d1d1f;
  --text-secondary: #86868b;
  --background: #ffffff;
  --background-alt: #f5f5f7;
  --border: #d2d2d7;
  --retitle-accent: #007aff;
  --speedlauncher-accent: #34c759;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

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

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

/* Hero Section */
.hero {
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: var(--background-alt);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* App Cards Section */
.apps-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.app-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.app-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin-bottom: 1.5rem;
  object-fit: contain;
}

.app-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.app-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.app-card .learn-more {
  color: var(--primary);
  font-weight: 500;
}

/* App Detail Page */
.app-hero {
  padding: 8rem 2rem 4rem;
  text-align: center;
}

.app-hero .app-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  margin: 0 auto 2rem;
  object-fit: contain;
}

.app-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.app-hero .tagline {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.app-hero .cta-button {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 980px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.app-hero .cta-button:hover {
  background: var(--primary-hover);
}

.app-hero .cta-button.coming-soon {
  background: var(--text-secondary);
  cursor: default;
}

.app-hero .cta-button.coming-soon:hover {
  background: var(--text-secondary);
}

/* Features Section */
.features-section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.features-section h2 {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
}

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

.feature-card {
  padding: 1.5rem;
  background: var(--background-alt);
  border-radius: 12px;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* Requirements Section */
.requirements-section {
  padding: 4rem 2rem;
  background: var(--background-alt);
}

.requirements-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.requirements-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.requirements-section p {
  color: var(--text-secondary);
}

/* Content Pages (EULA, Contact) */
.content-page {
  padding: 8rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.content-page h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.content-page h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-page p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.content-page ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.content-page li {
  margin-bottom: 0.5rem;
}

.content-page a {
  color: var(--primary);
  text-decoration: none;
}

.content-page a:hover {
  text-decoration: underline;
}

/* Contact Page */
.contact-info {
  background: var(--background-alt);
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
}

.contact-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-info .email {
  font-size: 1.25rem;
  color: var(--primary);
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

/* Hamburger Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.125rem;
  }
  
  .app-hero h1 {
    font-size: 2rem;
  }
  
  .app-hero .tagline {
    font-size: 1.125rem;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 1rem 2rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    border-bottom: 1px solid var(--border);
  }
  
  .nav-links li:last-child {
    border-bottom: none;
  }
  
  .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
  }
  
  .apps-grid {
    grid-template-columns: 1fr;
  }
}
