@import url("site-footer.css");

:root {
  --bg: #07090f;
  --bg-panel: #0d111c;
  --bg-soft: #121727;
  --text: #f5f8ff;
  --muted: #aab4c8;
  --muted-strong: #c8d3e8;
  --line: rgba(255, 255, 255, 0.13);
  --cyan: #36e8ff;
  --green: #8cff7a;
  --magenta: #ff4fd8;
  --amber: #ffca5c;
  --silver: #dce7f5;
  --danger: #ff6377;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(115deg, rgba(54, 232, 255, 0.1), transparent 32%),
    linear-gradient(245deg, rgba(255, 79, 216, 0.08), transparent 34%),
    linear-gradient(135deg, #07090f 0%, #111018 42%, #07101a 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 9px
    );
  opacity: 0.2;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: linear-gradient(120deg, rgba(54, 232, 255, 0.08), transparent 30%, rgba(255, 202, 92, 0.07) 74%, transparent);
  mix-blend-mode: screen;
}

img {
  display: block;
  max-width: 100%;
}

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

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

button {
  cursor: pointer;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  width: min(calc(100% - 32px), var(--max));
  min-height: 72px;
  margin: 14px auto 0;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(8, 11, 18, 0.68);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.topbar.is-scrolled {
  background: rgba(8, 11, 18, 0.88);
  border-color: rgba(54, 232, 255, 0.22);
  transform: translateY(-4px);
}

.brand {
  display: inline-grid;
  grid-template-columns: 42px auto;
  gap: 11px;
  align-items: center;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(54, 232, 255, 0.45);
  border-radius: var(--radius);
  color: #081018;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 32px rgba(54, 232, 255, 0.26);
  font-size: 0.82rem;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 1.05rem;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.primary-nav a,
.ghost-button,
.solid-button,
.glass-button,
.danger-button,
.text-link,
.segmented-control button,
.guide-tabs button {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.primary-nav a {
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.13);
}

.topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ghost-button,
.solid-button,
.glass-button,
.danger-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 800;
  white-space: nowrap;
}

.danger-button {
  color: #fff;
  background: rgba(255, 99, 119, 0.18);
}

.ghost-button,
.glass-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.solid-button {
  color: #061016;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 14px 36px rgba(54, 232, 255, 0.23);
}

.solid-button:hover,
.ghost-button:hover,
.glass-button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.solid-button:hover {
  box-shadow: 0 18px 42px rgba(140, 255, 122, 0.22);
}

.glass-button:hover,
.ghost-button:hover {
  border-color: rgba(54, 232, 255, 0.42);
  background: rgba(54, 232, 255, 0.1);
}

.danger-button:hover {
  border-color: rgba(255, 99, 119, 0.55);
  background: rgba(255, 99, 119, 0.26);
  transform: translateY(-2px);
}

.large {
  min-height: 50px;
  padding-inline: 22px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 800;
}

.nav-toggle span {
  display: block;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 40px;
  align-items: end;
  min-height: 760px;
  padding: 160px max(24px, calc((100vw - var(--max)) / 2)) 88px;
  overflow: hidden;
}

.hero-media,
.hero-media img,
.hero-shade,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -4;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.1) contrast(1.04);
  transform: scale(1.02);
  animation: slow-pan 14s ease-in-out infinite alternate;
}

.hero-shade {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(7, 9, 15, 0.95) 0%, rgba(7, 9, 15, 0.76) 38%, rgba(7, 9, 15, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 9, 15, 0.2) 0%, rgba(7, 9, 15, 0.82) 90%);
}

.hero-grid {
  z-index: -2;
  opacity: 0.38;
  background:
    linear-gradient(rgba(54, 232, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 232, 255, 0.13) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black 0%, transparent 88%);
}

.hero-content {
  width: min(760px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 32px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 6.3rem;
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 3.25rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 28px;
  color: var(--muted-strong);
  font-size: 1.2rem;
}

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

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.status-strip span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
}

.status-strip strong {
  color: var(--text);
}

.download-console {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11, 17, 28, 0.86), rgba(10, 12, 18, 0.64));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.console-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
  animation: pulse 1.7s ease-in-out infinite;
}

.signal-card {
  padding: 18px;
  border: 1px solid rgba(54, 232, 255, 0.17);
  border-radius: var(--radius);
  background: rgba(54, 232, 255, 0.08);
}

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

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

.signal-card strong {
  margin: 6px 0 14px;
  font-size: 1.15rem;
}

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

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber));
  animation: meter-fill 1.4s ease both;
}

.console-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.console-list span {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.055);
}

.section-panel,
.content-section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-42px);
}

.portal-link {
  display: grid;
  min-height: 138px;
  padding: 22px;
  background: rgba(11, 15, 25, 0.86);
  transition: background 180ms ease, transform 180ms ease;
}

.portal-link:hover {
  background: rgba(54, 232, 255, 0.11);
  transform: translateY(-2px);
}

.portal-link span {
  color: var(--cyan);
  font-weight: 900;
}

.portal-link strong {
  align-self: end;
  font-size: 1.18rem;
}

.portal-link small {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.5;
}

.content-section {
  padding: 72px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading p {
  margin-bottom: 8px;
}

.segmented-control,
.guide-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.segmented-control {
  margin-bottom: 24px;
}

.segmented-control button,
.guide-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted-strong);
  background: transparent;
  font-weight: 800;
}

.segmented-control button:hover,
.segmented-control button.active,
.guide-tabs button:hover,
.guide-tabs button.active {
  color: #061016;
  background: var(--cyan);
}

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

.download-card,
.ops-card,
.account-panel,
.install-panel,
.auth-card,
.metric-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(12, 17, 29, 0.9);
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.26);
}

.download-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 20px;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.download-card:hover {
  border-color: rgba(54, 232, 255, 0.36);
  background:
    linear-gradient(180deg, rgba(54, 232, 255, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(12, 17, 29, 0.94);
  transform: translateY(-6px);
}

.download-card.is-hidden {
  display: none;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.platform-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(54, 232, 255, 0.44);
  border-radius: var(--radius);
  color: #061016;
  background: linear-gradient(135deg, var(--cyan), #eefcff);
  font-size: 0.74rem;
  font-weight: 950;
}

.accent-lime {
  border-color: rgba(140, 255, 122, 0.45);
  background: linear-gradient(135deg, var(--green), #f3fff0);
}

.accent-amber {
  border-color: rgba(255, 202, 92, 0.45);
  background: linear-gradient(135deg, var(--amber), #fff6d8);
}

.accent-pink {
  border-color: rgba(255, 79, 216, 0.45);
  background: linear-gradient(135deg, var(--magenta), #ffe5fa);
}

.accent-cyan {
  border-color: rgba(54, 232, 255, 0.45);
  background: linear-gradient(135deg, var(--cyan), #dffbff);
}

.accent-silver {
  border-color: rgba(220, 231, 245, 0.45);
  background: linear-gradient(135deg, var(--silver), #ffffff);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
  font-weight: 850;
}

.badge.success {
  color: #0b180b;
  background: var(--green);
}

.download-card p {
  min-height: 82px;
}

.download-card ul {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding: 0;
  color: var(--muted-strong);
  list-style: none;
}

.download-card li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.download-card li::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  content: "";
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(54, 232, 255, 0.75);
}

.download-card .card-actions {
  margin-top: auto;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--cyan);
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  gap: 18px;
  align-items: stretch;
}

.install-panel,
.account-panel {
  padding: 28px;
}

.guide-tabs {
  margin: 14px 0 26px;
}

.timeline {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.timeline li {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 18px 18px 18px 62px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.timeline li::before {
  position: absolute;
  top: 17px;
  left: 18px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #061016;
  background: var(--cyan);
  content: counter(step);
  counter-increment: step;
  font-size: 0.85rem;
  font-weight: 950;
}

.timeline span {
  color: var(--muted);
  line-height: 1.55;
}

.panel-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--amber);
  font-weight: 900;
}

.access-form {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.access-form label,
.auth-card label {
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 850;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

textarea {
  min-height: 112px;
  padding-top: 12px;
  resize: vertical;
}

select {
  appearance: none;
}

input[type="file"] {
  padding-top: 10px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(54, 232, 255, 0.62);
  box-shadow: 0 0 0 4px rgba(54, 232, 255, 0.1);
}

.access-form small {
  color: var(--muted);
}

.ops-grid,
.admin-metrics,
.support-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

.ops-card {
  min-height: 220px;
  padding: 22px;
  transition: transform 220ms ease, border-color 220ms ease;
}

.ops-card:hover,
.metric-card:hover {
  border-color: rgba(255, 202, 92, 0.36);
  transform: translateY(-4px);
}

.ops-card span,
.metric-card span {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ops-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.ops-card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--amber);
  font-weight: 900;
}

.subpage {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding-top: 148px;
}

.subpage-hero {
  min-height: 360px;
  padding: 70px 0 46px;
}

.subpage-hero h1 {
  max-width: 820px;
}

.subpage-hero p {
  max-width: 720px;
  color: var(--muted-strong);
  font-size: 1.13rem;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 24px;
  align-items: center;
  min-height: 520px;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(54, 232, 255, 0.12), transparent 38%),
    linear-gradient(225deg, rgba(255, 79, 216, 0.1), transparent 40%),
    rgba(12, 17, 29, 0.82);
}

.auth-card {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.auth-card .solid-button {
  margin-top: 8px;
}

.inline-form {
  margin: 0;
}

.flash {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.flash.success {
  border-color: rgba(140, 255, 122, 0.38);
  background: rgba(140, 255, 122, 0.1);
}

.flash.error {
  border-color: rgba(255, 99, 119, 0.48);
  background: rgba(255, 99, 119, 0.12);
}

.login-note,
.file-note {
  color: var(--muted);
  line-height: 1.5;
}

.admin-dashboard-hero {
  min-height: 420px;
}

.admin-summary {
  display: grid;
  gap: 12px;
}

.admin-summary div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.admin-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-summary strong {
  font-size: 1.8rem;
}

.admin-editor-grid {
  display: grid;
  gap: 20px;
}

.admin-form,
.admin-list {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(12, 17, 29, 0.9);
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.26);
}

.form-heading {
  margin-bottom: 22px;
}

.form-heading h2 {
  margin-bottom: 8px;
  font-size: 2.2rem;
}

.form-heading p {
  margin-bottom: 0;
}

.form-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

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

.form-grid label,
.checkbox-field {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 850;
}

.form-grid .full,
.checkbox-field.full {
  grid-column: 1 / -1;
}

.checkbox-field {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.checkbox-field legend {
  padding: 0 6px;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-row label,
.switch-line {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.checkbox-row input,
.switch-line input {
  width: auto;
  min-height: auto;
}

.form-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-row:first-of-type {
  border-top: 0;
}

.admin-row h3 {
  margin: 10px 0 4px;
}

.admin-row p {
  margin-bottom: 0;
}

.admin-metrics {
  grid-template-columns: repeat(4, 1fr);
}

.metric-card {
  min-height: 170px;
  padding: 22px;
  transition: transform 220ms ease, border-color 220ms ease;
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 2.5rem;
  line-height: 1;
}

.metric-card small {
  color: var(--muted);
}

.sales-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

.plan-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(12, 17, 29, 0.9);
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.26);
  transition: transform 220ms ease, border-color 220ms ease;
}

.plan-card.featured {
  border-color: rgba(54, 232, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(54, 232, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(12, 17, 29, 0.94);
}

.plan-card:hover {
  border-color: rgba(140, 255, 122, 0.34);
  transform: translateY(-6px);
}

.plan-card ul {
  display: grid;
  gap: 10px;
  margin: 8px 0 24px;
  padding: 0;
  color: var(--muted-strong);
  list-style: none;
}

.plan-card li {
  display: flex;
  gap: 8px;
}

.plan-card li::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 9px;
  border-radius: 999px;
  content: "";
  background: var(--green);
  box-shadow: 0 0 14px rgba(140, 255, 122, 0.65);
}

.plan-card .solid-button {
  margin-top: auto;
}

.api-status-row,
.intake-grid {
  display: grid;
  gap: 16px;
}

.api-status-row {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr) auto;
  align-items: end;
}

.api-status-row div {
  display: grid;
  gap: 8px;
  min-height: 94px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.api-status-row span,
.status-form label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.api-status-row strong {
  overflow-wrap: anywhere;
}

.solid-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.intake-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}

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

.admin-row small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.status-form select {
  min-height: 40px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 32px), var(--max));
  margin: 40px auto 0;
  padding: 28px 0 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.site-footer span:first-child {
  color: var(--text);
  font-weight: 900;
}

.download-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 28px;
  border: 1px solid rgba(54, 232, 255, 0.35);
  border-radius: var(--radius);
  color: var(--text);
  background: linear-gradient(180deg, rgba(17, 24, 38, 0.97), rgba(7, 9, 15, 0.97));
  box-shadow: var(--shadow);
}

.download-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.dialog-progress {
  height: 9px;
  margin: 22px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.dialog-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber));
}

.download-dialog[open] .dialog-progress span {
  animation: dialog-load 1.2s ease forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slow-pan {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-1.4%, 1%, 0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.78);
  }
}

@keyframes meter-fill {
  from {
    width: 0;
  }
}

@keyframes dialog-load {
  from {
    width: 0;
  }
  to {
    width: 86%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1060px) {
  .topbar {
    grid-template-columns: auto auto;
  }

  .brand {
    min-width: 0;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .primary-nav,
  .topbar-actions {
    grid-column: 1 / -1;
  }

  .primary-nav {
    display: none;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .topbar-actions {
    display: none;
  }

  .topbar-actions.is-open {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 150px;
  }

  h1 {
    font-size: 4.8rem;
  }

  h2 {
    font-size: 2.7rem;
  }

  .download-console {
    width: min(100%, 520px);
  }

  .intro-band,
  .download-grid,
  .ops-grid,
  .admin-metrics,
  .sales-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section,
  .section-heading,
  .auth-shell,
  .support-layout,
  .form-grid.two,
  .plan-grid,
  .api-status-row,
  .intake-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    width: min(calc(100% - 20px), var(--max));
    margin-top: 10px;
  }

  .brand small {
    display: none;
  }

  .primary-nav a,
  .topbar-actions a,
  .topbar-actions button {
    width: 100%;
  }

  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    padding: 138px 16px 62px;
  }

  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 9, 15, 0.94), rgba(7, 9, 15, 0.72)),
      linear-gradient(180deg, rgba(7, 9, 15, 0.36), rgba(7, 9, 15, 0.92));
  }

  .status-strip,
  .hero-actions,
  .card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .status-strip span,
  .hero-actions a,
  .card-actions a,
  .card-actions button {
    width: 100%;
  }

  .intro-band,
  .download-grid,
  .ops-grid,
  .admin-metrics,
  .support-layout,
  .sales-metrics,
  .plan-grid,
  .intake-grid {
    grid-template-columns: 1fr;
  }

  .intro-band {
    transform: none;
    margin-top: 18px;
  }

  .content-section {
    padding: 56px 0;
  }

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

  .auth-shell {
    padding: 24px;
  }

  .admin-form,
  .admin-list {
    padding: 18px;
  }

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

  .row-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .row-actions a,
  .row-actions button {
    width: 100%;
  }

  .subpage {
    padding-top: 130px;
  }

  .site-footer {
    flex-direction: column;
  }
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .32));
}

.home-main {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding-top: 124px;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  min-height: 510px;
  padding: clamp(34px, 6vw, 78px);
  overflow: hidden;
  border: 1px solid rgba(54, 232, 255, .24);
  border-radius: 20px;
  background: radial-gradient(circle at 85% 18%, rgba(92, 91, 255, .28), transparent 19rem), linear-gradient(125deg, rgba(6, 25, 52, .95), rgba(13, 12, 37, .94));
  box-shadow: var(--shadow);
}

.home-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(115deg, rgba(54, 232, 255, .09), transparent 40%, rgba(255, 79, 216, .08));
}

.home-hero-copy,
.home-hero-brand { position: relative; z-index: 1; }
.home-hero-copy { max-width: 700px; }
.home-hero h1 { margin: 0 0 18px; font-size: clamp(2.45rem, 5.5vw, 5rem); line-height: .98; letter-spacing: -.045em; }
.home-hero-copy > p { max-width: 610px; margin: 0; color: var(--muted-strong); font-size: clamp(1rem, 1.8vw, 1.15rem); line-height: 1.65; }
.home-hero-copy .hero-actions { margin-top: 30px; }

.home-hero-brand {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(137, 205, 255, .22);
  border-radius: 18px;
  background: rgba(3, 13, 30, .35);
}

.home-hero-brand img { width: min(100%, 270px); max-height: 250px; object-fit: contain; filter: drop-shadow(0 20px 25px rgba(0, 0, 0, .38)); }
.home-hero-brand span { color: #bceeff; font-size: .72rem; font-weight: 900; letter-spacing: .15em; text-align: center; }
.home-destinations { padding: 92px 0 12px; }
.home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }

.home-link-card {
  display: flex;
  min-height: 205px;
  padding: 23px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  color: var(--text);
  background: rgba(11, 19, 38, .72);
  flex-direction: column;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.home-link-card:hover,
.home-link-card:focus-visible { border-color: rgba(54, 232, 255, .6); background: rgba(15, 35, 67, .9); box-shadow: 0 18px 40px rgba(0, 0, 0, .24); outline: none; transform: translateY(-4px); }
.home-link-primary { border-color: rgba(54, 232, 255, .36); background: linear-gradient(145deg, rgba(9, 58, 94, .8), rgba(25, 23, 71, .88)); }
.home-link-icon { display: grid; width: 40px; height: 40px; place-items: center; margin-bottom: 18px; border: 1px solid rgba(54, 232, 255, .38); border-radius: 11px; color: var(--cyan); background: rgba(54, 232, 255, .08); font-size: 1.22rem; font-weight: 900; }
.home-link-card strong { font-size: 1.08rem; }
.home-link-card small { margin-top: 8px; color: var(--muted); line-height: 1.45; }
.home-link-card em { margin-top: auto; padding-top: 17px; color: var(--cyan); font-size: .83rem; font-style: normal; font-weight: 850; }

.home-help {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  margin-top: 74px;
  padding: 28px;
  border: 1px solid rgba(255, 202, 92, .28);
  border-radius: 16px;
  background: linear-gradient(105deg, rgba(61, 43, 19, .56), rgba(30, 21, 56, .66));
}

.home-help h2 { margin: 0 0 7px; font-size: clamp(1.4rem, 3vw, 2rem); }
.home-help p { max-width: 680px; margin: 0; color: var(--muted-strong); line-height: 1.55; }

@media (max-width: 1060px) {
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .home-main { width: min(calc(100% - 20px), var(--max)); padding-top: 104px; }
  .home-hero { grid-template-columns: 1fr; min-height: 0; padding: 26px 20px; border-radius: 16px; }
  .home-hero-brand { width: 100%; max-width: 320px; margin: 0 auto; }
  .home-grid { grid-template-columns: 1fr; }
  .home-help { align-items: stretch; flex-direction: column; margin-top: 46px; }
}
