/* ============================================================
   Acme Inc Landing Page — Dark Industrial Theme
   Palette: bg #0d0c0b, accent #f5a623, text #e8e4de
   Fonts: Instrument Serif (headings), Satoshi (body)
   ============================================================ */

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

:root {
  --bg:        #0d0c0b;
  --bg-card:   #141312;
  --bg-raised: #1a1917;
  --border:    #2a2826;
  --accent:    #f5a623;
  --accent-dim:#c8851c;
  --text:      #e8e4de;
  --text-muted:#8a8480;
  --text-dim:  #5a5552;
  --radius:    8px;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans:  'Satoshi', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 60px;
  background: rgba(13, 12, 11, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--text);
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Hero examples link */
.hero-examples-link {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.hero-examples-link:hover {
  border-color: var(--accent);
}

/* Demo section examples link */
.demo-examples-link {
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.demo-examples-link:hover {
  border-color: var(--accent);
}

/* ── Layout helpers ───────────────────────────────────────── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5vw;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  color: var(--text);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5vw;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(245, 166, 35, 0.35);
  background: rgba(245, 166, 35, 0.07);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
  max-width: 760px;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

.hero-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.hero-footnote {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Form elements ────────────────────────────────────────── */
.form-input {
  flex: 1 1 260px;
  padding: 0.75rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s;
}

.form-input::placeholder { color: var(--text-dim); }
.form-input:focus { border-color: var(--accent); }

.btn-primary {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover  { background: #fbb740; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-msg {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-msg.success { color: #6fdb8e; }
.form-msg.error   { color: #f87171; }

/* ── Demo section ─────────────────────────────────────────── */
.demo-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(245, 166, 35, 0.02) 0%, transparent 100%);
}

.demo-inner {
  max-width: 1100px;
}

.demo-header {
  margin-bottom: 2.5rem;
}

.demo-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.65;
}

.demo-widget {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Input panel */
.demo-input-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demo-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.demo-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 110px;
  outline: none;
  transition: border-color 0.15s;
}

.demo-textarea::placeholder { color: var(--text-dim); }
.demo-textarea:focus { border-color: var(--accent); }

.demo-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.demo-samples-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.demo-sample-btn {
  font-size: 0.78rem;
  font-family: var(--font-sans);
  color: var(--text-muted);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}

.demo-sample-btn:hover {
  border-color: rgba(245, 166, 35, 0.5);
  color: var(--accent);
  background: rgba(245, 166, 35, 0.07);
}

.demo-run-btn {
  align-self: flex-start;
}

/* Result panel */
.demo-result-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.demo-result-placeholder {
  text-align: center;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.demo-placeholder-icon {
  font-size: 1.5rem;
  opacity: 0.4;
}

.demo-result-placeholder p {
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 220px;
}

.demo-result-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: demo-fade-in 0.3s ease;
}

@keyframes demo-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.demo-result-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.demo-result-icon {
  font-size: 2rem;
  line-height: 1;
}

.demo-result-team-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}

.demo-result-team {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text);
}

.demo-result-priority {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}

.demo-result-priority[data-level="High"] {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.demo-result-priority[data-level="Normal"] {
  background: rgba(245, 166, 35, 0.1);
  color: var(--accent);
  border: 1px solid rgba(245, 166, 35, 0.3);
}

.demo-result-priority[data-level="Low"] {
  background: rgba(111, 219, 142, 0.08);
  color: #6fdb8e;
  border: 1px solid rgba(111, 219, 142, 0.25);
}

.demo-result-action {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 0.85rem 1rem;
  background: var(--bg-raised);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.demo-result-saved {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.demo-saved-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6fdb8e;
  background: rgba(111, 219, 142, 0.08);
  border: 1px solid rgba(111, 219, 142, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
}

.demo-error {
  font-size: 0.9rem;
  color: #f87171;
  text-align: center;
}

/* Post-demo CTA */
.demo-cta {
  margin-top: 2rem;
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  animation: demo-fade-in 0.4s ease;
}

.demo-cta-link {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.demo-cta-link:hover {
  border-color: var(--accent);
}

/* Responsive */
@media (max-width: 700px) {
  .demo-widget {
    grid-template-columns: 1fr;
  }
  .demo-result-panel {
    min-height: unset;
  }
}

/* ── Features ─────────────────────────────────────────────── */
.features {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(245, 166, 35, 0.4);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Social Proof ─────────────────────────────────────────── */
.social-proof {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.quote-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.quote-card p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1rem;
  font-style: italic;
}

.quote-card footer {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.quote-card footer strong {
  color: var(--text);
}

/* ── Subscribe section ────────────────────────────────────── */
.subscribe-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, rgba(245, 166, 35, 0.04) 100%);
}

.subscribe-inner {
  text-align: center;
}

.subscribe-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.subscribe-form {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 560px;
  width: 100%;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.faq-inner {
  max-width: 760px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  font-weight: 600;
  font-size: 0.975rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  user-select: none;
  transition: background 0.15s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s;
}

.faq-item[open] summary { background: var(--bg-raised); }
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  padding: 0 1.25rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
  width: 100%;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 4rem 0 3.5rem; }
  .hero-form { flex-direction: column; }
  .form-input, .btn-primary { width: 100%; }
  .subscribe-form { flex-direction: column; align-items: stretch; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
  .nav-link { display: none; }
}
