:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --fg: #f0ece4;
  --fg-muted: #8a857d;
  --accent: #ff6b2b;
  --accent-glow: rgba(255, 107, 43, 0.15);
  --accent-light: #ff8f5e;
  --border: rgba(255, 255, 255, 0.06);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-width: 1120px;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  padding: 120px 24px 100px;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255, 107, 43, 0.3);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.hero-accent {
  color: var(--accent);
  position: relative;
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 107, 43, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ---- PROBLEM ---- */
.problem {
  padding: 100px 24px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.problem-label,
.services-label,
.verticals-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}

.problem h2,
.services h2,
.verticals h2,
.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
}

.problem-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1;
}

.problem-desc {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ---- SERVICES ---- */
.services {
  padding: 100px 24px;
}

.services-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.service-item:hover {
  border-color: rgba(255, 107, 43, 0.25);
  transform: translateY(-2px);
}

.service-icon {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--accent-light);
}

.service-item h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-item p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---- VERTICALS ---- */
.verticals {
  padding: 100px 24px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.verticals-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.verticals-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 560px;
  margin: -28px auto 48px;
  line-height: 1.6;
}

.verticals-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.vertical-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 16px 28px;
  border-radius: 100px;
  transition: border-color 0.2s;
}

.vertical-pill:hover {
  border-color: rgba(255, 107, 43, 0.3);
}

.v-emoji {
  font-size: 20px;
}

/* ---- CLOSING ---- */
.closing {
  padding: 120px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.closing h2 {
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ---- FOOTER ---- */
.site-footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--fg-muted);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero { padding: 80px 20px 60px; }
  .problem, .services, .verticals { padding: 64px 20px; }
  .closing { padding: 80px 20px; }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .problem-card { padding: 28px 24px; }
  .problem-number { font-size: 36px; }

  .service-item { padding: 28px 24px; }

  .verticals-list {
    flex-direction: column;
    align-items: center;
  }

  .vertical-pill {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero { padding: 60px 16px 48px; }
  .hero-sub { font-size: 16px; }
  .problem h2, .services h2, .verticals h2, .closing h2 { font-size: 24px; }
}

/* ---- SHARED BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 107, 43, 0.35);
}

/* ---- HERO CTA ROW ---- */
.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-cta-sub {
  font-size: 14px;
  color: var(--fg-muted);
}

/* ---- GENERATE NAV ---- */
.gen-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}
.gen-nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.gen-nav-cta {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.gen-nav-cta:hover { color: var(--accent); }

/* ---- GENERATE HERO ---- */
.gen-hero {
  position: relative;
  padding: 80px 24px 60px;
  text-align: center;
  overflow: hidden;
}
.gen-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.gen-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

/* ---- GENERATE FORM ---- */
.gen-form-section {
  padding: 0 24px 100px;
}
.gen-form-wrap {
  max-width: 600px;
  margin: 0 auto;
}
.gen-error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 14px;
  color: #ff6b6b;
}
.gen-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.3px;
}
.req { color: var(--accent); }
.opt { font-weight: 400; color: var(--fg-muted); font-size: 13px; }

.form-row input,
.form-row select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-row input::placeholder { color: var(--fg-muted); }
.form-row input:focus,
.form-row select:focus {
  border-color: rgba(255, 107, 43, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 107, 43, 0.1);
}
.form-row select option {
  background: var(--bg-card);
  color: var(--fg);
}

.gen-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  padding: 18px 40px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-top: 8px;
  align-self: flex-start;
}
.gen-submit:hover:not(:disabled) {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 107, 43, 0.35);
}
.gen-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.gen-submit-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.gen-spinner {
  width: 18px;
  height: 18px;
  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); } }

/* ---- RESULTS ---- */
.results-hero {
  position: relative;
  padding: 80px 24px 60px;
  text-align: center;
  overflow: hidden;
}
.results-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.results-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.results-section {
  padding: 0 24px 100px;
}
.results-inner {
  max-width: 800px;
  margin: 0 auto;
}
.results-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.results-tag {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  color: var(--fg-muted);
}

.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 60px;
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  transition: border-color 0.2s;
}
.post-card:hover { border-color: rgba(255, 107, 43, 0.2); }

.post-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.7;
}
.post-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--fg-muted);
  margin-bottom: 10px;
}
.post-caption-wrap { margin-bottom: 20px; }
.post-caption {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg);
  white-space: pre-wrap;
  margin-bottom: 14px;
}
.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.copy-btn:hover { border-color: rgba(255, 107, 43, 0.4); color: var(--accent); }
.copy-btn.copied {
  background: rgba(255, 107, 43, 0.12);
  border-color: rgba(255, 107, 43, 0.4);
  color: var(--accent);
}
.post-image-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}
.post-image-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.results-cta-wrap {
  text-align: center;
  padding: 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 24px;
}
.results-cta-sub {
  font-size: 17px;
  color: var(--fg-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ---- RESPONSIVE: GENERATE & RESULTS ---- */
@media (max-width: 768px) {
  .gen-nav { padding: 16px 20px; }
  .gen-hero { padding: 60px 20px 40px; }
  .gen-form-section { padding: 0 20px 60px; }
  .results-hero { padding: 60px 20px 40px; }
  .results-section { padding: 0 20px 60px; }
  .post-card { padding: 24px 20px; }
  .gen-submit { width: 100%; justify-content: center; }
  .hero-cta-row { flex-direction: column; gap: 12px; }
  .results-cta-wrap { padding: 32px 24px; }
}