:root {
  --bg-primary: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent: #5eead4;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-weight: 200;
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(94, 234, 212, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(94, 234, 212, 0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 20% 80%, rgba(94, 234, 212, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 200;
  letter-spacing: 0.02em;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Hero Section */
.hero {
  padding: 100px 0 60px;
  text-align: center;
}

.hero-logo {
  height: 64px;
  width: auto;
  margin-bottom: 32px;
  transition: filter 0.3s ease;
}

.hero-logo:hover {
  filter: drop-shadow(0 0 30px rgba(94, 234, 212, 0.7)) drop-shadow(0 0 60px rgba(94, 234, 212, 0.4)) drop-shadow(0 0 100px rgba(94, 234, 212, 0.2));
}

.hero h1 {
  font-size: 3rem;
  font-weight: 200;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

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

.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.download-buttons a {
  display: inline-flex;
  align-items: center;
}

.testflight-badge {
  height: 44px;
  width: auto;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  transition: transform 0.4s ease, filter 0.4s ease;
  vertical-align: middle;
}

.testflight-badge:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 25px rgba(94, 234, 212, 0.15)) drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.app-store-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.app-store-link.disabled {
  pointer-events: none;
}

.app-store-link.disabled .app-store-badge {
  filter: grayscale(100%) opacity(0.5);
}

.coming-soon {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.app-store-badge {
  height: 44px;
  width: auto;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.app-store-link:not(.disabled):hover .app-store-badge {
  transform: scale(1.05);
  filter: drop-shadow(0 0 25px rgba(94, 234, 212, 0.15)) drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

/* Screenshots Section */
.screenshots {
  padding: 20px 0 30px;
}

.screenshots-wrapper {
  position: relative;
}

.screenshots-wrapper::before,
.screenshots-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.screenshots-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.screenshots-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.screenshots-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.carousel-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-dot.active {
  background: var(--accent);
}

.screenshot {
  width: 220px;
  border-radius: 24px;
  transition: transform 0.4s ease, filter 0.4s ease;
  cursor: pointer;
}

.screenshot:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 25px rgba(94, 234, 212, 0.1)) drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

/* Features Section */
.features {
  padding: 40px 0 80px;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.feature {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.1) 0%, transparent 40%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature:hover::before {
  opacity: 1;
}

.feature:hover {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}

.feature h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  font-weight: 200;
  letter-spacing: 0.02em;
}

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

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

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

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

.copyright {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Privacy Page */
.privacy-page {
  padding: 80px 0 60px;
}

.privacy-page a:has(.privacy-logo) {
  display: block;
}

.privacy-logo {
  height: 64px;
  width: auto;
  margin-bottom: 40px;
  margin-left: -8px;
}

.privacy-page h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.privacy-page .last-updated {
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.privacy-page h2 {
  font-size: 1.5rem;
  margin: 32px 0 16px;
}

.privacy-page p,
.privacy-page ul {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.privacy-page ul {
  padding-left: 24px;
}

.privacy-page li {
  margin-bottom: 8px;
}

.privacy-page a {
  color: var(--accent);
  text-decoration: none;
}

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

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.modal-content {
  position: relative;
  z-index: 1;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-image {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: 32px;
  cursor: zoom-out;
  filter: drop-shadow(0 0 40px rgba(94, 234, 212, 0.15)) drop-shadow(0 0 80px rgba(94, 234, 212, 0.1));
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0 40px;
  }

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

  .hero .tagline {
    font-size: 1.1rem;
  }

  .screenshots {
    padding: 20px 0 20px;
  }

  .screenshots .container {
    padding: 0;
    max-width: 100%;
  }

  .screenshots-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 25px calc(50% - 100px);
  }

  .screenshots-grid::-webkit-scrollbar {
    display: none;
  }

  .screenshot {
    flex-shrink: 0;
    width: 200px;
    border-radius: 24px;
    scroll-snap-align: center;
  }

  .carousel-dots {
    display: flex;
  }

  .screenshots-wrapper::before,
  .screenshots-wrapper::after {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

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

  .screenshot {
    width: 160px;
    border-radius: 20px;
  }

  .screenshots-grid {
    gap: 16px;
    padding: 25px calc(50% - 80px);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}
