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

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-input: #1a1a1a;
  --accent: #FF6B35;
  --accent-hover: #e85a26;
  --border: #222;
  --text: #fff;
  --text-muted: #888;
  --text-secondary: #bbb;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.logo {
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-text { color: var(--text-muted); font-size: 14px; }

/* ── Main ── */
main { flex: 1; }

/* ── Hero ── */
.hero {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* ── Form ── */
.hook-form { width: 100%; }
.input-row {
  display: flex;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 6px 6px 20px;
  transition: border-color 0.2s;
}
.input-row:focus-within { border-color: var(--accent); }
#occasionInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  min-width: 0;
}
#occasionInput::placeholder { color: var(--text-muted); }
#generateBtn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
}
#generateBtn:hover { background: var(--accent-hover); }
#generateBtn:active { transform: scale(0.97); }
#generateBtn:disabled { opacity: 0.6; cursor: not-allowed; }
.form-error { color: var(--accent); font-size: 0.85rem; margin-top: 10px; }

/* ── Spinner ── */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Chips ── */
.examples {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}
.examples-label { color: var(--text-muted); font-size: 0.85rem; }
.chip {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--accent); color: var(--text); }

/* ── Results ── */
.results {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 72px;
}
.results-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  color: var(--text-muted);
}

.hook-cards { display: flex; flex-direction: column; gap: 20px; }

.hook-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 0;
  animation: fadeUp 0.35s ease both;
}
.hook-card:nth-child(2) { animation-delay: 0.07s; }
.hook-card:nth-child(3) { animation-delay: 0.14s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hook-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.hook-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hook-text {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.hook-explainer {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.hook-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-copy {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn-copy:hover { border-color: #555; color: var(--text); }
.btn-copy.copied { border-color: #00c853; color: #00c853; }
.btn-generate {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-generate:hover { background: var(--accent-hover); }

/* ── Video preview column ── */
.hook-card-preview {
  position: relative;
  background: #000;
  overflow: hidden;
}
.hook-card-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.template-name-badge {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.5);
  padding: 3px 8px;
}

/* ── How it works ── */
.how-it-works {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 72px;
  text-align: center;
}
.how-it-works h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-muted);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.step-num {
  width: 40px; height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: var(--accent);
}
.step p { font-size: 0.9rem; color: var(--text-secondary); }

/* ── Differentiator ── */
.differentiator {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.differentiator h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}
.differentiator p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* ── FAQ ── */
.faq {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 72px;
}
.faq h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  color: var(--text-muted);
}
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 400;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 20px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Occasions nav ── */
.occasions-nav {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 72px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.occasions-nav h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.occasion-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.occasion-links a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.82rem;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.occasion-links a:hover { border-color: var(--accent); color: var(--text); }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero { padding: 48px 16px 32px; }
  .hook-card { grid-template-columns: 1fr; }
  .hook-card-preview { height: 200px; order: -1; }
  .steps { grid-template-columns: 1fr; }
  .results, .how-it-works { padding-left: 16px; padding-right: 16px; }
  .input-row { flex-direction: column; border-radius: 16px; padding: 12px 16px; gap: 8px; }
  #generateBtn { border-radius: 10px; justify-content: center; }
}
