/* =========================================================
   Lumen — AI Workspace Concept
   Editorial AI · light premium
   ========================================================= */

/* Self-hosted variable fonts (latin subset, woff2).
   No external requests → DSGVO-friendly, faster. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('fonts/jetbrainsmono-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 100 800;
  font-display: swap;
  src: url('fonts/jetbrainsmono-latin-italic.woff2') format('woff2');
}

/* Metric-matched fallbacks so layout doesn't shift on font swap. */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  ascent-override: 90%;
  descent-override: 22.43%;
  line-gap-override: 0%;
  size-adjust: 107.64%;
}
@font-face {
  font-family: 'JetBrains Mono Fallback';
  src: local('Consolas'), local('Menlo'), local('Courier New');
  ascent-override: 100%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

:root {
  --bg:        #001E2B;
  --bg-2:      #002435;
  --bg-card:   #00304A;
  --bg-hover:  #003A5A;
  --ink:       #FFFFFF;
  --ink-2:     #B5D3E2;
  --ink-3:     #5C8AA0;
  --rule:      rgba(255, 255, 255, 0.06);
  --rule-2:    rgba(255, 255, 255, 0.14);
  --accent:    #00ED64;
  --accent-hi: #71F7A1;
  --accent-soft: rgba(0, 237, 100, 0.10);
  --accent-glow: rgba(0, 237, 100, 0.30);
  --mint:      #C3F4D7;
  --success:   #00ED64;
  --warning:   #FFC400;
  --code-bg:   #00141C;
  --code-fg:   #C3F4D7;
  --code-key:  #71F7A1;
  --code-str:  #FFD166;
  --code-com:  #5C8AA0;

  --font-display: 'Inter', 'Inter Fallback', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', 'Inter Fallback', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'JetBrains Mono Fallback', ui-monospace, 'SF Mono', Menlo, monospace;

  --topbar-h: 56px;
  --sidebar-w: 280px;
  --inspector-w: 320px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.6);
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  overflow: hidden;
}

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

/* ============================================
   Splendable Concept Frame (cross-concept)
   ============================================ */
.sp-frame {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #11182a 0%, #080d18 100%);
  color: #ffffff;
  border: 1px solid rgba(49, 130, 206, 0.45);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow:
    0 10px 32px rgba(30, 90, 156, 0.34),
    0 4px 14px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 13px;
  letter-spacing: 0.005em;
  line-height: 1;
  text-decoration: none;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1), box-shadow 220ms ease, border-color 220ms ease;
  will-change: transform;
  animation: sp-frame-in 600ms cubic-bezier(.2,.7,.2,1) 400ms both;
}
@keyframes sp-frame-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sp-frame:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 163, 230, 0.75);
  box-shadow:
    0 14px 38px rgba(30, 90, 156, 0.45),
    0 6px 18px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.10) inset;
}
.sp-frame--right { left: auto; right: 18px; }
.sp-frame-arrow {
  font-size: 14px;
  line-height: 1;
  color: #8cc1ee;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
}
.sp-frame:hover .sp-frame-arrow { transform: translateX(-3px); }
.sp-frame-text {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.sp-frame-brand {
  font-weight: 600;
  letter-spacing: 0.005em;
}
.sp-frame-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 100px;
  background: rgba(49, 130, 206, 0.22);
  color: #b8d2ee;
  border: 1px solid rgba(49, 130, 206, 0.40);
}
@media (max-width: 540px) {
  .sp-frame { bottom: 12px; left: 12px; padding: 8px 13px 8px 11px; font-size: 12px; gap: 8px; }
  .sp-frame--right { left: auto; right: 12px; }
  .sp-frame-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-frame, .sp-frame-arrow { transition: none; animation: none; }
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: inherit;
}
input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

::selection { background: var(--accent-soft); color: var(--ink); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* =========================================================
   App-Shell
   ========================================================= */

.app {
  height: 100vh;
  display: grid;
  grid-template-rows: var(--topbar-h) 1fr;
  grid-template-columns: var(--sidebar-w) 1fr auto;
  grid-template-areas:
    "topbar topbar topbar"
    "sidebar main inspector";
}

/* =========================================================
   Topbar
   ========================================================= */

.topbar {
  grid-area: topbar;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  z-index: 10;
}

.topbar-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.topbar-logo strong {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: uppercase;
}
.topbar-logo strong::before {
  content: '◆';
  color: var(--accent);
  margin-right: 6px;
  font-size: 14px;
}
.topbar-logo small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.topbar-search {
  flex: 1;
  max-width: 480px;
  margin: 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--ink-3);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.topbar-search:hover {
  border-color: var(--rule-2);
  color: var(--ink-2);
}
.topbar-search svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; flex-shrink: 0; }
.topbar-search-kbd {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink-3);
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.model-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  transition: border-color 0.2s;
  position: relative;
}
.model-pill:hover { border-color: var(--rule-2); }
.model-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}
.model-pill::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(45deg);
  margin-top: -2px;
  margin-left: 4px;
}

.topbar-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}
.topbar-btn:hover { background: var(--bg-2); color: var(--ink); }
.topbar-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.topbar-btn.is-active { background: var(--accent-soft); color: var(--accent); }

.topbar-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hi) 100%);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  margin-left: 4px;
  cursor: pointer;
}

/* Model dropdown */
.model-menu {
  position: absolute;
  top: calc(var(--topbar-h) - 4px);
  right: 60px;
  background: var(--bg-card);
  border: 1px solid var(--rule-2);
  border-radius: 10px;
  padding: 6px;
  min-width: 280px;
  box-shadow: var(--shadow-md);
  z-index: 50;
  display: none;
}
.model-menu.is-open { display: block; }
.model-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.model-menu-item:hover { background: var(--bg-2); }
.model-menu-item.is-active {
  background: var(--accent-soft);
}
.model-menu-item-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.model-menu-item-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =========================================================
   Sidebar
   ========================================================= */

.sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border-right: 1px solid var(--rule);
  overflow: hidden;
}
.sidebar-head {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--rule);
}
.btn-new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-new:hover { background: var(--accent-hi); box-shadow: 0 0 24px var(--accent-glow); }
.btn-new:active { transform: scale(0.98); }
.btn-new svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

.sidebar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.sidebar-search svg { width: 13px; height: 13px; stroke: var(--ink-3); fill: none; stroke-width: 1.6; }
.sidebar-search input {
  flex: 1;
  font-size: 13px;
  color: var(--ink);
}
.sidebar-search input::placeholder { color: var(--ink-3); }

.conv-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 6px 12px;
}

.conv-section {
  margin-bottom: 4px;
}
.conv-section-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
  padding: 12px 10px 6px;
}
.conv-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.conv-item:hover { background: var(--bg-card); color: var(--ink); }
.conv-item.is-active {
  background: var(--bg-card);
  color: var(--ink);
}
.conv-item.is-active::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.conv-item-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conv-item-pin {
  color: var(--accent);
  font-size: 10px;
  flex-shrink: 0;
}

.sidebar-foot {
  padding: 10px 14px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
}
.sidebar-foot a { color: var(--ink-2); transition: color 0.15s; }
.sidebar-foot a:hover { color: var(--ink); }

/* =========================================================
   Main Chat Area
   ========================================================= */

.main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}

.chat-stream {
  flex: 1;
  overflow-y: auto;
  padding: 32px 0;
}
.chat-inner {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}
.empty-greeting {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 16px;
}
.empty-greeting em {
  font-style: normal;
  color: var(--accent);
}
.empty-sub {
  color: var(--ink-3);
  font-size: 15px;
  margin-bottom: 48px;
}
.suggestions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}
.suggestion-card {
  text-align: left;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.suggestion-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.suggestion-card-icon {
  font-size: 20px;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}
.suggestion-card-title {
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 2px;
}
.suggestion-card-body {
  color: var(--ink-3);
  font-size: 12px;
}

/* =========================================================
   Messages
   ========================================================= */

.msg {
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: msgIn 0.3s cubic-bezier(.2,.8,.2,1);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.msg-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.msg-avatar--user {
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--rule-2);
}
.msg-avatar--ai {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hi) 100%);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 0 18px var(--accent-glow);
}
.msg-name {
  font-weight: 500;
  color: var(--ink);
}
.msg-name em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}
.msg-time {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.msg-body {
  padding-left: 36px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  position: relative;
}
.msg-body p { margin-bottom: 12px; }
.msg-body p:last-child { margin-bottom: 0; }
.msg-body strong { font-weight: 600; color: var(--ink); }
.msg-body em { font-style: italic; }
.msg-body ul, .msg-body ol {
  padding-left: 20px;
  margin-bottom: 12px;
}
.msg-body li { margin-bottom: 4px; }
.msg-body code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-2);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent);
  border: 1px solid var(--rule);
}

.msg-cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 800ms steps(2) infinite;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 22px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: typingDot 1.4s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.msg-actions {
  padding-left: 36px;
  display: flex;
  gap: 4px;
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}
.msg:hover .msg-actions { opacity: 1; }
.msg-action {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--ink-3);
  transition: background 0.15s, color 0.15s;
}
.msg-action:hover { background: var(--bg-2); color: var(--ink); }
.msg-action svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* Code blocks */
.code-block {
  margin: 12px 0;
  background: var(--code-bg);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
}
.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.code-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--code-fg);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.code-copy:hover { opacity: 1; }
.code-copy svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.code-body {
  padding: 14px 16px;
  overflow-x: auto;
  color: var(--code-fg);
  white-space: pre;
}
.code-tok-key { color: var(--code-key); }
.code-tok-str { color: var(--code-str); }
.code-tok-com { color: var(--code-com); font-style: italic; }

/* Tool-Call Cards */
.tool-call {
  margin: 12px 0;
  background: var(--bg-card);
  border: 1px solid var(--rule-2);
  border-radius: 8px;
  overflow: hidden;
  font-size: 13px;
}
.tool-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
}
.tool-head svg.tool-icon {
  width: 14px;
  height: 14px;
  stroke: var(--ink-2);
  fill: none;
  stroke-width: 1.6;
  flex-shrink: 0;
}
.tool-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}
.tool-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
}
.tool-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.tool-status--running { color: var(--accent); }
.tool-status--running::before {
  background: var(--accent);
  animation: dotPulse 1.2s ease-in-out infinite;
}
.tool-status--done { color: var(--success); }
.tool-status--done::before { background: var(--success); }
.tool-status--error { color: var(--warning); }
.tool-status--error::before { background: var(--warning); }
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.6); opacity: 0.4; }
}

.tool-toggle {
  margin-left: 10px;
  width: 8px;
  height: 8px;
  border-right: 1.4px solid var(--ink-3);
  border-bottom: 1.4px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.tool-call.is-open .tool-toggle { transform: rotate(225deg); }

.tool-body {
  display: none;
  padding: 0 14px 14px;
  border-top: 1px solid var(--rule);
}
.tool-call.is-open .tool-body { display: block; }
.tool-args, .tool-output {
  margin-top: 10px;
}
.tool-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.tool-pre {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-2);
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
}

/* =========================================================
   Input
   ========================================================= */

.composer {
  padding: 12px 32px 24px;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 30%);
}
.composer-inner {
  max-width: 740px;
  margin: 0 auto;
  position: relative;
}

.input-wrap {
  background: var(--bg-card);
  border: 1px solid var(--rule-2);
  border-radius: 14px;
  padding: 12px 12px 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.attachment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
}
.attachment button {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1;
}

.composer textarea {
  resize: none;
  width: 100%;
  min-height: 24px;
  max-height: 240px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  font-family: var(--font-sans);
  padding: 4px 4px;
}
.composer textarea::placeholder { color: var(--ink-3); }

.composer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid var(--rule);
}
.composer-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--ink-3);
  transition: background 0.15s, color 0.15s;
}
.composer-btn:hover { background: var(--bg-2); color: var(--ink); }
.composer-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.composer-spacer { flex: 1; }

.composer-send {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.15s;
}
.composer-send:hover { background: var(--accent-hi); }
.composer-send:active { transform: scale(0.94); }
.composer-send:disabled {
  background: var(--bg-2);
  color: var(--ink-3);
  cursor: not-allowed;
}
.composer-send svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

.composer-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}
.composer-hint kbd {
  font-family: var(--font-mono);
  background: var(--bg-2);
  border: 1px solid var(--rule);
  padding: 1px 5px;
  border-radius: 3px;
  margin: 0 1px;
}

/* Slash menu */
.slash-menu {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin-bottom: 8px;
  background: var(--bg-card);
  border: 1px solid var(--rule-2);
  border-radius: 10px;
  padding: 6px;
  box-shadow: var(--shadow-md);
  display: none;
  transform-origin: bottom center;
  animation: slashIn 0.18s cubic-bezier(.34,1.56,.64,1);
}
.slash-menu.is-open { display: block; }
@keyframes slashIn {
  from { opacity: 0; transform: translateY(4px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.slash-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.1s;
}
.slash-item:hover, .slash-item.is-focused { background: var(--bg-2); }
.slash-cmd {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  min-width: 100px;
}
.slash-desc {
  font-size: 13px;
  color: var(--ink-2);
}

/* =========================================================
   Right Inspector
   ========================================================= */

.inspector {
  grid-area: inspector;
  width: 0;
  background: var(--bg-2);
  border-left: 1px solid var(--rule);
  overflow: hidden;
  transition: width 0.3s cubic-bezier(.7,0,.2,1);
}
.inspector.is-open {
  width: var(--inspector-w);
}
.inspector-inner {
  width: var(--inspector-w);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.inspector-tabs {
  display: flex;
  border-bottom: 1px solid var(--rule);
  padding: 0 8px;
  gap: 2px;
}
.inspector-tab {
  padding: 14px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.inspector-tab:hover { color: var(--ink-2); }
.inspector-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.inspector-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}
.inspector-body h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.inspector-textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink);
}
.inspector-textarea:focus { border-color: var(--accent); }

.inspector-save {
  margin-top: 10px;
  padding: 7px 14px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s;
}
.inspector-save:hover { background: var(--accent-hi); }

.tool-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.tool-toggle-row:last-child { border-bottom: none; }
.tool-toggle-info { display: flex; flex-direction: column; gap: 2px; }
.tool-toggle-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.tool-toggle-desc {
  font-size: 11px;
  color: var(--ink-3);
}
.toggle-switch {
  width: 32px;
  height: 18px;
  border-radius: 9px;
  background: var(--rule-2);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.2s;
}
.toggle-switch.is-on { background: var(--accent); }
.toggle-switch.is-on::after { transform: translateX(14px); background: var(--bg); }

.token-stat {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 12px;
}
.token-stat:last-child { border-bottom: none; }
.token-stat span:first-child { color: var(--ink-3); }
.token-stat span:last-child { color: var(--ink); }

/* Files list mock */
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 12px;
}
.file-item svg { width: 14px; height: 14px; stroke: var(--ink-3); fill: none; stroke-width: 1.5; }
.file-item-name {
  flex: 1;
  font-family: var(--font-mono);
  color: var(--ink);
}
.file-item-size {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
}
.file-drop {
  margin-top: 10px;
  padding: 18px;
  border: 1px dashed var(--rule-2);
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
}

/* =========================================================
   Cmd-K Search Modal
   ========================================================= */

.cmdk {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.cmdk.is-open { display: block; }
.cmdk-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  animation: cmdkFade 0.2s ease forwards;
}
@keyframes cmdkFade { from { opacity: 0; } to { opacity: 1; } }

.cmdk-inner {
  position: absolute;
  top: 14vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, 92vw);
  max-height: 70vh;
  background: var(--bg-card);
  border: 1px solid var(--rule-2);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: cmdkSlide 0.22s cubic-bezier(.2,.8,.2,1);
}
@keyframes cmdkSlide {
  from { opacity: 0; transform: translate(-50%, -10px) scale(0.98); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
.cmdk-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
}
.cmdk-head svg { width: 16px; height: 16px; stroke: var(--ink-3); fill: none; stroke-width: 1.6; }
#cmdkInput {
  flex: 1;
  font-size: 16px;
  color: var(--ink);
}
.cmdk-close {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 6px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink-3);
}
.cmdk-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.cmdk-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.1s;
}
.cmdk-result:hover, .cmdk-result.is-focused { background: var(--bg-2); }
.cmdk-result-title {
  flex: 1;
  font-size: 13px;
  color: var(--ink);
}
.cmdk-result-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
}
.cmdk-empty {
  padding: 32px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  font-style: italic;
}

/* =========================================================
   Toast
   ========================================================= */

.aw-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 18px;
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--accent);
  border-radius: 99px;
  font-size: 12px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 0 24px var(--accent-glow);
}
.aw-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
  .inspector { display: none; }
}

@media (max-width: 800px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-areas:
      "topbar"
      "main";
  }
  .sidebar { display: none; }
  .topbar-search { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   LANDING PAGE
   ========================================================= */

body.landing {
  overflow: auto;
  background: var(--bg);
  color: var(--ink);
}

.landing-bg {
  --bg-deep: #001E2B;
  --bg-2-l:  #00141C;
  --ink-l:   #FFFFFF;
  --ink-2-l: #B5D3E2;
  --ink-3-l: #5C8AA0;
  --rule-l:  rgba(255,255,255,0.06);
  --rule-2-l: rgba(255,255,255,0.14);
  background: var(--bg-deep);
  color: var(--ink-l);
}

/* Landing Nav */
.l-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,12,10,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-l);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.l-nav-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.l-nav-logo strong {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink-l);
  text-transform: uppercase;
}
.l-nav-logo strong::before {
  content: '◆';
  color: var(--accent);
  margin-right: 8px;
}
.l-nav-logo small {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
}
.l-nav-links {
  display: flex;
  gap: 24px;
}
.l-nav-links a {
  font-size: 13px;
  color: var(--ink-2-l);
  transition: color 0.2s;
}
.l-nav-links a:hover { color: var(--ink-l); }
.l-nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.l-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}
.l-btn--primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}
.l-btn--primary:hover {
  background: var(--accent-hi);
  box-shadow: 0 0 24px var(--accent-glow);
}
.l-btn--ghost {
  border: 1px solid var(--rule-2-l);
  color: var(--ink-l);
}
.l-btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.l-btn--lg { padding: 14px 26px; font-size: 14px; border-radius: 10px; }

/* HERO */
.l-hero {
  position: relative;
  /* .l-nav is sticky and ~56px tall; fill the rest of the viewport. */
  min-height: calc(100vh - 56px);
  min-height: calc(100svh - 56px);
  padding: clamp(48px, 8vh, 96px) 32px clamp(40px, 6vh, 64px);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}
.l-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 25% 20%, rgba(0, 237, 100, 0.20), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(0, 237, 100, 0.06), transparent 70%),
    linear-gradient(180deg, #001E2B 0%, #00141C 60%, #001E2B 100%);
  z-index: -2;
}
.l-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000 0%, transparent 80%);
  z-index: -1;
}
.l-hero-inner {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.l-hero-text {
  max-width: 580px;
}
.l-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 237, 100, 0.4);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.l-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.l-hero-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(44px, 6.5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink-l);
  margin-bottom: 24px;
}
.l-hero-title em {
  font-style: normal;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-hi) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.l-hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2-l);
  margin-bottom: 32px;
  max-width: 50ch;
}
.l-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.l-hero-trust {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3-l);
}
.l-hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.l-hero-trust span::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

/* HERO chat preview */
.l-hero-preview {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--rule-2-l);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,237,100,0.12);
  overflow: hidden;
  min-height: 460px;
}
.l-hero-preview::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: previewBeam 4s ease-in-out infinite;
}
@keyframes previewBeam {
  0%, 100% { opacity: 0.4; transform: translateX(-30%); }
  50% { opacity: 1; transform: translateX(30%); }
}
.l-preview-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-l);
  margin-bottom: 18px;
}
.l-preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
}
.l-preview-dot:nth-child(1) { background: #ed6a5a; }
.l-preview-dot:nth-child(2) { background: #f4c25b; }
.l-preview-dot:nth-child(3) { background: #6dbf6c; }
.l-preview-title {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3-l);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.l-preview-msg {
  margin-bottom: 18px;
}
.l-preview-msg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
}
.l-preview-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}
.l-preview-avatar--user {
  background: rgba(255,255,255,0.1);
  color: var(--ink-l);
}
.l-preview-avatar--ai {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hi) 100%);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 0 14px var(--accent-glow);
}
.l-preview-name {
  color: var(--ink-l);
  font-weight: 500;
}
.l-preview-name em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}
.l-preview-time {
  color: var(--ink-3-l);
  font-family: var(--font-mono);
  font-size: 10px;
}
.l-preview-body {
  padding-left: 34px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2-l);
  overflow-wrap: anywhere;
  word-break: normal;
}
.l-preview-body strong { color: var(--ink-l); font-weight: 600; }
.l-preview-body code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--accent-hi);
}
.l-preview-cursor {
  display: inline-block;
  width: 7px;
  height: 16px;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: cursorBlink 800ms steps(2) infinite;
  transition: opacity 400ms ease;
}
.l-preview-cursor.is-done {
  animation: none;
  opacity: 0;
}
.l-preview-tool {
  margin-top: 10px;
  margin-left: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--rule-l);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2-l);
}
.l-preview-tool::before {
  content: '⚙';
  color: var(--accent);
}

/* SECTION wrapper */
.l-section {
  padding: 96px 32px;
  position: relative;
}
.l-section--alt { background: var(--bg-2-l); }
.l-container {
  max-width: 1240px;
  margin: 0 auto;
}

.l-section-head {
  text-align: center;
  margin-bottom: 64px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.l-section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.l-section-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink-l);
  margin-bottom: 18px;
}
.l-section-title em { font-style: normal; color: var(--accent); }
.l-section-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2-l);
}

/* Logo strip */
.l-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 56px;
  padding: 32px;
  opacity: 0.55;
}
.l-logos-label {
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-3-l);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.85;
}
.l-logos span {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink-2-l);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* Feature grid */
.l-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.l-feature {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--rule-l);
  border-radius: 14px;
  padding: 28px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.l-feature:hover {
  border-color: rgba(0, 237, 100, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(0, 237, 100, 0.08);
}
.l-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 237, 100, 0.3);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 18px;
}
.l-feature-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.l-feature h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-l);
  margin-bottom: 8px;
}
.l-feature p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2-l);
}

/* Big-Quote / Stat band */
.l-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 56px 32px;
  border-top: 1px solid var(--rule-l);
  border-bottom: 1px solid var(--rule-l);
  background: var(--bg-2-l);
}
.l-stat {
  text-align: center;
}
.l-stat strong {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 8px;
}
.l-stat span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3-l);
}

/* Use-Cases (split layout) */
.l-usecase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--rule-l);
}
.l-usecase:last-child { border-bottom: none; }
.l-usecase--reverse { direction: rtl; }
.l-usecase--reverse > * { direction: ltr; }
.l-usecase-text { padding: 0 16px; }
.l-usecase-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.l-usecase h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink-l);
  margin-bottom: 16px;
}
.l-usecase h3 em { font-style: normal; color: var(--accent); }
.l-usecase p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2-l);
  margin-bottom: 20px;
  max-width: 50ch;
}
.l-usecase ul {
  list-style: none;
  padding: 0;
}
.l-usecase li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--ink-2-l);
  font-size: 14px;
  line-height: 1.5;
}
.l-usecase li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

/* Mock visual */
.l-mock {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--rule-l);
  border-radius: 14px;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  position: relative;
  overflow: hidden;
}
.l-mock-line {
  display: block;
  padding: 4px 0;
  color: var(--ink-2-l);
}
.l-mock-line .k { color: var(--accent-hi); }
.l-mock-line .s { color: #a8c890; }
.l-mock-line .c { color: var(--ink-3-l); font-style: italic; }

/* Pricing */
.l-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.l-price {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--rule-l);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.l-price--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(0,237,100,0.06) 0%, transparent 100%);
  position: relative;
  box-shadow: 0 0 32px rgba(0, 237, 100, 0.1);
}
.l-price--featured::after {
  content: 'beliebt';
  position: absolute;
  top: -10px;
  right: 24px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
}
.l-price-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-3-l);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.l-price-amount {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -0.03em;
  color: var(--ink-l);
  margin-bottom: 4px;
}
.l-price-amount em { font-style: normal; color: var(--accent); }
.l-price-amount small {
  font-family: var(--font-sans);
  font-size: 14px;
  font-style: normal;
  color: var(--ink-3-l);
  margin-left: 4px;
}
.l-price-desc {
  font-size: 13px;
  color: var(--ink-2-l);
  margin-bottom: 24px;
  min-height: 36px;
}
.l-price-features {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
  flex: 1;
}
.l-price-features li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 13px;
  color: var(--ink-2-l);
}
.l-price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* CTA */
.l-cta {
  text-align: center;
  padding: 96px 32px;
  position: relative;
  overflow: hidden;
}
.l-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0, 237, 100, 0.15), transparent 65%);
  z-index: -1;
}
.l-cta h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink-l);
  margin-bottom: 20px;
}
.l-cta h2 em { font-style: normal; color: var(--accent); }
.l-cta p {
  font-size: 16px;
  color: var(--ink-2-l);
  margin-bottom: 32px;
}

/* Footer */
.l-footer {
  padding: 48px 32px 80px;
  border-top: 1px solid var(--rule-l);
}
.l-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.l-footer-brand h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.l-footer-brand h4::before {
  content: '◆';
  color: var(--accent);
  margin-right: 8px;
}
.l-footer-brand p {
  color: var(--ink-3-l);
  font-size: 13px;
  max-width: 36ch;
}
.l-footer-col h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.l-footer-col a, .l-footer-col p {
  display: block;
  font-size: 13px;
  color: var(--ink-2-l);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.l-footer-col a:hover { color: var(--ink-l); }
.l-footer-bottom {
  max-width: 1240px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule-l);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3-l);
}
.l-footer-disclaimer { color: var(--accent); }

/* Login Modal */
.l-login {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.l-login.is-open { display: block; }
.l-login-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  animation: cmdkFade 0.2s ease forwards;
}
.l-login-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, 92vw);
  background: var(--bg-2-l, #00141C);
  border: 1px solid var(--rule-2-l, rgba(255,255,255,0.14));
  border-radius: 14px;
  padding: 36px 32px 28px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,237,100,0.08);
  animation: loginIn 0.25s cubic-bezier(.2,.8,.2,1);
}
@keyframes loginIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)) scale(0.97); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.l-login-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--ink-3-l);
  transition: background 0.15s, color 0.15s;
}
.l-login-close:hover { background: rgba(255,255,255,0.06); color: var(--ink-l); }

.l-login-brand {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.l-login-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.025em;
  color: var(--ink-l);
  margin-bottom: 6px;
}
.l-login-sub {
  font-size: 13px;
  color: var(--ink-2-l);
  margin-bottom: 24px;
}

.l-login-providers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.l-login-provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--rule-2-l);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-l);
  transition: background 0.15s, border-color 0.15s;
}
.l-login-provider:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--accent);
}

.l-login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-3-l);
  text-transform: uppercase;
}
.l-login-divider::before, .l-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule-l);
}

.l-login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
.l-login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3-l);
}
.l-login-form input {
  padding: 11px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--rule-2-l);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-l);
  transition: border-color 0.15s, background 0.15s;
}
.l-login-form input:focus {
  border-color: var(--accent);
  background: rgba(0,237,100,0.04);
}
.l-login-form input::placeholder { color: var(--ink-3-l); }

.l-login-foot {
  text-align: center;
  font-size: 12px;
  color: var(--ink-2-l);
  margin-top: 16px;
}
.l-login-foot a {
  color: var(--accent);
  font-weight: 500;
}
.l-login-foot a:hover { color: var(--accent-hi); }

.l-login-disclaimer {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-3-l);
  text-transform: uppercase;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-l);
}

/* Reveal */
.l-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.l-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive landing */
@media (max-width: 1000px) {
  .l-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .l-features { grid-template-columns: 1fr 1fr; }
  .l-band { grid-template-columns: repeat(2, 1fr); }
  .l-usecase { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .l-usecase--reverse { direction: ltr; }
  .l-pricing { grid-template-columns: 1fr; }
  .l-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .l-features { grid-template-columns: 1fr; }
  .l-band { grid-template-columns: 1fr 1fr; }
  .l-nav-links { display: none; }
  .l-section { padding: 64px 20px; }
  .l-hero { padding: 64px 20px 48px; }
}
