:root {
  --ink: #0a0a0a;
  --paper: #fafafa;
  --rule: rgba(250, 250, 250, 0.08);
  --brass: #d7a65c;
  --gutter: clamp(20px, 5.5vw, 80px);
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { -webkit-text-size-adjust: 100%; background: var(--ink); }

body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Geist', -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: rgba(250, 250, 250, 0.4); text-decoration: none; }
a:hover { color: var(--paper); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ---------- Shared ---------- */

.site-nav {
  height: 56px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
}

.logo { display: block; width: auto; height: 40px; }
.logo .lk-word {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 88px; font-weight: 500; letter-spacing: -4.5px; fill: var(--paper);
}
.logo .lk-ai {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 44px; font-weight: 400; letter-spacing: -1.2px; fill: var(--paper);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.32);
}
.eyebrow::before,
.term-col-label::before,
.feat-title::before,
.live-dot {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--brass);
  flex-shrink: 0;
}

.hero-display {
  font-size: clamp(30px, 11vw, 96px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--paper);
  white-space: nowrap;
}

/* padding + negative margin: the gradient's paint box grows to cover tall/descending
   scripts (Persian, Devanagari) without moving anything around it */
#hero-name {
  display: inline-block;
  transform-origin: center;
  padding: 0.2em 0.06em 0.32em;
  margin: -0.2em -0.06em -0.32em;
  background: linear-gradient(125deg, #ffe9b5 0%, #d7a65c 45%, #ecc06f 72%, #fafafa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
#hero-name.exit { animation: flapOut 0.3s ease-in forwards; }
#hero-name.enter { animation: flapIn 0.3s ease-out forwards; }
@keyframes flapOut {
  from { transform: perspective(800px) rotateX(0deg); opacity: 1; }
  to   { transform: perspective(800px) rotateX(-75deg); opacity: 0; }
}
@keyframes flapIn {
  from { transform: perspective(800px) rotateX(75deg); opacity: 0; }
  to   { transform: perspective(800px) rotateX(0deg); opacity: 1; }
}

.btn {
  display: inline-block;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding: 11px 24px;
  border-radius: 999px;
  border: 1px solid rgba(250, 250, 250, 0.2);
  color: var(--paper);
  background: transparent;
}
.btn:hover { border-color: rgba(250, 250, 250, 0.45); color: var(--paper); }
.btn-solid { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-solid:hover { background: #fff; color: var(--ink); }
.btn-sm { font-size: 13px; padding: 7px 16px; }

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.footer-mark { font-weight: 500; text-transform: uppercase; color: rgba(250, 250, 250, 0.22); }
.footer-note { color: rgba(250, 250, 250, 0.18); }

/* ---------- Coming soon ---------- */

.cs { display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh; min-height: 100svh; }
.cs .nav-right {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(250, 250, 250, 0.3);
  white-space: nowrap;
}
.live-dot { animation: glow 2.6s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.stage {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 48px var(--gutter);
}
.stage .eyebrow { justify-content: center; margin-bottom: clamp(32px, 4vw, 56px); }

.status-track {
  width: min(680px, 100%);
  margin-top: clamp(32px, 3.6vw, 52px);
  padding: 18px 0;
  min-height: 64px;
  border-top: 1px solid rgba(250, 250, 250, 0.06);
  border-bottom: 1px solid rgba(250, 250, 250, 0.06);
  display: flex; align-items: center; justify-content: center;
}
.status-line {
  font-family: var(--mono);
  font-size: clamp(15px, 4.4vw, 20px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(250, 250, 250, 0.46);
  text-align: center;
}
.cursor {
  display: inline-block; width: 2px; height: 1.1em;
  background: rgba(250, 250, 250, 0.3);
  margin-left: 4px; vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

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

.landing .site-nav { position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 10, 0.92); }
@supports (backdrop-filter: blur(1px)) {
  .landing .site-nav { background: rgba(10, 10, 10, 0.8); backdrop-filter: blur(8px); }
}
.nav-wordmark {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; color: rgba(250, 250, 250, 0.42); }

.hero {
  padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(56px, 7vw, 100px);
  border-bottom: 1px solid var(--rule);
}
.hero .eyebrow { margin-bottom: clamp(32px, 3.6vw, 52px); }
.hero .hero-display { display: flex; align-items: baseline; }
.hero-sub {
  margin-top: clamp(28px, 2.8vw, 40px);
  max-width: 520px;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: rgba(250, 250, 250, 0.56);
}
.hero-actions { margin-top: clamp(28px, 2.8vw, 40px); display: flex; flex-wrap: wrap; gap: 12px; }

.panel-section,
.features-section {
  padding: clamp(48px, 5.6vw, 80px) var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.panel-section .eyebrow { margin-bottom: clamp(24px, 2.8vw, 40px); }
.features-section .eyebrow { margin-bottom: clamp(28px, 3.4vw, 48px); }

.terminal-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #111;
  border: 1px solid var(--rule);
}
.term-pane { min-width: 0; }
.term-pane + .term-pane { border-left: 1px solid var(--rule); }
.term-col-label {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(250, 250, 250, 0.32);
}
.term-col {
  padding: 28px 24px;
  min-height: 300px;
  font-family: var(--mono); font-size: 13px; line-height: 22px;
  overflow-wrap: anywhere;
}
.said-line, .understood-block { margin-bottom: 24px; animation: lineIn 0.35s ease-out; }
@keyframes lineIn { from { opacity: 0; } to { opacity: 1; } }
.turn-label {
  display: block; margin-bottom: 6px;
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(250, 250, 250, 0.26);
}
.turn-text { color: rgba(250, 250, 250, 0.82); }
.brace { color: rgba(250, 250, 250, 0.26); }
.intent-row { padding-left: 18px; }
.intent-k { color: rgba(250, 250, 250, 0.38); }
.intent-sep { color: rgba(250, 250, 250, 0.22); }
.val-str { color: #98c99a; }
.val-num { color: var(--brass); }
.val-bool { color: #8baef0; }

/* hairline grids: 1px gap over a rule-coloured backdrop, so borders stay clean at any column count */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat-cell { background: var(--ink); padding: clamp(28px, 4.4vw, 64px) clamp(20px, 3.3vw, 48px); }
.stat-n {
  font-size: clamp(30px, 4.4vw, 64px);
  font-weight: 500; line-height: 1; letter-spacing: -0.04em;
  margin-bottom: 16px; white-space: nowrap;
}
.stat-cap {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(250, 250, 250, 0.32);
}

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule);
}
.feat { background: var(--ink); padding: clamp(24px, 2.8vw, 40px); }
.feat-title {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
}
.feat-desc { font-size: 14px; line-height: 22px; letter-spacing: -0.005em; color: rgba(250, 250, 250, 0.46); }

.landing .site-footer { padding-top: 36px; padding-bottom: 36px; }

/* ---------- Breakpoints ---------- */

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-link { display: none; }
  .logo { height: 32px; }
  .terminal-card { grid-template-columns: 1fr; }
  .term-pane + .term-pane { border-left: 0; border-top: 1px solid var(--rule); }
  .term-col-label { padding: 12px 16px; }
  .term-col { padding: 20px 16px; font-size: 12.5px; }
  #said-col { min-height: 270px; }
  #understood-col { min-height: 440px; }
  .status-track { min-height: 84px; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 360px) {
  .cs .nav-right { font-size: 10px; letter-spacing: 0.06em; }
}

@media (prefers-reduced-motion: reduce) {
  #hero-name.exit, #hero-name.enter,
  .said-line, .understood-block, .live-dot, .cursor { animation: none; }
}
