:root {
  --yellow: #f7a600;
  --yellow-dark: #d48e00;
  --bg: #0d0f14;
  --surface: #161a22;
  --surface2: #1e2430;
  --border: #2a3040;
  --text: #e8eaf0;
  --muted: #8892a4;
  --green: #0ecb81;
  --red: #f6465d;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

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

.nav-logo span { color: var(--text); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

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

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

.nav-cta {
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--yellow-dark); }

/* ── HERO ── */
.hero {
  padding: 96px 24px 80px;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(247,166,0,0.12) 0%, transparent 70%);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(247,166,0,0.12);
  border: 1px solid rgba(247,166,0,0.3);
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 780px;
  margin: 0 auto 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--yellow);
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-1px); }

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
}

.btn-outline:hover { border-color: var(--yellow); transform: translateY(-1px); }

/* ── STATS ── */
.stats {
  display: flex;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  flex: 1;
  background: var(--surface);
  padding: 32px 24px;
  text-align: center;
}

.stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--yellow);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ── SECTIONS ── */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .tag {
  display: inline-block;
  background: rgba(247,166,0,0.1);
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
}

.section-header p {
  color: var(--muted);
  margin-top: 10px;
  font-size: 1rem;
}

/* ── REFERRAL BOX ── */
.referral-box {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1.5px solid rgba(247,166,0,0.35);
  border-radius: 20px;
  padding: 40px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.referral-text h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.referral-text p {
  color: var(--muted);
  font-size: 0.95rem;
}

.referral-link-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  min-width: 320px;
  flex: 1;
  max-width: 420px;
}

.referral-link-wrap input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--yellow);
  font-size: 0.9rem;
  flex: 1;
  min-width: 0;
}

.copy-btn {
  background: var(--yellow);
  color: #000;
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 16px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.copy-btn:hover { background: var(--yellow-dark); }

/* ── TUTORIAL STEPS ── */
.steps { display: flex; flex-direction: column; gap: 64px; }

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

.step.reverse { direction: rtl; }
.step.reverse > * { direction: ltr; }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yellow);
  color: #000;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.step-content p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.step-tips { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

.tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
}

.tip-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

.warning-tip {
  background: rgba(246,70,93,0.08);
  border-color: rgba(246,70,93,0.3);
  color: #f6c0c8;
}

.warning-tip .tip-icon { color: var(--red); }

.ok-tip { border-color: rgba(14,203,129,0.3); }
.ok-tip .tip-icon { color: var(--green); }

/* ── PLACEHOLDER IMAGE ── */
.img-placeholder {
  background: var(--surface2);
  border: 2px dashed var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
  min-height: 160px;
  transition: border-color 0.2s;
}

.img-placeholder:has(img) { padding: 8px; border-style: solid; }

.img-placeholder:hover { border-color: var(--yellow); }

.img-placeholder .ph-icon {
  font-size: 2.5rem;
  opacity: 0.4;
}

.img-placeholder .ph-label {
  font-weight: 600;
  color: var(--text);
  opacity: 0.5;
}

.img-placeholder .ph-hint {
  font-size: 0.75rem;
  opacity: 0.4;
}

.img-placeholder img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 10px;
  cursor: zoom-in;
  display: block;
  transition: opacity 0.2s;
}

.img-placeholder img:hover { opacity: 0.85; }

/* ── LIGHTBOX ── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 500;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox-overlay.active { display: flex; }

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }

/* ── COPY PROFILE CTA ── */
.cta-box {
  background: linear-gradient(135deg, rgba(247,166,0,0.15) 0%, rgba(247,166,0,0.04) 100%);
  border: 1.5px solid rgba(247,166,0,0.4);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
}

.cta-box h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-box p { color: var(--muted); margin-bottom: 32px; font-size: 1rem; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

footer a { color: var(--yellow); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .step, .step.reverse { grid-template-columns: 1fr; direction: ltr; }
  .referral-box { flex-direction: column; }
  .referral-link-wrap { min-width: 0; max-width: 100%; width: 100%; }
  .stats { flex-direction: column; gap: 1px; }
  nav .nav-links { display: none; }
}
