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

:root {
  --bg: #080809;
  --surface: #111115;
  --surface-2: #1a1a20;
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.14);
  --text: #eeedf0;
  --text-muted: #7a7986;
  --accent: #e8c547;
  --accent-bg: rgba(232,197,71,0.1);
  --radius: 18px;
  --radius-sm: 10px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { display: block; max-width: 100% }
a { color: inherit; text-decoration: none }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ── Layout ──────────────────────────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ─────────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,9,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.nav-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}
.nav-logo span { color: var(--accent) }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--accent);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  border-radius: 100px;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.88; transform: scale(1.03) }

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid rgba(232,197,71,0.25);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 740px;
  margin: 0 auto 20px;
}
.hero-title em { font-style: normal; color: var(--accent) }
.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  padding: 14px 28px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover { opacity: 0.88; transform: scale(1.03) }
.btn-ghost {
  padding: 14px 28px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-bg) }

/* ── Template Grid ───────────────────────────────────────────────────────────── */
.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 36px;
}
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding-bottom: 80px;
}

/* ── Template Card ───────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.card-preview {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
  overflow: hidden;
}
.card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.card-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.card-btn-demo {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.card-btn-demo:hover { background: var(--surface-2); border-color: var(--text-muted) }
.card-btn-request {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: var(--radius-sm);
  background: var(--accent);
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.card-btn-request:hover { opacity: 0.85 }

/* ── Card preview themes ─────────────────────────────────────────────────────── */
.preview-glitch { background: #0a0003; color: #ff2040 }
.preview-scratch { background: #0e0e08; color: var(--accent) }
.preview-stats { background: linear-gradient(135deg, #1a0a2e 0%, #0d1a40 100%) }

/* ── How it works ────────────────────────────────────────────────────────────── */
.how-section {
  padding: 60px 0 80px;
  border-top: 1px solid var(--border);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.step { display: flex; flex-direction: column; gap: 10px }
.step-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.step-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em }
.step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.55 }

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

/* ── Form page ───────────────────────────────────────────────────────────────── */
.form-page {
  min-height: 100vh;
  padding: 60px 0;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  max-width: 640px;
  margin: 0 auto;
}
@media (max-width: 680px) {
  .form-card { padding: 28px 20px; border-radius: 0; border-left: none; border-right: none }
}
.form-title { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 4px }
.form-subtitle { color: var(--text-muted); font-size: 15px; margin-bottom: 32px }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.form-label-note {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s;
  outline: none;
}
.form-control:focus { border-color: var(--accent) }
.form-control::placeholder { color: var(--text-muted) }
textarea.form-control { min-height: 100px; resize: vertical }
select.form-control { cursor: pointer }
.form-control-file {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.form-control-file:hover { border-color: var(--accent) }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 2px }
.form-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}
.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #000;
  font-size: 16px;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 8px;
}
.form-submit:hover { opacity: 0.88 }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed }
.form-success {
  text-align: center;
  padding: 48px 24px;
  display: none;
}
.form-success.show { display: block }
.form-success-icon { font-size: 52px; margin-bottom: 16px }
.form-success-title { font-size: 24px; font-weight: 800; margin-bottom: 8px }
.form-success-msg { color: var(--text-muted); margin-bottom: 28px }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 60px 0 40px }
  .hero-actions { gap: 10px }
  .btn-primary, .btn-ghost { padding: 12px 22px; font-size: 14px }
  .templates-grid { grid-template-columns: 1fr }
  .steps { grid-template-columns: 1fr }
}
