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

:root {
  --accent: #39FF14;
  --accent-dim: rgba(57, 255, 20, 0.15);
  --bg: #050505;
  --bg-card: #0e0e0e;
  --text: #f0f0f0;
  --text-dim: #888;
  --radius: 20px;
  --phone-radius: 32px;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- Nav --- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

.nav--scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

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

.nav-cta {
  padding: 10px 22px;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 100px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(57, 255, 20, 0.4);
}

/* --- Hero --- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding: 120px 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  max-width: 520px;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1.5px solid var(--accent);
  border-radius: 100px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

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

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 420px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: #fff;
  color: #000;
  text-decoration: none;
  border-radius: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
}

.store-button small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.7;
  line-height: 1;
}

.store-button strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.store-button--large {
  padding: 18px 36px;
}

.store-button--large strong {
  font-size: 1.15rem;
}

.hero-phone {
  flex-shrink: 0;
  z-index: 1;
}

/* --- Phone Frame --- */

.phone-frame {
  position: relative;
  width: 280px;
  border-radius: var(--phone-radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(57, 255, 20, 0.06);
}

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

/* --- Features --- */

.features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 140px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 80px;
}

.feature--reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}

.feature-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.feature-text p {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 380px;
}

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

/* --- Scroll Animations --- */

[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

.feature--reverse[data-animate] {
  transform: translateY(40px);
}

.feature--reverse[data-animate].visible {
  transform: translateY(0);
}

/* --- CTA --- */

.cta {
  position: relative;
  text-align: center;
  padding: 120px 24px 140px;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(57, 255, 20, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-icon {
  border-radius: 20px;
  margin-bottom: 32px;
  box-shadow: 0 0 40px rgba(57, 255, 20, 0.12);
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.cta p {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.cta .store-button {
  margin: 0 auto;
}

/* --- Footer --- */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  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 a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

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

/* --- Responsive --- */

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 48px;
    padding-top: 100px;
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
  }

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

  .feature,
  .feature--reverse {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .feature-text p {
    max-width: 100%;
    margin: 0 auto;
  }

  .features {
    gap: 100px;
  }

  .phone-frame {
    width: 240px;
    margin: 0 auto;
  }
}

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

  .feature-text h2 {
    font-size: 1.8rem;
  }

  .phone-frame {
    width: 220px;
  }

  .nav-cta {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}
