:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a0b09;
  color: #f1f4eb;
  --muted: #a8aea1;
  --line: #31352d;
  --accent: #b4ff35;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
p { margin: 0; }
section[id] { scroll-margin-top: 1.5rem; }

.wrap {
  max-width: 76rem;
  width: calc(100% - 5rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  background: var(--accent);
  color: #141b09;
  padding: .65rem 1rem;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header {
  min-height: 5rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.12rem;
  font-weight: 650;
  text-decoration: none;
}
.brand img { border-radius: 27%; }
nav { display: flex; align-items: center; gap: clamp(.7rem, 3vw, 2rem); }
nav a {
  padding: .65rem 0;
  color: var(--muted);
  font-size: .95rem;
  text-decoration: none;
}
nav a:hover { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(4.5rem, 9vw, 8rem);
}
.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(3.5rem, 6.7vw, 6.5rem);
  font-weight: 650;
  letter-spacing: -.06em;
  line-height: .99;
}
.hero h1 span { color: var(--accent); }
.intro {
  max-width: 28rem;
  color: #c9cfc1;
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  line-height: 1.6;
}
.button {
  display: inline-flex;
  align-items: center;
  margin-top: 1.65rem;
  min-height: 3rem;
  padding: .65rem 1.2rem;
  border-radius: .65rem;
  background: var(--accent);
  color: #141b09;
  font-weight: 720;
  text-decoration: none;
}
.button:hover { background: #cdff83; }
.requirements { margin-top: 1rem; color: var(--muted); font-size: .9rem; }

.preview {
  min-width: 0;
  margin: 0;
  padding: clamp(.7rem, 2.6vw, 2.1rem);
  border: 1px solid #3a4829;
  border-radius: 1.3rem;
  background: radial-gradient(ellipse at 62% 120%, #435b20, transparent 72%), #171d11;
}
.preview figcaption {
  padding-top: .75rem;
  color: #bdc9af;
  text-align: center;
  font-size: .83rem;
}
.chat-window {
  overflow: hidden;
  min-width: 0;
  border-radius: .85rem;
  border: 1px solid #3a4034;
  background: #10120f;
  box-shadow: 0 20px 50px #0008;
}
.window-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: .7rem .8rem;
  border-bottom: 1px solid #292d25;
  color: #bac0b4;
  font-size: .82rem;
  font-weight: 600;
}
.window-controls { display: flex; gap: .28rem; }
.window-controls i { width: .45rem; height: .45rem; border-radius: 50%; background: #626a5d; }
.chat-layout { display: grid; grid-template-columns: minmax(6.4rem, .35fr) minmax(0, 1fr); }
.chat-sidebar {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: .95rem .55rem;
  border-right: 1px solid #292d25;
  background: #161813;
  color: #b5bcad;
  font-size: .74rem;
}
.chat-sidebar span { padding-inline: .3rem; }
.chat-sidebar .sidebar-title { margin-bottom: .15rem; color: #9da495; }
.chat-sidebar .selected-chat { padding-block: .35rem; border-radius: .35rem; background: #2b3524; color: #eff4ea; }
.chat-main { padding: .85rem clamp(.65rem, 1.75vw, 1.35rem) 1rem; }
.model { margin-bottom: 1.25rem; color: #c1cab7; font-size: .75rem; font-weight: 650; }
.user-message {
  max-width: 93%;
  margin-left: auto;
  padding: .65rem .8rem;
  border-radius: .9rem .9rem .2rem .9rem;
  background: #2b3225;
  color: #edf4e7;
  font-size: .88rem;
  line-height: 1.48;
}
.assistant-message {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-block: 1.2rem 1.5rem;
  font-size: .86rem;
  line-height: 1.5;
}
.assistant-message img { border-radius: .4rem; }
.assistant-message p { margin-top: .15rem; color: #b4beb0; }
.composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .45rem .5rem .45rem .8rem;
  border: 1px solid #3b4236;
  border-radius: 1.65rem;
  background: #1b1f19;
  color: #b5bcad;
  font-size: .8rem;
}
.composer span {
  display: grid;
  width: 1.6rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #141b09;
  font-weight: 800;
}

.features,
.setup {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.75rem, 6vw, 5rem);
}
main h2 { margin: 0 0 2rem; font-size: clamp(1.85rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.04em; }
.feature-list,
.connection-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.connection-options { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 52rem; }
.setup-intro { margin: -1rem 0 1.75rem; max-width: 36rem; color: var(--muted); line-height: 1.65; }
main article h3 { margin: 0 0 .5rem; font-size: 1.16rem; }
main article p { color: var(--muted); line-height: 1.65; }
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem 2rem;
  color: var(--muted);
}
.site-footer > a:last-child { font-size: .9rem; }

@media (max-width: 58rem) {
  .wrap { width: calc(100% - 3rem); }
  .hero { grid-template-columns: minmax(0, 1fr); max-width: 43rem; padding-block: 3.5rem; }
  .hero h1 { font-size: clamp(3.2rem, 10vw, 5rem); }
  .feature-list { gap: 1.5rem; }
}

@media (max-width: 35rem) {
  .wrap { width: calc(100% - 2rem); }
  .site-header { min-height: 4.25rem; }
  .hero { padding-block: 2.6rem; }
  .feature-list, .connection-options { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .chat-layout { grid-template-columns: minmax(0, 1fr); }
  .chat-sidebar { display: none; }
  .preview figcaption { font-size: .78rem; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
