/* averato.com: Averato's own brand (as portal.averato.com): Inter for text, Montserrat for headings, navy text on a
   light page, the teal → violet gradient. Sizes in rem: the base grows with the screen. */
:root {
  --teal: #33c4c4; --teal-400: #4dd4d4; --teal-600: #1fa9ab; --teal-50: #e5fafa;
  --violet: #6c6fff; --violet-600: #5a5df0; --violet-50: #f3f3ff; --violet-100: #e7e8ff;
  --navy: #1b2a4c; --navy-900: #111c35; --navy-950: #0c1529; --navy-700: #263a63;
  --text: #1b2a4c; --text-2: #46557a; --muted: #7b88a6; --line: #e3e8f1; --line-strong: #cdd5e3;
  --bg: #f4f6fb; --surface: #fff; --ok: #0f9d6e; --ok-bg: #e2f6ee; --warn: #b26b00; --warn-bg: #fff3dc;
  --grad: linear-gradient(120deg, #4dd4d4 0%, #6c6fff 100%);
  --grad-soft: linear-gradient(120deg, rgba(77,212,212,.12), rgba(108,111,255,.12));
  --head: "Montserrat", "Inter Variable", system-ui, sans-serif;
  --body: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px; --shadow: 0 1px 2px rgba(17,28,53,.05), 0 6px 20px rgba(17,28,53,.07);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: clamp(100%, 0.5vw + 0.62rem, 150%); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--body); }
a { color: var(--violet-600); }
a:hover { color: var(--teal-600); }
:focus-visible { outline: 3px solid rgba(108,111,255,.45); outline-offset: 2px; }
img { max-width: 100%; display: block; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 50; background: var(--surface); padding: .5rem 1rem; border-radius: 8px; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 2rem; }

/* the top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; height: 4.25rem; }
.top .logo img { height: 2.4rem; width: auto; }
.top nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.top nav a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.top nav a:hover { color: var(--violet-600); }
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .72rem 1.3rem; border-radius: 999px;
  font: 600 .9375rem var(--body); text-decoration: none; border: 1px solid transparent; transition: transform .15s, box-shadow .15s; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(108,111,255,.28); }
.btn.primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(108,111,255,.34); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--violet); color: var(--violet-600); }
.top .btn { padding: .55rem 1.05rem; }
.menu { display: none; }

/* the hero, on navy */
.hero { background: radial-gradient(60rem 30rem at 85% -10%, rgba(108,111,255,.35), transparent 60%),
  radial-gradient(50rem 30rem at -10% 110%, rgba(77,212,212,.25), transparent 60%), var(--navy-950); color: #dfe6f5; }
.hero .wrap { padding-top: 5.5rem; padding-bottom: 5rem; }
.hero h1 { font: 700 clamp(2.3rem, 1.2rem + 3.4vw, 4rem)/1.08 var(--head); color: #fff; letter-spacing: -.02em; max-width: 52rem; }
.hero h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { font: 600 clamp(1.15rem, 1rem + .6vw, 1.5rem)/1.4 var(--head); color: #fff; margin: 1.4rem 0 1.5rem; max-width: 46rem; }
.hero p { max-width: 46rem; margin-bottom: 1rem; color: #c3cde3; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 2.75rem; }
.hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.hero .btn.ghost:hover { border-color: var(--teal-400); color: var(--teal-400); }
.proof { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .75rem; }
.proof li { padding: 1rem 1.1rem; border-radius: var(--r); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-weight: 500; font-size: .9375rem; line-height: 1.45; position: relative; padding-left: 2.4rem; }
.proof li::before { content: ""; position: absolute; left: 1rem; top: 1.25rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--grad); }

/* sections */
section { padding: 5rem 0; scroll-margin-top: 4.5rem; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font: 600 .8125rem var(--body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: .75rem; }
h2 { font: 700 clamp(1.75rem, 1.2rem + 1.6vw, 2.6rem)/1.15 var(--head); letter-spacing: -.015em; color: var(--navy); max-width: 48rem; }
h3 { font: 600 1.2rem/1.3 var(--head); color: var(--navy); }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 46rem; margin-top: 1.1rem; }
.prose { max-width: 46rem; margin-top: 1.25rem; }
.prose p { margin-bottom: 1rem; color: var(--text-2); }
.prose p strong, .key { color: var(--navy); }
.key { display: block; font: 600 1.15rem/1.45 var(--head); margin-top: 1.5rem; padding-left: 1rem; border-left: 4px solid; border-image: var(--grad) 1; max-width: 46rem; }

/* cards */
.grid { display: grid; gap: 1rem; margin-top: 2.25rem; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem 1.5rem 1.4rem; box-shadow: var(--shadow); }
section.alt .card { background: var(--bg); box-shadow: none; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--text-2); margin-bottom: .75rem; font-size: 1rem; }
.card p:last-child { margin-bottom: 0; }
.card ul { list-style: none; display: grid; gap: .45rem; }
.card li { padding-left: 1.1rem; position: relative; color: var(--text-2); font-size: 1rem; }
.card li::before { content: ""; position: absolute; left: 0; top: .62em; width: .4rem; height: .4rem; border-radius: 50%; background: var(--grad); }
.icon { width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--grad-soft); display: grid; place-items: center; margin-bottom: 1rem;
  font: 700 1rem var(--head); color: var(--violet-600); }

/* the layers: Averato, ATI, TechUPGRADE */
.layers { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; margin-top: 2.25rem; align-items: stretch; }
.layer { border-radius: var(--r); padding: 1.6rem; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.layer.av { border-top: 4px solid var(--violet); }
.layer.tu { border-top: 4px solid var(--teal); }
.layer .tag { font: 600 .8125rem var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.layer h3 { margin: .25rem 0 .9rem; }
.ati { width: 15rem; border-radius: var(--r); padding: 1.4rem; background: var(--navy-950); color: #dfe6f5; display: flex; flex-direction: column; justify-content: center; text-align: center; position: relative; }
.ati b { font: 700 2rem var(--head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ati span { font-size: .9375rem; color: #c3cde3; margin-top: .5rem; }
.ati .arrows { font: 600 1.4rem var(--head); color: var(--teal-400); letter-spacing: .3em; margin-bottom: .25rem; }
.note { margin-top: 1.5rem; padding: 1rem 1.2rem; border-radius: 10px; background: var(--violet-50); border: 1px solid var(--violet-100); color: var(--text-2); font-size: .9375rem; max-width: 46rem; }

/* status badges */
.badge { display: inline-flex; align-items: center; gap: .4rem; font: 600 .8125rem var(--body); padding: .25rem .65rem; border-radius: 999px; margin-bottom: .8rem; }
.badge::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.badge.live { color: var(--ok); background: var(--ok-bg); }
.badge.pilot { color: var(--violet-600); background: var(--violet-50); }
.badge.demo { color: var(--warn); background: var(--warn-bg); }
.badge.dev { color: var(--muted); background: #eef1f7; }
.unit h3 { margin-bottom: .35rem; }
.unit .where { display: block; font-size: .875rem; color: var(--muted); margin-bottom: .75rem; }
.unit .limit { font-size: .9375rem; padding: .7rem .9rem; border-radius: 10px; background: var(--warn-bg); color: #6b4a00; }
.unit .btn { margin-top: .5rem; }
.legend { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .75rem; margin-top: 1.5rem; color: var(--text-2); font-size: .9375rem; }
.legend > div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .8rem .9rem; }
.legend .badge { margin: 0 0 .4rem; }
.legend dd { margin: 0; line-height: 1.5; }
@media (max-width: 1100px) { .legend { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 700px) { .legend { grid-template-columns: 1fr; } }

/* money and agents: the navy band */
.band { background: var(--navy-950); color: #dfe6f5; }
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: var(--teal-400); }
.band .prose p { color: #c3cde3; }
.band .key { color: #fff; }
.band .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); box-shadow: none; }
.band .card p, .band .card li { color: #c3cde3; }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .75rem; margin-top: 1.5rem; max-width: 46rem; }
.modes div { padding: 1rem; border-radius: 12px; text-align: center; font-weight: 600; font-size: .9375rem; }
.modes .off { background: #eef1f7; color: var(--muted); }
.modes .ask { background: var(--violet-50); color: var(--violet-600); }
.modes .act { background: var(--teal-50); color: var(--teal-600); }

/* roadmap */
.road h3 { display: flex; align-items: center; gap: .6rem; }
.road .pill { font: 600 .8125rem var(--body); text-transform: uppercase; letter-spacing: .06em; padding: .2rem .6rem; border-radius: 999px; background: var(--grad); color: #fff; }
.road .pill.later { background: var(--line-strong); color: var(--navy); }

/* the call to action, and the footer */
.final { text-align: center; }
.final h2, .final .lead { margin-left: auto; margin-right: auto; }
.final .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
footer { background: var(--navy-950); color: #9fabc7; padding: 3.5rem 0 2.5rem; font-size: .9375rem; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
footer img { height: 2.2rem; width: auto; margin-bottom: 1rem; }
footer h4 { font: 600 .8125rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: .75rem; }
footer a { color: #c3cde3; text-decoration: none; display: block; margin-bottom: .4rem; }
footer a:hover { color: var(--teal-400); }
footer .copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.25rem; color: #7b88a6; }

@media (max-width: 1240px) {
  .g4, .proof { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .layers { grid-template-columns: 1fr; } .ati { width: auto; }
  .top nav a:not(.btn) { display: none; }
  .menu { display: inline-flex; margin-left: auto; }
  .top nav { margin-left: 0; }
  .top.open nav { position: absolute; top: 4.25rem; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 1rem 2rem 1.5rem; gap: .9rem; }
  .top.open nav a:not(.btn) { display: block; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 1rem; }
  .g2, .g3, .g4, .proof, .modes { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
  .hero .wrap { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  footer .cols { grid-template-columns: 1fr; }
  .top .logo img { height: 2rem; }
  .top.open nav { padding: 1rem 1rem 1.5rem; }
}
/* the language switch: always visible, phones included */
.lang { display: flex; align-items: center; gap: .35rem; font: 600 .875rem var(--body); color: var(--line-strong); order: 2; }
.lang a { color: var(--muted); text-decoration: none; padding: .2rem .25rem; }
.lang a[aria-current] { color: var(--navy); }
.lang a:hover { color: var(--violet-600); }
.top nav { order: 1; } .top .menu { order: 3; }
@media (min-width: 1241px) { .lang { margin-left: .25rem; } }
@media (max-width: 1240px) { .lang { margin-left: auto; } .menu { margin-left: .5rem; } }
/* phones: the top bar keeps the logo, the language switch and the menu; the portal button is in the menu (and the hero) */
.btn { white-space: nowrap; }
@media (max-width: 700px) {
  .top nav .btn { display: none; }
  .top.open nav .btn { display: inline-flex; }
}
/* long words (Bulgarian has many) wrap; the wide card spans two columns only where there are two or more */
h1, h2, h3, .card, .prose p, .lead { overflow-wrap: break-word; hyphens: auto; }
.card.wide { grid-column: span 2; }
@media (max-width: 700px) { .card.wide { grid-column: auto; } }
