:root {
  color-scheme: light;
  --ink: #121223;
  --night: #070710;
  --muted: #5e6175;
  --line: #dedfeb;
  --violet: #5346e8;
  --violet-hover: #4134cb;
  --focus: #7468ff;
  --star: polygon(50% 0%, 64% 35%, 100% 38%, 72% 61%, 81% 100%, 50% 79%, 19% 100%, 28% 61%, 0% 38%, 36% 35%);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
section { scroll-margin-top: 24px; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 96px, 1200px); margin-inline: auto; }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  z-index: 2;
}

.site-header, .hero { background: var(--night); color: #fff; }
.site-header { border-bottom: 1px solid #ffffff18; }
.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  font-size: 1.35rem;
  font-weight: 760;
  letter-spacing: -.06em;
}

.brand-star {
  display: inline-block;
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  background: currentColor;
  clip-path: var(--star);
}

.wordmark .brand-star { color: #a29aff; }
.site-nav, .site-footer nav { display: flex; align-items: center; gap: 34px; }
.site-nav a, .site-footer nav a { font-size: .9375rem; }
.site-nav a { color: #bfbecf; }
.site-nav a:hover { color: #fff; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.button-primary { background: var(--violet); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--violet-hover); }
.button-primary:disabled { background: #eceaf8; color: #6c6785; }
.button-header {
  justify-self: end;
  min-height: 40px;
  padding-inline: 14px;
  color: #fff;
  background: #ffffff0b;
  border-color: #ffffff33;
}
.button-header:hover, .button-outline:hover { background: #ffffff16; border-color: #ffffff70; }
.button-outline { color: #fff; background: transparent; border-color: #ffffff38; }
.button-secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.button-secondary:hover { background: #f4f3ff; border-color: #c3bfff; }
.file-type { color: var(--muted); font-size: .75rem; font-weight: 650; letter-spacing: .06em; }

.hero { overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: clamp(480px, 47vw, 632px);
  isolation: isolate;
}

.hero-copy { z-index: 1; padding-block: 64px; }
.hero h1 {
  margin: 0;
  color: #fcfcff;
  font-size: clamp(4.2rem, 9.1vw, 8.7rem);
  line-height: .99;
  font-weight: 680;
  letter-spacing: -.085em;
  white-space: nowrap;
}

.hero h1 span { color: #a99fff; }
.hero p { margin: 26px 0 0; color: #c1c0d3; font-size: clamp(1.0625rem, 2vw, 1.25rem); line-height: 1.72; }
.hero-speed { color: #fcfcff; white-space: nowrap; }
.hero-speed sup { margin-inline-start: .15em; color: #a99fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-art {
  align-self: stretch;
  position: relative;
  min-width: 0;
}
.hero-art img {
  position: absolute;
  top: 50%;
  left: 52%;
  display: block;
  width: min(117%, 690px);
  height: auto;
  transform: translate(-50%, -50%);
  mask-image: radial-gradient(ellipse at center, #000 53%, transparent 74%);
}

.section { padding-block: clamp(62px, 7.5vw, 112px); }
.benchmark { background: #f8f9fc; }
.section-heading h2 {
  margin: 0;
  font-size: clamp(2.15rem, 4.2vw, 3.3rem);
  line-height: 1.12;
  font-weight: 680;
  letter-spacing: -.055em;
}
.section-heading p { margin: 13px 0 0; color: var(--muted); font-size: 1.0625rem; line-height: 1.7; }
.benchmark-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; }

.chart-card {
  margin: 30px 0 0;
  padding: 28px 28px 21px;
  border: 1px solid #e3e4ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 42px #1b224905;
}
.chart-title { margin: 0 0 12px; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 700; letter-spacing: -.02em; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 3px 9px; padding: 0; margin: 0 0 8px -9px; list-style: none; }
.legend-item {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #3f4257;
  font-size: .875rem;
  line-height: 1.2;
}
.legend-item:hover { border-color: #e2e2ed; background: #f9f9fe; }
.legend-item[aria-pressed="false"] { color: #73758a; text-decoration: line-through; }
.legend-item[aria-pressed="false"] .legend-symbol { opacity: .35; }
.legend-item.is-elen { color: #4234bd; font-weight: 700; }
.legend-symbol { width: 10px; height: 10px; border-radius: 50%; background: var(--series-color); }
.is-elen .legend-symbol { width: 13px; height: 13px; border-radius: 0; clip-path: var(--star); }
.chart-card figcaption { color: var(--muted); font-size: .875rem; line-height: 1.55; }
.chart-area { position: relative; }
#model-chart { display: block; width: 100%; height: clamp(335px, 36vw, 435px); }
.chart-tooltip {
  position: absolute;
  padding: 8px 12px;
  color: #fff;
  background: #1d1d33;
  border-radius: 7px;
  font-size: .875rem;
  line-height: 1.4;
  pointer-events: none;
  box-shadow: 0 3px 12px #18182a25;
  white-space: nowrap;
}
.script-note { padding-inline: 16px; }

.performance { border-top: 1px solid #edeef5; }
.performance-card { --speed-columns: minmax(172px, .35fr) minmax(0, 1fr) 92px; }
.performance-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 14px; }
.performance-header .chart-title { margin: 0; }
.performance-header sup { color: var(--violet); margin-left: 3px; }
.chart-unit { color: var(--muted); font-size: .875rem; }
.speed-rows { display: grid; gap: 4px; list-style: none; padding: 0; margin: 20px 0 5px; }
.speed-row, .speed-axis { display: grid; grid-template-columns: var(--speed-columns); column-gap: 16px; align-items: center; }
.speed-row { min-height: 54px; padding: 7px 12px; border-radius: 7px; }
.speed-row.is-elen { background: #f2f0ff; }
.speed-model { display: grid; color: #2e2e44; min-width: 0; font-size: .9375rem; line-height: 1.3; font-weight: 650; }
.speed-model small { color: var(--muted); font-size: .8125rem; font-weight: 400; margin-top: 3px; }
.speed-track { height: 12px; background: #efeff7; border-radius: 3px; overflow: hidden; }
.speed-bar { display: block; width: var(--speed-percent, 0%); height: 100%; background: #8583a1; border-radius: inherit; }
.speed-row.is-elen .speed-bar { background: var(--violet); }
.speed-value { color: #35364a; font-size: .9375rem; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.speed-row.is-elen .speed-value { color: #4234bd; }
.speed-axis { margin-inline: 12px; }
.speed-ticks { grid-column: 2; display: flex; min-width: 0; justify-content: space-between; color: var(--muted); font-size: .8125rem; }
.performance-card figcaption { border-top: 1px solid #edeef5; margin-top: 20px; padding-top: 13px; }
.performance-card figcaption p { margin: 0; }
.performance-sources { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-top: 7px; }
.performance-sources a { color: #4234b3; text-decoration: underline; text-underline-offset: 3px; }

.experience { border-block: 1px solid #ebecf3; background: #f1f0fa; }
.experience-inner { display: grid; grid-template-columns: minmax(245px, .85fr) minmax(0, 1.35fr); gap: clamp(32px, 6vw, 86px); align-items: center; }
.prompt-list { display: grid; justify-items: start; gap: 9px; list-style: none; margin: 25px 0 0; padding: 0; }
.prompt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 7px 12px;
  color: #342d69;
  font-size: .9375rem;
  text-align: left;
  border: 1px solid #dfdced;
  border-radius: 7px;
  background: #ffffff8c;
  transition: background-color .15s ease, border-color .15s ease;
}
.prompt:hover { border-color: #bcb4f5; background: #fff; }
.prompt-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; border: 1.5px solid var(--violet); }

.chat {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  height: 480px;
  background: #fff;
  border: 1px solid #dedaee;
  border-radius: 16px;
  box-shadow: 0 20px 55px #2620560b;
}
.chat-header { display: flex; align-items: center; gap: 11px; padding: 13px 17px; border-bottom: 1px solid #eeedf6; }
.chat-logo, .empty-star { display: grid; place-items: center; color: var(--violet); background: #eeebff; }
.chat-logo { width: 34px; height: 34px; border-radius: 8px; }
.chat-logo .brand-star { width: .9rem; height: .9rem; }
.chat-model { font-size: .975rem; font-weight: 700; }
.reset-chat {
  min-height: 36px;
  padding: 4px 9px;
  margin-left: auto;
  color: #56546c;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  font-size: .875rem;
}
.reset-chat:disabled { color: #777489; }
.reset-chat:hover:not(:disabled) { border-color: #e6e3f4; background: #f7f6ff; }
.chat-log {
  /* Keep absolutely positioned screen-reader labels within the chat scroller. */
  position: relative;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
}
.chat-log:focus-visible { outline-offset: -4px; }
.chat-empty { display: grid; place-content: center; justify-items: center; height: 100%; color: #3a3850; }
.empty-star { width: 57px; height: 57px; border-radius: 15px; }
.empty-star .brand-star { width: 25px; height: 25px; }
.chat-empty p { margin: 12px 0 0; }
.message { display: flex; gap: 10px; align-items: start; margin-bottom: 16px; }
.message.user { justify-content: end; }
.message .chat-logo { flex: none; width: 28px; height: 28px; }
.bubble { max-width: 88%; margin: 0; padding: 9px 13px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.64; }
.assistant .bubble { background: #f3f1fa; border-radius: 3px 12px 12px 12px; }
.user .bubble { background: #eae6ff; color: #27214f; border-radius: 12px 3px 12px 12px; }
.composer { display: flex; align-items: end; gap: 8px; margin: 0 14px 14px; padding: 7px; border: 1px solid #dedaee; border-radius: 11px; }
.composer:focus-within { border-color: #857af1; box-shadow: 0 0 0 2px #857af120; }
.composer textarea { flex: 1; display: block; width: 100%; min-width: 0; resize: none; min-height: 42px; max-height: 112px; padding: 10px 8px; line-height: 1.4; border: 0; color: var(--ink); background: #fff; }
.composer textarea:focus { outline: 0; }
.composer textarea::placeholder { color: #706e84; }
.send-button { min-height: 42px; padding-inline: 14px; }

.os { background: #f6f6fc; border-bottom: 1px solid #ebecf3; }
.os-benchmark-link { color: var(--violet-hover); text-decoration: underline; text-underline-offset: .18em; }
.os-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid #2b2845;
  border-radius: 21px;
  background: #111020;
  color: #f7f6ff;
  box-shadow: 0 30px 74px #241e402b, 0 4px 10px #241e4014;
}
.os-desktop {
  min-width: 0;
  border-inline-end: 1px solid #ffffff20;
  background: #16152d;
}
.os-bar {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid #ffffff16;
  font-size: .9375rem;
}
.os-desktop-bar { background: #14132a; }
.os-desktop-bar .brand-star { color: #a99fff; }
.os-desktop-bar strong { letter-spacing: -.025em; }
.os-clock {
  margin-inline-start: auto;
  color: #dad6f5;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.os-workspace {
  display: grid;
  gap: 16px;
  padding: 18px;
  background:
    radial-gradient(ellipse at 8% 0, #8470e066, transparent 54%),
    radial-gradient(ellipse at 98% 72%, #6455cb63, transparent 50%),
    linear-gradient(143deg, #17172ac4, #22213ffc),
    url("assets/elen-star.jpg") center 50% / cover no-repeat;
}
.os-launcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: min(100%, 432px);
  padding: 6px;
  margin: 0;
  border: 1px solid #d8cbff35;
  border-radius: 15px;
  background: #15142bbd;
  list-style: none;
}
.os-launcher button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 45px;
  padding: 5px 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #e0dcf6;
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
}
.os-launcher button:hover { background: #e4dcff19; }
.os-launcher button[aria-pressed="true"] {
  border-color: #b6a6fa70;
  background: #7563b647;
  color: #fff;
}
.os-app-symbol {
  display: grid;
  flex: none;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 8px;
  background: #ad94ff2c;
  color: #ddceff;
}
.os-app-symbol::before { content: ""; width: 13px; height: 12px; }
.os-app-symbol-archive::before {
  border: 1px solid currentColor;
  border-radius: 3px;
  background: linear-gradient(currentColor, currentColor) center 3px / 5px 1px no-repeat;
}
.os-app-symbol-tasks { background: #90dbf229; color: #c2eaff; }
.os-app-symbol-tasks::before {
  height: 11px;
  background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 5px);
}
.os-app-symbol-timer { background: #8be9c628; color: #b5f5da; }
.os-app-symbol-timer::before {
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(currentColor, currentColor) center 2px / 1px 5px no-repeat;
}
.os-app-symbol-notes { background: #ffbb952b; color: #ffd6b8; }
.os-app-symbol-notes::before {
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 4px) center / 6px 5px no-repeat;
}
.os-window {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #c9c0e957;
  border-radius: 13px;
  box-shadow: 0 15px 45px #08081866;
}
.os-window-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 7px 13px;
  background: #f2effc;
  border-bottom: 1px solid #dfdaee;
  color: #393152;
  font-size: .875rem;
  font-weight: 680;
}
.os-window-indicator {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 3px;
  background: #7461e4;
}
#os-window-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-preview { height: 484px; background: #faf9fe; color: var(--ink); }
.os-preview iframe { display: block; width: 100%; height: 100%; border: 0; }
.os-workbench { display: flex; flex-direction: column; min-width: 0; background: #10101e; }
.os-workbench-bar { justify-content: space-between; background: #151426; }
.os-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a3e6cb;
  font-size: .875rem;
}
.os-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.os-source-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 49px;
  padding: 7px 18px;
  border-bottom: 1px solid #ffffff13;
  background: #19182a;
}
.os-source-name { color: #d5ccfc; font: .875rem "SFMono-Regular", Consolas, monospace; }
.os-export {
  padding: 5px 9px;
  border: 1px solid #e5deff2e;
  border-radius: 6px;
  background: #ffffff0a;
  color: #ede9ff;
  font-size: .875rem;
}
.os-export:hover:not(:disabled) { background: #ffffff1d; }
.os-export:disabled { opacity: .65; }
.os-code {
  flex: 1 1 0;
  height: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 19px 18px;
  background: #10101e;
  color: #c3b3f5;
  font: .875rem/1.7 "SFMono-Regular", Consolas, monospace;
  tab-size: 2;
}
.os-code code { font: inherit; }
.os-code-state { color: #9fe2cd; }
.os-code:focus-visible { outline-offset: -4px; }

.site-footer { padding-block: 24px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.site-footer .wordmark .brand-star { color: var(--violet); }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--violet-hover); }

@media (max-width: 900px) {
  .wrap { width: min(100% - 56px, 1200px); }
  .site-nav, .site-footer nav { gap: 20px; }
  .hero-inner { min-height: clamp(390px, 60vw, 525px); }
  .chart-card { padding: 22px 18px 18px; }
}

@media (max-width: 850px) {
  .os-shell { grid-template-columns: minmax(0, 1fr); }
  .os-desktop { border-inline-end: 0; border-bottom: 1px solid #ffffff20; }
  .os-code { flex: auto; height: 270px; }
}

@media (max-width: 660px) {
  .wrap { width: calc(100% - 36px); }
  .os-shell { margin-top: 22px; border-radius: 15px; }
  .os-workspace { padding: 10px; gap: 11px; }
  .os-launcher { width: 100%; }
  .os-launcher button { gap: 4px; }
  .os-app-symbol { width: 24px; height: 24px; }
  .os-preview { height: 518px; }
  .header-inner { min-height: 62px; grid-template-columns: auto 1fr auto; gap: 10px; }
  .site-nav { justify-content: center; gap: 12px; }
  .nav-overview, .nav-os { display: none; }
  .button-header { min-height: 38px; }
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; }
  .hero-copy { display: grid; justify-items: center; padding: 45px 0 0; text-align: center; }
  .hero h1 { font-size: clamp(3.75rem, 14vw, 5.65rem); }
  .hero p { margin-top: 20px; }
  .hero-actions { justify-content: center; margin-top: 22px; }
  .hero-art { height: min(79vw, 425px); margin-top: 3px; }
  .hero-art img { top: 49%; left: 50%; width: min(102%, 480px); }
  .benchmark-heading { align-items: start; flex-direction: column; gap: 16px; }
  .chart-card { margin-top: 21px; padding: 18px 12px 15px; }
  .chart-title, .chart-card figcaption { margin-inline: 4px; }
  .chart-legend { margin-left: 0; column-gap: 3px; }
  .legend-item { padding-inline: 5px; }
  .speed-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; padding: 9px 12px; }
  .speed-model { grid-area: 1 / 1; }
  .speed-value { grid-area: 1 / 2; }
  .speed-track { grid-area: 2 / 1 / 3 / 3; height: 9px; }
  .speed-axis { grid-template-columns: 1fr; }
  .speed-ticks { grid-column: 1; }
  .experience-inner { grid-template-columns: 1fr; gap: 25px; }
  .prompt-list { display: flex; flex-wrap: wrap; }
  .chat { height: 430px; }
  .chat-log { padding: 15px; }
  .composer { margin-inline: 10px; }
  .site-footer nav { flex-wrap: wrap; gap: 8px 16px; }
}

@media (max-width: 380px) {
  .site-nav a { font-size: .875rem; }
  .button-header { padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
