/* ============================================
   AXIOM AUTOMATIONS — styles.css
   Shared across all pages
   ============================================ */

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

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── TOKENS ── */
:root {
  --bg:           #f7f6f2;
  --bg-2:         #f0eff9;
  --bg-3:         #ffffff;
  --bg-dark:      #1a2332;
  --bg-dark-2:    #243044;
  --border:       #e2e0d8;
  --border-dark:  #2e3d55;
  --text:         #1a2332;
  --text-muted:   #64748b;
  --text-dim:     #94a3b8;
  --text-faint:   #cbd5e1;
  --heading:      #0f172a;
  --accent:       #2563eb;
  --accent-light: #eff6ff;
  --accent-mid:   #93c5fd;
  --red:          #dc2626;
  --white:        #ffffff;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

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

/* ── LAYOUT ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── NAV ── */
nav {
  background: var(--white);
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-left { display: flex; flex-direction: column; }

.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: var(--heading);
  line-height: 1;
}

.logo span { color: var(--accent); }

.nav-contact {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.nav-contact a { color: var(--accent); }

/* ── BUTTONS ── */
.btn-nav {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 9px 20px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.15s;
}

.btn-nav:hover { opacity: 0.88; text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 13px 28px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.15s;
}

.btn-primary:hover { opacity: 0.88; text-decoration: none; }

.btn-ghost {
  background: none;
  border: 0.5px solid var(--border);
  color: var(--text-muted);
  padding: 12px 22px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); text-decoration: none; }

.btn-white {
  background: var(--white);
  color: var(--heading);
  padding: 13px 30px;
  border-radius: 8px;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.15s;
}

.btn-white:hover { opacity: 0.9; text-decoration: none; }

.btn-outline {
  background: none;
  border: 0.5px solid var(--accent);
  color: var(--accent);
  padding: 10px 22px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}

.btn-outline:hover { background: var(--accent-light); text-decoration: none; }

.btn-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(34px, 5.5vw, 54px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--heading);
  margin-bottom: 1.25rem;
  max-width: 680px;
}

h1 em { font-style: italic; color: var(--accent); }

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--heading);
  margin-bottom: 0.75rem;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.section-intro {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.trust-note {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 1rem;
}

/* ── SECTIONS ── */
.section {
  padding: 4.5rem 0;
  border-bottom: 0.5px solid var(--border);
}

/* ── HERO ── */
.hero {
  background: var(--bg-dark);
  padding: 5rem 0 4rem;
  border-bottom: 0.5px solid var(--border-dark);
}

.hero h1 { color: #f1f5f9; }
.hero h1 em { color: var(--accent-mid); }
.hero .eyebrow { color: var(--accent-mid); }

.hero-sub {
  font-size: 16px;
  color: #94a3b8;
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-cta-box {
  background: var(--bg-dark-2);
  border: 0.5px solid var(--border-dark);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  max-width: 540px;
  margin-bottom: 1rem;
}

.hero-cta-box p {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
}

.hero-cta-box strong { color: #f1f5f9; font-weight: 500; }
.hero .trust-note { color: #475569; }
.hero .btn-ghost { border-color: var(--border-dark); color: #94a3b8; }
.hero .btn-ghost:hover { border-color: #475569; color: #cbd5e1; }

/* ── PROBLEMS GRID ── */
.problems {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.problem-item { background: var(--white); padding: 1.5rem; }

.problem-icon {
  width: 30px;
  height: 30px;
  background: #fef2f2;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.problem-icon svg { width: 15px; height: 15px; }
.problem-item h3 { font-size: 14px; font-weight: 500; color: var(--heading); margin-bottom: 0.4rem; line-height: 1.3; }
.problem-item p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ── SERVICE CARDS ── */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.service-card {
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  background: var(--white);
  transition: border-color 0.2s;
}

.service-card:hover { border-color: var(--accent-mid); }
.service-num { font-size: 11px; font-weight: 500; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 0.75rem; }
.service-card h3 { font-size: 15px; font-weight: 500; color: var(--heading); margin-bottom: 0.5rem; }
.service-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── HOW IT WORKS ── */
.steps { display: flex; flex-direction: column; }

.step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 0.5px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content h3 { font-size: 14px; font-weight: 500; color: var(--heading); margin-bottom: 0.35rem; }
.step-content p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── DEMO BOX ── */
.demo-box {
  background: var(--accent-light);
  border: 0.5px solid var(--accent-mid);
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.demo-box h3 { font-size: 16px; font-weight: 500; color: var(--heading); margin-bottom: 0.4rem; }
.demo-box p { font-size: 13px; color: var(--text-muted); max-width: 400px; line-height: 1.6; }

/* ── CTA SECTION ── */
.cta-section {
  background: var(--bg-dark);
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 { color: #f1f5f9; margin-bottom: 0.75rem; }
.cta-section p { font-size: 16px; color: #64748b; margin-bottom: 2rem; font-weight: 300; max-width: 440px; margin-left: auto; margin-right: auto; }
.cta-note { font-size: 12px; color: #334155; margin-top: 1rem; }

/* ── FOOTER ── */
footer {
  background: var(--white);
  border-top: 0.5px solid var(--border);
  padding: 2rem 0 1.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--heading);
  letter-spacing: -0.3px;
}

.footer-logo span { color: var(--accent); }

.footer-contact {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.9;
  text-align: right;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 0.5px solid var(--border);
}

.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.footer-links a {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text-muted); }
.footer-copy { font-size: 12px; color: var(--text-faint); }

/* ── DEMO PAGE SPECIFIC ── */
.demo-page-hero {
  background: var(--bg-dark);
  padding: 4rem 0 3.5rem;
  border-bottom: 0.5px solid var(--border-dark);
  text-align: center;
}

.demo-page-hero h1 { color: #f1f5f9; margin: 0 auto 1rem; text-align: center; }
.demo-page-hero p { font-size: 16px; color: #64748b; max-width: 520px; margin: 0 auto; font-weight: 300; line-height: 1.7; }

.diagram-section {
  padding: 4rem 0;
  background: var(--bg);
  border-bottom: 0.5px solid var(--border);
}

.diagram-wrap {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1rem;
  max-width: 680px;
  margin: 0 auto;
}

/* ── BACK LINK ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.15s;
}

.back-link:hover { color: var(--accent); text-decoration: none; }

/* ── RESPONSIVE ── */

/* Tablet — tighten spacing */
@media (max-width: 768px) {
  .services { grid-template-columns: 1fr 1fr; }
  .problems { grid-template-columns: 1fr 1fr; }
  .diagram-wrap { padding: 1.5rem 0.5rem; }
}

/* Mobile — full pass */
@media (max-width: 600px) {

  /* Layout */
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }

  /* Nav — stack logo above button, hide email on small screens */
  .nav-inner { padding: 0.875rem 1.25rem; gap: 0.5rem; }
  .logo { font-size: 22px; }
  .nav-contact { display: none; }
  .btn-nav { padding: 8px 16px; font-size: 12px; }

  /* Hero */
  .hero { padding: 3rem 0 2.5rem; }
  .hero-sub { font-size: 15px; }
  .hero-cta-box { padding: 1.25rem; }
  .hero-cta-box p { font-size: 13px; }
  .btn-primary { padding: 12px 22px; font-size: 13px; width: 100%; text-align: center; }
  .btn-ghost { padding: 11px 22px; font-size: 13px; width: 100%; text-align: center; }
  .btn-group { flex-direction: column; }

  /* Sections */
  .section { padding: 3rem 0; }

  /* Problems + services — single column on mobile */
  .problems { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }

  /* Demo box — stack vertically */
  .demo-box { flex-direction: column; align-items: flex-start; }
  .btn-outline { width: 100%; text-align: center; }

  /* How it works */
  .step { gap: 1rem; padding: 1.25rem 0; }

  /* CTA section */
  .cta-section { padding: 3.5rem 1.25rem; }
  .cta-section p { font-size: 14px; }
  .btn-white { width: 100%; text-align: center; padding: 13px 22px; }

  /* Demo page hero */
  .demo-page-hero { padding: 3rem 1.25rem; }
  .demo-page-hero h1 { font-size: 30px; }
  .demo-page-hero p { font-size: 14px; }

  /* Diagram — allow horizontal scroll on very small screens */
  .diagram-wrap {
    padding: 1rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .diagram-wrap svg {
    min-width: 480px;
  }

  /* Footer */
  .footer-top { flex-direction: column; gap: 0.75rem; }
  .footer-contact { text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .footer-links { gap: 1rem; }

  /* Back link */
  .back-link { margin-bottom: 1.5rem; }

  /* Doc pages */
  .doc-wrap { padding: 2.5rem 1.25rem 4rem; }
}
