:root {
  color-scheme: light;
  --ink: #141817;
  --muted: #65706c;
  --soft: #eef3ef;
  --paper: #f6f7f4;
  --white: #ffffff;
  --line: #dde5df;
  --line-strong: #c8d4cc;
  --green: #136b57;
  --green-soft: #e4f2ec;
  --blue: #285f95;
  --blue-soft: #e7eef7;
  --yellow-soft: #f4efd9;
  --red: #b33131;
  --dark: #121918;
  --dark-2: #1b2523;
  --shadow: 0 14px 42px rgba(20, 24, 23, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

button,
input,
textarea { font: inherit; }

.topbar {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(20, 24, 23, .1);
  background: rgba(255, 255, 255, .92);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

nav a:hover { color: var(--ink); }

.hero {
  min-height: calc(100vh - 66px);
  max-height: 900px;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 80px 6vw 96px;
  color: var(--white);
  background: var(--dark);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(10, 15, 14, .96) 0%, rgba(10, 15, 14, .83) 42%, rgba(10, 15, 14, .36) 78%),
    url("/static/slash-ai-hero.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(18, 25, 24, 0), rgba(18, 25, 24, .86));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  color: #72d1b4;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
}

.hero h1 {
  margin: 0 0 28px;
  font-size: 104px;
  line-height: .9;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 22px;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button,
button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--white);
  color: var(--ink);
  font-weight: 780;
  cursor: pointer;
}

.button:hover,
button:hover { border-color: var(--line-strong); }

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.button.ghost {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .28);
  color: var(--white);
}

.button.google {
  width: 100%;
  background: #ffffff;
  border-color: var(--line-strong);
}

.workspace .button.ghost,
.admin .button.ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-proof span,
.status-pills span,
.signal-list span {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
}

.product-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--dark-2);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.strip-item {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 30px 6vw;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.strip-item:last-child { border-right: 0; }
.strip-item b { color: #72d1b4; font-size: 13px; }
.strip-item span { color: rgba(255, 255, 255, .8); line-height: 1.45; }

.showcase,
.operator {
  padding: 76px 6vw;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.showcase h2,
.operator h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article,
.operator-copy,
.assistant-panel,
.chat,
.memory,
.intelligence article,
.panel,
.note,
.statgrid article,
.tables {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-grid article {
  min-height: 150px;
  padding: 22px;
}

.feature-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature-grid p,
.operator p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.operator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding-top: 0;
}

.operator-copy {
  padding: 30px;
}

.operator-copy p { margin-top: 16px; }

.signal-list {
  display: grid;
  align-content: start;
  gap: 10px;
  border-radius: 8px;
  padding: 20px;
  background: var(--dark-2);
}

.narrow {
  max-width: 620px;
  margin: 64px auto;
  padding: 0 22px;
}

.narrow h1 {
  margin: 0 0 10px;
  font-size: 42px;
}

.panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  margin-top: 24px;
}

.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.45; }
.text-link { color: var(--green); font-weight: 760; }
.error { color: var(--red); font-weight: 700; }

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.difference { padding-top: 0; }
.privacy-band { padding-top: 0; }

label {
  display: grid;
  gap: 7px;
  color: #26302c;
  font-size: 14px;
  font-weight: 760;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(19, 107, 87, .12);
}

textarea {
  min-height: 86px;
  resize: vertical;
}

.workspace {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 360px;
  gap: 16px;
  padding: 18px;
}

.workspace-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border-radius: 8px;
  padding: 24px;
  background: var(--dark-2);
  color: var(--white);
}

.workspace-head h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: 0;
}

.workspace-head p:not(.eyebrow) {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .74);
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.assistant-panel,
.chat,
.memory,
.intelligence article {
  padding: 18px;
  box-shadow: var(--shadow);
}

.panel-title h2,
.hello h2,
.memory h2,
.intelligence h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.panel-title p,
.hello p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.chat {
  min-height: 640px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.messages {
  min-height: 420px;
  max-height: 62vh;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  margin: 18px 0;
  padding-right: 4px;
}

.msg {
  max-width: min(820px, 88%);
  margin: 0;
  border-radius: 8px;
  padding: 12px 14px;
  white-space: pre-wrap;
  line-height: 1.45;
}

.msg b {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.msg.user {
  justify-self: end;
  background: var(--blue-soft);
}

.msg.assistant { background: var(--green-soft); }
.msg.scheduler { background: var(--yellow-soft); }

.composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.composer textarea { min-height: 74px; }

.intelligence {
  display: grid;
  gap: 16px;
  align-content: start;
}

.kv-list,
.memory ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
}

.kv-list li,
.memory li {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.kv-list li:last-child,
.memory li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.kv-list b {
  color: var(--green);
  font-size: 13px;
}

.kv-list span,
.memory li span {
  color: #2c3431;
  line-height: 1.4;
}

.memory li {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.memory button {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 12px;
}

.memory-wide { grid-column: 1 / -1; }

.note {
  margin-top: 18px;
  padding: 14px;
  background: #fbfcfb;
}

.note b {
  display: block;
  margin-bottom: 6px;
}

code {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  white-space: normal;
  word-break: break-all;
}

.admin {
  padding: 30px;
}

.admin-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.admin h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.06;
}

.statgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

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

.statgrid article {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.statgrid b {
  font-size: 32px;
  line-height: 1;
  word-break: break-word;
}

.statgrid span {
  color: var(--muted);
  line-height: 1.35;
}

.tables {
  padding: 20px;
  overflow-x: auto;
}

.tables h2 {
  margin: 24px 0 10px;
  font-size: 18px;
}

.tables h2:first-child { margin-top: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 14px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
  line-height: 1.4;
}

th {
  color: var(--muted);
  font-weight: 760;
}

@media (max-width: 1180px) {
  .workspace { grid-template-columns: 320px minmax(0, 1fr); }
  .intelligence {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar {
    height: auto;
    min-height: 62px;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  nav {
    width: 100%;
    gap: 12px;
    overflow-x: auto;
  }

  .hero {
    min-height: 690px;
    max-height: none;
    padding: 54px 22px 76px;
  }

  .hero-media {
    background-image:
      linear-gradient(90deg, rgba(10, 15, 14, .95) 0%, rgba(10, 15, 14, .78) 72%, rgba(10, 15, 14, .56) 100%),
      url("/static/slash-ai-hero.png");
    background-position: 58% center;
  }

  .hero h1 { font-size: 62px; }
  .lead { font-size: 18px; }

  .product-strip,
  .showcase,
  .operator,
  .workspace,
  .feature-grid,
  .intelligence,
  .statgrid,
  .statgrid.two {
    grid-template-columns: 1fr;
  }

  .showcase,
  .operator {
    padding: 52px 22px;
  }

  .showcase h2,
  .operator h2,
  .admin h1,
  .workspace-head h1,
  .narrow h1 {
    font-size: 34px;
  }

  .strip-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .workspace {
    padding: 12px;
  }

  .workspace-head {
    align-items: start;
    flex-direction: column;
  }

  .status-pills {
    justify-content: flex-start;
  }

  .chat {
    min-height: 560px;
  }

  .messages {
    min-height: 330px;
    max-height: none;
  }

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

  .msg {
    max-width: 100%;
  }

  .memory-wide {
    grid-column: auto;
  }

  .memory li {
    grid-template-columns: 1fr;
  }

  .admin {
    padding: 18px;
  }

  .admin-head {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 50px; }
  .actions .button { width: 100%; }
  .hero-proof span,
  .status-pills span {
    width: 100%;
  }
}
