/* ---------------------------------------------------------------------------
 * AutoClaw AI marketing site — base styles.
 *
 * Brand colors match the AutoClaw AI logo and the existing site at
 * autoclawaimobileversion-2489b4.netlify.app:
 *   - Pure-green `#00FF00` brand accent on deep black
 *   - Silver/white for "AutoClaw" wordmark, green for "AI"
 *   - High-contrast cyberpunk vibe consistent with the buying-engine
 *     positioning
 * ------------------------------------------------------------------------- */

:root {
  --bg:           #000000;   /* deep black, matches logo + existing site */
  --bg-elev:     #0a0a0a;    /* one notch up for cards                   */
  --bg-elev-2:   #141414;    /* two notches up for inner surfaces        */
  --fg:           #ffffff;   /* pure white text                          */
  --fg-muted:    #a3a3a3;    /* zinc-400-ish for body                    */
  --fg-dim:      #6b6b6b;    /* zinc-500-ish for footer / fine print     */
  --border:      #1f1f1f;    /* hairline borders                         */
  --silver:      #d4d4d4;    /* metallic accents (mirror logo wordmark)  */
  --brand:       #00FF00;    /* pure-green primary, matches logo "AI"   */
  --brand-dim:   #00B300;    /* darker green for borders + shadows       */
  --brand-glow:  rgba(0,255,0,.20);
  --link:        #66FF66;    /* slightly softened green for body links   */

  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  color: var(--fg);
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
h1 .accent { color: var(--brand); text-shadow: 0 0 24px var(--brand-glow); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-top: 2em; }
h3 { font-size: 1.125rem; }

code {
  background: var(--bg-elev-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .9em;
}

/* --- Site chrome --------------------------------------------------------- */

.site-header,
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-nav { display: flex; gap: 24px; align-items: center; font-size: .95rem; }
.site-nav a { color: var(--fg-muted); }
.site-nav a:hover { color: var(--fg); text-decoration: none; }
.site-nav .cta {
  background: var(--brand);
  color: #001a00;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px var(--brand-dim), 0 4px 18px var(--brand-glow);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .85rem;
}
.site-nav .cta:hover { background: #66FF66; text-decoration: none; }

.brand img { display: block; }

/* --- Hero ---------------------------------------------------------------- */

.hero {
  padding: 96px 32px 64px;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.hero .lede {
  font-size: 1.2rem;
  color: var(--fg-muted);
  max-width: 680px;
  margin: 1em auto 2em;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.cta {
  display: inline-block;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .2s ease, transform .15s ease;
}
.cta.primary {
  background: var(--brand);
  color: #001a00;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  box-shadow: 0 0 0 1px var(--brand-dim), 0 6px 28px var(--brand-glow);
}
.cta.primary:hover { background: #66FF66; transform: translateY(-1px); text-decoration: none; }
.cta.secondary {
  background: var(--bg-elev);
  color: var(--fg);
  border: 1px solid var(--border);
}
.cta.secondary:hover { background: var(--bg-elev-2); text-decoration: none; }

/* --- Features grid ------------------------------------------------------- */

.features {
  padding: 64px 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.features h2 { text-align: center; margin-bottom: 1em; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.feature-grid article {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.feature-grid article h3 {
  color: var(--brand);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
  text-shadow: 0 0 18px var(--brand-glow);
}
.feature-grid article p { color: var(--fg-muted); margin: 0; }

/* --- Hero kicker + stats ------------------------------------------------- */

.kicker {
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .8rem;
  color: var(--brand);
  margin: 0 0 1.5em;
  text-shadow: 0 0 14px var(--brand-glow);
}

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  max-width: 720px;
}
.hero-stats li {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
}
.hero-stats strong {
  display: block;
  color: var(--brand);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 0 18px var(--brand-glow);
}
.hero-stats span {
  display: block;
  color: var(--fg-muted);
  font-size: .85rem;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* --- Section ledes + Problem -------------------------------------------- */

.section-lede {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 760px;
  margin: 0 auto 2em;
  text-align: center;
}

.problem {
  padding: 80px 32px;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--border);
}

/* --- Cockpit section ----------------------------------------------------- */

.cockpit-section {
  padding: 80px 32px;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.cockpit-section h2 { text-align: center; }
.cockpit-section .kicker { text-align: center; }
.ai-pitch {
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  color: var(--fg-muted);
  font-size: 1.05rem;
  box-shadow: 0 0 32px rgba(0,255,0,.04);
}
.ai-pitch em { color: var(--brand); font-style: italic; }

/* --- Outcomes ------------------------------------------------------------ */

.outcomes {
  padding: 80px 32px;
  max-width: 920px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.outcomes h2 { text-align: center; margin-bottom: 1.5em; }
.outcomes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.outcomes-list li {
  padding: 18px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg-muted);
}
.outcomes-list li strong { color: var(--silver); }

/* --- Trust + Contact ----------------------------------------------------- */

.trust, .contact {
  padding: 64px 32px;
  max-width: 920px;
  margin: 0 auto;
}
.trust ul { color: var(--fg-muted); padding-left: 1.2em; }
.trust li { margin-bottom: 8px; }

/* --- Footer -------------------------------------------------------------- */

.site-footer,
footer {
  border-top: 1px solid var(--border);
  padding: 32px;
  color: var(--fg-dim);
  font-size: .9rem;
  display: grid;
  gap: 8px;
  justify-content: center;
  text-align: center;
}
.site-footer a, footer a { color: var(--fg-muted); }

/* --- Legal-page typography ---------------------------------------------- */

body.prose main {
  max-width: 780px;
  margin: 48px auto;
  padding: 0 32px 64px;
  color: var(--fg);
}
body.prose .updated { color: var(--fg-muted); margin-bottom: 2em; }
body.prose h2 { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--border); }
body.prose h3 { margin-top: 1.5em; color: var(--fg); }
body.prose h4 { margin-top: 1.25em; color: var(--fg-muted); font-size: 1rem; }
body.prose p, body.prose li { color: var(--fg-muted); }
body.prose ul, body.prose ol { padding-left: 1.4em; }
body.prose li { margin-bottom: 6px; }
body.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: .95rem;
}
body.prose th, body.prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
body.prose th { color: var(--fg); font-weight: 600; }
body.prose address { font-style: normal; color: var(--fg-muted); line-height: 1.7; }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 640px) {
  .site-header { flex-direction: column; gap: 12px; padding: 16px 20px; }
  .site-nav { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .hero { padding: 48px 20px 32px; }
  .hero-stats { margin-top: 32px; gap: 16px; }
  .features, .problem, .cockpit-section, .outcomes, .trust, .contact { padding: 56px 20px; }
  body.prose main { padding: 0 20px 48px; }
}
