/* =========================================================
   WE BETA LANDING PAGE
   Full light + dark theme
   ========================================================= */

:root {
  --bg: #f6f6f3;
  --bg-soft: #f0f0ec;
  --surface: #ffffff;
  --surface-2: #f7f7f5;
  --surface-3: #ecece8;
  --text: #161714;
  --text-soft: #686a64;
  --text-faint: #999b95;
  --line: rgba(20, 21, 18, 0.11);
  --line-strong: rgba(20, 21, 18, 0.17);
  --button: #151612;
  --button-text: #ffffff;
  --success: #34c759;
  --danger: #ff5f57;
  --warn: #ffbd2e;
  --green: #28c840;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --max: 1480px;
}

html[data-theme="dark"] {
  --bg: #11110f;
  --bg-soft: #151512;
  --surface: #1a1a17;
  --surface-2: #20201c;
  --surface-3: #282824;
  --text: #f2f2ee;
  --text-soft: #aaa9a2;
  --text-faint: #77766f;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --button: #f0f0ec;
  --button-text: #171713;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

/* =========================================================
   GLOBAL
   ========================================================= */

.section {
  width: min(var(--max), calc(100% - 80px));
  margin: 0 auto;
  padding: 110px 0;
}

.section-tight {
  width: min(var(--max), calc(100% - 80px));
  margin: 0 auto;
  padding: 44px 0 84px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

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

.button-secondary,
.button-ghost {
  background: var(--surface-2);
  color: var(--text);
}

.button-large {
  min-height: 52px;
  padding-inline: 24px;
  font-size: 15px;
  font-weight: 650;
}

.text-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
}

.hidden {
  display: none !important;
}

/* =========================================================
   LOGO MODES
   ========================================================= */

.logo-dark {
  display: none;
}

html[data-theme="dark"] .logo-light {
  display: none;
}

html[data-theme="dark"] .logo-dark {
  display: block;
}

/* =========================================================
   NAV
   ========================================================= */

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  width: min(var(--max), calc(100% - 80px));
  min-height: 76px;
  margin: 0 auto;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(22px);
}

.brand {
  justify-self: start;
}

.brand-logo {
  width: 54px;
  height: 34px;
  object-fit: contain;
}

.topnav {
  display: flex;
  gap: 34px;
  align-items: center;
}

.topnav a {
  color: var(--text-soft);
  font-size: 14px;
  transition: color 150ms ease;
}

.topnav a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  justify-self: end;
  gap: 10px;
  align-items: center;
}

.nav-actions .button {
  min-height: 40px;
  font-size: 13px;
}

.theme-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  cursor: pointer;
}

.theme-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.moon-icon {
  opacity: 0;
  transform: rotate(-25deg) scale(0.7);
}

html[data-theme="dark"] .sun-icon {
  opacity: 0;
  transform: rotate(25deg) scale(0.7);
}

html[data-theme="dark"] .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding-top: 94px;
}

.hero-copy {
  max-width: 880px;
  margin-bottom: 66px;
}

.hero h1 {
  max-width: 960px;
  margin: 0;
  font-size: clamp(46px, 6.2vw, 92px);
  font-weight: 540;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.hero-subtitle {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--text-soft);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
}

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

/* =========================================================
   PRODUCT WINDOW
   ========================================================= */

.product-stage {
  width: 100%;
}

.desktop-window {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.window-bar {
  position: relative;
  display: grid;
  height: 46px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.traffic-lights {
  display: flex;
  gap: 8px;
}

.traffic {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.traffic.red { background: #ff5f57; }
.traffic.yellow { background: #ffbd2e; }
.traffic.green { background: #28c840; }

.window-title {
  color: var(--text-soft);
  font-size: 12px;
}

.window-menu {
  justify-self: end;
  color: var(--text-faint);
}

.app-grid {
  display: grid;
  min-height: 760px;
  grid-template-columns: 205px 340px minmax(0, 1fr);
}

.app-sidebar,
.conversation-sidebar,
.workspace {
  min-width: 0;
}

.app-sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
}

.app-logo-wrap {
  height: 96px;
  padding: 26px 24px;
}

.app-logo {
  width: 54px;
  height: 34px;
  object-fit: contain;
}

.app-nav {
  display: grid;
  gap: 8px;
  padding: 4px 14px;
}

.app-nav-item {
  display: flex;
  min-height: 48px;
  gap: 12px;
  align-items: center;
  border: 0;
  border-radius: 11px;
  padding: 0 14px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  text-align: left;
}

.app-nav-item.active,
.app-nav-item:hover {
  background: var(--surface-3);
  color: var(--text);
}

.line-icon {
  width: 18px;
  text-align: center;
}

.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding: 20px 18px;
}

.profile-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
}

.profile-copy {
  min-width: 0;
  display: grid;
  flex: 1;
}

.profile-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy span {
  color: var(--text-faint);
  font-size: 10px;
}

.profile-chevron {
  color: var(--text-faint);
}

/* Conversations */

.conversation-sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.conversation-toolbar {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 10px;
  padding: 16px 14px 8px;
}

.search-box {
  display: flex;
  min-width: 0;
  height: 42px;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: var(--surface-2);
  color: var(--text-faint);
  font-size: 12px;
}

.plus-button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 21px;
}

.conversation-section {
  padding: 10px 14px 0;
}

.conversation-section.grow {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.conversation-section h3 {
  margin: 0 0 10px 4px;
  font-size: 12px;
  font-weight: 700;
}

.group-row,
.agent-row {
  display: flex;
  width: 100%;
  min-width: 0;
  gap: 10px;
  align-items: center;
  border: 0;
  border-radius: 10px;
  padding: 9px 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.group-row:hover,
.agent-row:hover,
.agent-row.selected {
  background: var(--surface-2);
}

.group-avatars {
  position: relative;
  width: 42px;
  height: 36px;
  flex: 0 0 auto;
}

.group-avatars img {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  object-fit: cover;
}

.group-avatars img:nth-child(1) { left: 0; top: 0; }
.group-avatars img:nth-child(2) { left: 14px; top: 0; }
.group-avatars img:nth-child(3) { left: 0; top: 13px; }
.group-avatars img:nth-child(4) { left: 14px; top: 13px; }

.agent-row > img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.conversation-main {
  min-width: 0;
  display: grid;
  flex: 1;
}

.conversation-main strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-main small {
  color: var(--text-faint);
  font-size: 10px;
}

.time {
  align-self: start;
  padding-top: 2px;
  color: var(--text-faint);
  font-size: 9px;
}

.conversation-divider {
  height: 1px;
  margin: 10px 14px;
  background: var(--line);
}

.team-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 4px 10px;
  color: var(--text-faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.count-pill {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  letter-spacing: normal;
}

.activity-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: var(--surface);
}

.activity-title-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.activity-title {
  font-size: 13px;
  font-weight: 760;
  line-height: 1.2;
}

.activity-title-row > span {
  flex: 0 0 auto;
  color: var(--text-faint);
  font-size: 10px;
}

.handoff-line {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 11px;
  font-size: 10px;
}

.handoff-line img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.activity-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.activity-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.mini-primary {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  padding: 0 12px;
  background: var(--button);
  color: var(--button-text);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.mini-link {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 10px;
}

/* Workspace */

.workspace {
  position: relative;
  display: grid;
  min-height: 760px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--surface);
}

.workspace-header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.workspace-agent {
  display: flex;
  gap: 10px;
  align-items: center;
}

.workspace-agent img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.workspace-agent > div {
  display: grid;
}

.workspace-agent strong {
  font-size: 12px;
}

.workspace-agent span {
  color: var(--text-faint);
  font-size: 10px;
}

.workspace-more {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
}

.workspace-body {
  overflow: auto;
  padding: 28px 34px 120px;
}

.agent-thread {
  max-width: 900px;
  margin: 0 auto;
}

.thread-summary {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.5;
}

.timeline {
  margin: 0 0 30px;
}

.timeline-agent {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
}

.timeline-agent img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.timeline-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  margin: 12px 0;
}

.timeline-item > span {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-soft);
  font-size: 9px;
}

.timeline-item div {
  display: grid;
  gap: 3px;
}

.timeline-item strong {
  font-size: 11px;
  font-weight: 650;
}

.timeline-item small {
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.35;
}

.result-card,
.files-card,
.design-preview {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-2);
}

.result-card {
  padding: 16px;
}

.result-top {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.result-top strong {
  font-size: 12px;
}

.result-top p {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.45;
}

.icon-button {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--surface-3);
  color: var(--text-soft);
  cursor: pointer;
}

.chips {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.chips span {
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--surface-3);
  color: var(--text-soft);
  font-size: 9px;
}

.design-preview {
  overflow: hidden;
}

.design-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.preview-badge {
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--surface-3);
  color: var(--text-soft);
  font-size: 9px;
}

.mock-mobile {
  width: min(360px, calc(100% - 40px));
  margin: 26px auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 20px;
  background: var(--surface);
}

.mock-mobile-header {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 750;
}

.mock-progress {
  width: 74%;
  height: 8px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--surface-3);
}

.mock-card {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface-2);
}

.mock-card strong {
  font-size: 12px;
}

.mock-card span {
  color: var(--text-soft);
  font-size: 10px;
}

.build-steps {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.build-step {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}

.build-step > span {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-3);
  font-size: 9px;
}

.build-step div {
  display: grid;
  gap: 3px;
}

.build-step strong {
  font-size: 11px;
}

.build-step small {
  color: var(--text-faint);
  font-size: 10px;
}

.files-card {
  overflow: hidden;
}

.files-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 0;
  font-size: 10px;
}

.success-dot {
  display: inline-grid;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  place-items: center;
  border-radius: 50%;
  background: #4ecb71;
  color: white;
  font-size: 9px;
}

.files-card h4 {
  margin: 10px 16px 8px;
  font-size: 12px;
}

.file-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 10px;
}

.file-diff {
  display: flex;
  gap: 6px;
}

.file-diff b {
  color: #47c86a;
}

.file-diff i {
  color: #ff675f;
  font-style: normal;
}

.files-footer {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 9px;
}

.composer {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  display: grid;
  min-height: 54px;
  grid-template-columns: 36px 1fr 36px 36px;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 0 8px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(18px);
}

.composer input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}

.composer input::placeholder {
  color: var(--text-faint);
}

.composer button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
}

.composer-send {
  background: var(--surface-3) !important;
  color: var(--text) !important;
}

/* =========================================================
   FEATURE SPLITS
   ========================================================= */

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 70px;
  align-items: start;
}

.feature-copy {
  position: sticky;
  top: 120px;
}

.feature-copy h2,
.section-heading h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 74px);
  font-weight: 540;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.feature-copy p {
  max-width: 550px;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.55;
}

/* Agent board */

.agent-board {
  display: grid;
  gap: 14px;
}

.agent-card {
  display: grid;
  min-height: 180px;
  grid-template-columns: 74px 1fr;
  gap: 24px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  background: var(--surface);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.agent-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.agent-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.agent-kicker {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 650;
}

.agent-card h3 {
  margin: 8px 0 0;
  font-size: 25px;
  font-weight: 580;
  letter-spacing: -0.03em;
}

.agent-card p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

/* Plugins section */

.plugins-section {
  display: block;
}

.plugins-intro {
  max-width: 980px;
  margin-bottom: 48px;
}

.plugins-intro h2 {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(40px, 5vw, 74px);
  font-weight: 540;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.plugins-intro p {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.55;
}

.plugin-window {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.plugin-window-full {
  width: 100%;
}

.plugin-window-bar {
  position: relative;
  display: grid;
  height: 46px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.plugin-window-title {
  color: var(--text-soft);
  font-size: 12px;
}

.plugin-window-menu {
  justify-self: end;
  color: var(--text-faint);
}

.plugin-app-shell {
  display: grid;
  min-height: 860px;
  grid-template-columns: 220px minmax(0, 1fr);
}

.plugin-app-sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
}

.plugin-app-logo {
  height: 102px;
  padding: 28px 24px;
}

.plugin-app-logo img {
  width: 56px;
  height: 34px;
  object-fit: contain;
}

.plugin-app-nav {
  display: grid;
  gap: 8px;
  padding: 4px 14px;
}

.plugin-app-nav-item {
  display: flex;
  min-height: 48px;
  gap: 12px;
  align-items: center;
  border: 0;
  border-radius: 11px;
  padding: 0 14px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  text-align: left;
}

.plugin-app-nav-item:hover,
.plugin-app-nav-item.active {
  background: var(--surface-3);
  color: var(--text);
}

.plugin-app-profile {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding: 20px 18px;
}

.plugin-app-main {
  min-width: 0;
  background: var(--surface);
}

.plugin-app-topbar {
  display: flex;
  min-height: 64px;
  gap: 22px;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.plugin-app-topbar button {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  padding: 0;
  font-size: 12px;
}

.plugin-app-topbar strong {
  font-size: 13px;
}

.plugin-app-content {
  width: min(900px, calc(100% - 80px));
  margin: 0 auto;
  padding: 54px 0 76px;
}

.plugin-app-heading h3 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.plugin-app-heading p {
  margin: 8px 0 28px;
  color: var(--text-soft);
  font-size: 13px;
}

.plugin-app-list {
  display: grid;
  gap: 14px;
}

.plugin-app-row {
  display: grid;
  min-height: 82px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  background: var(--surface);
}

.plugin-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-2);
  font-size: 18px;
}

.plugin-logo-tile {
  overflow: hidden;
  padding: 9px;
}

.plugin-logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-folder-icon {
  font-size: 18px;
}


.plugin-copy {
  display: grid;
  gap: 5px;
}

.plugin-copy strong {
  font-size: 13px;
}

.plugin-copy span {
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.4;
}

.plugin-connect {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  padding: 0 16px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.connected {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--text-soft);
  font-size: 10px;
}

.connected i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ecb61;
}

.connected-product {
  display: block;
  margin-top: 24px;
  color: var(--text-faint);
}

/* =========================================================
   CARDS
   ========================================================= */

.cards-section {
  padding-top: 80px;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 46px;
}

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

.feature-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  background: var(--surface);
}

.feature-card h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 560;
  letter-spacing: -0.035em;
}

.feature-card > p {
  margin: 10px 0 22px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.5;
}

.mini-ui {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--surface-2);
}

.mini-ui-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mini-ui-head img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.mini-ui-head > div {
  display: grid;
}

.mini-ui-head strong {
  font-size: 12px;
}

.mini-ui-head span {
  color: var(--text-faint);
  font-size: 10px;
}

.mini-ui-card {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px;
  background: var(--surface);
}

.mini-ui-card strong {
  font-size: 12px;
}

.mini-ui-card span {
  color: var(--text-soft);
  font-size: 10px;
}

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

.preview-lines span {
  display: block;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.mini-build-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  margin-top: 12px;
  font-size: 10px;
}

.mini-build-row b {
  color: #47c86a;
}

.mini-build-row i {
  color: #ff675f;
  font-style: normal;
}

/* =========================================================
   CTA
   ========================================================= */

.final-cta {
  padding-top: 140px;
  padding-bottom: 140px;
}

.final-cta-inner {
  display: flex;
  min-height: 540px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 54px 24px;
  background: var(--surface);
  text-align: center;
}

.cta-agents {
  display: flex;
  margin-bottom: 30px;
}

.cta-agents img {
  width: 58px;
  height: 58px;
  margin-left: -10px;
  border: 4px solid var(--surface);
  border-radius: 50%;
  object-fit: cover;
}

.cta-agents img:first-child {
  margin-left: 0;
}

.final-cta p {
  margin: 20px 0 0;
  color: var(--text-soft);
  font-size: 17px;
}

.waitlist-form {
  display: grid;
  width: min(520px, 100%);
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 28px;
}

.waitlist-form input {
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  outline: 0;
  padding: 0 18px;
  background: var(--surface-2);
  color: var(--text);
}

.waitlist-form input::placeholder {
  color: var(--text-faint);
}

.form-message {
  min-height: 22px;
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 12px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  width: min(var(--max), calc(100% - 80px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 90px;
  padding: 78px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-brand p {
  max-width: 340px;
  margin: 20px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px;
}

.footer-cols > div {
  display: grid;
  align-content: start;
  gap: 14px;
}

.footer-cols span {
  color: var(--text-faint);
  font-size: 12px;
}

.footer-cols a {
  font-size: 14px;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 12px;
}

.footer-theme-toggle {
  width: 40px;
  height: 40px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
  .app-grid {
    grid-template-columns: 170px 300px minmax(0, 1fr);
  }
  .feature-split {
    grid-template-columns: 1fr;
  }


  .feature-copy {
    position: static;
    max-width: 760px;
  }

  .feature-cards {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card:last-child {
    grid-column: 1 / -1;
    min-height: 420px;
  }
}

@media (max-width: 960px) {
  .topbar,
  .section,
  .section-tight,
  .footer {
    width: min(100% - 36px, var(--max));
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topnav {
    display: none;
  }

  .app-grid {
    grid-template-columns: 84px 270px minmax(520px, 1fr);
  }

  .desktop-window {
    overflow-x: auto;
  }

  .app-sidebar {
    min-width: 84px;
  }

  .app-logo-wrap {
    padding-inline: 16px;
  }

  .app-nav-item {
    justify-content: center;
    padding-inline: 0;
  }

  .app-nav-item span:last-child,
  .profile-copy,
  .profile-chevron {
    display: none;
  }

  .profile {
    justify-content: center;
  }
  .plugin-app-shell {
    grid-template-columns: 170px minmax(0, 1fr);
  }

}

@media (max-width: 760px) {
  .section {
    padding: 78px 0;
  }

  .section-tight {
    padding-bottom: 64px;
  }

  .topbar {
    min-height: 66px;
  }

  .nav-actions .button-ghost {
    display: none;
  }

  .nav-actions .button-primary {
    min-height: 38px;
    padding-inline: 14px;
  }

  .brand-logo {
    width: 48px;
  }

  .hero {
    padding-top: 66px;
  }

  .hero-copy {
    margin-bottom: 42px;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 72px);
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .app-grid {
    min-width: 1040px;
  }

  .agent-card {
    grid-template-columns: 56px 1fr;
    gap: 18px;
    padding: 22px;
  }

  .agent-card img {
    width: 52px;
    height: 52px;
  }

  .agent-card h3 {
    font-size: 21px;
  }
  .plugin-app-shell {
    grid-template-columns: 78px minmax(720px, 1fr);
    min-width: 980px;
  }

  .plugin-app-sidebar {
    min-width: 78px;
  }

  .plugin-app-logo {
    padding-inline: 14px;
  }

  .plugin-app-nav-item {
    justify-content: center;
    padding-inline: 0;
  }

  .plugin-app-nav-item span:last-child,
  .plugin-app-profile .profile-copy,
  .plugin-app-profile .profile-chevron {
    display: none;
  }

  .plugin-app-profile {
    justify-content: center;
  }

  .plugin-window-full {
    overflow-x: auto;
  }


  .feature-cards {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-card:last-child {
    grid-column: auto;
    min-height: 420px;
  }

  .waitlist-form {
    grid-template-columns: 1fr;
  }

  .waitlist-form .button {
    min-height: 50px;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .topbar,
  .section,
  .section-tight,
  .footer {
    width: min(100% - 24px, var(--max));
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .nav-actions {
    gap: 7px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-subtitle {
    margin-top: 22px;
  }

  .feature-copy h2,
  .plugins-intro h2,
  .section-heading h2,
  .final-cta h2 {
    font-size: 42px;
  }

  .feature-copy p,
  .plugins-intro p {
    font-size: 16px;
  }

  .agent-card {
    grid-template-columns: 1fr;
  }

  .plugin-row {
    grid-template-columns: 42px 1fr;
    padding: 14px;
  }

  .plugin-row button,
  .connected {
    grid-column: 2;
    justify-self: start;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }
}
