/**
 * AutoCEO Command Network visual system.
 *
 * Purpose: aligns the public marketing shell with Boardroom and Command Rank
 * while preserving the existing localized HTML, live-data selectors, links,
 * and interaction logic. This file intentionally overrides presentation only;
 * it performs no network, wallet, reward, timer, or storage work.
 */

:root {
  --bg: #05060b;
  --bg-soft: #080b11;
  --panel: rgba(12, 16, 25, 0.88);
  --panel-strong: rgba(17, 24, 39, 0.96);
  --line: rgba(151, 164, 184, 0.16);
  --line-strong: rgba(46, 242, 180, 0.38);
  --text: #f7f9fc;
  --muted: #97a4b8;
  --soft: #dce4f0;
  --green: #2ef2b4;
  --violet: #7c6bff;
  --cyan: #54ddf2;
  --gold: #f4c96b;
  --orange: #ff6b57;
  --radius: 18px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

body {
  background:
    radial-gradient(circle at 76% 5%, rgba(124, 107, 255, 0.15), transparent 34rem),
    radial-gradient(circle at 8% 18%, rgba(46, 242, 180, 0.07), transparent 28rem),
    linear-gradient(180deg, #05060b 0%, #080b11 48%, #05060b 100%);
}

body::before {
  background-size: 72px 72px;
  opacity: 0.58;
}

.container {
  width: min(1200px, calc(100% - 56px));
}

.nav {
  background: rgba(5, 6, 11, 0.9);
  border-color: rgba(151, 164, 184, 0.14);
}

.nav__inner {
  min-height: 72px;
}

.brand {
  font-size: 0.86rem;
  letter-spacing: 0.11em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border-color: rgba(46, 242, 180, 0.36);
  box-shadow: 0 0 28px rgba(46, 242, 180, 0.13);
}

.nav__links {
  gap: 22px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.language-selector,
.social-link {
  background: #0c1019;
  border-color: rgba(151, 164, 184, 0.2);
}

.social-link {
  width: 36px;
  height: 36px;
}

.button {
  min-height: 44px;
  padding-inline: 18px;
  border-radius: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
}

.button--primary {
  color: #04110d;
  background: var(--green);
  box-shadow: 0 16px 44px rgba(46, 242, 180, 0.16);
}

.button--secondary {
  background: rgba(17, 24, 39, 0.86);
  border-color: rgba(151, 164, 184, 0.22);
}

.network-bar {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 9;
  border-bottom: 1px solid rgba(151, 164, 184, 0.12);
  background: rgba(8, 11, 17, 0.94);
  backdrop-filter: blur(18px);
}

.network-bar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(151, 164, 184, 0.82);
  font-family: "Roboto Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.network-bar__inner a {
  color: inherit;
  text-decoration: none;
}

.network-bar__inner a:hover {
  color: var(--cyan);
}

.network-bar__live {
  color: var(--soft);
}

.network-bar__live::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.hero {
  min-height: 760px;
  padding: 176px 0 92px;
}

.hero__grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 72px;
}

h1 {
  max-width: 760px;
  margin-top: 22px;
  font-size: clamp(4rem, 9.5vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.hero__line {
  max-width: 680px;
  font-size: clamp(1.6rem, 3.3vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero__actions {
  margin-top: 30px;
}

.hero-highlight {
  border-radius: 12px;
  background: rgba(46, 242, 180, 0.07);
  border-color: rgba(46, 242, 180, 0.25);
}

.trust-row {
  margin-top: 20px;
}

.trust-row span,
.pill {
  min-height: 30px;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.7);
  color: rgba(151, 164, 184, 0.9);
  font-size: 0.64rem;
}

.hero__visual {
  min-height: 460px;
}

.orb-card {
  width: min(100%, 430px);
  background:
    radial-gradient(circle at 30% 18%, rgba(247, 249, 252, 0.92), rgba(124, 107, 255, 0.42) 17%, transparent 34%),
    radial-gradient(circle at 68% 68%, rgba(46, 242, 180, 0.15), transparent 44%),
    rgba(17, 24, 39, 0.5);
  box-shadow:
    inset 0 0 90px rgba(124, 107, 255, 0.17),
    0 0 110px rgba(46, 242, 180, 0.09),
    var(--shadow);
}

.orb-card::before,
.orb-card::after {
  border-color: rgba(46, 242, 180, 0.22);
}

.orb-card::after {
  border-color: rgba(124, 107, 255, 0.22);
}

.section {
  padding: 104px 0;
}

.section__head {
  margin-bottom: 42px;
}

.section__head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  gap: 56px;
  align-items: end;
  text-align: left;
}

.section__head--split .section__copy {
  margin: 0;
}

h2 {
  font-size: clamp(2.35rem, 4.8vw, 4.75rem);
  letter-spacing: -0.05em;
}

.section__copy {
  color: rgba(151, 164, 184, 0.94);
  line-height: 1.7;
}

.command-network {
  padding-top: 72px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.28), transparent);
}

.command-network__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.command-card {
  min-height: 300px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(151, 164, 184, 0.17);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(8, 11, 17, 0.94));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.command-card:hover,
.command-card:focus-visible {
  border-color: rgba(46, 242, 180, 0.46);
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.command-card::after {
  content: "";
  width: 190px;
  height: 190px;
  position: absolute;
  right: -80px;
  top: -90px;
  border: 1px solid rgba(46, 242, 180, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(46, 242, 180, 0.08);
}

.command-card--rank {
  border-color: rgba(244, 201, 107, 0.28);
}

.command-card--rank::after {
  border-color: rgba(244, 201, 107, 0.3);
}

.command-card--game::after {
  border-color: rgba(84, 221, 242, 0.26);
}

.command-card__index {
  color: var(--green);
  font-family: "Roboto Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.command-card--rank .command-card__index {
  color: var(--gold);
}

.command-card h3 {
  margin-top: 74px;
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.command-card p {
  margin-top: 14px;
  color: var(--muted);
}

.command-card__link {
  width: fit-content;
  margin-top: auto;
  padding-top: 24px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.command-card:hover .command-card__link,
.command-card:focus-visible .command-card__link {
  color: var(--green);
}

.boardroom-section {
  background:
    radial-gradient(circle at 78% 18%, rgba(46, 242, 180, 0.07), transparent 30rem),
    linear-gradient(180deg, rgba(8, 11, 17, 0.5), rgba(17, 24, 39, 0.24));
}

.boardroom-section .section__head {
  max-width: 850px;
  margin-bottom: 40px;
}

.boardroom-summary--primary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.boardroom-summary--primary .boardroom-summary__item {
  min-height: 150px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(8, 11, 17, 0.94));
}

.boardroom-summary--primary .boardroom-summary__item strong {
  margin-top: 18px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.boardroom-network-detail {
  margin-top: 12px;
  border: 1px solid rgba(151, 164, 184, 0.14);
  border-radius: 16px;
  background: rgba(8, 11, 17, 0.62);
}

.boardroom-network-detail summary {
  padding: 16px 18px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.boardroom-summary--detail {
  padding: 0 14px 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.boardroom-summary--detail .boardroom-summary__item {
  min-height: 104px;
  background: rgba(17, 24, 39, 0.44);
}

.boardroom-top-holders {
  margin-top: 20px;
  padding: 24px;
  border-radius: 20px;
  border-color: rgba(244, 201, 107, 0.34);
  background: linear-gradient(130deg, rgba(244, 201, 107, 0.09), rgba(12, 16, 25, 0.94) 56%);
}

.boardroom-top-holders span,
.boardroom-top-holders a {
  color: var(--gold);
}

.boardroom-top-holders strong {
  margin-top: 7px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.tier-grid {
  gap: 10px;
  margin-top: 18px;
}

.tier-card {
  min-height: 170px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.86), rgba(8, 11, 17, 0.82));
}

.tier-card--top {
  order: -1;
  border-color: rgba(244, 201, 107, 0.34);
  background: linear-gradient(150deg, rgba(244, 201, 107, 0.1), rgba(12, 16, 25, 0.9));
}

.tier-card--top span,
.tier-card--top .tier-card__holders {
  color: var(--gold) !important;
}

.holder-strategy {
  padding: 24px;
  border-radius: 18px;
  border-color: rgba(124, 107, 255, 0.28);
  background: rgba(124, 107, 255, 0.07);
}

.rule-panel,
.details-card,
.card,
.contract-box {
  border-radius: 18px;
}

.rule-panel {
  padding: 24px;
  background: rgba(46, 242, 180, 0.05);
}

.rank-section {
  background:
    radial-gradient(circle at 82% 12%, rgba(244, 201, 107, 0.09), transparent 26rem),
    linear-gradient(180deg, #080b11, #05060b);
}

.rank-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(440px, 1.18fr);
  gap: 72px;
  align-items: center;
}

.rank-preview__visual {
  min-height: 390px;
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(244, 201, 107, 0.25);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 30%, rgba(244, 201, 107, 0.1), transparent 16rem),
    linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(8, 11, 17, 0.94));
  box-shadow: var(--shadow);
}

.rank-preview__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(151, 164, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 164, 184, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
}

.rank-preview__status {
  position: absolute;
  top: 24px;
  left: 24px;
  color: var(--green);
  font-family: "Roboto Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.rank-preview__status::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.rank-preview__podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  position: relative;
}

.rank-preview__podium > span {
  min-height: 150px;
  padding: 18px;
  display: grid;
  align-content: end;
  border: 1px solid rgba(151, 164, 184, 0.18);
  border-radius: 16px;
  background: rgba(12, 16, 25, 0.88);
}

.rank-preview__podium .rank-preview__first {
  min-height: 205px;
  border-color: rgba(244, 201, 107, 0.4);
  background: linear-gradient(160deg, rgba(244, 201, 107, 0.11), rgba(12, 16, 25, 0.9));
}

.rank-preview__podium small {
  color: var(--gold);
  font-family: "Roboto Mono", monospace;
}

.rank-preview__podium strong {
  margin-top: 8px;
  font-size: 2.2rem;
}

.rank-preview__modes {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  position: relative;
}

.rank-preview__modes span {
  padding: 7px 10px;
  border: 1px solid rgba(151, 164, 184, 0.16);
  border-radius: 9px;
  color: var(--muted);
  background: rgba(8, 11, 17, 0.8);
  font-size: 0.72rem;
}

.game-panel {
  gap: 72px;
  padding: 34px;
  border: 1px solid rgba(84, 221, 242, 0.18);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.72), rgba(8, 11, 17, 0.72));
}

.game-panel__media {
  overflow: hidden;
  border-radius: 22px;
}

.meme-section,
.music-section,
.community-section {
  border-top: 1px solid rgba(151, 164, 184, 0.1);
}

.trust-strip {
  background: linear-gradient(180deg, rgba(8, 11, 17, 0.8), rgba(5, 6, 11, 0.95));
}

.contract-copy,
.verify-grid > .card {
  border-radius: 18px;
  background: rgba(12, 16, 25, 0.9);
}

footer {
  background: #07090e;
  border-top: 1px solid rgba(151, 164, 184, 0.12);
}

@media (max-width: 1080px) {
  .nav__links {
    display: none;
  }

  .hero__grid,
  .rank-preview {
    gap: 40px;
  }

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

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1200px);
  }

  .nav__inner {
    min-height: 64px;
  }

  .nav__actions > .button {
    display: none;
  }

  .network-bar {
    display: none;
  }

  .nav__actions .social-link {
    display: inline-grid;
  }

  .hero {
    min-height: auto;
    padding: 160px 0 70px;
  }

  .hero__grid,
  .section__head--split,
  .rank-preview {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    gap: 24px;
  }

  h1 {
    font-size: clamp(3.35rem, 18vw, 5.2rem);
  }

  .hero__line {
    font-size: clamp(1.45rem, 8vw, 2.25rem);
  }

  .hero__actions .button {
    flex: 1 1 100%;
  }

  .trust-row {
    gap: 7px;
  }

  .hero__visual {
    min-height: 330px;
  }

  .orb-card {
    width: min(88vw, 340px);
  }

  .section {
    padding: 72px 0;
  }

  .section__head--split {
    gap: 18px;
    text-align: left;
  }

  .command-network__grid,
  .boardroom-summary--primary,
  .boardroom-summary--detail,
  .tier-grid {
    grid-template-columns: 1fr;
  }

  .command-card {
    min-height: 240px;
  }

  .command-card h3 {
    margin-top: 44px;
  }

  .boardroom-summary--primary .boardroom-summary__item {
    min-height: 132px;
  }

  .boardroom-top-holders,
  .rule-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .boardroom-top-holders a,
  .rule-panel .button {
    width: 100%;
  }

  .rule-panel ul {
    grid-template-columns: 1fr;
  }

  .rank-preview {
    gap: 32px;
  }

  .rank-preview__visual {
    min-height: 340px;
    padding: 18px;
  }

  .rank-preview__podium > span {
    min-height: 124px;
    padding: 12px;
  }

  .rank-preview__podium .rank-preview__first {
    min-height: 170px;
  }

  .game-panel {
    padding: 18px;
    gap: 28px;
  }

  .simple-split,
  .verify-grid {
    grid-template-columns: 1fr;
  }

  .simple-split__actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .social-link {
    transition: none;
  }
}
