/* AmplifiedTEK theme tokens — layout values from the engin capture,
   colours mapped onto the AmplifiedTEK palette (navy #253551, charcoal
   #2a2829, light stone #e0e0db, white, logo sky #8cc8e8 → violet #8456d8). */
:root {
  --navy: #253551;          /* AmplifiedTEK accent */
  --navy-deep: #1a263c;     /* footer + deep sections */
  --navy-ink: #131c2c;      /* darkest navy */
  --navy-mid: #34496f;
  --navy-text: #253551;
  --charcoal: #2a2829;      /* AmplifiedTEK dark accent */
  --charcoal-ink: #1d1c1e;
  --stone: #e0e0db;         /* AmplifiedTEK light accent */
  --paper: #f7f7f5;
  --white: #ffffff;
  --sky: #8cc8e8;           /* logo gradient start */
  --sky-deep: #2f6f9f;
  --violet: #8456d8;        /* logo gradient end */
  --violet-deep: #5b3fae;
  --violet-ink: #3f2b80;
  --grad: linear-gradient(90deg, #8cc8e8 0%, #8456d8 100%);
  --grad-btn: linear-gradient(135deg, #6a4bc4 0%, #4a3596 100%);
  --text: #3d3d3d;
  --muted: #76889a;
  --font: "Funnel Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-inter: Inter, sans-serif;
  --pad-x: 38px;
  --col: 1350px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
main { display: block; overflow-x: clip; }

/* ---------- top line + header ---------- */
.topline {
  position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 51;
  background: linear-gradient(90deg, #8cc8e8 0%, #6f8fe0 30%, #8456d8 60%, #5b3fae 80%, #253551 100%);
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  margin-top: 3px;
  height: 56px;
  display: flex; align-items: center;
  padding: 0;
  background: var(--charcoal);
  color: #f3f8ff;
}
.page-home .site-header { height: 52px; }
.brand { display: flex; align-items: center; gap: 7px; height: 22px; flex: none; margin-left: 18px; }
.brand-icon { width: 33px; height: 20px; }
.brand-word { width: 94px; height: auto; }
.main-nav {
  display: flex; align-items: center; justify-content: flex-end; gap: 32px;
  margin-left: auto; margin-right: 12px;
  height: 33px;
}
.main-nav a {
  font-size: 14.6509px; font-weight: 400; color: #f3f8ff;
  line-height: 33px; white-space: nowrap;
}
.main-nav a:hover { color: var(--sky); }
.demo-pill {
  display: flex; align-items: stretch; height: 33px; flex: none;
  border: 1px solid #8456d8; border-radius: 8px; overflow: hidden;
  background: var(--violet-deep); margin-right: 19px;
}
.demo-pill-text {
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px; font-size: 14.6509px; color: #fff; white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.18);
}
.demo-pill-icon {
  width: 52px; border: 0; background: transparent; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.demo-pill-icon img { width: 25px; height: auto; }
.burger {
  display: none; width: 36px; height: 36px; margin-left: auto; margin-right: 18px; padding: 0 8px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 8px; background: transparent;
  flex-direction: column; justify-content: center; gap: 4px;
}
.burger span { display: block; height: 2px; background: #fff; border-radius: 2px; }
.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--charcoal); padding: 8px 20px 20px;
  display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 0; font-size: 16px; color: #f3f8ff; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu .mobile-menu-cta { margin-top: 14px; text-align: center; border-radius: 8px; background: var(--violet-deep); border: 0; }

@media (max-width: 1100px) {
  .main-nav { display: none; }
  .site-header, .page-home .site-header { height: 56px; }
  .demo-pill { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; height: 36px; border-radius: 10px; }
  .demo-pill-text { font-size: 15px; }
  .demo-pill-icon { width: 36px; pointer-events: none; }
  .demo-pill-icon img { width: 16px; }
  .burger { display: flex; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.75);
}
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 48px 56px 0; display: grid; grid-template-columns: minmax(0,1fr) 133px; align-items: end; }
.footer-inner > hr, .footer-inner > p { grid-column: 1 / -1; }
.footer-title { font-size: 36px; font-weight: 300; line-height: 38px; color: #f4f8ff; }
.footer-text { margin-top: 14px; max-width: 560px; font-size: 16px; line-height: 24px; color: #d6e6f4; }
.footer-about { margin-top: 16px; max-width: 560px; font-size: 13px; line-height: 20px; color: rgba(214,230,244,.8); }
.footer-candidates { margin-top: 24px; text-align: center; font-size: 13px; line-height: 20px; color: #d6e6f4; }
.footer-candidates a { color: var(--sky); white-space: nowrap; }
.footer-pill {
  display: inline-flex; align-items: stretch; margin-top: 28px; height: 36px;
  border: 1px solid #8456d8; border-radius: 10px; overflow: hidden; background: var(--violet-deep);
}
.footer-pill a { flex: 1; padding: 0 16px; white-space: nowrap; display: flex; align-items: center; justify-content: center; font-size: 15px; color: #fff; border-right: 1px solid rgba(255,255,255,.2); }
.footer-pill-icon { width: 54px; display: flex; align-items: center; justify-content: center; }
.footer-pill-icon img { width: 22px; height: auto; }
.footer-main { display: contents; }
.footer-left { display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo { margin-top: 56px; }
.footer-logo { display: flex; align-items: center; gap: 8px; height: 30px; }
.footer-logo img:first-child { width: 36px; height: auto; }
.footer-logo img:last-child { width: 106px; height: auto; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; width: 133px; }
.footer-nav a { font-size: 12px; line-height: 16px; color: #d6e6f4; white-space: nowrap; font-weight: 500; }
.footer-nav a:hover { color: #fff; }
.footer-linkedin { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.footer-rule { border: 0; border-top: 1px solid rgba(214,230,244,.18); margin: 28px 0 0; }
.footer-copy { margin-top: 28px; text-align: center; font-size: 11px; line-height: 15px; color: rgba(227,239,252,.84); font-weight: 500; }
.footer-copy.dim { margin-top: 18px; color: rgba(227,239,252,.72); }
.footer-bar {
  margin-top: 30px; height: 28px;
  background: linear-gradient(90deg, #8cc8e8 0%, #7fb1e4 18%, #7a90de 36%, #8456d8 54%, #5b3fae 70%, #3f2b80 84%, #253551 100%);
}
@media (max-width: 900px) {
  .footer-inner { padding: 48px 36px 0; }
}
@media (max-width: 600px) {
  .footer-inner { padding: 44px 20px 0; }
  .footer-title { font-size: 34px; line-height: 40px; }
  .footer-pill { margin-top: 22px; }
  .footer-inner { grid-template-columns: minmax(0,1fr) auto; align-items: start; }
  .footer-left { display: contents; }
  .footer-title, .footer-text, .footer-pill, .footer-about { grid-column: 1 / -1; }
  .footer-nav { grid-row: 4; }
  .footer-pill { justify-self: start; }
  .footer-logo { margin-top: 40px; grid-column: 1; }
  .footer-nav { margin-top: 40px; grid-column: 2; width: auto; }
  .footer-nav { gap: 10px; }
  .footer-nav a { font-size: 13px; }
  .footer-copy { margin-top: 22px; font-size: 12px; }
}

/* ---------- shared helpers ---------- */
.btn-grad { background: var(--grad-btn); color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; }

@media (max-width: 600px) {
  .demo-pill { display: none; } /* too wide beside the logo; CTA is in the menu and hero */
  .brand { gap: 5px; }
  .brand-icon { width: 24px; height: auto; }
  .brand-word { width: 70px; }
}

.footer-inner { align-items: stretch; }
.footer-nav { justify-content: flex-end; }
@media (max-width: 600px) { .footer-inner { align-items: start; } }

/* header: 3px line + 53px bar = content starts at 56px like the original */
.site-header, .page-home .site-header { height: 53px; }
@media (max-width: 1100px) { .site-header, .page-home .site-header { height: 53px; } }
/* footer heights: 517 / 491 / 462 */
@media (max-width: 600px) {
  .footer-inner { padding-top: 40px; }
  .footer-logo, .footer-nav { margin-top: 28px; }
  .footer-rule { margin-top: 20px; }
  .footer-copy { margin-top: 18px; }
  .footer-copy.dim { margin-top: 12px; }
  .footer-bar { margin-top: 22px; }
}

/* footer links sit at the bottom right like the original (not stretched full height) */
@media (min-width: 1101px) {
  .footer-nav { align-self: end; }
}

/* ---------- scroll reveal (classes added by main.js) ---------- */
.reveal-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-on .reveal.in { opacity: 1; transform: none; }
