/* ============================= */
/*   SADB — OFFICIAL THEME V1   */
/*   Palantir-ish + Petrol      */
/* ============================= */

@import url("tokens.css");

/* ---- TOKENS: css/tokens.css ---- */
/* ---- RESET ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;

  /* Fundo minimalista escuro */
  background:
    radial-gradient(1100px 620px at 82% -10%, rgba(54, 89, 119, 0.18), transparent 60%),
    radial-gradient(900px 520px at -10% 12%, rgba(148, 163, 184, 0.08), transparent 55%),
    linear-gradient(180deg, #050b15 0%, #09111d 55%, #050b15 100%);
}

/* Tipografia base */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-title); }
h1, h2, h3 { letter-spacing: -0.02em; }
a { color: inherit; }
img, svg, canvas {
  max-width: 100%;
  height: auto;
}
main :is(h1, h2, h3, p, li, dt, dd) {
  text-align: center;
  text-justify: inter-word;
  text-align-last: left;
}

/* ---- BACKGROUND LAYERS ---- */
.bg-layer, .bg-orb {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.earth-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22; /* mais sutil */
}

.bg-gradient {
  z-index: -3;
  background:
    radial-gradient(circle at 16% 12%, rgba(148,163,184,0.10), transparent 38%),
    radial-gradient(circle at 83% 17%, rgba(54,89,119,0.10), transparent 36%),
    radial-gradient(circle at 52% 0%, rgba(255,255,255,0.04), transparent 30%),
    linear-gradient(180deg, rgba(11,17,27,0.0) 0%, rgba(11,17,27,0.36) 55%, rgba(11,17,27,0.0) 100%);
}

.bg-grid {
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.18;
  mask-image: radial-gradient(circle at 50% 18%, black, transparent 78%);
}

.bg-orb { display: none; }

.site-shell { width: 100%; }

/* ============================= */
/*            NAVBAR             */
/* ============================= */

.topbar{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;

  background: linear-gradient(180deg, rgba(5,11,21,.94), rgba(5,11,21,.82));

  /* vidro escuro elegante */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 4px;
  border-bottom: 1px solid rgba(148,163,184,0.12);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 18px 42px rgba(0,0,0,0.28);

  z-index: 1000;
}

/* Linha técnica no topo */
.topbar::before{
  content:"";
  position:absolute;
  left:0; top:0;
  width:100%; height:2px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0),
    rgba(255,255,255,0.30),
    rgba(255,255,255,0)
  );
  opacity: 0.85;
  pointer-events:none;
}

.brand,
.brand-logo{
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-family: var(--font-brand);
  margin-right:auto;
}

.brand-wordmark{
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.96;
}

.brand-wordmark::after{
  content:"TECHNOLOGIES";
  display:inline-block;
  margin-left:.7rem;
  color:rgba(217,226,236,.56);
  font-family:var(--font-body);
  font-size:.52rem;
  font-weight:700;
  letter-spacing:.18em;
  vertical-align:middle;
}

.topbar .brand-wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
}

.topbar .brand-wordmark::after {
  display: inline-block;
  margin: 0 0 0 .7rem;
  color: #ffffff;
  font-size: 0.5rem;
  line-height: 1;
  opacity: 0.9;
}

body.site-nav-desktop .topbar {
  gap: 28px;
}

body.site-nav-desktop .topbar-right {
  flex: 1;
}

body.site-nav-desktop .topnav {
  width: 100%;
  justify-content: flex-end;
  gap: 4px;
  overflow: visible;
}

body.site-nav-desktop .topnav a {
  padding: 8px 9px;
  color: rgba(205, 217, 222, 0.8);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
}

body.site-nav-desktop .topnav a:hover,
body.site-nav-desktop .topnav a.active {
  color: #ffffff;
  border-color: rgba(212, 155, 63, 0.32);
  background: rgba(212, 155, 63, 0.07);
}

.brand-symbol{
  color: var(--brand-gold);
  font-family: inherit;
  font-weight: inherit;
}

.brand-lambda,
.aegis-name-symbol{
  color: var(--brand-gold) !important;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
}

.product-wordmark{
  color:#fff !important;
  font:inherit;
}

.product-wordmark .brand-lambda{
  color:var(--brand-gold) !important;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-left:auto;
  justify-content:flex-end;
}

.topnav {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.topnav::-webkit-scrollbar {
  display: none;
}

/* Links com presença técnica */
.topnav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: var(--font-title);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: rgba(107,114,128,0.96);
  font-weight: 700;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  line-height: 1;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.topnav a:hover {
  color: rgba(255,255,255,0.98);
  border-color: rgba(230,237,246,0.14);
  background: rgba(230,237,246,0.05);
  transform: translateY(-1px);
}

/* underline elegante */
.topnav a::after{
  display: none;
}

/* ============================= */
/*             MAIN              */
/* ============================= */

main {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 92px var(--gutter-page) var(--space-12); /* 92px por causa da navbar fixa */
}

.container,
.container-wide,
.container-readable {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter-page);
}

.container { max-width: var(--content-max); }
.container-wide { max-width: var(--content-dashboard); }
.container-readable { max-width: var(--content-readable); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
}

/* ============================= */
/*        HERO / SECTIONS        */
/* ============================= */

.hero,
.section {
  border: 1px solid rgba(230,237,246,0.10);
  border-radius: var(--radius-lg);

  background:
    linear-gradient(165deg, rgba(22,34,53,0.78), rgba(11,17,27,0.88));

  box-shadow: 0 26px 64px rgba(0,0,0,0.28);
  padding: clamp(22px, 4vw, 42px);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px 24px;
  align-items: start;
  text-align: initial;
}

/* Kicker */
.eyebrow,
.kicker {
  text-transform: uppercase;
  color: var(--gold-soft);
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-title);
  text-transform: uppercase;
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  line-height: 0.96;
  letter-spacing: 0.10em; /* estilo wordmark */
  color: rgba(230,237,246,0.98);
  margin: 0 auto 14px;
  text-align: center;
}

.hero-lead {
  max-width: 980px;
  color: rgba(154,167,189,0.92);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  text-align: justify;
  text-align-last: left;
  margin: 0 auto 22px;
}

/* Botões */
.hero-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-bottom: 18px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  width: min(100%, 340px);
  min-height: 44px;
  min-width: 110px;
  padding: 10px 18px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    transform var(--duration-base) var(--ease-standard),
    background-color var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard);
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  color: rgba(230,237,246,0.98);
  background: linear-gradient(110deg, rgba(54,89,119,0.94), rgba(30,44,60,0.86));
  border-color: rgba(255,255,255,0.10);
}
.btn-primary:hover { background: linear-gradient(110deg, rgba(70,111,139,0.96), rgba(41,59,77,0.90)); }

.btn-secondary {
  color: rgba(230,237,246,0.90);
  border-color: rgba(230,237,246,0.20);
  background: rgba(230,237,246,0.04);
}
.btn-secondary:hover {
  border-color: rgba(230,237,246,0.32);
  background: rgba(230,237,246,0.06);
}

/* Cards / grids */
.section {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px 20px;
}

.section-head,
.section-intro { grid-column: 1 / -1; text-align: initial; }

.section-head {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: rgba(230,237,246,0.98);
}

.section-intro {
  max-width: 980px;
  margin: 6px auto 8px;
  color: rgba(154,167,189,0.92);
}

.feature-grid {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px 20px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}

.feature-grid .feature-card {
  height: 100%;
}

.micro-card,
.feature-card,
.case-card,
.integration-grid article,
.node {
  border: 1px solid rgba(230,237,246,0.10);
  border-radius: var(--radius-md);
  background: rgba(230,237,246,0.03);
  box-shadow: inset 0 1px 0 rgba(230,237,246,0.05), 0 14px 30px rgba(0,0,0,0.26);
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color .2s ease;
}

.micro-card:hover,
.feature-card:hover,
.case-card:hover,
.integration-grid article:hover,
.node:hover {
  transform: translateY(-2px);
  border-color: rgba(230,237,246,0.16);
  box-shadow: inset 0 1px 0 rgba(230,237,246,0.05), 0 18px 40px rgba(0,0,0,0.32);
}

.micro-card p,
.feature-card p,
.case-card p,
.integration-grid p,
.node p {
  color: rgba(154,167,189,0.92);
  font-size: 0.94rem;
}

/* Footer */
.site-footer {
  width:100%;
  margin:22px auto 0;
  border-top:var(--border-default);
  padding:clamp(42px,6vw,72px) 40px 24px;
  display:grid;
  grid-template-columns:minmax(260px,1.6fr) repeat(3,minmax(150px,.7fr));
  gap:clamp(28px,5vw,72px);
  color:rgba(154,167,189,.88);
  font-size:.85rem;
}
.footer-company p{max-width:320px;margin-top:14px;color:rgba(176,191,207,.72);line-height:1.65}
.footer-brand{color:#fff;font-family:var(--font-brand);font-size:1.05rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.footer-brand>span:last-child{margin-left:.35rem;color:rgba(217,226,236,.58);font-family:var(--font-body);font-size:.62rem;letter-spacing:.14em}
.footer-column{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.footer-column strong{margin-bottom:5px;color:#f3f6fa;font-family:var(--font-title);font-size:.72rem;letter-spacing:.14em;text-transform:uppercase}
.footer-column a{color:rgba(176,191,207,.78);text-decoration:none;transition:color .18s ease}
.footer-column a:hover{color:#f0d39d}
.footer-bottom{grid-column:1/-1;display:flex;justify-content:space-between;gap:18px;margin-top:18px;padding-top:20px;border-top:1px solid rgba(148,163,184,.12);color:rgba(184,201,207,.82);font-family:var(--font-mono);font-size:.68rem;letter-spacing:.04em}
.footer-links a:hover { text-decoration: underline; }

/* Responsivo */
@media (max-width: 1024px) {
  .topbar { padding: 0 18px; }
  main { padding-top: 86px; }
  .topnav { gap: 8px; }
  .topbar-right { gap: 10px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  :root { --gutter-page: 16px; }
  main { padding: 84px 12px 24px; }
  .hero, .section { padding: 18px; border-radius: 6px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; min-width: 0; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .topbar {
    height: auto;
    padding: 10px 12px 12px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .topbar-right {
    width: 100%;
  }

  .topnav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 2px;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .topnav a {
    white-space: nowrap;
    padding: 8px 4px;
    font-size: 0.68rem;
    letter-spacing: 0.10em;
  }

  .topnav a.login-link {
    padding: 8px 12px;
    min-width: auto;
    border-radius: 4px;
  }

  main {
    padding-top: 128px;
  }

  .hero,
  .section {
    padding: 16px;
    border-radius: 6px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8.2vw, 2.8rem);
    line-height: 1;
    letter-spacing: 0.06em;
  }

  .hero-lead,
  .section-intro {
    text-align: left;
    text-align-last: auto;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn {
    width: auto;
    min-width: 0;
  }

  .site-footer {
    width:100%;
    grid-template-columns:1fr 1fr;
    padding-inline: 24px;
  }
  .footer-company,.footer-bottom{grid-column:1/-1}

  .home-main {
    padding: 0 10px 20px;
  }

  .home-hero {
    height: auto;
    min-height: calc(100svh - 140px);
    border-radius: 10px;
  }

  .home-hero-video {
    display: block;
    opacity: 0.82;
  }

  .home-stage {
    width: 100%;
    padding: 24px 16px 20px;
    transform: none;
  }

  .home-headline {
    gap: 18px;
    max-width: 100%;
  }

  .home-title {
    width: 100%;
    align-items: center;
    font-size: clamp(1.9rem, 8vw, 2.55rem);
    letter-spacing: 0.045em;
  }

  .home-title-line {
    white-space: normal;
    text-wrap: balance;
  }

  .home-title-line-bottom {
    transform: none;
  }

  .home-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 16px;
  }

  .home-actions .btn {
    min-height: 48px;
  }
}

@media (max-width: 520px){
  .topbar .brand-wordmark::after{
    display:inline-block;
    margin-left:.5rem;
    font-size:.42rem;
    letter-spacing:.14em;
  }
  .site-footer{width:100%;grid-template-columns:1fr;padding-inline:18px}
  .footer-company,.footer-bottom{grid-column:auto}
  .footer-bottom{flex-direction:column}
}

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

.sadb-title,
.brand-wordmark{
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: .14em;
}

.sadb-b{
  position: relative;
  display: inline-block;
}

.sadb-b::after{
  content:"";
  position:absolute;
  width:65%;
  height:22%;
  background:#050b15; /* mesma cor do fundo */
  right:-2px;
  bottom:18%;
  transform:skewX(-35deg);
}

.home-main{
  max-width:none;
  padding:0 16px 28px;
}

.home-hero{
  position:relative;
  height:100vh;
  display:grid;
  place-items:center;
  overflow:hidden;
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 8px;
  background:
    radial-gradient(900px 620px at 18% 28%, rgba(54,89,119,0.18), transparent 60%),
    radial-gradient(1100px 720px at 70% 20%, rgba(92,134,172,0.16), transparent 58%),
    radial-gradient(880px 560px at 50% 42%, rgba(148,163,184,0.08), transparent 64%),
    linear-gradient(180deg, rgba(5,11,21,0.88), rgba(6,10,18,0.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 24px 70px rgba(0,0,0,0.36);
  isolation: isolate;
}

.home-hero-media{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
}

.home-hero-canvas{
  display:none;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:1;
}

.home-hero-video{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  transform:scale(1.05);
  filter:saturate(1.02) brightness(1.00) contrast(1.06);
  pointer-events:none;
}

.home-hero-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(760px 520px at 18% 28%, rgba(54,89,119,0.10), transparent 62%),
    radial-gradient(900px 560px at 74% 18%, rgba(92,134,172,0.08), transparent 60%),
    radial-gradient(620px 420px at 50% 42%, rgba(255,255,255,0.055), transparent 60%),
    linear-gradient(90deg, rgba(5,11,21,0.60) 0%, rgba(5,11,21,0.30) 28%, rgba(5,11,21,0.08) 52%, rgba(5,11,21,0.30) 78%, rgba(5,11,21,0.60) 100%),
    linear-gradient(180deg, rgba(5,11,21,0.08), rgba(5,11,21,0.18) 40%, rgba(5,11,21,0.52));
  pointer-events:none;
}

.home-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 36%, rgba(255,255,255,0.06), transparent 42%),
    linear-gradient(120deg, rgba(255,255,255,0.04), transparent 32%),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.010) 0, rgba(255,255,255,0.010) 1px, transparent 1px, transparent 4px);
  opacity: 0.30;
}

.home-hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(5,11,21,0.72) 0%, rgba(5,11,21,0.18) 8%, transparent 16%, transparent 84%, rgba(5,11,21,0.20) 92%, rgba(5,11,21,0.80) 100%);
  mix-blend-mode: normal;
}

.home-stage{
  position:relative;
  z-index:2;
  width:min(1120px, 92%);
  justify-self:center;
  display:grid;
  justify-items:center;
  gap:24px;
  text-align:center;
  padding: clamp(18px, 3vw, 24px) 0;
  transform: translateY(-4vh);
  margin-left: 0;
  background: transparent;
  border: 0;
  border-radius: 6px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.home-headline{
  display:grid;
  gap:28px;
  justify-items:center;
  max-width: 72rem;
  margin: 0 auto;
}

.home-title{
  font-family: var(--font-brand);
  font-size: clamp(2.25rem, 3.45vw, 3.35rem);
  line-height:0.96;
  letter-spacing:0.075em;
  text-transform:uppercase;
  font-weight:700;
  color:#ffffff;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  width:max-content;
  text-shadow:
    0 20px 42px rgba(0,0,0,0.40),
    0 0 30px rgba(88,134,172,0.18),
    0 0 2px rgba(255,255,255,0.10);
}

.home-title-line{
  display:block;
  white-space:nowrap;
}

.home-title-line-top{
  margin-left:0;
}

.home-title-line-bottom{
  transform: translateX(clamp(5rem, 8vw, 8rem));
}

.home-subtitle{
  font-family: var(--font-title);
  font-size: clamp(0.86rem, 1.2vw, 1rem);
  line-height: 1.45;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(230, 237, 246, 0.88);
  text-align: center;
  max-width: 48rem;
  margin: -2px auto 0;
}

.home-eyebrow,
.home-kicker{
  margin:0;
  color:var(--brand-gold);
  font-family:var(--font-mono);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.home-eyebrow{
  padding:.5rem .85rem;
  border:1px solid rgba(197,164,109,.32);
  background:rgba(5,11,21,.42);
  border-radius:999px;
  backdrop-filter:blur(10px);
}

.home-actions{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top: 40px;
}

.home-trust-line{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px 20px;
  margin-top:4px;
  color:rgba(217,226,236,.68);
  font-family:var(--font-mono);
  font-size:.66rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.home-trust-line span{display:inline-flex;align-items:center;gap:8px}
.home-trust-line span::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--brand-gold);box-shadow:0 0 12px rgba(197,164,109,.5)}

.home-actions .btn{
  width: min(100%, 320px);
  min-width: 0;
  min-height: 50px;
  padding: 14px 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-actions .btn-primary{
  color: #F6E8C8;
  background: linear-gradient(135deg, rgba(197,164,109,0.16), rgba(54,89,119,0.34));
  border-color: rgba(197,164,109,0.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 16px 34px rgba(0,0,0,0.24),
    0 0 0 1px rgba(197,164,109,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-actions .btn-primary:hover{
  color: #FFF3D6;
  background: linear-gradient(135deg, rgba(197,164,109,0.22), rgba(54,89,119,0.42));
  border-color: rgba(197,164,109,0.88);
  transform: translateY(-2px);
}

.home-actions .btn-secondary{
  color: rgba(238,245,255,0.92);
  background: rgba(8, 14, 23, 0.26);
  border-color: rgba(197,164,109,0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 14px 30px rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-actions .btn-secondary:hover{
  color: rgba(255,248,233,0.98);
  background: rgba(197,164,109,0.10);
  border-color: rgba(197,164,109,0.56);
  transform: translateY(-2px);
}

@media (max-width: 768px){
  .home-hero{
    height:auto;
    min-height: calc(100svh - 140px);
  }

  .home-hero-video{
    display:block;
    opacity: 0.42;
    filter: saturate(1.08) brightness(1.04) contrast(1.06);
  }

  .home-hero-canvas{
    display:block;
  }

  .home-main{
    padding:0 12px 24px;
  }

  .home-stage{
    width:100%;
    gap:18px;
    padding: 22px 18px 20px;
    border-radius: 8px;
    transform:none;
    margin-left: 0;
    justify-self:center;
    text-align:center;
  }

  .home-headline{
    justify-items:center;
    max-width:100%;
    gap:14px;
  }

  .home-title{
    width:100%;
    align-items:center;
    font-size: clamp(2.1rem, 8vw, 3.4rem);
    letter-spacing:0.05em;
  }

  .home-title-line{
    white-space: normal;
    text-wrap: balance;
  }

  .home-title-line-bottom{
    transform:none;
  }

  .home-subtitle{
    font-size: 0.76rem;
    letter-spacing: 0.12em;
  }

  .home-actions .btn{
    min-width: 0;
    width: 100%;
    padding: 10px 14px;
    font-size: 0.72rem;
  }

  .home-actions{
    flex-direction: column;
    align-items: stretch;
    margin-top: 34px;
    gap: 8px;
  }

  .home-hero::after{
    background:
      linear-gradient(180deg, rgba(5,11,21,0.62) 0%, rgba(5,11,21,0.14) 10%, transparent 18%, transparent 82%, rgba(5,11,21,0.16) 90%, rgba(5,11,21,0.72) 100%);
  }
}

@media (prefers-reduced-motion: reduce){
  .home-hero-video{
    display:none;
  }
}

.home-section,
.home-final-cta{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
  padding:clamp(72px, 9vw, 124px) clamp(20px, 4vw, 56px);
  border-bottom:1px solid rgba(148,163,184,.14);
}

.home-section h2,
.home-final-cta h2{
  max-width:900px;
  margin:14px 0 20px;
  color:#f5f8fb;
  font-family:var(--font-title);
  font-size:clamp(2rem, 4vw, 4rem);
  line-height:1.04;
  letter-spacing:-.035em;
  text-wrap:balance;
}

.home-section p,
.home-final-cta p{
  color:rgba(202,214,227,.78);
  font-size:clamp(1rem, 1.35vw, 1.15rem);
  line-height:1.75;
}

.home-section-heading{
  max-width:900px;
  margin-bottom:48px;
}

.home-section-heading > p:last-child{
  max-width:760px;
}

.home-problem-grid,
.home-feature-grid,
.home-solution-grid{
  display:grid;
  gap:16px;
}

.home-problem-grid{
  grid-template-columns:repeat(3, 1fr);
}

.home-problem-grid article,
.home-feature-grid article{
  min-height:230px;
  padding:30px;
  border:1px solid rgba(148,163,184,.14);
  border-radius:8px;
  background:linear-gradient(145deg, rgba(18,29,43,.76), rgba(7,14,24,.72));
}

.home-problem-grid article > span{
  color:var(--brand-gold);
  font-family:var(--font-mono);
  font-size:.75rem;
  letter-spacing:.14em;
}

.home-problem-grid h3,
.home-feature-grid h3{
  margin:38px 0 12px;
  color:#f4f7fa;
  font-family:var(--font-title);
  font-size:1.25rem;
}

.home-problem-grid p,
.home-feature-grid p{
  margin:0;
  font-size:.96rem;
  line-height:1.65;
}

.home-definition{
  display:grid;
  grid-template-columns:minmax(0, .9fr) minmax(420px, 1.1fr);
  gap:clamp(48px, 8vw, 100px);
  align-items:center;
}

.home-text-link{
  display:inline-flex;
  gap:10px;
  align-items:center;
  margin-top:18px;
  color:#f1d299;
  font-weight:700;
  text-decoration:none;
}

.home-text-link:hover{
  color:#fff0cf;
}

.home-decision-flow{
  margin:0;
  padding:0;
  list-style:none;
  border-top:1px solid rgba(197,164,109,.24);
}

.home-decision-flow li{
  display:grid;
  grid-template-columns:44px 1fr 1.4fr;
  gap:18px;
  align-items:center;
  padding:20px 0;
  border-bottom:1px solid rgba(148,163,184,.14);
}

.home-decision-flow span,
.home-decision-flow small{
  color:rgba(148,163,184,.76);
  font-family:var(--font-mono);
  font-size:.75rem;
}

.home-decision-flow strong{
  color:#f3f6fa;
  font-size:.98rem;
}

.home-feature-grid{
  grid-template-columns:repeat(2, 1fr);
}

.home-stack-flow{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  align-items:stretch;
}
.home-stack-flow article{
  position:relative;
  display:flex;
  min-height:210px;
  flex-direction:column;
  justify-content:flex-end;
  padding:28px;
  border:1px solid rgba(148,163,184,.14);
  border-radius:8px;
  background:rgba(8,16,27,.64);
}
.home-stack-flow article:not(:last-child)::after{content:"→";position:absolute;right:-13px;top:50%;z-index:2;color:var(--brand-gold);font-family:var(--font-mono)}
.home-stack-flow article.is-aegis{border-color:rgba(197,164,109,.48);background:radial-gradient(circle at 80% 18%,rgba(197,164,109,.11),transparent 38%),rgba(18,29,43,.86);box-shadow:0 22px 48px rgba(0,0,0,.24)}
.home-stack-flow span{margin-bottom:auto;color:var(--brand-gold);font-family:var(--font-mono);font-size:.68rem;letter-spacing:.13em;text-transform:uppercase}
.home-stack-flow strong{color:#f5f7fa;font-family:var(--font-title);font-size:1.35rem}
.home-stack-flow small{margin-top:9px;color:rgba(176,191,207,.72);font-size:.8rem;line-height:1.55}

.home-feature-grid article{
  min-height:210px;
  border-top-color:rgba(197,164,109,.52);
}

.home-feature-grid h3{
  margin-top:12px;
}

.home-validation{
  display:grid;
  grid-template-columns:minmax(280px, .75fr) minmax(0, 1.25fr);
  gap:clamp(48px, 8vw, 110px);
  align-items:center;
  background:radial-gradient(circle at 18% 50%, rgba(66,208,151,.11), transparent 35%);
}

.home-validation-number{
  display:flex;
  align-items:flex-end;
  gap:12px;
  color:#67e0a7;
}

.home-validation-number strong{
  font-family:var(--font-title);
  font-size:clamp(4rem, 8vw, 7.25rem);
  line-height:.84;
  letter-spacing:-.07em;
}

.home-validation-number span{
  padding-bottom:8px;
  font-family:var(--font-mono);
  font-size:1.25rem;
}

.home-validation-copy .home-disclaimer{
  color:rgba(197,164,109,.88);
  font-family:var(--font-mono);
  font-size:.78rem;
  letter-spacing:.04em;
}

.home-solution-grid{
  grid-template-columns:repeat(3, 1fr);
}

.home-solution-grid a{
  display:flex;
  min-height:230px;
  flex-direction:column;
  padding:28px;
  border:1px solid rgba(148,163,184,.14);
  border-radius:8px;
  background:rgba(8,16,27,.64);
  color:inherit;
  text-decoration:none;
  transition:transform .2s ease, border-color .2s ease, background .2s ease;
}

.home-solution-grid a:hover{
  transform:translateY(-4px);
  border-color:rgba(197,164,109,.5);
  background:rgba(18,29,43,.82);
}

.home-solution-grid span{
  color:var(--brand-gold);
  font-family:var(--font-mono);
  font-size:.7rem;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.home-solution-grid strong{
  margin:auto 0 12px;
  color:#f5f7fa;
  font-family:var(--font-title);
  font-size:1.25rem;
}

.home-solution-grid small{
  color:rgba(181,195,209,.76);
  font-size:.88rem;
  line-height:1.55;
}

.home-audience{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:64px;
  align-items:center;
}

.home-audience ul{
  margin:0;
  padding:0;
  list-style:none;
}

.home-audience li{
  padding:16px 0;
  border-bottom:1px solid rgba(148,163,184,.14);
  color:#edf2f7;
  font-family:var(--font-title);
  font-size:1.05rem;
}

.home-adoption-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin:0;
  padding:0;
  list-style:none;
}
.home-adoption-grid li{min-height:230px;padding:28px;border-top:1px solid rgba(197,164,109,.48);border-right:1px solid rgba(148,163,184,.12);border-bottom:1px solid rgba(148,163,184,.12);border-left:1px solid rgba(148,163,184,.12);border-radius:8px;background:linear-gradient(145deg,rgba(18,29,43,.7),rgba(7,14,24,.7))}
.home-adoption-grid span{color:var(--brand-gold);font-family:var(--font-mono);font-size:.7rem}
.home-adoption-grid strong{display:block;margin:36px 0 12px;color:#f5f7fa;font-family:var(--font-title);font-size:1.3rem}
.home-adoption-grid p{font-size:.94rem;line-height:1.65}

.home-final-cta{
  margin-top:32px;
  margin-bottom:32px;
  border:1px solid rgba(197,164,109,.32);
  border-radius:8px;
  background:
    radial-gradient(circle at 82% 18%, rgba(54,89,119,.24), transparent 42%),
    linear-gradient(135deg, rgba(18,29,43,.88), rgba(7,14,24,.9));
  text-align:center;
}

.home-final-cta h2,
.home-final-cta p{
  margin-left:auto;
  margin-right:auto;
}

.home-final-cta > p:not(.home-kicker){
  max-width:650px;
}

.home-cta-actions{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-top:30px;
}

@media (max-width: 900px){
  .home-problem-grid,
  .home-solution-grid,
  .home-stack-flow,
  .home-adoption-grid{
    grid-template-columns:1fr;
  }

  .home-stack-flow article:not(:last-child)::after{content:"↓";right:50%;top:auto;bottom:-14px}

  .home-definition,
  .home-validation,
  .home-audience{
    grid-template-columns:1fr;
  }

  .home-definition{
    gap:42px;
  }

  .home-validation-number{
    justify-content:flex-start;
  }
}

@media (max-width: 640px){
  .home-section,
  .home-final-cta{
    width:calc(100% - 24px);
    padding:64px 20px;
  }

  .home-feature-grid{
    grid-template-columns:1fr;
  }

  .home-decision-flow li{
    grid-template-columns:34px 1fr;
  }

  .home-decision-flow small{
    grid-column:2;
  }

  .home-cta-actions{
    flex-direction:column;
  }

  .home-cta-actions .btn{
    width:100%;
  }
}

.topbar{
  background: linear-gradient(180deg, rgba(5,11,21,0.94), rgba(5,11,21,0.82));
  border-bottom: 1px solid rgba(148,163,184,0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 18px 44px rgba(0,0,0,0.32);
}

.brand-wordmark{
  color:#ffffff;
  font-size:1.05rem;
  letter-spacing:0.14em;
  text-shadow:none;
}

.footer-brand{
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.footer-brand .brand-symbol,
.home-title .brand-symbol,
.brand-wordmark .brand-symbol{
  color: var(--brand-gold);
}

.brand-logo img{
  display:none;
}

.topnav a{
  color:rgba(136,144,156,0.98);
  letter-spacing:0.13em;
  font-size:0.78rem;
  padding: 9px 11px;
}

.topnav a:hover{
  color:rgba(255,255,255,1);
  border-color:rgba(230,237,246,0.14);
  background:rgba(230,237,246,0.05);
}

.topnav a.active{
  color:rgba(255,255,255,1);
  border-color:rgba(230,237,246,0.18);
  background:rgba(230,237,246,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.topnav a.active::after{
  display:none;
}

.topnav a.login-link{
  padding:8px 14px;
  border:1px solid rgba(197,164,109,0.38);
  border-radius:8px;
  background:rgba(197,164,109,0.08);
  font-size:0.78rem;
  color:rgba(255,255,255,0.96);
}

.topnav a.login-link::after{
  display:none;
}

.topnav a.login-link:hover{
  border-color:rgba(197,164,109,0.62);
  background:rgba(197,164,109,0.14);
}

/* MOBILE */
@media (max-width: 768px) {

  .topbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    padding: calc(10px + env(safe-area-inset-top)) 12px 12px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    border-radius: 8px;
  }

  .topbar-right {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .topnav {
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
    gap: 6px;
    padding-bottom: 0;
  }

  .topnav a {
    font-size: 0.6rem;
    padding: 8px 10px;
    letter-spacing: 0.10em;
  }

  .topnav a.login-link {
    padding: 8px 12px;
  }

  main {
    padding: 18px 12px 24px;
  }

  .home-title {
    font-size: clamp(1.65rem, 6.8vw, 2.25rem);
  }

  .home-actions {
    gap: 12px;
  }

  .home-actions .btn {
    width: 100%;
    padding: 12px;
    font-size: 0.75rem;
  }

}

/* ============================= */
/*        SITE NAV DRAWER        */
/* ============================= */

body.site-nav-ready {
  overflow-x: hidden;
}

body.site-nav-ready .topbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* Keep the company mark on the exact optical axis of the primary navigation. */
body.site-nav-desktop .topbar {
  min-height: 60px;
  height: 60px;
  align-items: center;
}

body.site-nav-desktop .brand-logo,
body.site-nav-desktop .topbar-right,
body.site-nav-desktop .topnav {
  align-self: center;
}

body.site-nav-desktop .brand-logo {
  display: inline-flex;
  align-items: center;
  height: 36px;
  line-height: 1;
}

body.site-nav-desktop .brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(196, 211, 222, .22);
}

.language-switch button {
  min-width: 31px;
  padding: 7px 5px;
  border: 0;
  background: transparent;
  color: rgba(218, 228, 235, .55);
  font: 700 .64rem/1 var(--font-mono, monospace);
  letter-spacing: .08em;
  cursor: pointer;
  transition: color .18s ease;
}

.language-switch button:hover,
.language-switch button.is-active {
  color: #fff;
}

.language-switch button.is-active {
  text-decoration: underline;
  text-decoration-color: var(--brand-gold);
  text-underline-offset: 5px;
}

body.site-nav-ready .topbar-right {
  justify-content: flex-end;
  margin-left:auto;
  display:flex;
  align-items:center;
}

body.site-nav-ready .nav-toggle {
  position: relative;
  z-index: 1301;
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

body.site-nav-ready .nav-toggle:hover {
  background: transparent;
  color: var(--brand-gold);
}

body.site-nav-ready .nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}

body.site-nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.site-nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.site-nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.site-nav-open .nav-toggle {
  visibility: hidden;
  pointer-events: none;
}

body.site-nav-ready .nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1290;
  border: 0;
  padding: 0;
  background: rgba(4, 8, 14, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.24s ease,
    visibility 0.24s ease;
}

body.site-nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.site-nav-ready .topnav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1300;
  width: min(88vw, 360px);
  height: 100dvh;
  margin: 0;
  padding: 92px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  border-left: 1px solid rgba(213, 182, 116, 0.22);
  background: linear-gradient(180deg, #141e35 0%, #10182b 100%);
  box-shadow: -18px 0 42px rgba(0, 0, 0, 0.28);
  transform: translateX(0);
  clip-path: inset(0 0 0 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    clip-path 0.28s ease,
    opacity 0.2s ease,
    visibility 0s linear 0.28s;
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 237, 246, 0.24) transparent;
}

body.site-nav-open .topnav {
  clip-path: inset(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

body.site-nav-ready .nav-overlay[hidden] {
  display: none;
}

body.site-nav-ready .nav-drawer-header {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.site-nav-ready .nav-drawer-label {
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e3c77f;
}

body.site-nav-ready .nav-close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(230, 237, 246, 0.22);
  border-radius: 10px;
  background: rgba(230, 237, 246, 0.08);
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 0;
  cursor: pointer;
}

body.site-nav-ready .nav-close:hover {
  border-color: rgba(197, 164, 109, 0.46);
  background: rgba(197, 164, 109, 0.10);
}

body.site-nav-ready .topnav a {
  width: 100%;
  justify-content: flex-start;
  white-space: normal;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid rgba(230, 237, 246, 0.18);
  background: rgba(230, 237, 246, 0.07);
  color: #ffffff;
}

body.site-nav-ready .topnav a:hover {
  transform: translateX(-2px);
  border-color: rgba(227, 199, 127, 0.48);
  background: rgba(227, 199, 127, 0.12);
}

body.site-nav-ready .topnav a.active {
  border-color: rgba(227, 199, 127, 0.56);
  background: rgba(227, 199, 127, 0.14);
  color: #ffffff;
}

body.site-nav-ready .topnav a.login-link {
  border-color: rgba(227, 199, 127, 0.62);
  background: rgba(227, 199, 127, 0.16);
}

body.site-nav-ready .topnav a::after {
  display: none;
}

@media (max-width: 768px) {
  body.site-nav-ready .topbar {
    padding: env(safe-area-inset-top) 12px 0;
    align-items: center;
    flex-direction: row;
    height: calc(62px + env(safe-area-inset-top));
    border-radius: 8px;
  }

  body.site-nav-ready .topbar-right {
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  body.site-nav-ready .language-switch {
    order: 0;
    margin-left: 0;
    margin-right: 4px;
    padding-left: 0;
    padding-right: 8px;
    border-left: 0;
    border-right: 1px solid rgba(196, 211, 222, .22);
  }

  body.site-nav-ready .nav-toggle { order: 1; }

  body.site-nav-ready .nav-toggle {
    width: 44px;
    height: 44px;
  }

  body.site-nav-ready .topnav {
    width: min(90vw, 340px);
    padding-top: 88px;
  }
}
