:root {
  color-scheme: light;
  --ink: #1a2420;
  --muted: #5f6b64;
  --line: #e4e0d8;
  --paper: #faf7f1;
  --panel: #fffcf7;
  --soft: #f0f5f1;
  --green: #2a6b55;
  --green-dark: #1d4a3c;
  --gold: #b8892d;
  --gold-soft: #fff4dd;
  --shadow: 0 20px 50px rgba(36, 32, 24, 0.08);
  --shadow-soft: 0 8px 24px rgba(36, 32, 24, 0.05);
  --radius-sm: 10px;
  --radius-md: 14px;
  --font-ui: "DM Sans", Aptos, "Segoe UI", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(184, 137, 45, 0.09), transparent 34%),
    radial-gradient(circle at 100% 12%, rgba(42, 107, 85, 0.1), transparent 30%),
    linear-gradient(180deg, #fffdf9 0%, var(--paper) 48%, #f3efe8 100%);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.site-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid rgba(36, 32, 24, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(248, 244, 236, 0.92));
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.7);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 0 8px;
  color: var(--ink);
  text-decoration: none;
}

.brand-block img {
  width: 38px;
  height: 38px;
}

.brand-block span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-block small {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-block strong {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.05;
  font-weight: 600;
  font-variant-ligatures: none;
}

.nav-tabs {
  display: grid;
  gap: 18px;
}

.nav-section {
  display: grid;
  gap: 7px;
}

.nav-section-label {
  margin: 0;
  padding: 0 8px;
  color: rgba(95, 107, 100, 0.76);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nav-tab {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 9px 12px 9px 14px;
  color: var(--muted);
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.nav-tab::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background 160ms ease;
}

.nav-tab:hover {
  border-color: rgba(42, 107, 85, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-dark);
}

.nav-tab.is-active {
  border-color: rgba(42, 107, 85, 0.14);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(240, 245, 241, 0.9));
  color: var(--green-dark);
  box-shadow: var(--shadow-soft);
}

.nav-tab.is-active::before {
  background: linear-gradient(180deg, var(--gold), #d4a84b);
}

.nav-tab-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.nav-label {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.sidebar-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 0 8px;
}

.subtle-link {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.subtle-link:hover {
  text-decoration: underline;
}

.workspace {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 30px;
}

.workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

h1 {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 40px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-ligatures: none;
}

h2 {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 30px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-ligatures: none;
}

.view-subtitle {
  max-width: 720px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 6px;
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.primary-link {
  border: 1px solid var(--green);
  background: linear-gradient(180deg, #33856a, var(--green));
  color: #fff;
  box-shadow: 0 8px 18px rgba(42, 107, 85, 0.22);
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.primary-link:hover {
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  box-shadow: 0 10px 22px rgba(42, 107, 85, 0.28);
  transform: translateY(-1px);
}

.secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: #fff;
}

.overview-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(520px, calc(100vh - 160px));
  overflow: hidden;
  border: 1px solid rgba(42, 107, 85, 0.12);
  border-radius: var(--radius-md);
  padding: clamp(24px, 5vw, 54px);
  isolation: isolate;
  background-image: url("/marketplace-assets/screenshot-1-1366x768.png");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.overview-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 27, 22, 0.82) 0%, rgba(12, 27, 22, 0.62) 42%, rgba(12, 27, 22, 0.22) 100%),
    rgba(16, 27, 23, 0.18);
}

.overview-copy {
  width: min(690px, 100%);
  color: #fff;
}

.overview-copy .eyebrow {
  color: #ffd987;
}

.overview-copy h2 {
  max-width: 640px;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 0.98;
}

.overview-copy p:not(.eyebrow) {
  max-width: 640px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.45;
}

.quick-access {
  display: grid;
  gap: 14px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.access-tile,
.system-strip > div {
  border: 1px solid rgba(36, 32, 24, 0.08);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff, #fcfaf6);
  box-shadow: var(--shadow-soft);
}

.access-tile {
  display: grid;
  gap: 8px;
  min-height: 176px;
  padding: 18px;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.access-tile:hover {
  border-color: rgba(42, 107, 85, 0.2);
  box-shadow: 0 16px 34px rgba(36, 32, 24, 0.1);
  transform: translateY(-2px);
}

.tile-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.access-tile strong {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.18;
  font-weight: 600;
}

.access-tile span:last-child,
.system-strip span:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.system-strip > div {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 16px;
}

.system-strip strong {
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (max-width: 1080px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    z-index: 5;
    height: auto;
    gap: 14px;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
  }

  .sidebar-footer {
    display: none;
  }

  .workspace {
    padding: 18px;
  }

  .overview-hero {
    min-height: 520px;
  }

  .access-grid,
  .system-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-block strong {
    font-size: 18px;
  }

  .nav-tabs {
    grid-template-columns: 1fr;
  }

  .workspace-header {
    display: grid;
  }

  .overview-hero {
    min-height: 560px;
  }

  .overview-copy h2 {
    font-size: 38px;
  }
}
