/* ============================================
   AgentDev — Landing Page Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0c;
  --surface: #111115;
  --surface-2: #18181d;
  --border: #23232b;
  --text: #f0ede8;
  --text-muted: #8a8795;
  --accent: #e8a23a;
  --accent-dim: rgba(232, 162, 58, 0.15);
  --cyan: #5eead4;
  --green: #4ade80;
  --red: #f87171;
  --yellow: #fbbf24;
  --font: 'DM Sans', system-ui, sans-serif;
  --mono: 'DM Mono', 'Fira Code', monospace;
  --max-w: 1180px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
}

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

/* --- Typography Helpers --- */
.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.section-headline {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

/* --- Site Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.header-nav {
  display: flex;
  gap: 2rem;
}
.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}
.header-nav a:hover { color: var(--text); }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px var(--pad-x) 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 40%, rgba(232,162,58,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  flex: 0 0 52%;
  max-width: 600px;
  position: relative;
  z-index: 1;
}
.hero-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.meta-pill {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* --- Terminal --- */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}
.terminal-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.terminal-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 8px;
}
.terminal-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.t-line {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.t-dim { color: #4a4a58; margin-right: 4px; }
.t-cyan { color: var(--cyan); font-weight: 500; }
.t-green { color: var(--green); font-weight: 500; }
.t-bold { color: var(--text); font-weight: 600; }
.t-spacer { height: 0.75rem; border-top: 1px solid var(--border); margin-top: 4px; }

/* --- Manifesto --- */
.manifesto {
  padding: 80px var(--pad-x);
  border-top: 1px solid var(--border);
}
.manifesto-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}
.manifesto-text {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 800px;
}
.manifesto-text.manifesto-cta {
  color: var(--text);
  font-weight: 600;
  font-size: 1.4rem;
}

/* --- How It Works --- */
.how {
  padding: 80px var(--pad-x);
  background: var(--surface);
}
.how-inner { max-width: var(--max-w); margin: 0 auto; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.step-card {
  padding: 2.5rem 2rem;
  background: var(--bg);
  border-right: 1px solid var(--border);
}
.step-card:last-child { border-right: none; }
.step-number {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  letter-spacing: 0.1em;
}
.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.step-body { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* --- Difference --- */
.difference { padding: 80px var(--pad-x); }
.diff-inner { max-width: var(--max-w); margin: 0 auto; }
.comparison-table {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.875rem;
}
.comp-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.comp-col {
  padding: 1rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.comp-col.comp-highlight {
  background: var(--accent-dim);
  color: var(--accent);
  border-left: 1px solid rgba(232,162,58,0.2);
}
.comp-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.comp-row:last-child { border-bottom: none; }
.comp-label, .comp-val {
  padding: 1rem 1.25rem;
  color: var(--text-muted);
}
.comp-label { font-weight: 500; color: var(--text); }
.comp-val { font-family: var(--mono); font-size: 0.8rem; }
.comp-val.comp-highlight {
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 500;
}

/* --- Pricing --- */
.pricing {
  padding: 80px var(--pad-x);
  background: var(--surface);
}
.pricing-inner { max-width: var(--max-w); margin: 0 auto; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}
.pricing-card--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(232,162,58,0.06) 0%, var(--bg) 100%);
}
.p-tier {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.pricing-card--featured .p-tier { color: var(--accent); }
.p-price {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}
.p-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.p-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.p-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}
.p-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
  top: 0.05em;
}

/* --- Closing --- */
.closing {
  padding: 100px var(--pad-x);
  border-top: 1px solid var(--border);
}
.closing-inner { max-width: var(--max-w); margin: 0 auto; }
.closing-headline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  max-width: 700px;
}
.closing-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2rem;
}
.cta-note {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--accent);
}

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem var(--pad-x) 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
}
.footer-logo {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-links { display: flex; gap: 3rem; }
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem var(--pad-x);
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding-top: 100px; }
  .hero-inner { flex: unset; max-width: 100%; }
  .hero-visual { width: 100%; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { border-right: none; border-bottom: 1px solid var(--border); }
  .step-card:last-child { border-bottom: none; }
  .comp-header, .comp-row { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 600px) {
  .header-nav { gap: 1rem; }
  .hero-headline { font-size: 2.5rem; }
  .comp-header { display: none; }
  .comp-row { grid-template-columns: 1fr 1fr; gap: 0; }
  .comp-label { grid-column: 1; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
  .comp-val { grid-column: 2; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
}