/* Automatica marketing site
   Standalone static styles. Tokens mirror docs/BRAND-AND-DEV-REFERENCE.md.
   Colours: orange #FE7839 (accent), grey #474951 (dark). */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --orange: #fe7839;
  --orange-light: #ff9a6c;
  --orange-dark: #d95e25;

  --grey-900: #474951;
  --grey-700: #6b6e78;
  --grey-500: #9a9da6;
  --grey-300: #d4d5d9;
  --grey-100: #edeceb;
  --grey-50: #f7f6f4;
  --white: #ffffff;

  --color-bg: var(--grey-50);
  --color-bg-alt: var(--white);
  --color-bg-dark: var(--grey-900);
  --color-text: var(--grey-900);
  --color-text-muted: var(--grey-700);
  --color-text-faint: var(--grey-500);
  --color-accent: var(--orange);
  --color-border: var(--grey-300);

  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --radius: 12px;
  --maxw: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.1em;
}

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

a:hover {
  text-decoration: underline;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

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

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--grey-900);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--grey-900);
}

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--grey-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header .brand img {
  height: 30px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a.nav-link {
  color: var(--grey-300);
  font-size: 0.9375rem;
  font-weight: 500;
}

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

.nav-toggle {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--grey-900);
  color: var(--white);
  padding: 96px 0 104px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(254, 120, 57, 0.22), transparent 68%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  max-width: 16ch;
  margin-bottom: 0.35em;
}

.hero .lede {
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  color: var(--grey-300);
  max-width: 56ch;
  margin-bottom: 2em;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.module-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.module-pills span {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--grey-300);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 14px;
}

.module-pills span b {
  color: var(--orange-light);
  font-weight: 600;
}

/* ---------- Sections ---------- */
section {
  padding: 88px 0;
}

.section-head {
  max-width: 60ch;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
}

.section-head p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.section-alt {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--grey-100);
  border-bottom: 1px solid var(--grey-100);
}

/* ---------- Workflow ---------- */
.flows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.flow {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.flow h3 {
  font-size: 1.375rem;
  margin-bottom: 0.5em;
}

.flow .chain {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.flow .chain .node {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--grey-900);
  color: var(--white);
  border-radius: 8px;
  padding: 7px 13px;
}

.flow .chain .arrow {
  color: var(--orange);
  font-weight: 700;
}

.flow p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ---------- Module grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--orange);
  box-shadow: 0 12px 30px -18px rgba(71, 73, 81, 0.45);
  transform: translateY(-2px);
}

.card .card-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.375rem;
  margin: 0;
}

.card .q {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.96875rem;
  margin-bottom: 0;
}

.roadmap-row {
  margin-top: 36px;
}

.roadmap-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 16px;
}

.roadmap-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card--roadmap {
  background: var(--color-bg);
  border-color: var(--grey-200, #e4e4e8);
}

.card--roadmap:hover {
  border-color: var(--grey-300);
  box-shadow: none;
  transform: none;
}

.card--roadmap h3 {
  color: var(--grey-500);
}

.card--roadmap .q {
  color: var(--grey-500);
}

.card--roadmap p {
  color: var(--grey-500);
}

.badge-roadmap {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--grey-100);
  color: var(--grey-500);
  border-radius: 999px;
  padding: 3px 9px;
  margin-bottom: 10px;
  white-space: nowrap;
}

/* ---------- Why / features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
}

.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4em;
}

.feature h3::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 3px;
  background: var(--orange);
  vertical-align: middle;
}

.feature p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ---------- CTA band ---------- */
.cta {
  background: var(--grey-900);
  color: var(--white);
  text-align: center;
  padding: 96px 0;
}

.cta img.mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  border-radius: 14px;
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5em;
}

.cta p {
  color: var(--grey-300);
  font-size: 1.125rem;
  max-width: 50ch;
  margin: 0 auto 2em;
}

.cta .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--grey-900);
  color: var(--grey-500);
  padding: 64px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.site-footer .footer-brand img {
  width: 220px;
  max-width: 100%;
  margin-bottom: 18px;
}

.site-footer .footer-brand p {
  font-size: 0.9375rem;
  color: var(--grey-500);
  max-width: 38ch;
  margin-bottom: 0;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-300);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--grey-500);
  font-size: 0.9375rem;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: var(--grey-500);
}

/* ---------- Legal pages ---------- */
.legal {
  background: var(--color-bg);
  padding: 64px 0 96px;
}

.legal .wrap {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(2.25rem, 5vw, 3rem);
  margin-bottom: 0.2em;
}

.legal .updated {
  color: var(--color-text-faint);
  font-size: 0.875rem;
  margin-bottom: 2.5em;
}

.legal h2 {
  font-size: 1.5rem;
  margin-top: 1.8em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--color-border);
}

.legal h3 {
  font-size: 1.1875rem;
  margin-top: 1.4em;
}

.legal p,
.legal li {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.legal ul {
  padding-left: 1.25em;
}

.legal li {
  margin-bottom: 0.5em;
}

.legal .intro {
  font-size: 1.0625rem;
  color: var(--color-text);
}

.legal a {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid,
  .roadmap-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  section {
    padding: 64px 0;
  }
  .nav {
    gap: 16px;
  }
  .nav .nav-link {
    display: none;
  }
  .flows,
  .grid,
  .roadmap-cards,
  .features {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 72px 0 80px;
  }
}
