:root {
  --bg: #0C0C0C;
  --bg-card: #161616;
  --bg-card-hover: #1E1E1E;
  --fg: #F0F0EC;
  --fg-muted: #7A7A72;
  --accent: #CAFE4A;
  --accent-dim: #9BB336;
  --green: #4ADE80;
  --lime: #CAFE4A;
  --yellow: #FCD34D;
  --border: #2A2A2A;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── NAV ─── */
.nav {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: baseline; gap: 1rem; }
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 400;
}
.nav-actions { margin-left: auto; display: flex; gap: 0.75rem; align-items: center; }
.nav-link { font-size: 0.85rem; color: var(--fg-muted); text-decoration: none; transition: color 0.15s; }
.nav-link:hover { color: var(--fg); }
.nav-link--accent {
  background: var(--accent);
  color: #0C0C0C !important;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
}
.nav-link--accent:hover { background: var(--accent-dim); }

/* ─── HERO ─── */
.hero { padding: 7rem 2rem 6rem; }
.hero-inner { max-width: 1100px; margin: 0 auto; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
}
.label-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 1.75rem;
  max-width: 760px;
}

.hero-sub {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 580px;
  margin-bottom: 3.5rem;
  font-weight: 300;
}

.hero-demo { max-width: 520px; }
.demo-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}
.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.demo-url-row {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.demo-url-text { font-size: 0.9rem; color: var(--fg-muted); font-style: italic; }
.demo-arrow { font-size: 1.2rem; color: var(--accent); }
.demo-outputs { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.demo-output { display: flex; align-items: center; gap: 0.75rem; font-size: 0.88rem; }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.demo-dot.green { background: var(--green); }
.demo-dot.lime { background: var(--lime); }
.demo-dot.yellow { background: var(--yellow); }

/* ─── SHARED SECTION ─── */
.section-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 3rem;
}

/* ─── HOW IT WORKS ─── */
.how-it-works { padding: 5rem 2rem; border-top: 1px solid var(--border); }
.how-inner { max-width: 1100px; margin: 0 auto; }
.steps { display: flex; align-items: center; gap: 0; }
.step { flex: 1; }
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  line-height: 1;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.step p { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.6; font-weight: 300; }
.step-connector {
  width: 60px;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 1.5rem;
  align-self: flex-start;
  margin-top: 1.5rem;
}

/* ─── WHAT IT DOES ─── */
.what-it-does { padding: 5rem 2rem; background: var(--bg-card); }
.wid-inner { max-width: 1100px; margin: 0 auto; }
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.cap-card {
  background: var(--bg-card);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cap-icon {
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.cap-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.cap-card p { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.6; font-weight: 300; }

/* ─── MANIFESTO ─── */
.manifesto { padding: 6rem 2rem; }
.manifesto-inner { max-width: 1100px; margin: 0 auto; }
.manifesto-quote {
  max-width: 760px;
  border-left: 2px solid var(--accent);
  padding-left: 2.5rem;
}
.manifesto-quote p {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--fg);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.manifesto-quote p:nth-child(2) { color: var(--accent); font-weight: 700; }
.manifesto-quote p:nth-child(3) { color: var(--fg-muted); font-size: 1.1rem; font-weight: 300; }

/* ─── VISION ─── */
.vision { padding: 6rem 2rem; border-top: 1px solid var(--border); }
.vision-inner { max-width: 1100px; margin: 0 auto; }
.vision-statement {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.vision-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 520px;
  font-weight: 300;
}

/* ─── FOOTER ─── */
.footer { padding: 2rem; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: baseline; gap: 1rem; }
.footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.footer-tagline { font-size: 0.78rem; color: var(--fg-muted); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero { padding: 4rem 1.5rem 4rem; }
  .hero-headline { font-size: 2.6rem; }
  .steps { flex-direction: column; gap: 2rem; }
  .step-connector { display: none; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .what-it-does { padding: 4rem 1.5rem; }
  .manifesto { padding: 4rem 1.5rem; }
  .manifesto-quote { padding-left: 1.5rem; }
  .vision { padding: 4rem 1.5rem; }
}

/* ─── APP UI ─── */
.app-page { min-height: 100vh; display: flex; flex-direction: column; }
.app-main { flex: 1; padding: 4rem 2rem; }
.app-container { max-width: 900px; margin: 0 auto; }

/* Analyzer form */
.analyzer-header { margin-bottom: 3rem; }
.analyzer-header h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}
.analyzer-header p { color: var(--fg-muted); font-size: 1rem; line-height: 1.6; }

.url-form { margin-bottom: 3rem; }
.url-input-wrap { display: flex; gap: 0.75rem; }
.url-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
  color: var(--fg);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s;
}
.url-input:focus { border-color: var(--accent); }
.url-input::placeholder { color: var(--fg-muted); }
.url-submit {
  background: var(--accent);
  color: #0C0C0C;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.url-submit:hover { background: var(--accent-dim); }
.url-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-hint { font-size: 0.78rem; color: var(--fg-muted); margin-top: 0.5rem; }
.form-error { font-size: 0.85rem; color: #F87171; margin-top: 0.5rem; }

/* Status area */
.status-area { margin-bottom: 2rem; }
.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.status-indicator { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.pending { background: var(--yellow); }
.status-dot.completed { background: var(--green); }
.status-dot.failed { background: #F87171; }
.status-label { font-size: 0.85rem; font-weight: 600; }
.status-steps { display: flex; flex-direction: column; gap: 0.5rem; }
.status-step { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--fg-muted); }
.status-step.done { color: var(--green); }
.status-step.active { color: var(--fg); }

/* Business profile */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.profile-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.profile-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.profile-industry { font-size: 0.8rem; color: var(--fg-muted); }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.profile-field {}
.profile-field-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-muted); margin-bottom: 0.4rem; }
.profile-field-value { font-size: 0.9rem; color: var(--fg); line-height: 1.5; }
.tags-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { background: var(--bg-card-hover); border: 1px solid var(--border); border-radius: 4px; padding: 0.2rem 0.6rem; font-size: 0.78rem; color: var(--fg-muted); }

/* Posts section */
.posts-section { margin-top: 2rem; }
.posts-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.posts-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.posts-count { font-size: 0.8rem; color: var(--fg-muted); }
.platform-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.platform-tab {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-body);
}
.platform-tab.active { background: var(--accent); color: #0C0C0C; border-color: var(--accent); font-weight: 600; }
.posts-list { display: flex; flex-direction: column; gap: 0.75rem; }
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
}
.post-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.post-platform-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.badge-linkedin { background: #0A66C2; color: white; }
.badge-twitter { background: #000; color: white; border: 1px solid var(--border); }
.badge-instagram { background: linear-gradient(135deg,#833AB4,#FD1D1D,#F77737); color: white; }
.post-date { font-size: 0.78rem; color: var(--fg-muted); }
.post-content { font-size: 0.9rem; line-height: 1.6; color: var(--fg); }

/* Hidden */
.hidden { display: none; }

/* Responsive */
@media (max-width: 600px) {
  .url-input-wrap { flex-direction: column; }
  .profile-grid { grid-template-columns: 1fr; }
}