:root {
  --bg: #040405;
  --bg-soft: #090a0e;
  --panel: rgba(13, 14, 18, 0.86);
  --panel-strong: rgba(16, 18, 23, 0.95);
  --line: rgba(255, 255, 255, 0.10);
  --line-hot: rgba(255, 122, 0, 0.35);
  --text: #f7f7f8;
  --muted: #b6b8c1;
  --orange: #ff7a00;
  --orange-bright: #ff941f;
  --green: #34d17d;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1420px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.avenara-public {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 122, 0, 0.18), transparent 30%),
    radial-gradient(circle at 78% 16%, rgba(255, 152, 30, 0.12), transparent 28%),
    radial-gradient(circle at 78% 72%, rgba(255, 122, 0, 0.10), transparent 31%),
    linear-gradient(180deg, #07080b 0%, #040405 52%, #030304 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

body::before {
  inset: -12vh -10vw auto;
  height: 52vh;
  background:
    linear-gradient(110deg, transparent, rgba(255, 122, 0, 0.08), transparent),
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.055), transparent 45%);
  filter: blur(18px);
}

body::after {
  width: 860px;
  height: 860px;
  right: -440px;
  bottom: -420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.18), rgba(255, 122, 0, 0.02) 48%, transparent 70%);
  filter: blur(8px);
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
  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: 84px 84px;
  mask-image: radial-gradient(circle at center, black 16%, rgba(0, 0, 0, 0.75) 42%, transparent 78%);
}

.site-header,
main,
.site-footer {
  width: min(calc(100% - 64px), var(--max));
  margin-inline: auto;
}

.site-header {
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), rgba(255,122,0,.30), rgba(255,255,255,.10), transparent);
}

.brand-lockup {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  width: min(310px, 34vw);
}

.brand-lockup img {
  display: block;
  width: 100%;
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-left: auto;
  margin-right: auto;
}

.header-nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
  transition: color .2s ease, transform .2s ease;
}

.header-nav a:hover,
.site-footer a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.status-pill,
.hero-proof span,
.mode-badge,
.mini-label,
.status-card span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  color: #d9dbe1;
}

.status-pill {
  padding: 12px 16px;
  font-size: .88rem;
  white-space: nowrap;
}

.status-pill i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(52, 209, 125, .14), 0 0 24px rgba(52, 209, 125, .55);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 15px;
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.button:hover { transform: translateY(-2px); }

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff8f12, var(--orange));
  border: 1px solid rgba(255, 174, 70, .55);
  box-shadow: 0 18px 42px rgba(255, 122, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.button-outline,
.button-dark {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-hot);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.button-dark {
  border-color: var(--line);
}

.hero-shell {
  min-height: 722px;
  display: grid;
  grid-template-columns: minmax(420px, 1.02fr) minmax(520px, .98fr);
  align-items: center;
  gap: 54px;
  padding: 76px 0 46px;
}

.eyebrow {
  color: var(--orange-bright);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 800;
  font-size: .82rem;
  margin: 0 0 18px;
}

.hero-copy-wrap h1,
.section-heading h2,
.story-card h2 {
  margin: 0;
  line-height: .98;
  letter-spacing: -.05em;
}

.hero-copy-wrap h1 {
  font-size: clamp(3.35rem, 5.3vw, 6.1rem);
  max-width: 810px;
}

.hero-copy-wrap h1 span {
  color: var(--orange-bright);
  text-shadow: 0 0 34px rgba(255, 122, 0, .22);
}

.hero-copy {
  max-width: 760px;
  margin: 28px 0 34px;
  color: var(--muted);
  font-size: 1.28rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof span {
  padding: 12px 16px;
  font-size: .92rem;
}

.hero-visual {
  position: relative;
  min-height: 610px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 122, 0, .20), transparent 30%),
    radial-gradient(circle at 65% 52%, rgba(255,255,255,.06), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-visual::before {
  inset: 0;
  background:
    linear-gradient(105deg, transparent 12%, rgba(255,122,0,.14) 44%, transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 72px, rgba(255,255,255,.035) 72px 73px),
    repeating-linear-gradient(0deg, transparent 0 72px, rgba(255,255,255,.035) 72px 73px);
  opacity: .62;
}

.hero-visual::after {
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.52));
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  z-index: 1;
}

.orb-one {
  width: 310px;
  height: 310px;
  right: -56px;
  top: -38px;
  background: radial-gradient(circle, rgba(255, 122, 0, .32), transparent 67%);
}

.orb-two {
  width: 430px;
  height: 430px;
  left: -210px;
  bottom: -260px;
  background: radial-gradient(circle, rgba(255, 122, 0, .22), transparent 68%);
}

.hero-brand-card,
.signal-card {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(7, 8, 11, .82);
  backdrop-filter: blur(22px);
  box-shadow: 0 22px 60px rgba(0,0,0,.40);
}

.hero-brand-card {
  left: 54px;
  top: 98px;
  width: min(430px, calc(100% - 108px));
  padding: 26px;
  border-radius: 28px;
}

.mark-stage {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255,122,0,.22), transparent 42%),
    rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
}

.mark-stage img {
  width: 92%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.brand-card-copy {
  padding: 22px 4px 4px;
}

.brand-card-copy p,
.signal-card span,
.status-card span {
  color: var(--orange-bright);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
  font-size: .74rem;
  margin: 0 0 10px;
}

.brand-card-copy strong {
  display: block;
  font-size: 1.17rem;
  letter-spacing: -.02em;
}

.signal-card {
  right: 34px;
  width: min(290px, calc(100% - 68px));
  padding: 18px 20px;
  border-radius: 20px;
}

.signal-card strong {
  display: block;
  line-height: 1.45;
  font-size: .98rem;
}

.signal-top { top: 76px; }
.signal-mid { top: 226px; }
.signal-bottom { top: 376px; }

.module-strip,
.story-card,
.mode-card,
.status-card,
.site-footer {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(0,0,0,.24);
}

.module-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 8px 0 82px;
}

.module-strip article {
  min-height: 190px;
  padding: 30px 26px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00));
}

.module-strip article:last-child { border-right: 0; }

.module-strip strong,
.story-card h3,
.mode-card h3,
.status-card strong {
  display: block;
  letter-spacing: -.03em;
  margin: 0 0 14px;
}

.module-strip strong {
  color: var(--text);
  font-size: 1.17rem;
}

.module-strip span,
.story-card p,
.mode-card li,
.status-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.68;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.35fr .825fr .825fr;
  gap: 22px;
  margin-bottom: 90px;
}

.story-card {
  min-height: 330px;
  padding: 34px;
  border-radius: var(--radius-lg);
}

.story-primary {
  background:
    radial-gradient(circle at 8% 10%, rgba(255,122,0,.19), transparent 34%),
    var(--panel-strong);
}

.story-card h2 {
  font-size: clamp(2.1rem, 3.1vw, 3.45rem);
  margin-bottom: 22px;
}

.story-card p {
  margin: 0;
  font-size: 1.08rem;
}

.mini-label,
.mode-badge {
  padding: 10px 14px;
  color: var(--orange-bright);
  border-color: rgba(255,122,0,.28);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.story-card h3 {
  font-size: 1.68rem;
  line-height: 1.15;
}

.onboarding-shell {
  margin-bottom: 90px;
}

.section-heading {
  max-width: 980px;
  margin-bottom: 34px;
}

.section-heading h2 {
  font-size: clamp(2.65rem, 4vw, 4.4rem);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.mode-card {
  min-height: 520px;
  padding: 36px;
  border-radius: var(--radius-lg);
}

.mode-featured {
  background:
    radial-gradient(circle at 16% 12%, rgba(255,122,0,.22), transparent 32%),
    linear-gradient(145deg, rgba(255,122,0,.11), rgba(255,255,255,.025)),
    var(--panel-strong);
  border-color: rgba(255,122,0,.30);
}

.mode-card h3 {
  font-size: clamp(1.82rem, 2.55vw, 2.6rem);
  line-height: 1.14;
  margin-bottom: 22px;
}

.mode-card ol {
  margin: 26px 0 0;
  padding-left: 24px;
}

.mode-card li {
  font-size: 1.08rem;
  padding-left: 8px;
  margin-bottom: 16px;
}

.status-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 88px;
}

.status-card {
  min-height: 290px;
  padding: 28px;
  border-radius: 22px;
}

.status-card span {
  padding: 0;
  border: 0;
  background: none;
  display: block;
}

.status-card strong {
  font-size: 1.45rem;
  line-height: 1.2;
}

.status-card code {
  color: #fff;
  background: rgba(255,255,255,.08);
  padding: 3px 7px;
  border-radius: 7px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 28px 34px;
  border-radius: var(--radius-lg);
  margin-bottom: 44px;
}

.site-footer img {
  display: block;
  width: 270px;
  max-width: 100%;
  height: auto;
  margin-bottom: 8px;
}

.site-footer p {
  margin: 0;
  font-size: .98rem;
}

.site-footer strong { color: var(--text); }

.footer-note {
  text-align: right;
}

@media (max-width: 1240px) {
  .site-header {
    height: auto;
    min-height: 118px;
    flex-wrap: wrap;
    padding: 22px 0 24px;
  }
  .header-nav { order: 3; width: 100%; justify-content: flex-start; }
  .hero-shell {
    grid-template-columns: 1fr;
    padding-top: 58px;
  }
  .hero-visual { min-height: 660px; }
  .module-strip { grid-template-columns: repeat(2, 1fr); }
  .module-strip article:nth-child(2n) { border-right: 0; }
  .story-grid,
  .status-board { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .site-header,
  main,
  .site-footer { width: min(calc(100% - 32px), var(--max)); }
  .site-header { align-items: flex-start; }
  .brand-lockup { width: min(280px, 88vw); }
  .header-nav,
  .header-actions,
  .hero-actions,
  .hero-proof,
  .site-footer { align-items: stretch; flex-direction: column; }
  .header-nav { gap: 14px; }
  .header-actions { width: 100%; }
  .status-pill,
  .button { width: 100%; }
  .hero-shell { min-height: auto; gap: 34px; }
  .hero-copy-wrap h1 { font-size: clamp(2.8rem, 12vw, 4.5rem); }
  .hero-copy { font-size: 1.07rem; }
  .hero-visual { min-height: 930px; }
  .hero-brand-card { left: 18px; right: 18px; top: 28px; width: auto; }
  .signal-card { left: 18px; right: 18px; width: auto; }
  .signal-top { top: 580px; }
  .signal-mid { top: 690px; }
  .signal-bottom { top: 800px; }
  .module-strip,
  .story-grid,
  .mode-grid,
  .status-board { grid-template-columns: 1fr; }
  .module-strip article { border-right: 0; border-bottom: 1px solid var(--line); }
  .module-strip article:last-child { border-bottom: 0; }
  .story-card,
  .mode-card { min-height: auto; padding: 28px; }
  .status-card { min-height: auto; }
  .site-footer { align-items: flex-start; }
  .footer-note { text-align: left; }
}
