/* =========================================================
   Aven Automation — AI consulting for small & medium business
   Hand-authored stylesheet. No framework, no build step.
   ========================================================= */

@font-face { font-family:"Inter"; font-style:normal; font-weight:400; font-display:swap;
  src:url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:600; font-display:swap;
  src:url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:700; font-display:swap;
  src:url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:800; font-display:swap;
  src:url("/assets/fonts/inter-latin-800-normal.woff2") format("woff2"); }

:root {
  --bg:        #040912;
  --bg-2:      #060D1B;
  --bg-3:      #08111F;
  --panel:     #0A1524;
  --panel-2:   #0D1B2E;
  --line:      #16273F;
  --line-2:    #1E3450;

  --blue:      #2B8CFF;
  --blue-dark: #1268DA;
  --blue-lite: #63B0FF;
  --cyan:      #38BDF8;

  --text:      #FFFFFF;
  --text-2:    #CBD5E1;
  --muted:     #94A3B8;
  --muted-2:   #64748B;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --pad:  clamp(20px, 5vw, 48px);
  --r:    12px;
  --r-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-lite); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }

.skip-link { position:absolute; left:-9999px; top:0; z-index:999;
  background: var(--blue); color:#fff; padding:12px 20px; font-weight:700; border-radius:0 0 8px 0; }
.skip-link:focus { left:0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Type ---------- */

h1, h2, h3, h4 { color: var(--text); font-weight: 800; letter-spacing: -0.022em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(34px, 4.6vw, 54px); }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 { font-size: clamp(19px, 1.6vw, 21px); font-weight: 700; letter-spacing: -0.012em; }
p  { margin: 0 0 16px; }
.blue { color: var(--blue); }

.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue); margin: 0 0 14px;
}
.lede { font-size: clamp(16px, 1.35vw, 18.5px); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .12s ease, color .18s ease;
  white-space: nowrap; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 22px rgba(43,140,255,.28); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }

.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--blue); color: #fff; background: rgba(43,140,255,.08); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4,9,18,.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 74px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand svg.mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: 0.16em; color: #fff; }
.brand-sub { font-size: 9px; font-weight: 600; letter-spacing: 0.3em; color: var(--blue); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--text-2); font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--blue); }

.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 10px; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 6px var(--pad) 20px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .header-cta { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 520px at 78% 32%, rgba(43,140,255,.20), transparent 66%),
    radial-gradient(700px 420px at 12% 88%, rgba(56,189,248,.08), transparent 62%),
    linear-gradient(180deg, #050B16 0%, #040912 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.02fr .98fr; gap: 40px; align-items: center;
  padding-block: clamp(44px, 6vw, 84px); position: relative; z-index: 1; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { margin-bottom: 30px; font-size: clamp(16px, 1.4vw, 18.5px); color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 320px; }
.hero-visual img { border-radius: var(--r); }
.visual-placeholder {
  width: 100%; aspect-ratio: 4/3; border-radius: var(--r);
  border: 1px dashed var(--line-2);
  background:
    radial-gradient(420px 300px at 42% 40%, rgba(43,140,255,.28), transparent 68%),
    linear-gradient(150deg, #07101F, #0A1728);
  display: grid; place-content: center; text-align: center; gap: 6px; padding: 24px;
}
.visual-placeholder .glyph { width: 92px; height: 92px; margin: 0 auto 10px; opacity: .95; }
.visual-placeholder span { font-size: 12.5px; color: var(--muted-2); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 0; }
}

/* ---------- Benefit row ---------- */

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.benefit { display: flex; gap: 13px; align-items: flex-start; }
.benefit .ico {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-content: center;
  background: rgba(43,140,255,.12); border: 1px solid rgba(43,140,255,.28); color: var(--blue);
}
.benefit .ico svg { width: 19px; height: 19px; }
.benefit strong { display: block; color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.benefit p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 780px) { .benefits { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- Sections ---------- */

.section { padding-block: clamp(52px, 6vw, 88px); }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-deep {
  background: radial-gradient(900px 460px at 50% 0%, rgba(43,140,255,.09), transparent 62%), var(--bg-3);
  border-block: 1px solid var(--line);
}
.section-head { text-align: center; max-width: 880px; margin: 0 auto 44px; }
h1, h2, h3 { text-wrap: balance; }
.section-head .lede { text-wrap: pretty; }
.section-head .lede { margin-inline: auto; }
.section-head.left { text-align: left; margin-inline: 0; }
.section-head.left .lede { margin-inline: 0; }

/* ---------- Cards ---------- */

.cards { display: grid; gap: 20px; }
.cards-5 { grid-template-columns: repeat(5, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1080px) { .cards-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .cards-4, .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .cards-5, .cards-4, .cards-3, .cards-2 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(160deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 22px; display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: rgba(43,140,255,.55); transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.card .ico { color: var(--blue); margin-bottom: 18px; }
.card .ico svg { width: 34px; height: 34px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 16px; flex: 1; }
.card .more { font-size: 14px; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 7px; }
.card .more svg { width: 14px; height: 14px; }
a.card { color: inherit; }
a.card:hover { color: inherit; }

/* horizontal card variant (services page) */
.card-h { flex-direction: row; gap: 18px; align-items: flex-start; }
.card-h .ico { margin-bottom: 0; }
.card-h .body { flex: 1; }

/* ---------- Stats ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { display: flex; gap: 16px; align-items: flex-start; padding: 8px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .ico { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-content: center;
  background: rgba(43,140,255,.12); border: 1px solid rgba(43,140,255,.28); color: var(--blue); }
.stat .ico svg { width: 21px; height: 21px; }
.stat .n { font-size: clamp(24px, 2.5vw, 31px); font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.1; }
.stat .n small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.stat .l { font-size: 14px; font-weight: 700; color: #fff; margin: 4px 0 5px; }
.stat p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
@media (max-width: 980px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding-left: 0; } }

/* ---------- Process ---------- */

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.step { text-align: center; position: relative; }
.step .n {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-content: center; font-weight: 700; font-size: 17px; color: #fff;
  background: var(--blue); box-shadow: 0 0 0 6px rgba(43,140,255,.12);
  position: relative; z-index: 1;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }
.step::after {
  content: ""; position: absolute; top: 23px; left: calc(50% + 34px); right: calc(-50% + 34px);
  border-top: 1px dashed var(--line-2);
}
.step:last-child::after { display: none; }
@media (max-width: 880px) { .process { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r);
  border: 1px solid var(--line-2);
  background:
    linear-gradient(100deg, #0B1728 0%, #0B1728 52%, rgba(11,23,40,.72) 74%, rgba(11,23,40,.35) 100%),
    radial-gradient(600px 300px at 84% 60%, rgba(43,140,255,.22), transparent 70%),
    linear-gradient(140deg, #0A1424, #0D1E33);
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; align-items: center;
  padding: clamp(26px, 3.4vw, 44px);
}
.cta-band h2 { font-size: clamp(22px, 2.5vw, 31px); margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin: 0; font-size: 15px; }
.cta-band .cta-side { text-align: left; }
.cta-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; margin-top: 14px; }
.cta-note svg { width: 15px; height: 15px; color: var(--blue); }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Trust row ---------- */

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--line); padding-top: 30px; margin-top: 42px; }
.trust .item { display: flex; gap: 12px; align-items: flex-start; }
.trust .ico { color: var(--blue); flex: none; }
.trust .ico svg { width: 26px; height: 26px; }
.trust strong { display: block; color: #fff; font-size: 14.5px; font-weight: 700; margin-bottom: 3px; }
.trust p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font-size: 15.5px; font-family: var(--font);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: #fff;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.form-msg { min-height: 22px; font-size: 14px; margin-top: 12px; }

/* ---------- Contact detail list ---------- */

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.contact-list .ico { color: var(--blue); flex: none; }
.contact-list .ico svg { width: 19px; height: 19px; }
.contact-list strong { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.contact-list span, .contact-list a { color: var(--muted); font-size: 15px; }

/* ---------- FAQ / prose ---------- */

.prose h2 { margin: 34px 0 14px; }
.prose h3 { margin: 26px 0 10px; }
.prose ul { color: var(--muted); padding-left: 22px; }
.prose li { margin-bottom: 8px; }

/* ---------- Footer ---------- */

.site-footer { background: #030710; border-top: 1px solid var(--line); padding-block: 52px 26px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 36px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; margin: 0 0 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a, .footer-grid span { color: var(--muted); font-size: 14.5px; }
.footer-grid a:hover { color: var(--blue); }
.footer-about p { color: var(--muted); font-size: 14px; max-width: 34ch; margin: 16px 0 18px; }

.social { display: flex; gap: 12px; }
.social a { width: 32px; height: 32px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  display: grid; place-content: center; color: var(--muted); }
.social a:hover { color: #fff; border-color: var(--blue); background: rgba(43,140,255,.1); }
.social svg { width: 15px; height: 15px; }

.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  color: var(--muted-2); font-size: 13px; }
.footer-bottom a { color: var(--muted-2); }
.footer-bottom a:hover { color: var(--blue); }
.footer-bottom .links { display: flex; gap: 20px; }

.disclaimer { margin-top: 22px; color: var(--muted-2); font-size: 12px; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
