/* ═══════════════════════════════════════
   RESET & VARIABLES
   ═══════════════════════════════════════ */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

:root {
  --bg: #080808;
  --bg2: #0e0e0e;
  --card: #111;
  --card-hover: #161616;
  --border: #1a1a1a;
  --green: #00ff88;
  --green-dim: #00cc6a;
  --green-glow: rgba(0,255,136,0.12);
  --green-glow2: rgba(0,255,136,0.25);
  --text: #d4d4d4;
  --dim: #666;
  --white: #fff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--white); }
.accent { color: var(--green); }

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
header {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 40px;
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.logo-icon { filter: drop-shadow(0 0 8px rgba(0,255,136,0.5)); }

nav { display: flex; gap: 24px; }

nav a {
  color: var(--dim); font-size: .9rem; font-weight: 500;
  transition: color .25s;
}
nav a:hover { color: var(--green); }

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  position: relative; z-index: 2;
  text-align: center;
  padding: 100px 24px 60px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.25);
  border-radius: 20px;
  font-size: .8rem; font-weight: 600;
  color: var(--green);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900; color: var(--white);
  letter-spacing: -1px; line-height: 1.15;
}

.hero-sub {
  margin-top: 16px; font-size: 1.1rem; color: var(--dim);
  max-width: 540px; margin-left: auto; margin-right: auto;
}

.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 36px; padding: 16px 36px;
  background: var(--green); color: #000;
  font-size: 1rem; font-weight: 700;
  border-radius: 14px;
  transition: background .25s, transform .2s, box-shadow .25s;
}

.hero-cta:hover {
  background: var(--white); color: #000;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,255,136,0.3);
}

.hero-stats {
  display: flex; justify-content: center; align-items: center;
  gap: 32px; margin-top: 56px; flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-value { display: block; font-size: 1.6rem; font-weight: 800; color: var(--white); }
.stat-label { font-size: .82rem; color: var(--dim); }
.stat-divider {
  width: 1px; height: 32px;
  background: var(--border);
}

/* ═══════════════════════════════════════
   SECTION TITLE
   ═══════════════════════════════════════ */
.section-title {
  text-align: center; font-size: 1.8rem; font-weight: 800;
  color: var(--white); margin-bottom: 44px;
}

/* ═══════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════ */
.features {
  position: relative; z-index: 2;
  padding: 80px 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1060px; margin: 0 auto;
}

.feature-card {
  padding: 32px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}

.feature-card:hover {
  border-color: rgba(0,255,136,0.3);
  transform: translateY(-4px);
  box-shadow: 0 0 30px var(--green-glow);
}

.feature-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,255,136,0.07);
  border-radius: 12px; margin-bottom: 16px;
}

.feature-card h3 {
  color: var(--white); font-size: 1.1rem; font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--dim); font-size: .9rem; line-height: 1.55;
}

/* ═══════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════ */
.about {
  position: relative; z-index: 2;
  padding: 80px 40px;
  max-width: 1060px; margin: 0 auto;
}

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

.about-text p {
  color: var(--text); font-size: .95rem; line-height: 1.7;
  margin-bottom: 16px;
}

.about-highlights {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 20px;
}

.highlight {
  display: flex; align-items: center; gap: 10px;
  font-size: .92rem; font-weight: 500; color: var(--text);
}

.highlight-icon {
  color: var(--green); font-weight: 700; font-size: 1.1rem;
}

/* Code block */
.code-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.code-header {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.code-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }

.code-title {
  margin-left: 8px; font-size: .78rem; color: var(--dim);
}

.code-block pre {
  padding: 20px; font-size: .88rem; line-height: 1.6;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  color: var(--text);
  overflow-x: auto;
}

.code-block .kw { color: #c678dd; }
.code-block .fn { color: #61afef; }
.code-block .str { color: #98c379; }
.code-block .cmt { color: #5c6370; font-style: italic; }

/* ═══════════════════════════════════════
   REVIEWS
   ═══════════════════════════════════════ */
.reviews {
  position: relative; z-index: 2;
  padding: 80px 40px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1060px; margin: 0 auto;
}

.review-card {
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color .3s;
}

.review-card:hover { border-color: rgba(0,255,136,0.2); }

.review-stars {
  color: var(--green); font-size: 1rem; margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-card p {
  font-size: .92rem; line-height: 1.6; color: var(--text);
  font-style: italic; margin-bottom: 16px;
}

.review-author {
  display: flex; align-items: center; gap: 10px;
}

.avatar {
  width: 32px; height: 32px;
  background: rgba(0,255,136,0.15);
  color: var(--green); font-weight: 700; font-size: .85rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.review-author span {
  font-size: .85rem; font-weight: 600; color: var(--dim);
}

/* ═══════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════ */
.cta-section {
  position: relative; z-index: 2;
  padding: 60px 40px 80px;
}

.cta-box {
  max-width: 700px; margin: 0 auto;
  text-align: center;
  padding: 52px 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.cta-box h2 {
  font-size: 1.8rem; font-weight: 800;
  color: var(--white); margin-bottom: 10px;
}

.cta-box p {
  color: var(--dim); margin-bottom: 28px; font-size: .95rem;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
  background: rgba(8,8,8,0.9);
}

.footer-inner {
  max-width: 1060px; margin: 0 auto;
  padding: 24px 40px;
  display: flex; justify-content: space-between; align-items: center;
}

.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--white);
}

footer p {
  color: var(--dim); font-size: .82rem;
}

/* ═══════════════════════════════════════
   BUY PAGE
   ═══════════════════════════════════════ */
.buy-page {
  position: relative; z-index: 2;
  padding: 60px 24px 100px;
}

.buy-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  max-width: 960px; margin: 0 auto;
}

/* Product card */
.product-card {
  padding: 36px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  align-self: start;
}

.product-badge {
  position: absolute; top: 16px; right: 16px;
  padding: 4px 12px;
  background: var(--green); color: #000;
  font-size: .7rem; font-weight: 800; letter-spacing: 1px;
  border-radius: 6px;
}

.product-icon {
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px rgba(0,255,136,0.4));
}

.product-card h1 {
  font-size: 1.8rem; font-weight: 800; color: var(--white);
}

.product-version {
  color: var(--dim); font-size: .85rem; margin-top: 4px;
}

.price-block {
  margin: 24px 0;
  padding: 20px;
  background: rgba(0,255,136,0.05);
  border: 1px solid rgba(0,255,136,0.15);
  border-radius: 12px;
  text-align: center;
}

.price-old {
  text-decoration: line-through;
  color: var(--dim); font-size: 1rem; margin-right: 8px;
}

.price-new {
  font-size: 2.2rem; font-weight: 900; color: var(--green);
}

.price-label {
  display: block; margin-top: 6px;
  font-size: .82rem; color: var(--dim);
}

.product-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}

.product-features li {
  font-size: .9rem; color: var(--text);
  padding: 8px 12px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
}

/* Payment form */
.payment-section {
  padding: 36px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.payment-section h2 {
  font-size: 1.3rem; font-weight: 700;
  color: var(--white); margin-bottom: 28px;
}

.buy-form {
  display: flex; flex-direction: column; gap: 20px;
}

.form-group {
  display: flex; flex-direction: column; gap: 7px;
}

.form-group label {
  font-size: .85rem; font-weight: 600; color: var(--white);
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%; padding: 13px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white); font-size: .92rem;
  font-family: inherit; outline: none;
  transition: border-color .25s, box-shadow .25s;
}

input:focus {
  border-color: var(--green);
  box-shadow: 0 0 12px var(--green-glow);
}

input::placeholder { color: #444; }

.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

/* Payment methods */
.payment-methods {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}

.payment-option input { display: none; }

.payment-box {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 14px 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .82rem; color: var(--dim);
  font-weight: 500; cursor: pointer;
  transition: all .25s;
}

.payment-icon { font-size: 1.4rem; }

.payment-option input:checked + .payment-box {
  border-color: var(--green);
  color: var(--green);
  background: rgba(0,255,136,0.06);
  box-shadow: 0 0 12px var(--green-glow);
}

.payment-box:hover { border-color: #333; }

/* Card fields */
.card-fields {
  display: flex; flex-direction: column; gap: 16px;
  transition: opacity .3s, max-height .3s;
}

.card-fields.hidden-fields {
  opacity: 0; max-height: 0; overflow: hidden; padding: 0;
}

/* Checkbox */
.checkbox-label {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: .82rem; color: var(--dim);
  line-height: 1.4;
}

.checkbox-label input { display: none; }

.checkmark {
  width: 18px; height: 18px; min-width: 18px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}

.checkbox-label input:checked + .checkmark {
  background: var(--green); border-color: var(--green);
}

.checkbox-label input:checked + .checkmark::after {
  content: '✓'; color: #000; font-size: .7rem; font-weight: 800;
}

/* Pay button */
.pay-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px;
  background: var(--green); color: #000;
  border: none; border-radius: 12px;
  font-size: 1rem; font-weight: 700;
  font-family: inherit; cursor: pointer;
  transition: background .25s, transform .2s, box-shadow .25s;
}

.pay-btn:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,255,136,0.3);
}

.secure-note {
  display: flex; align-items: center; gap: 6px;
  justify-content: center;
  font-size: .78rem; color: var(--dim);
}

/* Success */
.buy-success {
  text-align: center; padding: 48px 24px;
}

.buy-success.hidden { display: none; }

.success-icon { margin-bottom: 20px; }

.buy-success h2 {
  font-size: 1.6rem; font-weight: 800;
  color: var(--white); margin-bottom: 8px;
}

.buy-success > p {
  color: var(--dim); margin-bottom: 28px;
}

.key-box {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 20px 28px;
  background: var(--bg2);
  border: 1px solid rgba(0,255,136,0.25);
  border-radius: 12px;
  margin-bottom: 28px;
}

.key-label {
  font-size: .78rem; color: var(--dim);
}

.key-box code {
  font-size: 1.2rem; font-weight: 700;
  color: var(--green); letter-spacing: 2px;
}

.copy-btn {
  padding: 6px 18px;
  background: rgba(0,255,136,0.12);
  border: 1px solid rgba(0,255,136,0.3);
  border-radius: 8px;
  color: var(--green); font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: all .25s;
  font-family: inherit;
}

.copy-btn:hover {
  background: var(--green); color: #000;
}

.back-link {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--green);
  border-radius: 10px;
  color: var(--green); font-weight: 600;
  transition: all .25s;
}

.back-link:hover {
  background: var(--green); color: #000;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  header { padding: 14px 20px; }
  nav { gap: 14px; }
  .hero { padding: 60px 20px 40px; }
  .features, .reviews, .cta-section { padding: 50px 20px; }
  .feature-grid, .review-grid { grid-template-columns: 1fr; }
  .about { padding: 50px 20px; }
  .about-content { grid-template-columns: 1fr; }
  .buy-container { grid-template-columns: 1fr; }
  .payment-methods { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge { animation: fadeUp .6s ease-out; }
.hero h1    { animation: fadeUp .6s ease-out .1s both; }
.hero-sub   { animation: fadeUp .6s ease-out .2s both; }
.hero-cta   { animation: fadeUp .6s ease-out .3s both; }
.hero-stats { animation: fadeUp .6s ease-out .45s both; }

.feature-card:nth-child(1) { animation: fadeUp .5s ease-out .05s both; }
.feature-card:nth-child(2) { animation: fadeUp .5s ease-out .12s both; }
.feature-card:nth-child(3) { animation: fadeUp .5s ease-out .19s both; }
.feature-card:nth-child(4) { animation: fadeUp .5s ease-out .26s both; }
.feature-card:nth-child(5) { animation: fadeUp .5s ease-out .33s both; }
.feature-card:nth-child(6) { animation: fadeUp .5s ease-out .40s both; }
