:root {
  --bg: #020911;
  --bg-deep: #00050a;
  --panel: rgba(11, 25, 39, 0.72);
  --panel-strong: rgba(13, 30, 48, 0.88);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(149, 184, 213, 0.16);
  --border-strong: rgba(164, 203, 232, 0.28);
  --text: #f7fbff;
  --muted: #a9b6c7;
  --muted-strong: #d7e0ea;
  --blue: #1298ed;
  --blue-bright: #18a8ff;
  --blue-deep: #006fd6;
  --green: #70e365;
  --code-green: #a3ff71;
  --code-purple: #d6a2ff;
  --code-orange: #ff9b52;
  --shadow: 0 24px 80px rgba(0, 88, 160, 0.2);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 6%, rgba(13, 151, 236, 0.2), transparent 34%),
    radial-gradient(circle at 78% 16%, rgba(0, 115, 210, 0.16), transparent 28%),
    linear-gradient(180deg, #03101c 0%, var(--bg) 48%, var(--bg-deep) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 75%);
}

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

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo img {
  width: 210px;
  height: 64px;
  object-fit: contain;
}

.footer-brand .logo img {
  width: 158px;
  height: 48px;
}


.main-nav {
  display: flex;
  align-items: center;
  gap: 58px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.main-nav a,
.footer-links a,
.social-links a {
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.main-nav a:hover,
.footer-links a:hover,
.social-links a:hover {
  color: var(--blue-bright);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 32px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease, background 170ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
  box-shadow: 0 16px 42px rgba(0, 133, 245, 0.34);
}

.button-primary:hover {
  box-shadow: 0 20px 52px rgba(0, 133, 245, 0.45);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.button-secondary:hover {
  border-color: var(--blue-bright);
  background: rgba(18, 152, 237, 0.08);
}

.button-icon {
  font-size: 25px;
  line-height: 1;
  transform: rotate(-6deg);
}

.header-cta {
  min-height: 52px;
  padding-inline: 26px;
  font-size: 16px;
}

.hero-section {
  position: relative;
  padding: 70px 0 146px;
}

.hero-bg-wave {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: -1;
  width: 100vw;
  height: 300px;
  transform: translateX(-50%);
  background:
    linear-gradient(to bottom, transparent 0%, rgba(0, 8, 14, 0.04) 36%, rgba(0, 11, 20, 0.82) 100%);
  opacity: 0.4;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 535px);
  align-items: center;
  gap: 88px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.eyebrow-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(112, 227, 101, 0.8);
}

.hero-copy h1 {
  max-width: 650px;
  margin: 32px 0 24px;
  font-size: clamp(42px, 5.2vw, 64px);
  line-height: 1.16;
  letter-spacing: -0.06em;
  font-weight: 820;
}

.hero-copy h1 span {
  display: block;
  color: var(--blue-bright);
  text-shadow: 0 0 34px rgba(24, 168, 255, 0.32);
}

.hero-subtitle {
  max-width: 610px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 22px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 52px;
}

.code-card,
.feature-panel,
.stats-panel,
.model-card {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(5, 15, 26, 0.72);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
}

.code-card {
  height: 560px;
  padding: 18px 24px 24px;
  overflow: hidden;
}

.code-card-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.language-select-label {
  color: rgba(255,255,255,0.52);
  font-size: 13px;
  font-weight: 600;
}

.language-select {
  width: 180px;
  height: 42px;
  padding: 0 38px 0 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.code-panels {
  height: 400px;
  overflow: hidden;
}

.code-panel,
.code-panel pre {
  height: 100%;
}

.code-panel {
  display: none;
}

.code-panel.active {
  display: block;
}

.code-panel,
.code-panel pre,
.code-panel code {
  height: 100%;
}

.code-card pre {
  margin: 0;
  padding: 22px;
  overflow: auto;
  border-radius: 14px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.05);
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE/Edge */
}

.code-card pre::-webkit-scrollbar {
  display: none;               /* Chrome/Safari */
}

.code-card code {
  display: block;
  min-height: 100%;
  font-size: 14px;
  line-height: 1.62;
  overflow: visible;
}

.code-card pre,
.code-card code,
.code-panels,
.code-panel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.code-card pre::-webkit-scrollbar,
.code-card code::-webkit-scrollbar,
.code-panels::-webkit-scrollbar,
.code-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.code-card-footer {
  margin-top: 18px;
}

.language-select,
.copy-button {
  border: 0;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

.copy-button:hover {
  color: var(--blue-bright);
}

.code-card pre code.hljs {
  background: transparent !important;

  padding: 0 !important;

  font-size: 15px;
  line-height: 1.72;

  color: rgba(255,255,255,0.94);
}

/* soften syntax colors */
.hljs-keyword,
.hljs-selector-tag,
.hljs-title.function_ {
  color: #6cb6ff !important;
}

.hljs-string,
.hljs-title,
.hljs-section,
.hljs-attribute {
  color: #9be370 !important;
}

.hljs-number,
.hljs-literal,
.hljs-symbol {
  color: #ffb86b !important;
}

.hljs-comment {
  color: rgba(255,255,255,0.32) !important;
}

.code-card code::selection {
  background: rgba(24, 168, 255, 0.35);
}

.compatibility-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  color: var(--muted-strong);
  font-size: 14px;
}

.compatibility-note span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 2px solid var(--blue-bright);
  border-radius: 999px;
  color: var(--blue-bright);
  font-size: 12px;
  font-weight: 800;
}

.feature-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card {
  padding: 46px 62px 42px;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(5, 15, 26, 0.72);
  box-shadow: 0 32px 90px rgba(0, 88, 160, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.feature-card + .feature-card {
  border-left: 1px solid var(--border-strong);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 72px;
  height: 72px;

  margin-bottom: 12px;

  border-radius: 4px;

  color: #1298ed;
}

.feature-icon svg {
  width: 64px;
  height: 64px;
}

.feature-card h2 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.feature-card p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.68;
}

.models-section {
  padding: 36px 0 48px;
  text-align: center;
}

.models-section h2 {
  margin: 0 0 28px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;

  max-width: 980px;
  margin: 0 auto;
}

.model-card {
  display: flex;
  align-items: center;
  justify-content: center;

  aspect-ratio: 1;

  padding: 18px;

  border-radius: 18px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.04),
      rgba(255,255,255,0.02)
    );

  border: 1px solid rgba(255,255,255,0.06);

  backdrop-filter: blur(14px);

  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.model-card:hover {
  transform: translateY(-4px);

  border-color: rgba(24,168,255,0.28);

  box-shadow:
    0 12px 32px rgba(18,152,237,0.12),
    inset 0 1px 0 rgba(255,255,255,0.03);
}

.model-card img {
  width: 80%;
  height: 70%;

  object-fit: contain;

  border-radius: 12px;

  opacity: 0.62;
  filter:
    grayscale(1)
    brightness(0.82)
    contrast(0.9);

  transition:
    opacity 180ms ease,
    filter 180ms ease,
    transform 180ms ease;
}

.model-card:hover img {
  opacity: 1;

  filter:
    grayscale(0.15)
    brightness(1.12)
    contrast(1.05);

  transform: scale(1.05);
}

.model-icon {
  width: 48px;
  height: 48px;
}

.stat-icon {
  font-size: 64px;
  color: var(--blue-bright);
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 0;
  min-height: 122px;
  border-radius: 16px;
  margin-bottom: 52px;
  overflow: hidden;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 82px;
  padding: 24px;
}

.stat-item + .stat-item {
  border-left: 1px solid rgba(24, 168, 255, 0.22);
}

.stat-item strong,
.stat-item span {
  display: block;
}

.stat-item strong {
  font-size: 20px;
  line-height: 1.25;
}

.stat-item span {
  margin-top: 2px;
  color: var(--muted-strong);
  font-size: 15px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) 1.6fr minmax(210px, 0.8fr);
  gap: 54px;
  padding: 50px 0 48px;
  border-top: 1px solid var(--border-strong);
}


.footer-brand p,
.footer-cta p,
.copyright {
  color: var(--muted);
}

.footer-brand p {
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.55;
}

.footer-brand .copyright {
  margin-top: 24px;
  font-size: 14px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}

.footer-links h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 16px;
}

.footer-links a {
  display: block;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
}

.footer-cta {
  justify-self: end;
}

.footer-cta p {
  margin: 0 0 18px;
  font-size: 16px;
}

.footer-cta .button {
  width: 210px;
  min-height: 56px;
  padding-inline: 22px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 24px;
}

@media (max-width: 1040px) {
  .site-shell {
    width: min(100% - 36px, var(--max-width));
  }

  .site-header {
    min-height: 92px;
  }

  .main-nav {
    gap: 28px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-section {
    padding-top: 44px;
  }

  .code-card {
    min-height: auto;
  }

  .feature-card {
    padding: 36px 34px;
  }


  .stats-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(3) {
    border-left: 0;
  }

  .stat-item:nth-child(n + 3) {
    border-top: 1px solid rgba(24, 168, 255, 0.22);
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-cta {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 28px, var(--max-width));
  }

  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 18px;
    padding-top: 22px;
  }

  .logo img {
    width: 40px;
    height: 40px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0 0;
    font-size: 14px;
  }

  .header-cta {
    min-height: 44px;
    padding-inline: 18px;
    font-size: 14px;
  }

  .hero-section {
    padding: 54px 0 88px;
  }

  .hero-copy h1 {
    margin-top: 26px;
    font-size: clamp(40px, 12vw, 54px);
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-top: 34px;
  }

  .button {
    width: 100%;
    min-height: 56px;
  }

  .hero-bg-wave {
    height: 220px;
    background-size: auto 220px;
    opacity: 0.7;
  }

  .code-card {
    padding: 16px;
  }

  .code-card code {
    font-size: 13px;
  }

  .feature-panel,
  .stats-panel,
  .site-footer,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .feature-card + .feature-card,
  .stat-item + .stat-item {
    border-left: 0;
    border-top: 1px solid var(--border-strong);
  }

  .feature-card {
    padding: 34px 28px;
  }

  .feature-card h2 {
    font-size: 26px;
  }

  .feature-card p {
    font-size: 16px;
  }


  .stat-item {
    justify-content: flex-start;
  }

  .footer-links {
    gap: 24px;
  }

  .footer-cta,
  .footer-cta .button {
    width: 100%;
  }
}
:root {
  --bg: #020911;
  --bg-deep: #00050a;
  --panel: rgba(11, 25, 39, 0.72);
  --panel-strong: rgba(13, 30, 48, 0.88);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(149, 184, 213, 0.16);
  --border-strong: rgba(164, 203, 232, 0.28);
  --text: #f7fbff;
  --muted: #a9b6c7;
  --muted-strong: #d7e0ea;
  --blue: #1298ed;
  --blue-bright: #18a8ff;
  --blue-deep: #006fd6;
  --green: #70e365;
  --code-green: #a3ff71;
  --code-purple: #d6a2ff;
  --code-orange: #ff9b52;
  --shadow: 0 24px 80px rgba(0, 88, 160, 0.2);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1180px;
}

/* ===== Light theme ===== */
html.light {
  --bg: #f8fafc;
  --bg-deep: #eef2f7;
  --panel: rgba(255, 255, 255, 0.85);
  --panel-strong: rgba(255, 255, 255, 0.95);
  --panel-soft: rgba(0, 0, 0, 0.03);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --text: #0f172a;
  --muted: #64748b;
  --muted-strong: #475569;
  --blue: #0b7dd6;
  --blue-bright: #0c86e8;
  --blue-deep: #005faf;
  --green: #16a34a;
  --code-green: #16a34a;
  --code-purple: #7c3aed;
  --code-orange: #ea580c;
  --shadow: 0 24px 80px rgba(0, 40, 80, 0.08);
}

html.light body {
  background:
    radial-gradient(circle at 18% 6%, rgba(13, 151, 236, 0.06), transparent 34%),
    radial-gradient(circle at 78% 16%, rgba(0, 115, 210, 0.04), transparent 28%),
    linear-gradient(180deg, #f0f4f8 0%, var(--bg) 48%, var(--bg-deep) 100%);
}

html.light body::before {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
}

html.light .main-nav { color: rgba(15, 23, 42, 0.85); }
html.light .eyebrow { color: var(--text); border-color: rgba(0,0,0,0.08); background: rgba(0,0,0,0.04); }
html.light .eyebrow-dot { box-shadow: 0 0 12px rgba(22, 163, 74, 0.4); }

html.light .hero-copy h1 span {
  color: var(--blue-deep);
  text-shadow: none;
}

html.light .button-primary {
  box-shadow: 0 12px 32px rgba(0, 95, 175, 0.18);
}

html.light .button-secondary {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--text);
}
html.light .button-secondary:hover {
  border-color: var(--blue);
  background: rgba(11, 125, 214, 0.06);
}

html.light .code-card,
html.light .feature-panel,
html.light .stats-panel,
html.light .model-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  box-shadow: var(--shadow);
}

html.light .code-card pre {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}

html.light .code-card code.hljs {
  color: rgba(15, 23, 42, 0.9);
}

html.light .hljs-keyword,
html.light .hljs-selector-tag,
html.light .hljs-title.function_ {
  color: #0369a1 !important;
}

html.light .hljs-string,
html.light .hljs-title,
html.light .hljs-section,
html.light .hljs-attribute {
  color: #15803d !important;
}

html.light .hljs-comment {
  color: rgba(0, 0, 0, 0.3) !important;
}

html.light .feature-card:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
  box-shadow: 0 20px 60px rgba(0, 40, 80, 0.1);
}

html.light .feature-card + .feature-card {
  border-left-color: var(--border-strong);
}

html.light .model-card {
  border-color: rgba(0, 0, 0, 0.06);
}
html.light .model-card:hover {
  border-color: rgba(11, 125, 214, 0.2);
  box-shadow: 0 8px 24px rgba(11, 125, 214, 0.08);
}

html.light .model-card img {
  opacity: 0.5;
  filter: grayscale(0.6) brightness(0.6) contrast(0.9);
}
html.light .model-card:hover img {
  opacity: 0.9;
  filter: grayscale(0.1) brightness(0.85) contrast(1);
}

html.light .stat-item + .stat-item {
  border-left-color: rgba(11, 125, 214, 0.15);
}

html.light .stat-icon { color: var(--blue); }

html.light .site-footer {
  border-top-color: var(--border-strong);
}

html.light .footer-links h3 {
  color: var(--text);
}

html.light .language-select {
  background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.02));
  border-color: rgba(0,0,0,0.1);
  color: var(--text);
}

html.light .copy-button { color: var(--muted); }

/* ===== Theme toggle ===== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-soft);
  cursor: pointer;
  color: var(--muted);
  font-size: 20px;
  transition: border-color 160ms ease, color 160ms ease;
}
.theme-toggle:hover {
  border-color: var(--blue);
  color: var(--blue-bright);
}
