@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ═══════════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════════ */
:root {
  --bg:        #0F0E0C;
  --bg2:       #171614;
  --surface:   #1E1C19;
  --surface2:  #252320;
  --border:    #2E2C29;
  --border2:   #3A3835;
  --ink:       #F0EDE8;
  --ink2:      #B8B4AE;
  --ink3:      #6E6A64;
  --gold:      #C9A84C;
  --gold2:     #E8C97A;
  --cit:       #4A90D9;
  --cit-dim:   rgba(74,144,217,0.12);
  --fb:        #1877F2;
  --fb-dim:    rgba(24,119,242,0.12);
  --green:     #2ECC71;
  --green-dim: rgba(46,204,113,0.12);
  --red:       #E74C3C;
  --red-dim:   rgba(231,76,60,0.12);
  --radius:    14px;
  --shadow:    0 8px 32px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(15,14,12,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.header-logo em { color: var(--gold); font-style: normal; }

/* ─── Steps nav ─── */
.steps {
  display: flex;
  align-items: center;
  gap: 2px;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink3);
  transition: all 0.25s;
}
.step-item.active {
  color: var(--ink);
  background: var(--surface2);
}
.step-item.done { color: var(--green); }
.step-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface2);
  color: var(--ink3);
  flex-shrink: 0;
  transition: all 0.25s;
}
.step-item.active .step-num { background: var(--gold); color: #000; }
.step-item.done .step-num { background: var(--green); color: #fff; }
.step-sep { color: var(--border2); font-size: 0.8rem; padding: 0 2px; }

/* ═══════════════════════════════════════════════
   MAIN CONTAINER
═══════════════════════════════════════════════ */
.main {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 100px;
}

/* ─── Page title ─── */
.page-hero {
  margin-bottom: 40px;
  animation: fadeUp 0.5s ease both;
}
.page-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.page-hero-label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.page-hero h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--ink);
}
.page-hero p {
  margin-top: 10px;
  color: var(--ink2);
  font-size: 0.92rem;
  max-width: 520px;
}

/* ═══════════════════════════════════════════════
   CARD
═══════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 28px;
  animation: fadeUp 0.5s ease both;
  box-shadow: var(--shadow);
}
.card:nth-child(2) { animation-delay: 0.08s; }
.card:nth-child(3) { animation-delay: 0.16s; }

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.icon-cit  { background: var(--cit-dim); border: 1px solid rgba(74,144,217,0.2); }
.icon-fb   { background: var(--fb-dim);  border: 1px solid rgba(24,119,242,0.2); }
.icon-val  { background: var(--green-dim); border: 1px solid rgba(46,204,113,0.2); }
.icon-dl   { background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.2); }

.card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.card-sub {
  font-size: 0.8rem;
  color: var(--ink3);
  margin-top: 3px;
}

/* ─── Success/locked states ─── */
.card.locked {
  opacity: 0.38;
  pointer-events: none;
  filter: grayscale(0.5);
}
.card.completed {
  border-color: rgba(46,204,113,0.25);
}

/* ═══════════════════════════════════════════════
   FORM ELEMENTS
═══════════════════════════════════════════════ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }

label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink2);
}
.req { color: var(--gold); margin-left: 2px; }

input[type=text],
input[type=url],
input[type=email],
input[type=tel],
textarea,
select {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 15px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--ink3); font-size: 0.87rem; }
input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  background: var(--surface2);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
input.err { border-color: var(--red) !important; }
textarea { resize: vertical; line-height: 1.65; min-height: 90px; }

.field-hint {
  font-size: 0.72rem;
  color: var(--ink3);
  margin-top: -2px;
}
.char-count {
  font-size: 0.72rem;
  color: var(--ink3);
  text-align: right;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s;
}
.char-count.good  { color: var(--green); font-weight: 600; }
.char-count.over  { color: var(--red);   font-weight: 600; }

/* ─── AI Field wrapper ─── */
.ai-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px 2px 6px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-gold {
  background: var(--gold);
  color: #0F0E0C;
}
.btn-gold:hover:not(:disabled) {
  background: var(--gold2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}

.btn-cit {
  background: var(--cit);
  color: #fff;
}
.btn-cit:hover:not(:disabled) {
  background: #5A9FE8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74,144,217,0.35);
}

.btn-fb {
  background: var(--fb);
  color: #fff;
}
.btn-fb:hover:not(:disabled) {
  background: #2486FF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(24,119,242,0.35);
}

.btn-green {
  background: var(--green);
  color: #fff;
}
.btn-green:hover:not(:disabled) {
  background: #3ADE80;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46,204,113,0.35);
}

.btn-ghost {
  background: var(--surface2);
  color: var(--ink2);
  border: 1px solid var(--border2);
}
.btn-ghost:hover:not(:disabled) {
  color: var(--ink);
  border-color: var(--border2);
  background: var(--surface2);
  transform: translateY(-1px);
}

.btn-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* spinner inside button */
.btn .spin {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   LOGO PREVIEW
═══════════════════════════════════════════════ */
.logo-preview-box {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  margin-top: 8px;
}
.logo-preview-box svg {
  max-width: 160px;
  max-height: 160px;
}
.logo-placeholder {
  color: var(--ink3);
  font-size: 0.82rem;
  text-align: center;
}
.logo-placeholder .icon { font-size: 2.2rem; margin-bottom: 8px; }

/* ═══════════════════════════════════════════════
   VALIDATION RESULT
═══════════════════════════════════════════════ */
.val-box {
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 24px;
  animation: fadeUp 0.3s ease;
}
.val-box.ok  { background: var(--green-dim); border: 1px solid rgba(46,204,113,0.25); }
.val-box.err { background: var(--red-dim);   border: 1px solid rgba(231,76,60,0.25); }

.val-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.val-summary { font-size: 0.85rem; color: var(--ink2); line-height: 1.6; }
.val-issues { margin-top: 12px; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.val-issues li {
  font-size: 0.83rem;
  color: var(--ink2);
  padding-left: 18px;
  position: relative;
}
.val-issues li::before { content: '⚠'; position: absolute; left: 0; color: var(--red); }

/* ═══════════════════════════════════════════════
   DOWNLOAD CARDS
═══════════════════════════════════════════════ */
.dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 12px;
}
.dl-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.2s;
}
.dl-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 12px 40px rgba(201,168,76,0.1);
  transform: translateY(-3px);
}
.dl-card .dl-icon { font-size: 3rem; margin-bottom: 12px; }
.dl-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.dl-card p { font-size: 0.78rem; color: var(--ink3); margin-bottom: 20px; }

/* ═══════════════════════════════════════════════
   SECTION DIVIDER
═══════════════════════════════════════════════ */
.section-divider {
  margin: 32px 0 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.section-divider-label {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink2);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ═══════════════════════════════════════════════
   TOAST NOTIFICATION
═══════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--ink);
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.83rem;
  box-shadow: var(--shadow);
  z-index: 9999;
  max-width: 320px;
  transform: translateX(130%);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.toast.show { transform: translateX(0); }
.toast.t-ok  { border-left: 3px solid var(--green); }
.toast.t-err { border-left: 3px solid var(--red); }
.toast.t-info { border-left: 3px solid var(--gold); }

/* ═══════════════════════════════════════════════
   UTILITY & ANIMATIONS
═══════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.text-muted { color: var(--ink3); font-size: 0.82rem; }

/* ─── Responsive ─── */
@media (max-width: 680px) {
  .header { padding: 0 16px; }
  .steps  { display: none; }
  .main   { padding: 28px 14px 80px; }
  .card   { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
}
