:root {
  --bg: #0e0e0e;
  --bg-2: #161616;
  --bg-3: #1c1c1c;
  --line: #2a2a2a;
  --fg: #e6e6e6;
  --fg-dim: #999999;
  --fg-muted: #555555;
  --accent: #c084fc;
  --green: #86efac;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --pixel: "Silkscreen", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--fg);
  text-decoration: none;
}

code {
  font-family: var(--mono);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* ===== Nav ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 40px;
  max-width: 700px;
  margin: 8px auto 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  transition: max-width 0.3s ease, padding 0.3s ease, border-radius 0.3s ease;
}
.nav--shrink {
  max-width: 560px;
  padding: 4px 28px;
  border-radius: 8px;
}
.nav__logo {
  font-family: var(--pixel);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--fg);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__links a {
  color: var(--fg-dim);
  font-size: 13px;
  transition: color 0.15s;
}
.nav__links a:hover {
  color: var(--fg);
}
.nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 3.5px;
}
.nav__btn:hover {
  border-color: var(--fg-muted);
}

/* ===== Hero ===== */
.hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 40px;
  text-align: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("so/Gemini_Generated_Image_f1s223f1s223f1s2.png") center/cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--bg) 100%);
  pointer-events: none;
}

.hero__ascii {
  display: none;
}
.hero__pixel {
  font-family: var(--pixel);
  font-size: 96px;
  font-weight: 700;
  color: var(--fg);
  text-align: center;
  user-select: none;
  letter-spacing: 6px;
  position: relative;
  z-index: 1;
}

.hero__tagline {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--fg-muted);
  position: relative;
  z-index: 1;
}

.hero__sub {
  color: var(--fg-dim);
  font-size: 16px;
  max-width: 520px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 3.5px;
  font-size: 13px;
  font-weight: 500;
}
.btn__icon {
  flex-shrink: 0;
}
.btn--primary {
  background: var(--bg-2);
  color: var(--fg);
  border: 1px solid var(--line);
}
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--fg-dim);
}

/* Window mockup */
.hero__window {
  margin-top: 32px;
  width: 100%;
  max-width: 860px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.window__img {
  width: 100%;
  height: auto;
  display: block;
}
/* ===== Sections ===== */
.section__title {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 12px;
}
.section__sub {
  text-align: center;
  color: var(--fg-dim);
  margin-bottom: 32px;
}

/* ===== Features (horizontal scroll on vertical scroll) ===== */
.features {
  position: relative;
  padding: 0;
}
.features__spacer {
  height: 180vh;
  position: relative;
}
.features__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
  overflow: hidden;
}
.features__sticky .section__title {
  padding: 0 40px 24px;
  flex-shrink: 0;
}
.features__track {
  display: flex;
  gap: 20px;
  padding: 0 40px;
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0.25, 0, 0.25, 1);
}
.fcard {
  flex: 0 0 360px;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 3.5px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
}
.fcard:hover {
  border-color: #444444;
}
.fcard__num {
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 1px;
}
.fcard h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
}
.fcard p {
  color: var(--fg-dim);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ===== Docs / Providers ===== */
.docs {
  padding: 80px 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.docs__providers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.docs__provider {
  border: 1px solid var(--line);
  border-radius: 3.5px;
  padding: 16px 18px;
}
.docs__provider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.docs__provider-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}
.docs__provider-tag {
  font-size: 11px;
  color: var(--fg-muted);
}
.docs__code {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--fg-dim);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 3.5px;
  padding: 10px 12px;
  margin: 0;
  overflow-x: auto;
  white-space: pre;
}
.docs__custom {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 3.5px;
  padding: 24px;
}
.docs__custom h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}
.docs__custom p {
  font-size: 12.5px;
  color: var(--fg-dim);
  line-height: 1.6;
  margin-bottom: 12px;
}
.docs__custom .docs__code {
  margin-bottom: 12px;
}
.docs__note {
  font-size: 11.5px;
  color: var(--fg-muted);
  margin-bottom: 0;
}

/* ===== Download ===== */
.download {
  padding: 80px 40px;
  max-width: 600px;
  margin: 0 auto;
}
.download__steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.step__num {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--fg-dim);
  flex-shrink: 0;
}
.step code {
  font-size: 12.5px;
}

/* ===== Footer ===== */
.footer {
  padding: 40px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--fg-muted);
  font-size: 12px;
}
.footer__logo {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-dim);
  margin-bottom: 8px;
  letter-spacing: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hero__pixel { font-size: 32px; letter-spacing: 2px; }
  .hero__tagline { font-size: 10px; letter-spacing: 3px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .nav { padding: 14px 20px; }
  .hero { padding: 100px 20px 60px; }
  .features, .models, .download { padding-left: 20px; padding-right: 20px; }
}

/* ===== Roadmap ===== */
.roadmap {
  padding: 80px 40px;
  max-width: 900px;
  margin: 0 auto;
}
.roadmap__cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.roadmap__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.roadmap__col-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 12px;
  border-radius: 4px;
  text-align: center;
}
.roadmap__col-header--done {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.roadmap__col-header--wip {
  color: var(--fg-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.roadmap__col-header--planned {
  color: var(--fg-muted);
  background: transparent;
  border: 1px solid var(--line);
}
.roadmap__col-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.roadmap__card {
  font-size: 12.5px;
  color: var(--fg-dim);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
}

@media (max-width: 600px) {
  .roadmap__cols {
    grid-template-columns: 1fr;
  }
}

/* ===== FAQ ===== */
.faq {
  padding: 80px 40px;
  max-width: 700px;
  margin: 0 auto;
}
.faq__list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq__item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq__item:first-child {
  border-top: 1px solid var(--line);
}
.faq__item summary {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq__item summary::after {
  content: "+";
  font-size: 16px;
  color: var(--fg-muted);
  transition: transform 0.2s;
}
.faq__item[open] summary::after {
  content: "−";
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item p {
  font-size: 12.5px;
  color: var(--fg-dim);
  line-height: 1.6;
  margin-top: 10px;
  padding-right: 20px;
}

/* ===== Gallery ===== */
.gallery {
  padding: 60px 40px;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}
.gallery__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.gallery__slide {
  flex: 0 0 100%;
  min-width: 100%;
}
.gallery__slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: var(--fg-muted);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.gallery__dot--active {
  background: var(--fg);
}

/* ===== Language switcher ===== */
.lang-switch {
  position: relative;
}
.lang-switch__btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3.5px;
  cursor: pointer;
  letter-spacing: 0.5px;
}
.lang-switch__btn:hover {
  color: var(--fg);
  border-color: var(--fg-muted);
}
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1a1a1a;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  padding: 4px;
  min-width: 110px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.lang-switch__menu--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-switch__item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 4px;
  cursor: pointer;
}
.lang-switch__item:hover {
  background: #252525;
  color: var(--fg);
}

.docs__ui-note {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 3.5px;
  padding: 20px 24px;
  background: var(--bg-2);
}
.docs__ui-note h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}
.docs__ui-note p {
  font-size: 12.5px;
  color: var(--fg-dim);
  line-height: 1.6;
}

.docs__screenshot {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.docs__screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Highlights (vendor lock-in + privacy) ===== */
.highlights {
  padding: 80px 40px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.highlight--reverse {
  direction: rtl;
}
.highlight--reverse > * {
  direction: ltr;
}
.highlight__text h2 {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.highlight__text p {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.8;
}

/* Diagram */
.highlight__diagram {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
}
.diagram__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-2);
  border: 1px solid var(--fg-muted);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  z-index: 2;
}
.diagram__node {
  position: absolute;
  font-size: 11px;
  color: var(--fg-dim);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 10px;
  white-space: nowrap;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.diagram__ico {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  object-fit: contain;
}
.diagram__node--1 { top: 2%; left: 50%; transform: translateX(-50%); }
.diagram__node--2 { top: 8%; right: 2%; }
.diagram__node--3 { top: 40%; right: 0; }
.diagram__node--4 { bottom: 8%; right: 2%; }
.diagram__node--5 { bottom: 2%; left: 50%; transform: translateX(-50%); }
.diagram__node--6 { bottom: 8%; left: 2%; }
.diagram__node--7 { top: 40%; left: 0; }
.diagram__node--8 { top: 8%; left: 2%; }
.diagram__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.diagram__lines path {
  stroke: var(--fg-muted);
  stroke-width: 1;
  fill: none;
  opacity: 0.2;
  stroke-dasharray: none;
}
.diagram__particle {
  fill: #ffffff;
  opacity: 0.9;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
}

/* Shield */
.highlight__shield-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.shield__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
}
.shield__lock-icon {
  position: absolute;
  color: var(--fg);
}
.shield__labels {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.shield__tag {
  font-size: 10px;
  color: var(--fg-muted);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}

@media (max-width: 700px) {
  .highlight {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .highlight--reverse {
    direction: ltr;
  }
  .highlight__diagram {
    width: 300px;
    height: 300px;
  }
}

/* ===== Developer ===== */
.developer {
  padding: 60px 40px;
  max-width: 600px;
  margin: 0 auto;
}
.developer__card {
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 32px;
}
.developer__avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.developer__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.developer__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}
.developer__role {
  font-size: 12px;
  color: var(--fg-muted);
}
.developer__bio {
  font-size: 12.5px;
  color: var(--fg-dim);
  line-height: 1.5;
  margin-top: 4px;
}
.developer__link {
  font-size: 12px;
  color: var(--fg-dim);
  margin-top: 4px;
}
.developer__link:hover {
  color: var(--fg);
}

.developer__badge {
  width: 20px;
  height: 20px;
}
.developer__gh {
  color: var(--fg-muted);
  display: inline-flex;
}
.developer__gh:hover {
  color: var(--fg);
}

.developer__card {
  position: relative;
}
.developer__socials {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 10px;
}
.developer__social {
  color: var(--fg-muted);
  display: inline-flex;
}
.developer__social:hover {
  color: var(--fg);
}


/* ===== Version Picker ===== */
.version-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 4px;
  display: inline-flex;
}
.hero .version-picker {
  display: flex;
  justify-content: center;
}
.version-picker__btn {
  background: transparent;
  border: none;
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.version-picker__btn:hover {
  color: var(--fg);
}
.version-picker__btn--active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== Gallery versions ===== */
.gallery__version {
  display: none;
  overflow: hidden;
}
.gallery__version--active {
  display: block;
  animation: gallery-fade-in 0.4s ease;
}
@keyframes gallery-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox--open {
  opacity: 1;
  pointer-events: all;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}
.lightbox__img {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.lightbox--open .lightbox__img {
  transform: scale(1);
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 36px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 1;
}
.lightbox__close:hover {
  opacity: 1;
}


/* ===== Updates / Blog page ===== */
.updates {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 40px;
}
.updates__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}
.updates__sub {
  color: var(--fg-muted);
  font-size: 14px;
  margin-bottom: 48px;
}
.update {
  border-left: 2px solid var(--line);
  padding: 0 0 40px 24px;
  margin-left: 8px;
  position: relative;
}
.update::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.update:last-child {
  border-left-color: transparent;
}
.update__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.update__version {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(192, 132, 252, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}
.update__date {
  font-size: 12px;
  color: var(--fg-muted);
}
.update__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
}
.update__body {
  color: var(--fg-dim);
  font-size: 13px;
  line-height: 1.7;
}
.update__body h3 {
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0 6px;
}
.update__body h3:first-child {
  margin-top: 0;
}
.update__body ul {
  padding-left: 18px;
  margin: 4px 0;
}
.update__body li {
  margin: 3px 0;
}
.update__body code {
  font-size: 11px;
}
