:root {
  --bg:         #0a0806;
  --bg2:        #100d0a;
  --bg3:        #181210;
  --border:     #2e2218;
  --rust:       #c87941;
  --rust-bright:#e8924a;
  --rust-dim:   #7a4a28;
  --copper:     #b87333;
  --gold:       #c8a84b;
  --gold-dim:   #8a7032;
  --red:        #e05555;
  --text:       #c8b89a;
  --text-dim:   #7a6a58;
  --white:      #f0e8d8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rust); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── LAYOUT ─── */
.container {
  width: min(1320px, 100% - clamp(24px, 4vw, 80px) * 2);
  margin: 0 auto;
}
section { padding: 56px 0; }
section:nth-child(even) { background: var(--bg2); }

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,8,6,0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: min(1320px, 100% - clamp(24px, 4vw, 80px) * 2);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo img { height: 38px; width: auto; display: block; }
.nav-links { display: flex; gap: clamp(16px, 2.5vw, 36px); align-items: center; }
.nav-links a { font-size: 0.875rem; color: var(--text-dim); font-weight: 500; }
.nav-links a:hover { color: var(--rust); text-decoration: none; }
.nav-links a.active { color: var(--rust); }
.nav-cta {
  background: var(--rust); color: #000 !important;
  padding: 7px 18px; border-radius: 4px; font-weight: 700;
  font-size: 0.875rem; transition: background 0.15s;
}
.nav-cta:hover { background: var(--rust-bright); text-decoration: none !important; }

/* ─── HERO ─── */
#hero {
  padding: 72px 0 60px;
  background: radial-gradient(ellipse 70% 50% at 60% 0%, rgba(200,121,65,0.07) 0%, transparent 70%);
}
.hero-logo-wrap { margin-bottom: 32px; }
.hero-logo-wrap img {
  max-width: clamp(260px, 45vw, 560px); height: auto; display: block;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,121,65,0.10); border: 1px solid rgba(200,121,65,0.30);
  border-radius: 100px; padding: 5px 14px; margin-bottom: 22px;
  font-size: 0.78rem; color: var(--rust); letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 600;
}
.hero-badge::before { content: '●'; font-size: 0.5rem; }
h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.6rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.02em;
  color: var(--white); max-width: 900px; margin-bottom: 20px;
}
h1 em { font-style: normal; color: var(--rust); }
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--text);
  max-width: 680px; line-height: 1.7; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--rust); color: #000; padding: 13px 28px;
  border-radius: 5px; font-weight: 700; font-size: 0.95rem;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--rust-bright); text-decoration: none; }
.btn-ghost {
  border: 1px solid var(--border); color: var(--text); padding: 13px 28px;
  border-radius: 5px; font-weight: 500; font-size: 0.95rem;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: var(--rust); color: var(--rust); text-decoration: none; }

.hero-proof {
  margin-top: 52px; display: flex; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap;
}
.proof-num { font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 800; color: var(--white); line-height: 1; }
.proof-num span { color: var(--rust); }
.proof-label { font-size: 0.8rem; color: var(--text-dim); margin-top: 4px; }

/* ─── SECTION LABELS / HEADINGS ─── */
.section-label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--rust); font-weight: 700; margin-bottom: 14px;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.02em;
  color: var(--white); margin-bottom: 16px; line-height: 1.15;
}
.section-intro {
  max-width: 72ch; color: var(--text-dim);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem); margin-top: 12px; line-height: 1.75;
}

/* ─── PROBLEM GRID ─── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 20px; margin-top: 40px;
}
.problem-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 28px; position: relative;
}
.problem-card.bad  { border-left: 3px solid var(--red); }
.problem-card.good { border-left: 3px solid var(--rust); }
.card-tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 10px;
}
.card-tag.red  { color: var(--red); }
.card-tag.rust { color: var(--rust); }
.problem-card h3 { font-size: 1rem; color: var(--white); margin-bottom: 10px; }
.problem-card p  { font-size: 0.9rem; color: var(--text-dim); line-height: 1.65; }

/* ─── COMPARISON TABLE ─── */
.table-wrap { overflow-x: auto; margin-top: 36px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead th {
  text-align: left; padding: 12px 16px;
  background: var(--bg3); color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:hover { background: rgba(255,255,255,0.02); }
tbody td { padding: 13px 16px; vertical-align: top; }
td.vendor { color: var(--text-dim); }
td.cost-bad  { color: var(--red);  font-weight: 600; }
td.cost-good { color: var(--rust); font-weight: 600; }
td.check { color: var(--rust); }
td.cross { color: var(--red); }
.ours-row td { background: rgba(200,121,65,0.05); }
.ours-row td:first-child { border-left: 2px solid var(--rust); }

/* ─── PIPELINE ─── */
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0; margin-top: 48px;
}
.pipe-step {
  background: var(--bg3); border: 1px solid var(--border);
  padding: 26px 22px; position: relative;
}
.pipe-step:not(:last-child)::after {
  content: '→'; position: absolute; right: -14px; top: 50%;
  transform: translateY(-50%);
  color: var(--rust-dim); font-size: 1.2rem; z-index: 1;
}
@media(max-width:900px) {
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipe-step:not(:last-child)::after { display: none; }
}
@media(max-width:540px) {
  .pipeline { grid-template-columns: 1fr; }
}
.pipe-num {
  font-size: 0.7rem; color: var(--rust); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px;
}
.pipe-step h4 { font-size: 0.95rem; color: var(--white); margin-bottom: 8px; }
.pipe-step p  { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; }

/* ─── CAPABILITIES ─── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 20px; margin-top: 40px;
}
.cap-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.cap-card:hover { border-color: var(--rust); transform: translateY(-2px); }
.cap-icon {
  font-size: 1.5rem; margin-bottom: 14px;
  background: rgba(200,121,65,0.10); border: 1px solid rgba(200,121,65,0.25);
  border-radius: 8px; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
}
.cap-card h3 { font-size: 1rem; color: var(--white); margin-bottom: 10px; }
.cap-card p  { font-size: 0.9rem; color: var(--text-dim); line-height: 1.65; }

/* ─── DEMO TERMINAL ─── */
.demo-terminal {
  background: #080604; border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.term-bar {
  background: #110e0b; border-bottom: 1px solid var(--border);
  padding: 10px 16px; display: flex; align-items: center; gap: 8px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }
.term-title { font-size: 0.75rem; color: var(--text-dim); margin-left: 8px; }
.term-body {
  padding: 22px 28px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: clamp(0.75rem, 1.1vw, 0.86rem);
  overflow-x: auto;
}
.term-q  { color: var(--gold); margin-bottom: 6px; }
.term-q::before { content: '? '; color: var(--text-dim); }
.term-a  { color: var(--text); margin-bottom: 4px; }
.term-hl { color: var(--rust); }
.term-warn { color: var(--gold); }
.term-meta { color: var(--text-dim); font-size: 0.78rem; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }

/* ─── PRICING ─── */
.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px; margin-top: 40px;
}
.price-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 28px;
}
.price-card.featured {
  border-color: var(--rust);
  background: linear-gradient(160deg, rgba(200,121,65,0.07) 0%, var(--bg3) 60%);
}
.price-tier {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-dim); font-weight: 700; margin-bottom: 8px;
}
.price-tier.gold { color: var(--gold); }
.price-tier.rust { color: var(--rust); }
.price-name { font-size: 1.1rem; color: var(--white); font-weight: 700; margin-bottom: 6px; }
.price-amount {
  font-size: 1.9rem; font-weight: 800; color: var(--white); line-height: 1;
  margin: 14px 0 4px;
}
.price-amount span { font-size: 1rem; font-weight: 400; color: var(--text-dim); }
.price-recur { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 20px; }
.price-recur strong { color: var(--rust); }
.price-list { list-style: none; }
.price-list li {
  font-size: 0.875rem; color: var(--text); padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 10px;
}
.price-list li:last-child { border-bottom: none; }
.price-list li::before { content: '✓'; color: var(--rust); flex-shrink: 0; margin-top: 1px; }

/* ─── PROOF STATS ─── */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; margin-top: 40px;
}
.proof-item { background: var(--bg3); padding: 28px 22px; text-align: center; }
.proof-big { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--rust); line-height: 1; }
.proof-desc { font-size: 0.82rem; color: var(--text-dim); margin-top: 8px; line-height: 1.5; }

/* ─── CONTACT ─── */
#contact {
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(200,121,65,0.08) 0%, transparent 70%);
  text-align: center;
}
#contact h2 { max-width: 640px; margin: 0 auto 16px; }
#contact > .container > p { max-width: 520px; margin: 0 auto 32px; color: var(--text-dim); }
.contact-note { font-size: 0.78rem; color: var(--text-dim); margin-top: 16px; }
.contact-note a { color: var(--rust); }

/* ─── FOOTER ─── */
footer { border-top: 1px solid var(--border); padding: 28px 0; background: var(--bg); }
.footer-inner {
  width: min(1320px, 100% - clamp(24px, 4vw, 80px) * 2);
  margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { font-size: 0.9rem; font-weight: 700; color: var(--text-dim); }
.footer-logo span { color: var(--rust); }
.footer-right { font-size: 0.8rem; color: var(--text-dim); }

/* ─── MISC ─── */
.highlight { color: var(--rust); font-weight: 600; }
.copper { color: var(--copper); }
.gold   { color: var(--gold); }

/* ─── RESPONSIVE BREAKPOINTS ─── */
@media(max-width:768px) {
  section { padding: 44px 0; }
  #hero { padding: 48px 0 40px; }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media(max-width:540px) {
  .hero-proof { gap: 20px; }
  .proof-num  { font-size: 1.5rem; }
  .hero-logo-wrap img { max-width: 80vw; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { text-align: center; }
  .two-col { grid-template-columns: 1fr !important; }
}
