/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --orange: #FF6600;
  --orange-light: #FF8533;
  --orange-dark: #CC5200;
  --bg-dark: #0A0A0A;
  --bg-section: #111111;
  --bg-card: #1A1A1A;
  --text: #F5F5F5;
  --text-muted: #999999;
  --text-dim: #666666;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.text-orange {
  color: var(--orange);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.nav.scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
}

.nav-logo img {
  border-radius: 8px;
}

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

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 102, 0, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(255, 102, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-phone {
  flex-shrink: 0;
}

/* ── Phone Frame ── */
.phone-frame {
  position: relative;
  width: 280px;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(255, 102, 0, 0.08);
}

.phone-frame img {
  width: 100%;
  display: block;
}

/* ── Features ── */
.features {
  padding: 120px 0;
  background: var(--bg-section);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 64px;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: rgba(255, 102, 0, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 102, 0, 0.12);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── Screenshots ── */
.screenshots {
  padding: 120px 0;
}

.screenshots-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) transparent;
}

.screenshots-carousel::-webkit-scrollbar {
  height: 6px;
}

.screenshots-carousel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.screenshots-carousel::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 3px;
}

.screenshots-carousel .phone-frame {
  flex-shrink: 0;
  width: 240px;
  scroll-snap-align: center;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    0 16px 48px rgba(0, 0, 0, 0.4);
}

/* ── Changelog ── */
.changelog {
  padding: 120px 0;
  background: var(--bg-section);
}

.changelog-entries {
  max-width: 720px;
  margin: 0 auto;
}

.changelog-entry {
  position: relative;
  padding-left: 32px;
  padding-bottom: 48px;
  border-left: 2px solid rgba(255, 102, 0, 0.3);
}

.changelog-entry:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.changelog-entry::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 102, 0, 0.4);
}

.changelog-version {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.version-badge {
  background: rgba(255, 102, 0, 0.15);
  color: var(--orange);
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
}

.version-date {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.changelog-content h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.changelog-content ul {
  list-style: none;
  padding: 0;
}

.changelog-content li {
  position: relative;
  padding-left: 20px;
  padding-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.changelog-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.6;
}

.changelog-content li strong {
  color: var(--text);
}

/* ── Download CTA ── */
.download {
  padding: 120px 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 102, 0, 0.08) 0%, transparent 70%);
}

.download-inner {
  text-align: center;
}

.download-icon {
  margin: 0 auto 24px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.download-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.download-inner p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.download-inner .hero-buttons {
  justify-content: center;
}

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

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-brand img {
  border-radius: 6px;
}

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

.footer-links a {
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: color var(--transition);
}

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

.footer-copy {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-phone {
    margin-top: 20px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-toggle {
    display: flex;
  }

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

  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .phone-frame {
    width: 220px;
  }

  .screenshots-carousel .phone-frame {
    width: 200px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .features, .screenshots, .changelog, .download {
    padding: 80px 0;
  }
}
