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

:root {
  --bg:        #0d0d10;
  --bg2:       #13131a;
  --bg3:       #1b1b25;
  --border:    #2a2a38;
  --text:      #e8e8f0;
  --muted:     #888899;
  --accent:    #4a9eff;
  --accent2:   #f5c842;
  --green:     #4ade80;
  --radius:    12px;
  --font:      -apple-system, 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(13, 13, 16, 0.5), rgba(13, 13, 16, 0.5)),
    url('bgForParallax.webp') center var(--parallax-y, 0px) / 100% auto repeat-y;
  pointer-events: none;
  z-index: 0;
}

nav, section, footer { position: relative; z-index: 1; }

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

/* ── Nav ──────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
}
.logo-icon { font-size: 1.4rem; }
.logo-text strong { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  color: #d4d4e8;
}
.nav-links a:hover { color: var(--text); }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.16) 0%, rgba(74, 158, 255, 0.05) 100%);
  border: 1px solid rgba(74, 158, 255, 0.45);
  color: #d4d4e8;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn-ghost:hover {
  border-color: rgba(74, 158, 255, 0.75);
  color: #fff;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.28) 0%, rgba(74, 158, 255, 0.12) 100%);
}

.btn-nav {
  background: var(--accent);
  color: #fff;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity 0.15s;
}
.btn-nav:hover { opacity: 0.85; color: #fff; }

/* ── Sections ─────────────────────────────────────────────────── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 24px;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 56px;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero { border-bottom: 1px solid var(--border); }

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(74, 158, 255, 0.12);
  border: 1px solid rgba(74, 158, 255, 0.3);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.accent { color: var(--accent); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-fine {
  font-size: 0.82rem;
  color: #d4d4e8;
}

/* ── Screenshot mock ──────────────────────────────────────────── */
.hero-visual { display: flex; justify-content: center; }

.hero-logo {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin-bottom: 24px;
}

.hero-splash {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(74, 158, 255, 0.45);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 4px rgba(74, 158, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: block;
}

/* ── Features ─────────────────────────────────────────────────── */
.features { border-bottom: 1px solid var(--border); }

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

.feature-card {
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.16) 0%, rgba(74, 158, 255, 0.05) 100%);
  border: 1px solid rgba(74, 158, 255, 0.45);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: rgba(74, 158, 255, 0.75);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(74, 158, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
  margin: 0 auto 16px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: #bcbcd4;
  line-height: 1.6;
}

/* ── How it works ─────────────────────────────────────────────── */
.how { border-bottom: 1px solid var(--border); }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.08) 0%, rgba(74, 158, 255, 0.03) 100%);
  border: 1px solid rgba(74, 158, 255, 0.2);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.step-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.88rem;
  color: #bcbcd4;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--border);
  padding-top: 36px;
  flex-shrink: 0;
}

/* ── Pricing ──────────────────────────────────────────────────── */
.pricing { border-bottom: 1px solid var(--border); }
.pricing h2, .pricing .section-sub { text-align: center; }

.pricing-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.pricing-card {
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.08) 0%, rgba(74, 158, 255, 0.03) 100%);
  border: 1px solid rgba(74, 158, 255, 0.2);
  border-radius: var(--radius);
  padding: 36px 32px;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pricing-card.featured {
  border-color: rgba(74, 158, 255, 0.5);
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.13) 0%, rgba(74, 158, 255, 0.05) 100%);
  box-shadow: 0 8px 40px rgba(74, 158, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #d4d4e8;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text);
  margin-top: -8px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text);
}

.pricing-card .btn-primary { text-align: center; }

.pricing-fine {
  font-size: 0.75rem;
  color: #d4d4e8;
  text-align: center;
}

/* ── Skins Showcase ───────────────────────────────────────────── */
.skins { border-bottom: 1px solid var(--border); }

.skins-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px 16px;
  row-gap: 32px;
}

.skin-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 12px;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.16) 0%, rgba(74, 158, 255, 0.05) 100%);
  border: 1px solid rgba(74, 158, 255, 0.45);
  border-radius: var(--radius);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.skin-chip:hover {
  border-color: rgba(74, 158, 255, 0.75);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(74, 158, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.skin-chip img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  display: block;
  cursor: zoom-in;
}

/* ── Skin Lightbox ────────────────────────────────────────────── */
.skin-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.skin-lightbox.active { display: flex; }
.skin-lightbox img {
  max-width: min(92vw, 680px);
  max-height: 85vh;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  cursor: default;
}
.skin-lightbox-label {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #d4d4e8;
  pointer-events: none;
  white-space: nowrap;
}
.skin-lightbox-hint {
  font-size: 0.72rem;
  font-weight: 400;
  color: #888899;
  pointer-events: none;
}

.skin-chip span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #bcbcd4;
  letter-spacing: 0.01em;
  text-align: center;
}


@media (max-width: 1000px) {
  .skins-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .skins-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .skins-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  padding: 56px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
}

.footer-logo-img {
  height: 56px;
  width: auto;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  color: #d4d4e8;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.78rem;
  color: #d4d4e8;
  margin-top: 8px;
}

/* ── TOS Modal ────────────────────────────────────────────────── */
.tos-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.tos-overlay.active { display: flex; }

.tos-modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.tos-modal h2 {
  font-size: 1.15rem;
  padding: 24px 28px 0;
  color: var(--text);
}

.tos-intro {
  font-size: 0.85rem;
  color: #d4d4e8;
  padding: 6px 28px 16px;
}

.tos-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 28px 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  line-height: 1.7;
  color: #a0a0b8;
}
.tos-scroll::-webkit-scrollbar { width: 6px; }
.tos-scroll::-webkit-scrollbar-track { background: transparent; }
.tos-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.tos-scroll h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 20px 0 6px;
}
.tos-scroll p { margin-bottom: 8px; }
.tos-scroll ul { padding-left: 1.2em; margin-bottom: 8px; }
.tos-scroll li { margin-bottom: 4px; }

.tos-footer {
  padding: 16px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tos-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.tos-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.tos-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.tos-cancel-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: #d4d4e8;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 0.88rem;
  cursor: pointer;
}
.tos-cancel-btn:hover { color: var(--text); border-color: var(--muted); }

.tos-download-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.15s, background 0.15s;
}
.tos-download-btn.enabled {
  opacity: 1;
  pointer-events: auto;
}
.tos-download-btn.enabled:hover { background: #3a8eef; }

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq { background: transparent; }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: linear-gradient(135deg, rgba(74,158,255,0.16) 0%, rgba(74,158,255,0.05) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(74, 158, 255, 0.45);
  border-radius: 12px;
  transition: border-color 0.2s, border-radius 0.3s;
}

.faq-item:hover { border-color: rgba(74, 158, 255, 0.75); }
.faq-item.open  { border-radius: 20px; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
  font-family: var(--font);
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  content: "\2212";
  transform: rotate(180deg);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 0.93rem;
  color: #b8d8ff;
  line-height: 1.7;
  margin: 0;
}

.faq-answer em {
  color: #b8d8ff;
  font-style: normal;
  font-weight: 500;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }

  .feature-grid { grid-template-columns: 1fr 1fr; }
  .step-arrow { display: none; }
}

@media (max-width: 540px) {
  .feature-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn-nav) { display: none; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}
