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

:root {
  --bg: #08080f;
  --surface: #0f0f1a;
  --surface2: #13131f;
  --border: #1c1c2e;
  --accent: #6d28d9;
  --accent2: #8b5cf6;
  --accent3: #a78bfa;
  --text: #e2e8f0;
  --muted: #64748b;
  --success: #22c55e;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: rgba(8,8,15,0.92);
  backdrop-filter: blur(16px);
  z-index: 100;
}
.logo { font-weight: 800; font-size: 1.1rem; color: #fff; letter-spacing: -.02em; }
.nav-cta {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: .5rem 1.1rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  transition: background .2s;
}
.nav-cta:hover { background: var(--accent2); }

/* HERO */
.hero {
  padding: 5rem 1.5rem 3rem;
  display: flex;
  justify-content: center;
}
.hero-inner {
  width: 100%;
  max-width: 680px;
  text-align: center;
}

.badge {
  display: inline-block;
  background: rgba(109,40,217,.18);
  border: 1px solid rgba(139,92,246,.35);
  color: var(--accent3);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
}

.gradient {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--muted);
  font-size: .97rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* FORM BOX */
.form-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  text-align: left;
}

.input-group {
  margin-bottom: 1rem;
}
.input-group label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .45rem;
}

.input-row {
  display: flex;
  gap: .6rem;
}

#tokenInput, #urlInput {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .8rem 1rem;
  color: var(--text);
  font-size: .93rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
#tokenInput:focus, #urlInput:focus { border-color: var(--accent2); }
#tokenInput::placeholder, #urlInput::placeholder { color: var(--muted); }

#cloneBtn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .8rem 1.4rem;
  font-size: .93rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .15s;
  font-family: inherit;
  flex-shrink: 0;
}
#cloneBtn:hover:not(:disabled) { background: var(--accent2); transform: translateY(-1px); }
#cloneBtn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.no-token {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  font-size: .85rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: .5rem 1rem;
  font-size: .83rem;
  font-weight: 700;
  transition: background .2s, transform .15s;
}
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-1px); }

/* PROGRESS */
.progress-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.progress-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  font-weight: 600;
  color: #fff;
}

.asset-count {
  background: rgba(139,92,246,.2);
  color: var(--accent3);
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 999px;
}

.terminal {
  background: #07070e;
  padding: 1.25rem 1.5rem;
  min-height: 160px;
  max-height: 300px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: .8rem;
  line-height: 1.9;
}
.terminal .log   { color: #94a3b8; }
.terminal .asset { color: #475569; }
.terminal .asset::before { content: "  ↓ "; color: var(--accent3); }
.terminal .err   { color: #ef4444; }
.cursor { animation: blink 1s step-end infinite; color: var(--accent3); }
@keyframes blink { 50% { opacity: 0; } }

.download-area {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.done-msg { color: var(--success); font-weight: 700; margin-bottom: 1rem; font-size: .95rem; }
.download-btns { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

.btn-preview {
  display: inline-block;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .7rem 1.5rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: border-color .2s, transform .15s;
}
.btn-preview:hover { border-color: var(--accent2); transform: translateY(-1px); }

.btn-download {
  display: inline-block;
  background: var(--success);
  color: #fff;
  padding: .7rem 1.5rem;
  border-radius: 9px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
}
.btn-download:hover { opacity: .88; transform: translateY(-1px); }

/* FEATURES */
.features {
  border-top: 1px solid var(--border);
  padding: 3.5rem 1.5rem;
}
.features-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.feat {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
}
.feat-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }
.feat h3 { font-size: .93rem; font-weight: 700; color: #fff; margin-bottom: .25rem; }
.feat p  { font-size: .85rem; color: var(--muted); line-height: 1.6; }

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .82rem;
}
footer a { color: var(--accent3); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 520px) {
  .input-row { flex-direction: column; }
  #cloneBtn { width: 100%; }
  .no-token { flex-direction: column; align-items: flex-start; }
}
