:root {
  --bg: #0d1110;
  --bg-soft: #141a18;
  --panel: rgba(17, 26, 23, 0.9);
  --panel-strong: rgba(28, 38, 34, 0.95);
  --line: rgba(177, 199, 168, 0.18);
  --text: #edf2e6;
  --muted: #aeb9a3;
  --accent: #cf3a2b;
  --accent-soft: #ff7d56;
  --signal: #c7d85f;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Jura", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(207, 58, 43, 0.18), transparent 28%),
    linear-gradient(180deg, #0a0d0d 0%, #101615 52%, #0b0f0f 100%);
}

body.compact .lead,
body.compact .card p,
body.compact .rule p,
body.compact .checklist__item,
body.compact .hint,
body.compact .formula,
body.compact .footer p {
  font-size: 0.95rem;
}

body.compact .panel {
  padding: 1.4rem;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  mix-blend-mode: soft-light;
}

.hero,
main,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 3rem;
}

.topbar,
main,
.footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  background: rgba(11, 15, 14, 0.72);
  backdrop-filter: blur(10px);
}

.topbar__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.brand,
.eyebrow,
.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.brand,
h1,
h2,
h3 {
  font-family: "Russo One", sans-serif;
}

.brand {
  color: var(--signal);
  font-size: 0.95rem;
}

.mode-toggle,
.button,
.quote {
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.mode-toggle {
  padding: 0.7rem 1rem;
  color: var(--text);
  background: rgba(207, 58, 43, 0.14);
  font: inherit;
}

.mode-toggle:hover,
.button:hover,
.quote:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
}

.hero__content {
  padding: clamp(3rem, 10vw, 8rem) 0 2rem;
  max-width: 760px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: end;
}

.eyebrow,
.section-tag {
  margin: 0 0 0.8rem;
  color: var(--accent-soft);
  font-size: 0.78rem;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  line-height: 0.95;
}

.lead {
  margin: 1.4rem 0 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero__badge {
  align-self: center;
  width: min(220px, 100%);
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(7, 10, 10, 0.82);
  box-shadow: var(--shadow);
}

.hero__badge img {
  display: block;
  width: 100%;
  max-width: 180px;
  margin: 0 auto;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__motto {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(207, 58, 43, 0.22);
  background: rgba(207, 58, 43, 0.07);
  color: var(--text);
  font-family: "Russo One", sans-serif;
  line-height: 1.6;
}

.hero__motto p {
  margin: 0 0 0.45rem;
}

.hero__motto p:last-child {
  margin-bottom: 0;
}

.hero__badge-meta {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.3rem;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(135deg, rgba(207, 58, 43, 0.95), rgba(109, 20, 15, 0.95));
}

.button--ghost {
  background: rgba(255, 255, 255, 0.03);
}

.button--discord {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.95), rgba(50, 61, 182, 0.95));
}

main {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 2rem;
}

.panel {
  padding: 1.8rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    var(--panel);
  box-shadow: var(--shadow);
}

.panel--accent {
  background:
    linear-gradient(135deg, rgba(207, 58, 43, 0.1), transparent 40%),
    var(--panel-strong);
}

.panel--warning {
  background:
    linear-gradient(135deg, rgba(199, 216, 95, 0.08), transparent 45%),
    var(--panel-strong);
}

.panel--final {
  text-align: center;
}

.panel__header {
  margin-bottom: 1.2rem;
}

h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
}

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

.card,
.rule,
.quote,
.checklist__item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.card {
  padding: 1.2rem;
}

h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.card p,
.rule p,
.formula,
.footer p,
.checklist__item {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.rules {
  display: grid;
  gap: 0.9rem;
}

.rule {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.rule__index {
  color: var(--signal);
  font-family: "Russo One", sans-serif;
  font-size: 1.3rem;
}

.checklist {
  display: grid;
  gap: 0.8rem;
}

.checklist__item {
  padding: 1rem 1.1rem;
}

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

.quote {
  padding: 1rem 1.1rem;
  color: var(--text);
  text-align: left;
  font: inherit;
  line-height: 1.5;
  background: rgba(207, 58, 43, 0.08);
}

.quote.copied {
  border-color: rgba(199, 216, 95, 0.8);
  background: rgba(199, 216, 95, 0.12);
}

.hint {
  margin-top: 0.9rem;
  color: var(--muted);
}

.formula {
  font-size: clamp(1.1rem, 3vw, 1.45rem);
}

.status-board,
.price-layout,
.role-grid,
.comms-grid,
.charter-layout,
.doc-grid,
.quick-nav__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.status-card,
.price-card,
.role-card,
.phase-card,
.comms-card,
.charter-card,
.doc-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.quick-link {
  display: block;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.quick-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(207, 58, 43, 0.08);
}

.quick-link span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--accent-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.quick-link strong {
  font-family: "Russo One", sans-serif;
  font-weight: 400;
  line-height: 1.4;
}

.status-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.price-card {
  display: grid;
  gap: 0.75rem;
}

.price-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.price-item strong {
  color: var(--signal);
  font-family: "Russo One", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
}

.price-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.discounts {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(199, 216, 95, 0.22);
  background: rgba(199, 216, 95, 0.06);
}

.discounts__title {
  margin-bottom: 0.7rem;
  color: var(--signal);
  font-family: "Russo One", sans-serif;
}

.discounts__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
}

.charter-layout {
  grid-template-columns: 1.2fr 1fr;
}

.number-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

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

.doc-card p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

.doc-card p:last-child {
  margin-bottom: 0;
}

.hero--sales {
  grid-template-columns: 1fr;
}

.sales-page .hero__content {
  max-width: 900px;
}

.sheet-wrap {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  min-height: 70vh;
  overflow: hidden;
}

.sheet-wrap.is-hidden {
  display: none;
}

.is-hidden {
  display: none;
}

.sheet-frame {
  width: 100%;
  min-height: 70vh;
  border: 0;
  background: #fff;
}

.auth-status {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(88, 101, 242, 0.28);
  color: var(--text);
  background: rgba(88, 101, 242, 0.08);
}

.centered-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1rem;
}

.gate-card {
  width: min(720px, 100%);
}

.terminal-block {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(199, 216, 95, 0.22);
  background: rgba(8, 12, 11, 0.86);
  color: var(--signal);
  font-family: "Russo One", sans-serif;
  line-height: 1.7;
}

.terminal-block p {
  margin: 0 0 0.45rem;
}

.terminal-block p:last-child {
  margin-bottom: 0;
}

.vacancy-count {
  color: var(--signal);
  font-family: "Russo One", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
}

.phase-list {
  display: grid;
  gap: 1rem;
}

.phase-card__head {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.phase-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(207, 58, 43, 0.4);
  color: var(--accent-soft);
  font-family: "Russo One", sans-serif;
  font-size: 1.3rem;
  background: rgba(207, 58, 43, 0.08);
}

.phase-card__head p,
.phase-note,
.role-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.comms-card p,
.alert-box p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.alert-box {
  margin-top: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(207, 58, 43, 0.45);
  background: rgba(207, 58, 43, 0.08);
}

.alert-box h3 {
  color: var(--accent-soft);
}

.phase-points {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
  line-height: 1.7;
}

.phase-note {
  margin-top: 0.9rem;
}

.footer {
  padding: 0 0 2rem;
}

.footer a {
  color: var(--signal);
}

.sales-page {
  background:
    radial-gradient(circle at 15% 15%, rgba(220, 86, 36, 0.22), transparent 24%),
    radial-gradient(circle at 85% 20%, rgba(199, 216, 95, 0.1), transparent 20%),
    linear-gradient(180deg, #080b0c 0%, #0f1314 36%, #0a0f10 100%);
}

.sales-page .hero__content {
  max-width: 920px;
}

.sales-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.sales-chip {
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.92rem;
}

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

.sales-note {
  padding: 1.25rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    rgba(255, 255, 255, 0.03);
}

.sales-note__label {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--accent-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.sales-note h3 {
  margin-bottom: 0.6rem;
}

.sales-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.sales-section {
  overflow: hidden;
}

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

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    rgba(13, 18, 18, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.product-card--featured {
  grid-column: span 2;
}

.product-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(199, 216, 95, 0.04), transparent 22%),
    #090c0d;
}

.product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 0.75rem;
  transform: scale(1.02);
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem;
}

.product-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.product-card__head h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.product-card__price {
  flex-shrink: 0;
  color: var(--signal);
  font-family: "Russo One", sans-serif;
  font-size: 1rem;
  white-space: nowrap;
}

.product-card__desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.product-card__meta {
  margin: 0.95rem 0 0;
  padding-left: 1rem;
  color: var(--text);
  line-height: 1.7;
}

.product-card__meta li + li {
  margin-top: 0.2rem;
}

@media (max-width: 820px) {
  .grid,
  .quotes,
  .status-board,
  .price-layout,
  .role-grid,
  .comms-grid,
  .charter-layout,
  .doc-grid,
  .quick-nav__grid {
    grid-template-columns: 1fr;
  }

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

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

  .sales-brief__grid,
  .catalog-grid,
  .catalog-grid--compact {
    grid-template-columns: 1fr;
  }

  .product-card--featured {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar__actions {
    width: 100%;
  }

  .hero {
    padding-top: 1rem;
  }

  .panel {
    padding: 1.2rem;
  }
}
