@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #131010;
  --bg-secondary: #1A1616;
  --bg-tertiary: #221E1E;
  --bg-card: #1A1616;
  --text-primary: #E8E0E0;
  --text-secondary: #9A9090;
  --text-muted: #6A6060;
  --accent: #FF6B35;
  --accent-hover: #FF8555;
  --accent-glow: rgba(255, 107, 53, 0.15);
  --border: #2E2A2A;
  --border-light: #3A3535;
  --success: #4ADE80;
  --error: #EF4444;
  --warning: #FBBF24;
  --info: #60A5FA;
  --code-bg: #0d0d0e;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* Background Pattern */
.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, var(--accent-glow) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(74, 222, 128, 0.08) 0%, transparent 40%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(19, 16, 16, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

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

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle-label span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-label:hover {
  border-color: var(--text-muted);
}

.nav-toggle:focus-visible + .nav-toggle-label {
  outline: 2px solid rgba(255, 107, 53, 0.6);
  outline-offset: 2px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Hero Section */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

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

.hero-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 480px;
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--text-muted);
}

.btn-icon {
  font-size: 16px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-phone {
  width: min(320px, 84vw);
  max-width: 320px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 8px;
  position: relative;
}

.hero-phone-screen {
  background: var(--bg-primary);
  border-radius: 18px;
  overflow: hidden;
  height: clamp(520px, 70vh, 620px);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: var(--bg-secondary);
  border-radius: 12px;
  z-index: 10;
}

.hero-phone-carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #0d0d0e;
}

.hero-phone-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  animation: heroCarousel 30s infinite;
}

.hero-phone-slide:nth-child(1) { animation-delay: 0s; }
.hero-phone-slide:nth-child(2) { animation-delay: 5s; }
.hero-phone-slide:nth-child(3) { animation-delay: 10s; }
.hero-phone-slide:nth-child(4) { animation-delay: 15s; }
.hero-phone-slide:nth-child(5) { animation-delay: 20s; }
.hero-phone-slide:nth-child(6) { animation-delay: 25s; }

@keyframes heroCarousel {
  0%, 12% {
    opacity: 1;
  }
  16%, 100% {
    opacity: 0;
  }
}

/* Screenshots Carousel */
.screenshots {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: var(--bg-secondary);
  overflow: hidden;
}

.screenshots-track {
  display: flex;
  gap: 24px;
  animation: scroll 30s linear infinite;
}

.screenshots-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.screenshot-card {
  flex-shrink: 0;
  width: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.screenshot-card:hover {
  transform: scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Features Section */
.features {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: var(--bg-primary);
}

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

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-description {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-glow);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Setup Section */
.setup {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: var(--bg-secondary);
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.setup-step {
  text-align: center;
  padding: 40px 24px;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin: 0 auto 20px;
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-description {
  font-size: 14px;
  color: var(--text-secondary);
}

/* CTA Section */
.cta {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: var(--bg-primary);
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.play-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
}

.play-store-badge:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.play-store-icon {
  width: 24px;
  height: 24px;
}

.play-store-text {
  text-align: left;
  line-height: 1.3;
}

.play-store-text-small {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.play-store-text-big {
  font-size: 15px;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

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

.footer-text {
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer-link {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Privacy Policy */
.policy {
  position: relative;
  z-index: 1;
  padding: 140px 0 100px;
  background: var(--bg-primary);
}

.policy-content {
  max-width: 820px;
}

.policy-header {
  text-align: left;
  margin-bottom: 48px;
}

.policy-title {
  font-size: 40px;
}

.policy-meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.policy-section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.policy-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.policy-section h2 {
  font-size: 22px;
  margin-bottom: 14px;
}

.policy-section p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-list {
  list-style: none;
  margin: 16px 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.policy-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--text-secondary);
}

.policy-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

.policy-section a {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 107, 53, 0.4);
}

.policy-section a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.policy-footer {
  border-top: 1px dashed var(--border-light);
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 968px) {
  .header {
    padding: 14px 0;
  }

  .logo {
    font-size: 20px;
  }

  .nav-toggle-label {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 24px;
    left: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px;
    background: rgba(26, 22, 22, 0.95);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .nav-link {
    font-size: 15px;
    padding: 8px 4px;
  }

  .nav .btn {
    width: 100%;
    justify-content: center;
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

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

  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-toggle:checked + .nav-toggle-label + .nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

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

  .hero-title {
    font-size: 36px;
  }

  .hero-description {
    margin: 0 auto 40px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

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

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

  .screenshots-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
  }

  .policy {
    padding: 120px 0 80px;
  }

  .policy-title {
    font-size: 32px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .nav {
    right: 18px;
    left: 18px;
  }

  .header-content {
    gap: 12px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }
}
