/* Marshal.AI marketing site — no build step, system fonts only. */

/* ---------- Tokens ---------- */
:root {
  --bg: #020617;
  --panel: #0f172a;
  --border: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-text: #818cf8;   /* link-safe indigo on dark (AA) */
  --accent-soft: rgba(99, 102, 241, 0.14);
  --radius: 1rem;           /* rounded-2xl */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Anchored sections clear the sticky header. */
section[id] {
  scroll-margin-top: 5.5rem;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #ffffff;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: top 120ms ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease,
    transform 150ms ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--accent-hover);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  box-shadow: none;
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1.1rem;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn:hover {
    transition: none;
    transform: none;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  border-radius: 0.5rem;
}

.site-nav ul {
  display: none;
  list-style: none;
  padding: 0;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

@media (min-width: 48rem) {
  .site-nav ul {
    display: flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 4.5rem 5rem;
  background:
    radial-gradient(60rem 32rem at 50% -12rem, rgba(99, 102, 241, 0.22), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(100deg, #f1f5f9 30%, #a5b4fc 75%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #f1f5f9; /* fallback if background-clip: text is unsupported */
}

.tagline {
  margin-top: 1.1rem;
  max-width: 46rem;
  font-size: clamp(1.25rem, 3.2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
}

.lede {
  margin-top: 1rem;
  max-width: 42rem;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

/* Demo card */
.demo-card {
  width: 100%;
  max-width: 38rem;
  margin-top: 3.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.6);
  text-align: left;
}

.demo-bar {
  display: flex;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.demo-bar span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--border);
}

.demo-lines {
  list-style: none;
  margin: 0;
  padding: 1.25rem 1.5rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 2;
  color: var(--muted);
}

.demo-lines span {
  display: inline-block;
  width: 1.25rem;
  color: var(--accent-text);
}

.demo-prompt {
  color: var(--text);
}

.demo-ok span {
  color: #4ade80;
}

.demo-deploy {
  color: var(--accent-text);
}

/* ---------- Sections ---------- */
.section {
  padding-block: 5rem;
}

.section-alt {
  background: rgba(15, 23, 42, 0.45);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: 3rem;
  text-align: center;
}

.section-head h2,
.section-cta h2,
.trust-heading {
  margin-top: 1rem;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-sub {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Cards & grids ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 150ms ease, transform 150ms ease;
}

.card:hover {
  border-color: rgba(129, 140, 248, 0.5);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card:hover {
    transition: none;
    transform: none;
  }
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.975rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Steps */
.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  counter-reset: step;
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-text);
}

.step h3 {
  margin-top: 0.75rem;
}

/* Features */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.1rem;
  border-radius: 0.75rem;
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-text);
}

.feature-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

/* ---------- Trust strip ---------- */
.section-trust {
  padding-block: 4rem;
}

.trust-heading {
  margin-top: 0;
  text-align: center;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.trust-strip li {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.925rem;
  font-weight: 500;
}

.trust-strip li::before {
  content: "\2713\00a0\00a0";
  color: var(--accent-text);
  font-weight: 700;
}

/* ---------- Final CTA ---------- */
.section-cta {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(46rem 24rem at 50% 120%, rgba(99, 102, 241, 0.2), transparent 70%),
    var(--bg);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-inner h2 {
  margin-top: 0;
}

.cta-inner .btn {
  margin-top: 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 40rem) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.925rem;
}

.footer-brand img {
  border-radius: 0.35rem;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.925rem;
}

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

/* ---------- 404 page ---------- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(50rem 28rem at 50% -10rem, rgba(99, 102, 241, 0.2), transparent 70%),
    var(--bg);
}

.error-card {
  max-width: 30rem;
  width: 100%;
  padding: 3rem 2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.error-card img {
  margin-inline: auto;
  border-radius: 0.75rem;
}

.error-code {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-text);
}

.error-card h1 {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.error-card p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
