/* Landing atmosphere. Scoped to the home page so the cabinet and wiki stay light. */

.home {
  --night: #07080f;
  --night-2: #10131d;
  --paper: #f5f7fb;
  --mist: #b7c0d2;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #4c7dff;
  --blue-hot: #7ea2ff;
  color: var(--paper);
  background: var(--night);
  color-scheme: dark;
}

.home .nav-wrap {
  background: linear-gradient(var(--night), rgba(7, 8, 15, 0.55) 72%, transparent);
  padding-top: 14px;
}
.home .nav-wrap.is-scrolled {
  background: rgba(7, 8, 15, 0.86);
  backdrop-filter: blur(18px);
}
.home .nav-pill {
  background: transparent;
  width: min(1180px, calc(100% - 32px));
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}
.home .brand { color: var(--paper); }
.home .brand img {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 24px rgba(76, 125, 255, 0.35);
}
.home .nav-links a { color: var(--mist); font-weight: 500; font-variation-settings: "wght" 500; }
.home .nav-links a[aria-current="page"] { background: transparent; color: var(--paper); }
.home .nav-menu {
  background: #141824;
  border-color: var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.home .nav-more summary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  border: 1px solid var(--line);
}
.home .btn-primary {
  background: linear-gradient(180deg, #7ea2ff 0%, #3d68ff 55%, #2d56f0 100%);
  color: #fff;
  box-shadow: 0 10px 32px rgba(61, 104, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.home .btn-primary::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #fff;
}
.home .btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}
.home .btn-outline:hover { background: rgba(255, 255, 255, 0.09); }
.home .btn-primary:hover { filter: brightness(1.06); }
.home :focus-visible { outline-color: var(--blue-hot); }

.lx-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 88px;
}
.lx-sky, .lx-pointer, .lx-grid, .lx-glow, .lx-ring, .lx-stars { position: absolute; inset: 0; pointer-events: none; }
.lx-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse at 50% 42%, #000 18%, transparent 72%);
}
.lx-glow {
  background:
    radial-gradient(520px 280px at 50% 78%, rgba(76, 125, 255, 0.34), transparent 70%),
    radial-gradient(420px 240px at 50% 18%, rgba(90, 80, 255, 0.12), transparent 70%);
}
.lx-pointer {
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 30%), rgba(126, 162, 255, 0.16), transparent 60%);
}
.lx-stars {
  background-image:
    radial-gradient(1.4px 1.4px at 12% 28%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 22% 62%, #d7e2ff, transparent),
    radial-gradient(1.6px 1.6px at 78% 24%, #fff, transparent),
    radial-gradient(1px 1px at 86% 58%, #c9d6ff, transparent),
    radial-gradient(1.3px 1.3px at 64% 16%, #fff, transparent),
    radial-gradient(1px 1px at 38% 18%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 70% 72%, #fff, transparent),
    radial-gradient(1px 1px at 48% 44%, #fff, transparent);
  opacity: 0.75;
  animation: lx-twinkle 5.5s ease-in-out infinite;
}
.lx-ring {
  inset: auto 0 -42vw;
  height: 78vw;
  border-radius: 50%;
  border: 1px solid rgba(140, 170, 255, 0.55);
  box-shadow:
    0 0 80px rgba(76, 125, 255, 0.28),
    inset 0 0 120px rgba(76, 125, 255, 0.08);
  background: radial-gradient(circle at 50% 0%, rgba(90, 130, 255, 0.2), transparent 46%);
}
.lx-ring-2 {
  inset: auto 8% -46vw;
  height: 78vw;
  border-color: rgba(140, 170, 255, 0.2);
  box-shadow: none;
  background: none;
}

.lx-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 36px;
}
.lx-announce {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 9999px;
  border: 1px solid rgba(126, 162, 255, 0.45);
  background: rgba(12, 16, 32, 0.72);
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 0 0 4px rgba(76, 125, 255, 0.08);
}
.lx-announce:hover { border-color: var(--blue-hot); }
.home h1.lx-title {
  max-width: 12ch;
  margin: 28px 0 0;
  font-size: clamp(48px, 6.2vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.lx-slogan {
  margin: 16px 0 0;
  max-width: 20ch;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 650;
  font-variation-settings: "wght" 652;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.lx-grad {
  background: linear-gradient(180deg, #d7e4ff 10%, #6f97ff 55%, #3d68ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.home .lx-hero .lead {
  margin: 22px auto 0;
  max-width: 38rem;
  color: var(--mist);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  font-variation-settings: "wght" 420;
  line-height: 1.45;
}
.lx-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.lx-proof li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-size: 15px;
}
.lx-ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #6d93ff, #3a64f6);
  box-shadow: 0 0 16px rgba(76, 125, 255, 0.45);
  flex: 0 0 auto;
}
.lx-hero .actions { justify-content: center; margin-top: 32px; }

.lx-orbit { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; position: relative; z-index: 2; }
.lx-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 22, 38, 0.9);
  color: #d7deee;
  text-decoration: none;
  font-size: 13px;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.lx-chip b { color: var(--paper); font-weight: 600; font-variation-settings: "wght" 600; }
.lx-chip i {
  font-style: normal;
  color: var(--blue-hot);
  font-size: 12px;
}
.lx-chip:hover { border-color: rgba(126, 162, 255, 0.6); color: var(--paper); }

.lx-block { position: relative; padding: 28px 0 96px; z-index: 1; }
.lx-kicker {
  margin: 0 0 12px;
  color: var(--blue-hot);
  font-size: 13px;
  font-weight: 600;
  font-variation-settings: "wght" 600;
  letter-spacing: 0.04em;
}
.home h2.lx-h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.lx-sub { margin: 14px 0 0; max-width: 38rem; color: var(--mist); }

.lx-split, .lx-models, .lx-code, .lx-steps { margin-top: 32px; }
.lx-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 18px; }
.lx-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
    rgba(14, 17, 28, 0.86);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.lx-panel-hot::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  top: -90px;
  background: radial-gradient(circle, rgba(76, 125, 255, 0.38), transparent 68%);
  pointer-events: none;
}
.lx-panel h3 { position: relative; font-size: 32px; }
.lx-panel p { position: relative; color: var(--mist); max-width: 42ch; }
.home .lx-panel .price { position: relative; color: var(--paper); font-size: 20px; }
.lx-panel .actions { position: relative; margin-top: auto; padding-top: 24px; }
.lx-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 9999px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-variation-settings: "wght" 600;
}
.lx-panel .lx-badge { align-self: flex-start; }
.lx-panel .lx-badge + h3 { margin-top: 16px; }

.lx-sample { position: relative; display: grid; gap: 10px; margin-top: 22px; }
.lx-sample div { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; font-size: 14px; }
.lx-sample b { font-variant-numeric: tabular-nums; font-weight: 600; }
.lx-sample i {
  grid-column: 1 / -1;
  display: block;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.lx-sample i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
  background: #8ea2c4;
}
.lx-sample div:first-child i::before { background: linear-gradient(90deg, #7ea2ff, #3d68ff); }
.lx-note { margin: 8px 0 0; color: var(--mist); font-size: 12px; }
.lx-close a { color: var(--blue-hot); }

.lx-models { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lx-model {
  padding: 24px;
  border-radius: 24px;
  background: rgba(14, 17, 28, 0.8);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  min-height: 180px;
  display: flex;
  flex-direction: column;
}
.lx-model:first-child {
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(76, 125, 255, 0.22), transparent 60%),
    rgba(14, 17, 28, 0.9);
}
.lx-model h3 { font-size: 24px; }
.lx-model p { margin: 10px 0 0; color: var(--mist); }
.lx-model .price { margin-top: auto; padding-top: 20px; color: var(--paper); }

.lx-try { padding-top: 8px; padding-bottom: 64px; scroll-margin-top: 88px; }
.lx-try .lx-h2 { font-size: clamp(28px, 3vw, 40px); }
.lx-demo-head { max-width: 40rem; }
.lx-bench {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 20px;
}
.home .demo {
  position: relative;
  margin-top: 0;
  padding: 16px 18px;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 24%),
    rgba(10, 12, 20, 0.88);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.home .demo textarea {
  min-height: 76px;
  padding: 10px 12px;
}
.home .demo input {
  min-height: 40px;
  padding: 8px 12px;
}
.home .demo .option-row { margin-top: 8px; gap: 8px; }
.home .demo .actions { margin-top: 0; }
.lx-live {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px 18px 8px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(12, 15, 26, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.lx-live .result {
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.lx-result-empty {
  margin: auto;
  max-width: 28ch;
  text-align: center;
  color: var(--mist);
}
.home .demo label { color: var(--paper); }
.home .demo input,
.home .demo textarea,
.home .result input {
  background: #0d1018;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.home .demo input::placeholder { color: #8e98ad; }
.home .demo input:focus,
.home .demo textarea:focus { border-color: var(--blue-hot); }
.home .demo .segmented {
  background: #0d1018;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.home .demo .segmented button { color: var(--mist); }
.home .demo .segmented button[aria-pressed="true"] {
  background: linear-gradient(180deg, #6d93ff, #315fff);
  color: #fff;
}
.home .letter {
  background: #171b28;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.home .result.card {
  background: rgba(12, 15, 26, 0.92);
  border-color: var(--line);
  color: var(--paper);
}
.home .choice { color: var(--paper); }
.home .track { background: rgba(255, 255, 255, 0.08); }
.home .fill { background: rgba(255, 255, 255, 0.28); }
.home .fill.best { background: linear-gradient(90deg, #7ea2ff, #3d68ff); }
.home .meta, .home .muted { color: var(--mist); }
.home .error { color: #ffb4b4; }

.lx-code { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: none; }
.lx-code.lx-one { grid-template-columns: minmax(0, 820px); }
.lx-also { padding-top: 12px; }
.lx-also .lx-h2 { font-size: clamp(28px, 3vw, 40px); }
.lx-also .lx-code { margin-top: 18px; }
.lx-chat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lx-chat .lx-model:first-child { background: rgba(14, 17, 28, 0.8); }
.lx-also a { color: var(--blue-hot); }
.lx-term {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0c0f18;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.lx-term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
  color: var(--mist);
  font-size: 13px;
}
.lx-term-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.lx-term-bar em { margin-left: 8px; font-style: normal; color: var(--paper); }
.home .lx-term pre {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d5def2;
  padding: 18px 16px 20px;
}
.lx-term .meta { margin: 0; padding: 0 16px 16px; }

.lx-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.lx-steps li {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.lx-steps span {
  display: block;
  color: var(--blue-hot);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  font-variation-settings: "wght" 652;
}
.lx-steps h3 { margin-top: 10px; font-size: 22px; }
.lx-steps p { margin: 8px 0 0; color: var(--mist); }

.lx-close {
  margin-top: 28px;
  padding: 36px;
  border-radius: 28px;
  border: 1px solid rgba(126, 162, 255, 0.28);
  background:
    radial-gradient(500px 180px at 80% 0%, rgba(76, 125, 255, 0.28), transparent 60%),
    rgba(12, 16, 30, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.lx-close p { margin: 10px 0 0; color: var(--mist); max-width: 46ch; }
.home .site-footer {
  background: transparent;
  border-radius: 0;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.home .footer-tag, .home .footer-links a, .home .footer-legal { color: #c5cedd; }
.home .footer-links a:hover { color: var(--paper); }
.home .notes a { color: var(--blue-hot); }

@media (min-width: 1440px) {
  .lx-hero { min-height: calc(100svh - 20px); padding-bottom: 120px; }
  .lx-orbit { position: absolute; inset: 0; margin: 0; display: block; z-index: 2; pointer-events: none; }
  .lx-chip { position: absolute; pointer-events: auto; animation: lx-float 7s ease-in-out infinite; }
  .lx-chip-1 { top: 18%; left: 2%; animation-delay: 0s; }
  .lx-chip-2 { top: 30%; right: 2%; animation-delay: -2s; }
  .lx-chip-3 { bottom: 24%; left: 4%; animation-delay: -3.5s; }
  .lx-chip-4 { bottom: 18%; right: 3%; animation-delay: -1s; }
}
@media (max-width: 980px) {
  .lx-split, .lx-code, .lx-code.lx-one, .lx-steps, .lx-models, .lx-chat, .lx-bench { grid-template-columns: 1fr; }
  .lx-close { flex-direction: column; align-items: flex-start; }
  .lx-models { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .home .demo { padding: 20px; }
  .lx-close, .lx-panel { padding: 22px; }
  .home h1.lx-title { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .lx-stars, .lx-chip { animation: none; }
  .lx-pointer { display: none; }
}
@keyframes lx-float {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}
@keyframes lx-twinkle {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}
