:root {
  --topbar-height: 82px;
  --sidebar-width: 340px;
  --footer-height: 48px;
  --panel-bg: rgba(8, 12, 18, 0.84);
  --panel-border: rgba(255, 255, 255, 0.12);
  --panel-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --text-strong: #f4f7fb;
  --text-soft: rgba(233, 240, 248, 0.74);
  --accent: #ff7a7a;
  --accent-strong: #d63d3d;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #000000;
}

body.launchpad-body {
  margin: 0;
  color: var(--text-strong);
  min-height: 100vh;
  background: #000000;
  overflow: hidden;
}

.launchpad-background,
.launchpad-overlay {
  position: fixed;
  inset: 0;
}

.launchpad-background {
  background-image: var(--launchpad-background);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition:
    background-image 0.35s ease,
    transform 0.5s ease,
    filter 0.35s ease;
  filter: brightness(1.12) saturate(1.05) contrast(1.02);
  z-index: 0;
}

.launchpad-overlay {
  background:
    radial-gradient(circle at top right, rgba(202, 38, 38, 0.26), transparent 20%),
    radial-gradient(circle at bottom left, rgba(255, 122, 122, 0.26), transparent 20%),
    linear-gradient(135deg, rgba(10, 4, 6, 0.19), rgba(28, 11, 15, 0.12));
  z-index: 1;
}

.topbar,
.sidebar-panel,
.hero-stage,
.footer-bar {
  position: relative;
  z-index: 2;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem 1rem calc(var(--sidebar-width) + 1.5rem);
  background: rgba(6, 10, 19, 0.68);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.topbar__logo {
  width: 170px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(214, 61, 61, 0.35));
}

.topbar__center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.topbar__title {
  font-size: 3.1rem;
  font-weight: 200;
  letter-spacing: 0.238em;
  text-transform: uppercase;
}

.topbar__subtitle {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sidebar-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  padding: 1.35rem 1.25rem calc(var(--footer-height) + 1.25rem);
  background: rgba(5, 9, 17, 0.82);
  backdrop-filter: blur(0.16px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.sidebar-panel__header {
  margin-top: calc(var(--topbar-height) + 0.75rem);
  margin-bottom: 1.75rem;
}

.sidebar-panel__eyebrow {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.sidebar-panel__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

.sidebar-panel__text {
  margin: 0.75rem 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.app-group {
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.app-group:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.85rem;
}

.app-group__label {
  margin-bottom: 0.35rem;
  padding-bottom: 0.35rem;
  padding-left: 0.15rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  /*  color: #ff6666;*/
  color: #a02a22;
  text-shadow: 0 0 18px rgba(214, 61, 61, 0.848);
}

.app-nav__item {
  display: block;
  margin-left: 1.2rem;
  padding: 0.95rem 0.85rem 0.95rem 0.85rem;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.85rem;
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.app-nav__item:hover,
.app-nav__item:focus-visible,
.app-nav__item.is-active {
  color: #ffffff;
  transform: translateX(6px);
  text-decoration: none;
}

.app-nav__item:hover,
.app-nav__item:focus-visible {
  background: rgba(214, 61, 61, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.app-nav__item.is-active {
  background: linear-gradient(135deg, rgba(122, 16, 16, 0.96), rgba(184, 41, 41, 0.84));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 28px rgba(214, 61, 61, 0.28);
  border-top-color: rgba(255, 122, 122, 0.4);
}

.app-nav__item:hover .app-nav__name,
.app-nav__item:focus-visible .app-nav__name,
.app-nav__item.is-active .app-nav__name {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(214, 61, 61, 0.5);
}

.app-nav__item:hover .app-nav__name,
.app-nav__item:focus-visible .app-nav__name {
  color: #ff5a5a;
}

.app-nav__item.is-active .app-nav__name,
.app-nav__item.is-active .app-nav__description {
  color: #ffffff;
  text-shadow: none;
}

.app-nav__name,
.app-nav__description {
  display: block;
}

.app-nav__name {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

.app-nav__description {
  color: rgba(238, 244, 249, 0.72);
  line-height: 1.5;
  font-size: 0.92rem;
}

.hero-stage {
  min-height: calc(100vh - var(--footer-height));
  margin-left: var(--sidebar-width);
  padding: calc(var(--topbar-height) + 3rem) 3rem calc(var(--footer-height) + 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-panel {
  width: min(760px, 100%);
  min-height: 540px;
  padding: 2.25rem 2.5rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow);
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-panel__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 122, 122, 0.14);
  border: 1px solid rgba(255, 122, 122, 0.28);
  color: #ffd6d6;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel__logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  margin-top: 1.4rem;
  margin-bottom: 1.3rem;
  filter: drop-shadow(0 0 16px rgba(214, 61, 61, 0.28));
}

.hero-panel__kicker {
  margin: 0 0 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-panel__headline {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero-panel__lead {
  margin: 1.25rem 0 0;
  font-size: 1.2rem;
  color: #eef4f9;
  max-width: 46rem;
}

.hero-panel__copy {
  margin: 1rem 0 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 44rem;
  min-height: 5.25rem;
}

.hero-panel__actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #0f83cf;
  border-color: #0f83cf;
}

.footer-bar {
  position: fixed;
  left: var(--sidebar-width);
  right: 0;
  bottom: 0;
  min-height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.5rem;
  background: rgba(6, 10, 19, 0.68);
  backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  html,
  body {
    height: 100%;
    min-height: 100%;
    overflow: hidden;
  }

  body.launchpad-body {
    min-height: 100vh;
    overflow: hidden;
  }

  .topbar {
    height: auto;
    min-height: var(--topbar-height);
    padding: 1rem 1.25rem 1rem 19.5rem;
    align-items: flex-start;
    gap: 1rem;
  }

  .topbar__actions {
    max-width: 22rem;
  }

  .topbar__center {
    left: 55%;
  }

  .sidebar-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 18rem;
    height: 100vh;
    min-height: 100vh;
    padding: 0.65rem 1rem 7rem;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .sidebar-panel__header {
    margin-top: 5.25rem;
    margin-bottom: 1rem;
  }

  .sidebar-panel__title {
    font-size: 1.65rem;
  }

  .app-group__label {
    font-size: 1rem;
  }

  .app-nav__item {
    margin-left: 0.85rem;
    padding: 0.8rem 0.75rem;
  }

  .app-nav__description {
    font-size: 0.86rem;
  }

  .hero-stage {
    min-height: calc(100vh - var(--footer-height));
    margin-left: 18rem;
    padding: calc(var(--topbar-height) + 1.75rem) 1.5rem calc(var(--footer-height) + 1.5rem);
    align-items: center;
    justify-content: center;
  }

  .hero-panel {
    width: min(100%, 640px);
    min-height: 500px;
    padding: 2rem;
  }

  .hero-panel__headline {
    font-size: clamp(2.2rem, 5vw, 4rem);
  }

  .hero-panel__copy {
    min-height: 5.25rem;
  }

  .footer-bar {
    position: fixed;
    left: 18rem;
    padding: 0.8rem 1.25rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 767.98px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.launchpad-body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .topbar {
    position: relative;
    height: auto;
    padding: 1rem;
    padding-left: 1.5rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .topbar__logo {
    width: 150px;
    height: 46px;
  }

  .topbar__center {
    position: static;
    left: auto;
    transform: none;
    text-align: left;
    pointer-events: auto;
  }

  .sidebar-panel {
    position: relative;
    width: 100%;
    height: auto;
    min-height: auto;
    top: 0;
    bottom: auto;
    padding: 1rem;
  }

  .sidebar-panel__header {
    margin-top: 0;
  }

  .hero-stage {
    min-height: auto;
    padding: 1rem 1rem 2rem;
  }

  .hero-panel {
    padding: 1.5rem;
  }

  .hero-panel__actions {
    flex-direction: column;
  }

  .hero-panel__actions .btn {
    width: 100%;
  }

  .footer-bar {
    position: relative;
    left: auto;
    padding: 0.9rem 1rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
  }
}
