:root {
  color-scheme: dark;
  --bg: #0e0f0e;
  --panel: #171817;
  --panel-2: #20221f;
  --line: #2e312d;
  --text: #f2f3ee;
  --muted: #a5aaa2;
  --soft: #747a72;
  --green: #2fbf7a;
  --green-2: #174d34;
  --blue: #75b7ff;
  --amber: #e3aa50;
  --red: #d96b5f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[data-auth-only] {
  display: none !important;
}

html[data-auth="in"] [data-auth-only] {
  display: revert !important;
}

html[data-auth="in"] .sidebar-footer[data-auth-only] {
  display: grid !important;
}

html[data-auth="in"] [data-guest-only] {
  display: none !important;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

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

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px 1fr;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: #111211;
  padding: 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px 18px;
  font-weight: 700;
}

.mark {
  width: 28px;
  height: 28px;
  border: 1px solid #536056;
  display: grid;
  place-items: center;
  background: #17221b;
  color: var(--green);
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 5px;
}

.nav a {
  padding: 9px 10px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--panel-2);
  border-color: var(--line);
}

.sidebar-footer {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 10px;
}

.invite {
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}

.account {
  color: var(--muted);
  font-size: 13px;
}

.main {
  min-width: 0;
}

.topbar {
  height: 58px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 15, 14, 0.86);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 2;
}

.btn {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.btn.primary {
  background: #e8ede5;
  color: #111611;
  border-color: #e8ede5;
}

.btn.green {
  background: #143523;
  color: #62d99a;
  border-color: #2d6a48;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr);
  gap: 34px;
  align-items: center;
  padding: 58px 44px 32px;
}

.eyebrow {
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0;
  margin: 0 0 12px;
}

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

h1 {
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: 0;
  margin-bottom: 18px;
}

h2 {
  font-size: 32px;
  letter-spacing: 0;
}

h3 {
  font-size: 17px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--soft);
  font-size: 13px;
}

.product-frame {
  border: 1px solid var(--line);
  background: #121312;
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
  min-height: 420px;
}

.window-bar {
  height: 34px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.dot:nth-child(2) {
  background: var(--amber);
}

.dot:nth-child(3) {
  background: var(--green);
}

.mock-app {
  display: grid;
  grid-template-columns: 170px 1fr;
  min-height: 386px;
}

.mock-side {
  border-right: 1px solid var(--line);
  padding: 12px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.mock-pill,
.mock-pill-on {
  height: 30px;
  border-radius: 6px;
  background: #181a18;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.mock-pill-on {
  background: #242724;
  color: var(--text);
}

.mock-content {
  padding: 18px;
}

.prompt-box {
  border: 1px solid #3a3f39;
  border-radius: 8px;
  min-height: 110px;
  padding: 16px;
  color: var(--soft);
}

.small-actions {
  display: flex;
  gap: 8px;
  margin: 10px 0 20px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 6px 10px;
  font-size: 12px;
}

.stat-grid,
.download-grid,
.plan-grid,
.team-grid {
  display: grid;
  gap: 12px;
}

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

.section {
  padding: 28px 44px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
}

.metric {
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  color: var(--text);
  font-size: 28px;
  margin-top: 6px;
}

.chart {
  height: 230px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.bar {
  flex: 1;
  min-width: 12px;
  background: linear-gradient(#36b985, #207c59);
  border-radius: 4px 4px 0 0;
}

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

.download-card {
  min-height: 190px;
  display: grid;
  align-content: space-between;
}

.download-card.recommended {
  border-color: #357b55;
  background: #132019;
}

.download-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.tag {
  color: var(--green);
  border: 1px solid #2d6a48;
  background: #122f20;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 12px;
}

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

.price {
  font-size: 34px;
  font-weight: 750;
  margin: 10px 0;
}

.muted {
  color: var(--muted);
}

.feature-list {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

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

.table {
  width: 100%;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 14px;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  text-align: left;
}

.auth-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 54px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form {
  display: grid;
  gap: 12px;
}

.auth-message {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
}

.auth-message[data-kind="error"] {
  color: var(--red);
}

.auth-message[data-kind="success"] {
  color: var(--green);
}

label {
  color: var(--muted);
  font-size: 13px;
}

input,
select {
  width: 100%;
  background: #101110;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 40px;
  padding: 8px 10px;
}

.docs {
  max-width: 1050px;
  padding: 48px 44px;
}

.code {
  background: #0a0b0a;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  overflow-x: auto;
  color: #d7e3d3;
}

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

  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-footer {
    position: static;
    margin-top: 16px;
  }

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

  .stat-grid,
  .download-grid,
  .plan-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }
}

@media (max-width: 620px) {
  .hero,
  .section,
  .docs {
    padding-left: 20px;
    padding-right: 20px;
  }

  .mock-app {
    grid-template-columns: 1fr;
  }

  .mock-side {
    display: none;
  }

  .topbar {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 16px;
  }
}
