:root {
  color-scheme: dark;
  --bg: #0e1113;
  --panel: #171c20;
  --panel-2: #1f252b;
  --line: #303941;
  --text: #f4f0eb;
  --muted: #9da9b2;
  --orange: #ff6b32;
  --orange-2: #ff9d66;
  --green: #65e6a8;
  --red: #ef6054;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 107, 50, 0.16), transparent 28rem),
    linear-gradient(135deg, #0b0f11 0%, #11171b 52%, #0b0d0f 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button,
a.primary,
a.secondary {
  cursor: pointer;
  border-radius: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

button.primary,
a.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #190706;
}

button.secondary,
a.secondary {
  background: #20272d;
}

button.ghost {
  background: transparent;
}

button:disabled {
  cursor: default;
  opacity: 0.55;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 17, 19, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-logo-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 157, 102, 0.35);
  background: #111;
}

.brand-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 50, 0.18), transparent 55%);
  pointer-events: none;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  filter: contrast(1.05) saturate(0.85);
}

.brand-badge,
.brand-mark,
.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #242b31, #101315);
  color: var(--orange-2);
  border: 1px solid var(--line);
  font-weight: 900;
}

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

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.topbar nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  min-height: 38px;
}

.main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.main.wide {
  width: min(1480px, calc(100% - 32px));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 105px);
}

.eyebrow {
  color: var(--orange-2);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  font-weight: 900;
}

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

h1 {
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 1;
  margin-bottom: 18px;
}

h2 {
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  line-height: 1.55;
  font-weight: 650;
}

.hero-copy p {
  max-width: 680px;
  font-size: 1.12rem;
}

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

.hero-panel,
.auth-card,
.app-card,
.plan-card,
.detail-layout,
.detail-side {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(31, 37, 43, 0.95), rgba(18, 22, 25, 0.95));
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  min-height: 360px;
  padding: 18px;
}

.window-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.window-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mini-card {
  min-height: 160px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #14191d;
}

.mini-card.locked {
  opacity: 0.58;
}

.mini-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #280b0b;
  color: var(--orange);
  font-weight: 900;
  margin-bottom: 28px;
}

.mini-card strong,
.mini-card small {
  display: block;
}

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

.auth-card {
  width: min(540px, 100%);
  margin: 8vh auto 0;
  padding: 28px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 850;
}

input {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0b0c0e;
  color: var(--text);
  padding: 0 12px;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--orange-2);
}

.text-button {
  padding: 0;
  min-height: auto;
  border: 0;
  margin-top: 14px;
  background: transparent;
  color: var(--orange-2);
}

.dashboard-head,
.dashboard-hero,
.plans-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 22px;
}

.dashboard-hero {
  min-height: 170px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 107, 50, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(31, 37, 43, 0.86), rgba(16, 20, 23, 0.92));
  box-shadow: var(--shadow);
}

.dashboard-hero h1 {
  margin-bottom: 10px;
}

.dashboard-hero p {
  margin-bottom: 0;
}

.suite-picker {
  min-height: calc(100vh - 145px);
  display: grid;
  align-content: center;
  gap: 24px;
}

.suite-picker-head {
  max-width: 740px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 107, 50, 0.13), transparent 48%),
    linear-gradient(180deg, rgba(31, 37, 43, 0.9), rgba(16, 20, 23, 0.94));
  box-shadow: var(--shadow);
}

.suite-picker-head h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.suite-picker-head p {
  margin-bottom: 0;
}

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

.suite-choice {
  min-height: 230px;
  padding: 22px;
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 10px;
  text-align: left;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.suite-choice::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.8;
  pointer-events: none;
}

.suite-choice > * {
  position: relative;
  z-index: 1;
}

.suite-choice-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 900;
}

.suite-choice strong {
  font-size: 1.35rem;
}

.suite-choice small {
  color: inherit;
  line-height: 1.35;
  font-weight: 800;
}

.suite-choice-industrial {
  color: var(--text);
  background:
    radial-gradient(circle at 15% 5%, rgba(255, 107, 50, 0.34), transparent 34%),
    linear-gradient(140deg, #242a30, #090b0d);
}

.suite-choice-travel {
  color: #102332;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.68)),
    url("/assets/travel-bg.svg") center / cover;
  border-color: rgba(255, 180, 138, 0.9);
}

.suite-choice-lab {
  color: #1f2933;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(222, 229, 236, 0.86)),
    url("/assets/lab-bg.svg") center / cover;
  border-color: rgba(116, 129, 143, 0.7);
}

.suite-workspace {
  min-height: calc(100vh - 145px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.suite-hero {
  min-height: 145px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.suite-hero h1 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 4vw, 3.15rem);
}

.suite-hero p {
  margin-bottom: 0;
}

.suite-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
}

.suite-board {
  margin-top: 22px;
}

.suite-industrial {
  background:
    linear-gradient(135deg, rgba(255, 107, 50, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(18, 23, 27, 0.94), rgba(8, 11, 13, 0.98));
}

.suite-industrial .suite-hero {
  background:
    linear-gradient(135deg, rgba(255, 107, 50, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(31, 37, 43, 0.86), rgba(16, 20, 23, 0.92));
}

.suite-travel {
  color: #122534;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 240, 0.78)),
    url("/assets/travel-bg.svg") center / cover fixed;
  border-color: rgba(255, 180, 138, 0.7);
}

.suite-travel .suite-hero {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 180, 138, 0.7);
  backdrop-filter: blur(8px);
}

.suite-travel .eyebrow,
.suite-travel .suite-choice-kicker {
  color: #d36b2f;
}

.suite-travel p,
.suite-travel .section-title-row p {
  color: #385363;
}

.suite-travel .plan-pill,
.suite-travel .app-tile {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(68, 128, 143, 0.28);
}

.suite-travel .app-tile.empty-slot {
  background: rgba(255, 255, 255, 0.56);
}

.suite-travel .tile-content h2,
.suite-travel .plan-pill strong {
  color: #122534;
}

.suite-lab {
  color: #1f2933;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(229, 234, 240, 0.88)),
    url("/assets/lab-bg.svg") center / cover fixed;
  border-color: rgba(116, 129, 143, 0.55);
}

.suite-lab .suite-hero {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(116, 129, 143, 0.5);
}

.suite-lab .eyebrow {
  color: #4f5d68;
}

.suite-lab p,
.suite-lab .section-title-row p {
  color: #56636f;
}

.suite-lab .plan-pill,
.suite-lab .app-tile {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(116, 129, 143, 0.32);
}

.suite-lab .tile-content h2,
.suite-lab .plan-pill strong {
  color: #1f2933;
}

.plan-pill {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 14px 18px;
}

.plan-pill span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 900;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.launcher-section {
  margin-top: 22px;
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.section-title-row p {
  margin: 6px 0 0;
}

.launcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px;
}

.app-tile {
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-rows: 43% 1fr;
  gap: 10px;
  padding: 12px 12px 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 107, 50, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(31, 37, 43, 0.98), rgba(13, 16, 18, 0.96));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.app-tile.available {
  border-color: rgba(255, 157, 102, 0.6);
}

.app-tile.locked,
.app-tile.empty-slot {
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(31, 37, 43, 0.72), rgba(13, 16, 18, 0.86));
}

.tile-image {
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d1012;
}

.tile-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 6px;
}

.tile-image.placeholder-art {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(101, 230, 168, 0.13), transparent 55%),
    linear-gradient(180deg, #242a2f, #111518);
}

.tile-image.placeholder-art span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 900;
}

.tile-content {
  min-width: 0;
}

.tile-content h2 {
  margin: 6px 0 3px;
  font-size: 1rem;
  line-height: 1.1;
}

.tile-content p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-actions {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.tile-actions button,
.tile-actions a.primary,
.tile-actions a.secondary {
  min-height: 34px;
  padding: 0 9px;
  font-size: 0.78rem;
}

.app-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.app-card.locked {
  opacity: 0.72;
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.app-card-body p {
  margin-bottom: 14px;
}

.app-actions {
  grid-column: 1 / -1;
}

.app-icon.large {
  width: 76px;
  height: 76px;
}

.badge {
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.badge.available {
  color: #06160e;
  background: var(--green);
  border-color: var(--green);
}

.badge.locked {
  color: var(--red);
}

.badge.promo {
  color: #190706;
  background: var(--orange-2);
  border-color: var(--orange-2);
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  padding: 24px;
}

.detail-side {
  padding: 20px;
  align-self: start;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.benefits span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #11161a;
  color: var(--text);
  font-weight: 800;
}

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

.plan-card {
  padding: 20px;
  display: grid;
  gap: 14px;
}

.plan-card.current {
  border-color: rgba(101, 230, 168, 0.65);
}

.empty-state,
.boot-screen {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.boot-screen {
  gap: 12px;
}

@media (max-width: 820px) {
  .topbar,
  .dashboard-head,
  .dashboard-hero,
  .suite-hero,
  .plans-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

  .suite-choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1280px) {
  .launcher-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}
