/* ==========================================================================
   Teamwork LLM — shared styles
   Dark theme with a violet accent.
   ========================================================================== */

:root {
  --bg: #121212;
  --bg-elevated: #1c1c1e;
  --bg-panel: #181818;
  --surface: #2a2a2c;
  --surface-hover: #323234;
  --border: #2c2c2e;

  --text: #f2f2f2;
  --text-muted: #9a9a9e;
  --text-dim: #6e6e73;

  --accent: #6c4fe0;
  --accent-hover: #5b3fd0;
  --accent-soft: rgba(108, 79, 224, 0.18);

  --bubble-in: #3a3a3c;
  --bubble-out: var(--accent);

  --success: #3ecf5c;
  --warning: #e5b53b;
  --danger: #e5484d;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #8b72f0; }

/* ---------- Layout helpers ---------- */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-fixed {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.centered {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.muted { color: var(--text-muted); }
.hidden { display: none !important; }

/* ---------- Top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.2px;
}
.logo:hover { color: var(--text); }
.logo span { color: var(--accent); }

.user-chip {
  color: var(--text-muted);
  font-size: 0.875rem;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); color: #fff; }

.btn-secondary { background: var(--surface); color: var(--text); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-hover); color: var(--text); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover:not(:disabled) { background: var(--surface); color: var(--text); }

.btn-lg { padding: 0.8rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.icon-btn:hover:not(:disabled) { background: var(--accent-hover); }
.icon-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Forms ---------- */

.card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.35rem;
}

.card-subtitle {
  color: var(--text-muted);
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1rem; }

.form-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}
.input::placeholder { color: var(--text-dim); }
.input:focus { border-color: var(--accent); }

.alert-error {
  display: none;
  background: rgba(229, 72, 77, 0.12);
  border: 1px solid rgba(229, 72, 77, 0.5);
  color: #ff9a9d;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.form-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---------- Landing ---------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 640px;
}
.hero-title span { color: var(--accent); }

.hero-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }

/* ---------- Avatars ---------- */

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  flex-shrink: 0;
  text-transform: uppercase;
}
.avatar-sm { width: 36px; height: 36px; font-size: 0.85rem; }

/* ---------- Rooms list (home) ---------- */

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.75rem 0 1rem;
}

.section-title { font-size: 1.5rem; font-weight: 600; }

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.inline-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.inline-form .input { flex: 1; min-width: 180px; }

.list {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: background 0.12s;
}
.list-item + .list-item { border-top: 1px solid var(--border); }
.list-item:hover { background: var(--surface); }

.list-item-body { flex: 1; min-width: 0; }

.list-item-title {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-item-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: #b6a5ff;
  text-transform: capitalize;
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

/* ---------- App Split Layout (Sidebar + Chat) ---------- */

.app-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.sidebar {
  width: 340px;
  min-width: 280px;
  max-width: 400px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 20;
}

.sidebar-header {
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.sidebar-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sidebar-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-icon-ghost {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  line-height: 1;
}
.btn-icon-ghost:hover {
  background: var(--surface);
  color: var(--text);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
}

.create-room-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  margin-top: 0.25rem;
}

.sidebar-search {
  position: relative;
}

.sidebar-search-input {
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--border);
}

.sidebar-rooms {
  flex: 1;
  overflow-y: auto;
  padding: 0.6rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.room-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
  border: 1px solid transparent;
}
.room-item:hover {
  background: var(--surface);
}
.room-item.active {
  background: var(--surface-hover);
  border-color: rgba(108, 79, 224, 0.4);
}
.room-item.active .list-item-title {
  color: #fff;
  font-weight: 600;
}

.chat-main {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
}

.chat-view {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.chat-header {
  padding: 0.75rem 1.25rem;
}

.chat-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.placeholder-content {
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.placeholder-icon {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
  opacity: 0.85;
}

.placeholder-content h2 {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text);
}

.placeholder-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-only {
    display: inline-flex !important;
  }
  .app-layout {
    position: relative;
  }
  .sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    z-index: 25;
  }
  .sidebar.mobile-hidden {
    display: none;
  }
  .chat-main {
    width: 100%;
  }
}

/* ---------- Chat ---------- */

.chat-title { font-size: 1.05rem; font-weight: 600; line-height: 1.2; }

.chat-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
}
.status-dot.connected { background: var(--success); }
.status-dot.disconnected { background: var(--danger); }

.back-link {
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.25rem 0.35rem;
  border-radius: var(--radius-sm);
}
.back-link:hover { color: var(--text); background: var(--surface); }

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--bg);
}

.messages-empty {
  margin: auto;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.message-row {
  display: flex;
  flex-direction: column;
  max-width: 68%;
  word-break: break-word;
}
.message-row.mine { align-self: flex-end; align-items: flex-end; }
.message-row.theirs { align-self: flex-start; align-items: flex-start; }
.message-row.system { align-self: center; align-items: center; max-width: 90%; }

.sender-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0 0.2rem 0.25rem;
}

.message-bubble {
  padding: 0.55rem 0.8rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.4;
  background: var(--bubble-in);
  color: var(--text);
}
.message-row.mine .message-bubble { background: var(--bubble-out); color: #fff; }
.message-row.assistant .message-bubble { box-shadow: inset 2px 0 0 var(--accent); }
.message-row.system .message-bubble {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
}

.message-time {
  font-size: 0.68rem;
  opacity: 0.65;
  margin-top: 0.15rem;
  text-align: right;
}

.composer {
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.composer-form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 1000px;
  margin: 0 auto;
}

.composer-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  outline: none;
}
.composer-input::placeholder { color: var(--text-dim); }
.composer-input:focus { border-color: var(--accent); }

/* ---------- Dropdowns & Popovers ---------- */

.dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  min-width: 280px;
  padding: 0.85rem;
  z-index: 100;
  display: none;
}
.dropdown-menu.drop-right {
  left: 0;
  right: auto;
}
.dropdown-menu.show {
  display: block;
}

.dropdown-divider {
  border-top: 1px solid var(--border);
  margin: 0.75rem 0;
}

.members-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: #b6a5ff;
  font-size: 0.72rem;
  font-weight: 600;
}

.members-list {
  max-height: 210px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.45rem;
  border-radius: var(--radius-sm);
  transition: background 0.12s;
}
.member-item:hover {
  background: var(--surface);
}

.avatar-xs {
  width: 30px;
  height: 30px;
  font-size: 0.75rem;
}

.member-info {
  flex: 1;
  min-width: 0;
}

.member-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-username {
  font-size: 0.73rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  pointer-events: none;
}

.notification-item {
  padding: 0.6rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text);
  transition: background 0.15s;
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.notification-item:hover {
  background: var(--surface);
  color: var(--text);
}
.notification-item + .notification-item {
  border-top: 1px solid var(--border);
}
.notification-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.alert-success {
  display: none;
  background: rgba(62, 207, 92, 0.12);
  border: 1px solid rgba(62, 207, 92, 0.5);
  color: #79f291;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* ---------- Scrollbar ---------- */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--surface-hover); }

/* ==========================================================================
   Landing page
   ========================================================================== */

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(28, 28, 30, 0.85);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a.nav-anchor { color: var(--text-muted); font-size: 0.9rem; }
.nav-links a.nav-anchor:hover { color: var(--text); }

.section {
  padding: 5rem 1.5rem;
}
.section-alt { background: var(--bg-panel); border-block: 1px solid var(--border); }

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b6a5ff;
  margin-bottom: 0.75rem;
}

.section-heading {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-lead {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
}
.section-head-center { text-align: center; }
.section-head-center .section-lead { margin-inline: auto; }

/* ---------- Hero ---------- */

.landing-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 4rem;
}
.landing-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(108, 79, 224, 0.28), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid rgba(108, 79, 224, 0.4);
  color: #c9bcff;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
}
.hero-badge .status-dot { background: var(--success); }

.landing-hero .hero-title {
  font-size: 3.1rem;
  max-width: none;
  text-align: left;
}
.landing-hero .hero-text { text-align: left; max-width: 480px; }
.landing-hero .hero-actions { justify-content: flex-start; }

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.25rem;
  flex-wrap: wrap;
}
.hero-stat strong { display: block; font-size: 1.4rem; font-weight: 700; }
.hero-stat span { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Chat mockup ---------- */

.mockup {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(108, 79, 224, 0.15);
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.mockup-bar .chat-title { font-size: 0.95rem; }

.mockup-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--bg);
}
.mockup-body .message-row { max-width: 85%; }

.mockup-input {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}
.mockup-input .composer-input { padding: 0.55rem 0.9rem; font-size: 0.85rem; color: var(--text-dim); }

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 0.2rem 0;
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing 1.2s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.18s, border-color 0.18s;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(108, 79, 224, 0.6); }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: #b6a5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- AI spotlight ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.check-list { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.check-list li { display: flex; gap: 0.7rem; color: var(--text-muted); font-size: 0.95rem; }
.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #b6a5ff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-list strong { color: var(--text); font-weight: 500; }

.code-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--accent-soft);
  color: #c9bcff;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Call to action ---------- */

.cta-box {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(108, 79, 224, 0.4);
  background: radial-gradient(ellipse at top, rgba(108, 79, 224, 0.28), var(--bg-elevated) 70%);
}
.cta-box .section-heading { margin-bottom: 0.5rem; }
.cta-box .section-lead { margin: 0 auto 1.75rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

/* ---------- Landing responsive ---------- */

@media (max-width: 900px) {
  .hero-grid,
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-grid,
  .steps { grid-template-columns: 1fr 1fr; }
  .landing-hero .hero-title { font-size: 2.4rem; }
  .nav-links a.nav-anchor { display: none; }
}

@media (max-width: 600px) {
  .feature-grid,
  .steps { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 1.25rem; }
}
