/* ==========================================================================
   Avenetic website — main stylesheet
   One file for the whole site. Sections:
   1. Design tokens   2. Base   3. Layout helpers   4. Header / nav
   5. Buttons & chips 6. Sections & cards  7. Page-specific blocks
   8. Forms          9. Footer            10. Responsive breakpoints
   ========================================================================== */

/* 1. DESIGN TOKENS ------------------------------------------------------- */
:root {
  --navy: #011C37;        /* brand navy (from logo) */
  --navy-2: #0A2A4F;      /* raised navy surface */
  --navy-line: #1E3A5C;
  --orange: #FF9000;      /* brand orange (from logo) */
  --orange-soft: #FFB04D; /* orange text on navy */
  --orange-ink: #B45309;  /* orange text on light backgrounds (AA contrast) */
  --orange-ink-hover: #92400E;
  --ink: #0F1B2D;         /* body text */
  --ink-2: #3F4A5A;       /* secondary text */
  --ink-3: #5A6473;       /* captions */
  --on-navy: #D5DDE8;
  --on-navy-2: #C9D4E2;
  --on-navy-3: #9FB0C6;
  --ground: #F7F5F0;      /* page background */
  --surface: #FFFFFF;
  --line: #E6E1D6;
  --line-2: #DCD5C7;
  --field: #C9C2B3;

  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --gutter: 80px;
  --max: 1280px;
  --section-y: 104px;
}

/* 2. BASE ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.2vw, 68px); font-weight: 800; line-height: 1.05; }
h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-ink); }
a:hover { color: var(--orange-ink-hover); }
ul, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3. LAYOUT HELPERS ------------------------------------------------------ */
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--white { background: var(--surface); }
.section--navy { background: var(--navy); color: #fff; }
.section--orange { background: var(--orange); color: var(--navy); }
.section--border { border-bottom: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 48px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.split--wide-right { grid-template-columns: 4fr 7fr; }
.split--hero { grid-template-columns: 2fr 1fr; }
.row-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; }
.eyebrow { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange-ink); }
.section--navy .eyebrow { color: var(--orange-soft); }
.section--orange .eyebrow { color: var(--navy); }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 720px; }
.section--navy .lead { color: var(--on-navy); }
.section--orange .lead { color: var(--navy); }
.muted { color: var(--ink-2); }
.small { font-size: 15px; color: var(--ink-3); }
.maxw-760 { max-width: 760px; }

/* 4. HEADER / NAV -------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .container { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 60px; width: auto; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav__links { display: flex; gap: 32px; list-style: none; padding: 0; font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.nav__links a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav__links a:hover { color: var(--orange-ink); }
.nav__links a[aria-current="page"] { color: var(--orange-ink); border-bottom-color: var(--orange); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }

/* 5. BUTTONS & CHIPS ----------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 26px; border-radius: 12px; font-family: var(--font-display); font-weight: 800; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: var(--navy); }
.btn--primary:hover { background: #FFA02A; color: var(--navy); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); color: #fff; }
.btn--ghost-light { border-color: #5B7291; color: #fff; background: transparent; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 15px; font-weight: 700; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.link-arrow { font-family: var(--font-display); font-weight: 700; text-decoration: none; }
.section--navy .link-arrow { color: var(--orange-soft); }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.chip--navy { background: var(--navy); color: #fff; }
.chip--orange { background: var(--orange); color: var(--navy); }
.chip--soft { background: #F1EEE7; color: var(--ink); }
.pill-list { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; }
.pill-list a { display: inline-block; padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; }
.pill-list a:hover { border-color: var(--orange); }

/* 6. SECTIONS & CARDS ---------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.card--lg { border-radius: var(--radius-lg); padding: 44px; gap: 18px; }
.card--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.card--navy p, .card--navy li { color: var(--on-navy-2); }
.card--navy-2 { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.card--navy-2 p { color: var(--on-navy-2); }
.card--orange { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.card--strong { border: 2px solid var(--navy); }
.card p { color: var(--ink-2); }
.card--orange p { color: var(--navy); }
.card.card--navy p, .card.card--navy li, .card.card--navy-2 p { color: var(--on-navy-2); }
.card ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.card .num { font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--orange); line-height: 1; }
.card .example { font-size: 15px; font-style: italic; color: var(--ink-3); }
.icon { width: 36px; height: 36px; stroke: var(--orange-ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ruled { padding-top: 24px; border-top: 3px solid var(--orange); display: flex; flex-direction: column; gap: 12px; }
.ruled--navy { border-top-color: var(--navy); }
.ruled p { color: var(--ink-2); }
.step-num { font-family: var(--font-display); font-size: 44px; font-weight: 800; color: var(--orange); line-height: 1; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 96px 0 104px; }
.hero__swoosh { position: absolute; right: -440px; top: -230px; width: 1000px; max-width: none; pointer-events: none; }
.hero__swoosh--bottom { top: auto; bottom: -170px; right: -240px; width: 900px; }
.hero .container { position: relative; }
.hero .lead { color: var(--on-navy); }
.hero--orange .lead { color: var(--navy); }
.hero--white .lead { color: var(--ink-2); }
.hero .eyebrow { color: var(--orange-soft); }
.hero--orange .eyebrow { color: var(--navy); }
.hero--white .eyebrow { color: var(--orange-ink); }
.hero__grid { display: grid; grid-template-columns: 7fr 4fr; gap: 64px; align-items: center; }
.hero .stack { gap: 26px; }
.hero--orange { background: var(--orange); color: var(--navy); }
.hero--white { background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }

/* Chat mock (home hero) */
.chat { background: #fff; color: var(--ink); border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; background: var(--navy-2); color: #fff; }
.chat__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: var(--navy); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.chat__head small { display: block; color: #B8C6D8; font-size: 13px; }
.chat__body { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: #F1EEE7; font-size: 15px; line-height: 1.45; }
.bubble { max-width: 86%; padding: 11px 14px; border-radius: 14px; }
.bubble--out { align-self: flex-end; background: #FFE3BF; border-bottom-right-radius: 4px; }
.bubble--in { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }

/* Module tiles (home) */
.tile { padding: 28px; border-radius: var(--radius); background: var(--navy-2); color: #fff; display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.tile p { color: var(--on-navy-2); font-size: 15px; line-height: 1.5; }
.tile__status { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy-3); }
.tile__status--next { color: var(--orange-soft); }
.tile--live { background: var(--orange); color: var(--navy); }
.tile--live p, .tile--live .tile__status { color: var(--navy); }
.tile--link { background: transparent; border: 2px solid var(--orange); justify-content: space-between; }
.tile--link:hover { background: rgba(255,144,0,.08); color: #fff; }

/* Status legend (platform) */
.legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot--live { background: var(--orange); }
.dot--next { background: var(--navy); }
.dot--road { border: 2px solid #8793A3; }
.status { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.status--next { color: var(--navy); }

/* Feature (Automate) */
.feature { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; padding: 48px; border-radius: var(--radius-lg); background: var(--orange); color: var(--navy); }
.feature .tagline { font-family: var(--font-display); font-size: clamp(20px, 2vw, 24px); font-weight: 700; line-height: 1.3; }
.checklist { list-style: none; padding: 28px; margin: 0; background: #fff; border-radius: 18px; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 12px; }
.checklist li::before { content: "✓"; color: var(--orange-ink); font-weight: 800; }

/* Pricing */
.price-card { padding: 40px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; display: flex; flex-direction: column; gap: 18px; }
.price-card--featured { background: var(--navy); color: #fff; border-color: var(--navy); }
.price-card--featured .muted, .price-card--featured li { color: var(--on-navy); }
.price-card ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.price { font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; line-height: 1.2; }
.price small { font-size: 16px; font-weight: 600; opacity: .8; }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: 20px; overflow: hidden; }
.compare th, .compare td { padding: 18px 24px; text-align: left; vertical-align: top; }
.compare thead th { background: var(--navy); color: #fff; font-family: var(--font-display); }
.compare thead th + th { color: var(--on-navy-2); }
.compare tbody tr + tr { border-top: 1px solid var(--line); }
.compare td:first-child { font-weight: 600; }
.compare td + td { color: var(--ink-3); }

/* Industries list */
.industry { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; padding: 44px 0; border-bottom: 1px solid var(--line-2); }
.industry:last-child { border-bottom: 0; }
.industry h2 { font-size: clamp(24px, 2.2vw, 30px); }
.usecases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; font-size: 16px; color: var(--ink-2); }
.usecases strong { display: block; margin-bottom: 4px; color: var(--ink); }

/* Stats */
.stat__value { font-family: var(--font-display); font-size: clamp(40px, 4vw, 56px); font-weight: 800; color: var(--orange); line-height: 1; }
.stat__source { font-size: 14px; color: var(--on-navy-3); }

/* Agenda */
.agenda { list-style: none; padding: 0; }
.agenda li { display: flex; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.agenda li:last-child { border-bottom: 0; }
.agenda .n { font-family: var(--font-display); font-weight: 800; color: var(--orange-ink); width: 32px; flex-shrink: 0; }

/* Sessions */
.session { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.session strong { font-family: var(--font-display); font-size: 19px; display: block; }

/* Team */
.headshot { aspect-ratio: 4 / 3; border-radius: 14px; background: #E9E4D9; display: grid; place-items: center; color: var(--ink-3); font-size: 15px; }
.role { color: var(--orange-ink); font-weight: 700; }

/* Quote */
.quote { max-width: 980px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; font-weight: 600; }
.quote figcaption { color: var(--ink-3); }

/* CTA band */
.cta { display: flex; justify-content: space-between; align-items: center; gap: 48px; flex-wrap: wrap; }
.cta .stack { max-width: 780px; }

/* Mission cards */
.statement { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; font-weight: 700; }

/* Contact details */
.contact-list { display: flex; flex-direction: column; gap: 22px; margin-top: 16px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon { width: 26px; height: 26px; flex-shrink: 0; }
.contact-item strong { font-family: var(--font-display); display: block; }

/* 8. FORMS --------------------------------------------------------------- */
.form { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px; display: flex; flex-direction: column; gap: 20px; }
.form--compact { padding: 32px; gap: 16px; border: 0; border-radius: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; }
.field .small { font-weight: 400; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); padding: 14px; border: 1px solid var(--field); border-radius: var(--radius-sm); background: #fff; width: 100%; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(255,144,0,.45); border-color: var(--orange-ink); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--orange-ink); }
.hp { position: absolute; left: -9999px; } /* honeypot: hidden from people, visible to bots */
.form-status { display: none; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.form-status--ok { display: block; background: #E7F4EA; color: #14532D; }
.form-status--error { display: block; background: #FDECEA; color: #7F1D1D; }

/* 9. FOOTER -------------------------------------------------------------- */
.site-footer { background: var(--navy); color: var(--on-navy-2); padding: 72px 0 40px; border-top: 1px solid var(--navy-line); }
.footer__grid { display: grid; grid-template-columns: 4fr 2fr 2fr 3fr; gap: 40px; }
.footer__brand img { height: 72px; width: auto; }
.footer__brand p { margin-top: 18px; max-width: 320px; font-size: 16px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.footer__col h2 { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.footer__col a { color: var(--on-navy-2); text-decoration: none; }
.footer__col a:hover { color: #fff; }
.footer__col a.accent { color: var(--orange-soft); }
.footer__bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--navy-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--on-navy-3); }
.footer__bottom ul { display: flex; gap: 24px; list-style: none; padding: 0; flex-wrap: wrap; }
.footer__bottom a { color: var(--on-navy-3); }

/* 10. RESPONSIVE --------------------------------------------------------- */
@media (max-width: 1180px) {
  :root { --gutter: 48px; --section-y: 88px; }
  .nav__links { gap: 22px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero .chat { max-width: 460px; }
  .feature { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  /* switch to mobile menu */
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: 88px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 16px; padding: 16px var(--gutter) 24px; display: none; }
  .nav.is-open { display: flex; }
  .nav__links { flex-direction: column; gap: 0; font-size: 17px; }
  .nav__links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links a[aria-current="page"] { border-bottom-color: var(--line); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--wide-right, .split--hero, .industry { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; --section-y: 64px; }
  body { font-size: 16px; }
  .site-header .container { height: 72px; }
  .nav { top: 72px; }
  .brand img { height: 46px; }
  .hero { padding: 64px 0 72px; }
  .hero__swoosh { width: 560px; right: -330px; top: -150px; opacity: .55; }
  .grid-2, .grid-3, .grid-4, .usecases { grid-template-columns: 1fr; }
  .card, .card--lg, .form, .price-card, .feature { padding: 28px; }
  .feature { gap: 28px; }
  .session { flex-direction: column; align-items: flex-start; }
  .compare th, .compare td { padding: 14px 16px; font-size: 15px; }
  .footer__grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
