/* ═══════════════════════════════════════════════════════════════
   nAppleCleaner — Dark Neon Metallic Theme
   ═══════════════════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --bg:           #050a0e;
  --bg-surface:   #0a1018;
  --bg-card:      #0d1520;
  --bg-elevated:  #111d2e;

  --neon:         #00ff88;
  --neon-dim:     #00cc6a;
  --neon-glow:    rgba(0, 255, 136, 0.15);
  --neon-glow-strong: rgba(0, 255, 136, 0.35);

  --metallic-1:   #1a2635;
  --metallic-2:   #243447;
  --metallic-3:   #2e4159;

  --text:         #e8edf2;
  --text-muted:   #7a8da0;
  --text-dim:     #4a5d72;

  --border:       rgba(0, 255, 136, 0.08);
  --border-active:rgba(0, 255, 136, 0.25);

  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  --radius:       12px;
  --radius-lg:    20px;
  --radius-sm:    8px;

  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }

/* ── Background Grid Canvas ────────────────────────────────── */
#grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ── Utility ───────────────────────────────────────────────── */
.neon { color: var(--neon); text-shadow: 0 0 20px var(--neon-glow-strong); }
.section__header { text-align: center; margin-bottom: 4rem; }
.section__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon);
  border: 1px solid var(--border-active);
  padding: 0.3rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  background: var(--neon-glow);
}
.section__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: linear-gradient(135deg, var(--neon), #00cc6a);
  color: #000;
  box-shadow: 0 0 25px var(--neon-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--neon-glow-strong), 0 8px 30px rgba(0,0,0,0.4);
}
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  border: 1px solid var(--border-active);
  color: var(--text);
  background: rgba(0, 255, 136, 0.03);
}
.btn--ghost:hover {
  background: var(--neon-glow);
  border-color: var(--neon);
}
.btn--lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  transition: var(--transition);
  background: transparent;
}
.nav.scrolled {
  background: rgba(5, 10, 14, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 2rem;
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
}
.nav__logo { height: 32px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav__links a:hover { color: var(--neon); transition: var(--transition); }
.nav__links .nav__cta {
  background: var(--neon);
  color: #000;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.nav__links .nav__cta:hover { box-shadow: 0 0 20px var(--neon-glow-strong); }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(5, 10, 14, 0.97);
  backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: 1.3rem;
  font-weight: 600;
}
.mobile-menu.open { display: flex; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  gap: 4rem;
  max-width: 1300px;
  margin: 0 auto;
}
.hero__content { flex: 1; max-width: 560px; }
.hero__headline {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  white-space: pre-line;
  margin-bottom: 1.5rem;
}
/* Glitch effect */
.glitch { position: relative; }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.glitch::before {
  color: var(--neon);
  z-index: -1;
  animation: glitch-1 3s infinite linear alternate-reverse;
}
.glitch::after {
  color: #ff0055;
  z-index: -2;
  animation: glitch-2 2s infinite linear alternate-reverse;
}
@keyframes glitch-1 {
  0%, 93% { clip-path: inset(0 0 0 0); transform: translate(0); }
  94% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 1px); }
  95% { clip-path: inset(50% 0 30% 0); transform: translate(3px, -1px); }
  96% { clip-path: inset(10% 0 70% 0); transform: translate(-2px, 2px); }
  97%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
}
@keyframes glitch-2 {
  0%, 95% { clip-path: inset(0 0 0 0); transform: translate(0); }
  96% { clip-path: inset(40% 0 40% 0); transform: translate(2px, -2px); }
  97% { clip-path: inset(70% 0 10% 0); transform: translate(-2px, 1px); }
  98%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__visual {
  flex: 1;
  max-width: 580px;
  position: relative;
}
.hero__glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, var(--neon-glow-strong) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  animation: pulse-glow 4s ease-in-out infinite alternate;
}
@keyframes pulse-glow {
  from { opacity: 0.4; transform: scale(0.95); }
  to { opacity: 0.7; transform: scale(1.05); }
}
.hero__img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-active);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--neon-glow);
}

/* ── Features ──────────────────────────────────────────────── */
.features {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 30px var(--neon-glow);
}
.feature-card:hover::before { opacity: 1; }
.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--neon-glow);
  border: 1px solid var(--border-active);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--neon);
}
.feature-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.feature-card__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Demo ──────────────────────────────────────────────────── */
.demo {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.demo__wrapper {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-active);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.demo__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.demo__wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Screenshots ───────────────────────────────────────────── */
.screenshots {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}
.screenshots__track {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--metallic-3) transparent;
}
.screenshots__track::-webkit-scrollbar { height: 6px; }
.screenshots__track::-webkit-scrollbar-track { background: transparent; }
.screenshots__track::-webkit-scrollbar-thumb {
  background: var(--metallic-3);
  border-radius: 100px;
}
.screenshot-item {
  flex: 0 0 auto;
  width: min(70vw, 600px);
  scroll-snap-align: center;
}
.screenshot-item img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  transition: var(--transition);
}
.screenshot-item img:hover {
  border-color: var(--border-active);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4), 0 0 30px var(--neon-glow);
}
.screenshot-item p {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── Pricing ───────────────────────────────────────────────── */
.pricing {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}
.pricing__card {
  background: linear-gradient(160deg, var(--bg-card), var(--bg-surface));
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px var(--neon-glow), 0 20px 60px rgba(0,0,0,0.4);
}
.pricing__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), #00cc6a, var(--neon));
}
.pricing__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #000;
  background: var(--neon);
  padding: 0.3rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.pricing__price {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
}
.pricing__label {
  font-size: 1.1rem;
  color: var(--neon);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.pricing__note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.pricing__features {
  text-align: left;
  margin-bottom: 2rem;
}
.pricing__features li {
  padding: 0.55rem 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.pricing__features li::before {
  content: '✓';
  color: var(--neon);
  font-weight: 700;
  font-size: 0.85rem;
  min-width: 1rem;
}

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.testimonial-card:hover {
  border-color: var(--border-active);
}
.testimonial-card__quote {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text);
  font-style: italic;
}
.testimonial-card__author {
  font-weight: 600;
  font-size: 0.9rem;
}
.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  margin-top: 4rem;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer__logo { height: 24px; }
.footer__links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer__links a:hover { color: var(--neon); }
.footer__socials {
  display: flex;
  gap: 1rem;
}
.footer__socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer__socials a:hover {
  border-color: var(--neon);
  color: var(--neon);
  box-shadow: 0 0 15px var(--neon-glow);
}

/* ── Scroll Reveal Animation ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 7rem;
  }
  .hero__content { max-width: 100%; }
  .hero__sub { max-width: 100%; }
  .hero__actions { justify-content: center; }
  .hero__visual { max-width: 90%; }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .features__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero__headline { font-size: 2.5rem; }
  .btn--lg { padding: 0.85rem 1.5rem; font-size: 0.95rem; }
  .pricing__card { padding: 2rem 1.5rem; }
  .pricing__price { font-size: 2.8rem; }
}
