* {
  box-sizing: border-box;
}

:root {
  --bg: #07090d;
  --bg-2: #11161c;
  --panel: rgba(18, 22, 28, 0.92);
  --panel-2: rgba(28, 32, 38, 0.9);
  --text: #f7f4eb;
  --muted: #c8c0ad;
  --line: rgba(255, 255, 255, 0.14);
  --gold: #d4af37;
  --gold-2: #f4d27a;
  --cyan: #71d7ff;
  --green: #78e09a;
  --warn: #ffcf70;
  --danger: #ff8b72;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --active-avatar-url: url("avatar-ceo-human.webp");
  font-size: 12px;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.52;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 72% 8%, rgba(212, 175, 55, 0.13), transparent 23rem),
    linear-gradient(180deg, #05070a 0%, #0d1116 45%, #090b10 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--gold-2);
}

button,
input,
select,
textarea {
  font: inherit;
}

img,
canvas,
iframe {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: #111;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(7, 9, 13, 0.92);
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
  backdrop-filter: blur(18px);
}

.header-inner,
.control-bar,
.container,
.hero-inner {
  width: min(100% - 2rem, 1320px);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 230px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.78);
  color: #101010;
  background: linear-gradient(145deg, #ffffff, #b9b9b9);
  font-weight: 800;
}

.brand strong,
.brand span span {
  display: block;
}

.brand span span {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-wrap {
  min-width: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.nav-links a,
.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.nav-links a:hover,
.btn:hover {
  border-color: rgba(212, 175, 55, 0.72);
  color: var(--gold-2);
}

.btn.primary,
.btn.gold {
  background: linear-gradient(135deg, #f4d27a, #d4af37 58%, #8d6d18);
  color: #111;
  border-color: rgba(255, 237, 169, 0.8);
  font-weight: 800;
}

.btn.ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.control-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 0.75rem;
  padding: 0 0 0.85rem;
}

.mini-control,
.field {
  display: grid;
  gap: 0.35rem;
}

.mini-control label,
.field label,
.section-kicker,
.eyebrow {
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--text);
  background: rgba(4, 6, 9, 0.72);
  padding: 0.8rem 0.9rem;
}

textarea {
  min-height: 98px;
  resize: vertical;
}

.section {
  padding: 5.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-head.compact-head {
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1.02;
}

h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.7rem, 2.35vw, 2.55rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
}

h4 {
  margin-bottom: 0.3rem;
  color: var(--gold-2);
}

.lead {
  color: var(--muted);
  font-size: 1.06rem;
}

.compact-text {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 10rem 0 5rem;
}

.spatial-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#hologramRoom {
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.hero-avatar-main {
  position: absolute;
  right: max(2vw, 1rem);
  bottom: 2rem;
  height: min(68vh, 640px);
  object-fit: contain;
  object-position: center bottom;
  opacity: 0.86;
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.7));
}

.holo-floor,
.lip-sync-aura {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.55fr);
  gap: 2rem;
  align-items: end;
}

.hero-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions,
.button-row,
.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-offer-panel {
  padding: 1.35rem;
  background: rgba(10, 12, 16, 0.76);
  backdrop-filter: blur(12px);
}

.hero-offer-panel h2 {
  font-size: 1.55rem;
}

.offer-mini-grid,
.macro-kpis,
.local-meter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.offer-mini-grid span,
.macro-kpis span,
.local-meter span,
.traffic-kpi,
.signal,
.status-item {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.offer-mini-grid span {
  color: var(--gold-2);
  font-weight: 800;
}

.grid,
.asset-board,
.macro-dashboard,
.integrity-layout,
.ai-layout,
.design-lab,
.download-grid {
  display: grid;
  gap: 1rem;
}

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

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.asset-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.macro-dashboard {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.62fr);
}

.card,
.download-card,
.method-card,
.asset-card,
.macro-country,
.tv-widget-shell,
.news-search-card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.card,
.download-card,
.method-card,
.asset-card,
.macro-country {
  padding: 1.15rem;
}

.gold-frame,
.tv-widget-shell,
.tradingview-widget-container,
.avatar-card img,
.astra-selected-visual img,
.hero-avatar-main,
.content-thumb,
#macroCanvas,
#hologramRoom {
  border: 1px solid rgba(212, 175, 55, 0.78);
  box-shadow:
    0 0 0 1px rgba(244, 210, 122, 0.14),
    0 18px 42px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 247, 214, 0.13);
}

.asset-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 8px;
  color: #15120a;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  font-weight: 900;
}

.macro-summary {
  display: grid;
  gap: 1rem;
}

#macroCanvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #07090d;
}

.macro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 0.9rem;
}

.macro-country-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.macro-country-head span {
  color: var(--gold-2);
  font-weight: 800;
}

.macro-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.9rem 0;
}

.macro-values b,
.macro-values small {
  display: block;
}

.macro-values small {
  color: var(--muted);
  font-size: 0.78rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  font-weight: 700;
}

.pill.good {
  color: #b9ffd0;
  border-color: rgba(120, 224, 154, 0.55);
}

.pill.warn {
  color: #ffe0a3;
  border-color: rgba(255, 207, 112, 0.6);
}

.pill.neutral {
  color: #bdefff;
  border-color: rgba(113, 215, 255, 0.55);
}

.traffic-mini,
.traffic-card {
  font-size: 0.92rem;
}

.traffic-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  opacity: 0.88;
}

.traffic-card .traffic-note,
.traffic-card .local-meter {
  grid-column: 1 / -1;
}

.traffic-kpi strong,
.signal b,
.macro-kpis b {
  font-size: 1.45rem;
}

.tv-stack {
  display: grid;
  gap: 1rem;
}

.tv-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tv-widget-shell {
  padding: 0.8rem;
  overflow: hidden;
}

.tradingview-widget-container {
  min-height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: #080a0f;
}

.live-top .tv-widget-shell {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.advisor-layout,
.ai-layout {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.decision-table,
.status-list,
.method-grid,
.ruleList {
  display: grid;
  gap: 0.75rem;
}

.decision-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(160px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.bar span {
  display: block;
  width: var(--w, 50%);
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold-2));
}

.avatar-console {
  margin-bottom: 1rem;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 0.8rem;
}

.avatar-card {
  min-width: 0;
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  text-align: left;
}

.avatar-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.avatar-card img {
  width: 100%;
  aspect-ratio: 0.82;
  object-fit: contain;
  object-position: center top;
  border-radius: 8px;
  background: #05070a;
  margin-bottom: 0.55rem;
}

.avatar-card strong,
.avatar-card span {
  display: block;
}

.avatar-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.card.astra-panel {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: end;
  min-height: 360px;
  overflow: hidden;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.82)), var(--active-avatar-url);
  background-position: center, center;
  background-size: cover, cover;
}

.astra-selected-visual {
  display: flex;
  align-items: end;
  justify-content: center;
  align-self: stretch;
}

.astra-selected-visual img {
  width: min(100%, 260px);
  max-height: 330px;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 8px;
  background: rgba(5, 7, 10, 0.32);
}

.advisor-availability {
  color: var(--gold-2);
  font-weight: 800;
}

.guide-orb {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
}

.guide-avatar {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: 50%;
  overflow: hidden;
  background: #090b10;
  box-shadow: var(--shadow);
}

.guide-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-panel {
  width: min(360px, calc(100vw - 2rem));
  margin-bottom: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.65);
  border-radius: 8px;
  background: rgba(8, 10, 14, 0.96);
  box-shadow: var(--shadow);
}

.download-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.book-grid,
.starter-grid,
.legal-button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.mini-link-button,
.starter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-2);
  font-weight: 800;
}

.admin-tools[hidden],
[hidden] {
  display: none !important;
}

.legal-copy {
  display: none;
}

.legal-copy.active {
  display: block;
}

.legal-location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.news-search-card {
  padding: 1.15rem;
}

.footer {
  padding: 2rem 0;
  background: #05070a;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 2rem;
  align-items: start;
}

.footer-links,
.social-links {
  display: grid;
  gap: 0.45rem;
}

.disclaimer {
  color: var(--muted);
  font-size: 0.82rem;
}

.section-stack {
  margin-top: 1rem;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

@media (max-width: 1120px) {
  .control-bar,
  .asset-board,
  .traffic-card,
  .legal-location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-inner,
  .section-head,
  .macro-dashboard,
  .advisor-layout,
  .ai-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-avatar-main {
    opacity: 0.34;
    right: -5vw;
  }
}

@media (max-width: 760px) {
  :root {
    font-size: 12px;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .control-bar,
  .grid,
  .grid.two,
  .grid.three,
  .asset-board,
  .traffic-card,
  .macro-values,
  .control-grid,
  .tv-pair,
  .legal-location-grid,
  .offer-mini-grid,
  .macro-kpis {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 680px;
    padding-top: 7rem;
  }

  .hero-avatar-main {
    height: 46vh;
    max-width: 56vw;
    opacity: 0.24;
  }

  .decision-row {
    grid-template-columns: 1fr;
  }

  .card.astra-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .astra-selected-visual {
    min-height: 250px;
  }

  .newsletter {
    grid-template-columns: 1fr;
  }
}
