/* AgileAI Edge — shared styles */
:root {
  --navy: #0f1347;
  --ink: #252d4d;
  --muted: #4f5878;
  --purple: #4b22a8;
  --purple-dark: #3a1a85;
  --teal-text: #0b7a77;
  --teal: #1fb5b0;
  --gold: #c8962e;
  --soft: #f5f6fb;
  --line: #e1e4f0;
  --white: #ffffff;
  --radius: 14px;
  --wrap: 1120px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 1.2em; }
li { margin-bottom: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { left: 16px; color: var(--white); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Header + navigation */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 94px; height: 44px; object-fit: contain; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; white-space: nowrap; }
.brand-name .ai { color: var(--teal-text); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--navy); text-decoration: none; font-weight: 500; font-size: 16px;
}
.site-nav a:hover { background: var(--soft); color: var(--purple); }
.site-nav a[aria-current="page"] { color: var(--purple); font-weight: 600; box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.site-nav a.btn-nav { background: var(--purple); color: var(--white); font-weight: 600; margin-left: 8px; border-radius: 10px; box-shadow: none; }
.site-nav a.btn-nav:hover { background: var(--purple-dark); color: var(--white); }

.nav-toggle {
  display: none; background: var(--white); color: var(--navy);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 16px; font: 600 15px var(--font-body); cursor: pointer; min-height: 44px;
}

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 12px;
  font-weight: 600; font-size: 17px; text-decoration: none; text-align: center;
  border: 2px solid var(--purple); min-height: 48px;
}
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--purple-dark); border-color: var(--purple-dark); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--purple); }
.btn-secondary:hover { background: var(--soft); color: var(--purple-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Layout pieces */
.section { padding: 80px 0; }
.section.soft { background: var(--soft); }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal-text);
}
.lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 640px; }
.rule { width: 64px; height: 4px; border-radius: 2px; background: var(--gold); margin: 0 0 22px; border: 0; }

.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-logo { border: 1px solid var(--line); border-radius: 20px; padding: 12px; background: var(--white); box-shadow: 0 14px 40px rgba(15, 19, 71, 0.08); }

.page-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); background: var(--soft); }
.page-hero h1 { max-width: 780px; margin-bottom: 14px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.card h3 { margin-bottom: 10px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .more { display: inline-block; margin-top: 8px; font-weight: 600; }
.card-top { border-top: 4px solid var(--teal); }
.card-top.purple { border-top-color: var(--purple); }

.checks { list-style: none; padding: 0; margin: 0 0 20px; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal);
  box-shadow: inset 0 0 0 5px var(--white), 0 0 0 2px var(--teal);
}

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 20px; }
.steps li {
  counter-increment: step; position: relative; margin: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px 24px 84px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 24px; top: 22px;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--purple); color: var(--white); font: 800 19px var(--font-head);
}
.steps strong { display: block; font: 700 20px var(--font-head); color: var(--navy); margin-bottom: 4px; }

.band { background: var(--navy); color: #dfe3f7; padding: 72px 0; }
.band h2 { color: var(--white); }
.band p { color: #cfd5f0; }
.band a:not(.btn) { color: #9de8e4; }
.band .btn-primary { background: var(--white); color: var(--purple-dark); border-color: var(--white); }
.band .btn-primary:hover { background: var(--soft); }
.band .btn-secondary { background: transparent; color: var(--white); border-color: #8d96c8; }
.band .btn-secondary:hover { background: rgba(255,255,255,0.08); color: var(--white); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-card { display: block; text-decoration: none; color: inherit; }
.contact-card:hover { border-color: var(--purple); }
.contact-card .label { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-text); margin-bottom: 6px; }
.contact-card .value { font: 700 22px var(--font-head); color: var(--navy); overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--soft); padding: 48px 0 32px; font-size: 15px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand .brand-name { font-size: 20px; }
.footer-brand p { margin: 10px 0 0; color: var(--muted); max-width: 320px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { text-decoration: none; color: var(--navy); font-weight: 500; }
.footer-links a:hover { color: var(--purple); text-decoration: underline; }
.footer-title { font: 700 14px var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* About photo */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.photo {
  width: 100%; max-width: 300px; height: auto; aspect-ratio: 364 / 411; object-fit: cover;
  border-radius: 20px; border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(15, 19, 71, 0.10);
}
.checks.two-col { columns: 2; column-gap: 40px; }
.checks.two-col li { break-inside: avoid; }

/* Contact form */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; color: var(--navy); font-size: 16px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--white); border: 1.5px solid #b9bfd6; border-radius: 10px;
  padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--purple); }
.form .btn { justify-self: start; cursor: pointer; font-family: inherit; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Responsive */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .photo { max-width: 260px; }
  .checks.two-col { columns: 1; }
}
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
}
@media (max-width: 780px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 14px 12px; }
  .site-nav a[aria-current="page"] { box-shadow: none; background: var(--soft); border-radius: 10px; }
  .site-nav a.btn-nav { margin: 8px 0 0; text-align: center; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps li { padding-left: 76px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .brand img { width: 72px; height: 34px; }
  .brand-name { font-size: 19px; }
  .btn { width: 100%; }
  .card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
