/* ==========================================================================
   AI Auto Poster Landing Page
   Design language modeled on d4rkw3b.com (mono headings, blueprint grid,
   square edges, terminal details) in a light, friendly teal palette.
   Fonts: JetBrains Mono (display) + Manrope (body).
   ========================================================================== */

:root {
  --bg: #fafaf8;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f7f5;
  --border: #e4e9e7;
  --border-bright: #ccd6d3;
  --text: #1a2421;
  --text-dim: #5b6b66;
  --text-faint: #94a39e;
  --accent: #0d9488;
  --accent-dim: #7fcec4;
  --accent-glow: rgba(13, 148, 136, 0.22);
  --grid: rgba(13, 148, 136, 0.05);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(13, 148, 136, 0.07), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(13, 148, 136, 0.04), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

::selection { background: var(--accent); color: #fff; }

main, .site-header, .site-footer, .mobile-cta { position: relative; z-index: 2; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 800px; }
.center { text-align: center; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--mono);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.02; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.02rem; }
p  { color: var(--text-dim); }
p strong { color: var(--text); font-weight: 600; }

h1 em, h2 em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 24px var(--accent-glow);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: "//"; color: var(--text-faint); }
.section-head .eyebrow { justify-content: center; }

/* ---------- Terminal line ---------- */
.terminal-line {
  font-family: var(--mono);
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.terminal-line .prompt { color: var(--accent); }
.terminal-line .cmd { color: var(--text); }
.terminal-line .ok {
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 1px 8px;
  font-size: 11px;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 22px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px -8px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 40px -8px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-bright);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 15px 28px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(250, 250, 248, 0.82);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--accent);
}
.logo-mark { filter: drop-shadow(0 0 8px var(--accent-glow)); }
.logo-text {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}
.blink {
  font-family: var(--mono);
  font-weight: 800;
  color: var(--accent);
  animation: blink 1.2s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }
.header-nav { display: flex; gap: 28px; }
.header-nav a {
  font-family: var(--mono);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}
.header-nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 90px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero-sub { font-size: 1.1rem; max-width: 56ch; margin-bottom: 36px; }
.hero-sub strong { color: var(--text); }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-trust {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  max-width: 58ch;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}

/* ---------- Run log (hero visual) ----------
   Deliberately stays a dark terminal window on the light page. */
.runlog {
  border: 1px solid #21302c;
  background: #0e1513;
  box-shadow: 0 24px 60px rgba(26, 36, 33, 0.28), 0 0 60px -30px var(--accent-glow);
}
.runlog-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #1b2a26;
  font-family: var(--mono);
  font-size: 12px;
  color: #56675f;
}
.runlog-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 8px #2dd4bf;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.runlog-status {
  margin-left: auto;
  color: #2dd4bf;
  border: 1px solid #17635a;
  padding: 1px 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
}
.runlog-body { padding: 16px 12px 18px; }
.runlog-line {
  display: grid;
  grid-template-columns: 76px 80px 1fr;
  gap: 14px;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
}
.runlog-line:hover { background: #16211e; }
.runlog-line .t { color: #56675f; }
.runlog-line .k { color: #1c9c8d; }
.runlog-line .v { color: #84948e; }
.runlog-line.ok .k { color: #2dd4bf; }
.runlog-line.ok .v { color: #dbe6e2; }
.runlog-line.dim { opacity: 0.4; }

/* ---------- Trust bar ---------- */
.trustbar {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.trustbar-label {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.trustbar-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
}
.trustbar-logos span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 740px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin-bottom: 18px; }
.section-head p { font-size: 1.05rem; color: var(--text-dim); }

/* ---------- Problem ---------- */
.problem h2 { margin-bottom: 26px; }
.problem p { margin-bottom: 18px; font-size: 1.06rem; }

/* ---------- Pipeline ----------
   Horizontal process flow: icon tiles with arrows between steps. */
.pipeline {
  display: flex;
  margin-bottom: 34px;
}
.pipe-step {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 6px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  text-align: center;
}
.pipe-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 19px;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--accent-dim);
  border-right: 2px solid var(--accent-dim);
  transform: rotate(45deg);
}
.pipe-icon {
  width: 48px;
  height: 48px;
  padding: 12px;
  color: var(--accent);
  background: rgba(13, 148, 136, 0.07);
  border: 1px solid var(--accent-dim);
  transition: all 0.15s;
}
.pipe-step:hover .pipe-icon {
  background: rgba(13, 148, 136, 0.14);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.solution-tag {
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  transition: all 0.2s;
}
.feature-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border-bright);
  color: var(--accent);
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 15px; margin-bottom: 8px; }
.feature-card p { font-size: 13px; line-height: 1.6; color: var(--text-dim); }

/* ---------- How it works ---------- */
.how {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.step {
  padding: 36px 30px;
  background: var(--bg-card);
}
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 10px; }
.step p { font-size: 14px; }

/* ---------- SEO content ---------- */
.seo-content h2 { margin-bottom: 20px; }
.seo-content h3 { font-size: 1.15rem; margin: 38px 0 14px; }
.seo-content p { margin-bottom: 16px; }
.seo-content p em { color: var(--accent); font-style: normal; }
.seo-list { list-style: none; margin: 20px 0; }
.seo-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-top: 1px dashed var(--border);
  color: var(--text-dim);
  font-size: 15px;
}
.seo-list li:last-child { border-bottom: 1px dashed var(--border); }
.seo-list li::before {
  content: "+";
  position: absolute;
  left: 4px;
  top: 10px;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Pricing ---------- */
.price-card {
  max-width: 460px;
  margin: 0 auto;
  padding: 44px 40px 40px;
  background: var(--bg-elev);
  border: 1px solid var(--accent-dim);
  box-shadow: 0 0 60px -20px var(--accent-glow), 0 24px 60px rgba(26, 36, 33, 0.10);
  text-align: center;
}
.price-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #fff;
  background: var(--accent);
  padding: 4px 12px;
  margin-bottom: 22px;
}
.price-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.price-amount {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 3.6rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  margin: 12px 0 26px;
}
.price-amount .currency { font-size: 1.6rem; vertical-align: super; color: var(--accent); }
.price-amount .period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0;
}
.price-list { list-style: none; text-align: left; margin-bottom: 30px; }
.price-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  color: var(--text-dim);
  font-size: 14px;
  border-top: 1px dashed var(--border);
}
.price-list li:last-child { border-bottom: 1px dashed var(--border); }
.price-list li::before {
  content: "+";
  position: absolute;
  left: 2px;
  top: 8px;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
}
.price-guarantee {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--accent-dim); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.faq-toggle {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p { padding: 0 22px 20px; font-size: 14px; }
.faq-a em { color: var(--accent); font-style: normal; }

/* ---------- Final CTA ---------- */
.final-cta { border-top: 1px solid var(--border); }
.final-cta h2 { margin-bottom: 18px; }
.final-cta p { margin-bottom: 28px; }
.final-cta .btn { margin-bottom: 24px; }
.final-cta .hero-trust {
  margin: 0 auto;
  border-top: 1px dashed var(--border);
  display: inline-block;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}
.footer-brand { color: var(--text-dim); font-size: 14px; }
.footer-brand strong { font-family: var(--mono); color: var(--text); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }
.footer-nav a {
  font-family: var(--mono);
  color: var(--text-faint);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--accent); }
.footer-copy { font-family: var(--mono); color: var(--text-faint); font-size: 11px; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 60;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.pipe-step.reveal:nth-child(2).visible,
.feature-card.reveal:nth-child(2).visible,
.step.reveal:nth-child(2).visible { transition-delay: 0.06s; }
.pipe-step.reveal:nth-child(3).visible,
.feature-card.reveal:nth-child(3).visible,
.step.reveal:nth-child(3).visible { transition-delay: 0.12s; }
.pipe-step.reveal:nth-child(4).visible,
.feature-card.reveal:nth-child(4).visible { transition-delay: 0.18s; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .hero { padding: 60px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-sub, .hero-trust { max-width: none; }
  .header-nav { display: none; }
  .section { padding: 72px 0; }
  .steps { grid-template-columns: 1fr; }
  .pipeline { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
  .pipe-step { flex-direction: row; justify-content: flex-start; gap: 14px; text-align: left; }
  .pipe-step:not(:last-child)::after { display: none; }
  .pipe-icon { width: 42px; height: 42px; padding: 10px; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .mobile-cta { display: block; }
  .site-header .btn { display: none; }
  .runlog-line { grid-template-columns: 66px 72px 1fr; gap: 8px; font-size: 11px; }
  .price-card { padding: 34px 22px 30px; }
}
