:root {
  color-scheme: dark;
  --bg: #080a09;
  --panel: #101312;
  --panel-light: #171a19;
  --text: #f5f7f6;
  --muted: #9ba19e;
  --line: rgba(255, 255, 255, 0.09);
  --green: #73d8ad;
  --green-deep: #286c54;
  --max-width: 1500px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: white;
  color: #080a09;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.034) 1px, transparent 1px),
    radial-gradient(circle at 50% 40%, rgba(40, 108, 84, 0.12), transparent 38%),
    var(--bg);
  background-size: 72px 72px, 72px 72px, auto, auto;
}

.site-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--bg), transparent 15%, transparent 85%, var(--bg));
}

.site-header {
  position: relative;
  z-index: 10;
  width: min(calc(100% - 64px), var(--max-width));
  height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.github-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #d8dcda;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.github-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(115, 216, 173, 0.42);
  background: rgba(115, 216, 173, 0.07);
  color: white;
}

.external-icon {
  color: #7f8682;
}

.hero {
  position: relative;
  z-index: 1;
  width: min(100%, 1800px);
  min-height: calc(100svh - 92px);
  margin: 0 auto;
  padding: 96px 24px 0;
  isolation: isolate;
}

.ambient-glow {
  position: absolute;
  z-index: -2;
  top: 5%;
  left: 50%;
  width: min(820px, 75vw);
  height: 560px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(67, 161, 121, 0.12), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(920px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  width: 86px;
  height: 86px;
  margin-bottom: 22px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.eyebrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  color: #aeb5b1;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #f7f8f7;
  font-size: clamp(62px, 7.2vw, 116px);
  font-weight: 560;
  letter-spacing: -0.075em;
  line-height: 0.87;
}

h1 em {
  color: #9ba39f;
  font-style: normal;
  font-weight: 420;
}

.hero-description {
  width: min(650px, 100%);
  margin: 34px auto 38px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.install-group {
  width: min(690px, 100%);
  margin: 0 auto;
}

.install-label {
  margin: 0 0 10px;
  color: #777e7a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

.install-command {
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 7px 7px 7px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(19, 22, 21, 0.92);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.04);
  text-align: left;
}

.prompt {
  flex: 0 0 auto;
  margin-right: 13px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
}

.install-command code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #d7dcda;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 108px;
  min-height: 50px;
  margin-left: 16px;
  border: 0;
  border-radius: 11px;
  background: #f2f4f3;
  color: #101211;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.copy-button:hover {
  transform: translateY(-1px);
  background: white;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

.copy-button.is-copied {
  background: var(--green);
}

.hero-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  color: #858c88;
  font-size: 13px;
}

.platform-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.link-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.13);
}

.source-link {
  color: #aeb4b1;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.source-link:hover {
  color: white;
}

.preview-wrap {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 48px));
  margin: 96px auto -250px;
  padding: 1px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
  box-shadow: 0 -16px 80px rgba(32, 107, 78, 0.08), 0 40px 110px rgba(0, 0, 0, 0.56);
}

.preview-window {
  overflow: hidden;
  min-height: 0;
  border-radius: 21px 21px 0 0;
  background: rgba(15, 18, 17, 0.98);
}

.workspace-demo {
  background: #0c0e0d;
}

.hero-preview-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.demo-sidebar {
  position: relative;
  padding: 24px 18px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 11px;
  background: linear-gradient(160deg, #151817, #101211);
  color: #909793;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d9dddb;
  font-size: 14px;
  font-weight: 700;
}

.sidebar-brand span {
  color: var(--green);
  font-size: 18px;
}

.sidebar-label {
  margin: 34px 0 10px;
  color: #555b58;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.workspace-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 12px;
}

.workspace-item span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  color: #727975;
  font-size: 9px;
}

.workspace-item.active {
  background: rgba(115, 216, 173, 0.09);
  color: #d5e8df;
}

.workspace-item.active span {
  border-color: rgba(115, 216, 173, 0.36);
  color: var(--green);
}

.shortcut-hint {
  position: absolute;
  bottom: 22px;
  left: 28px;
  color: #59605c;
  font-size: 10px;
}

kbd {
  padding: 3px 5px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 4px;
  background: #191c1a;
  font-family: inherit;
}

.tiled-area {
  display: grid;
  grid-template-columns: 1.32fr 0.8fr;
  grid-template-rows: 1fr 0.82fr;
  gap: 10px;
}

.mock-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 11px;
  background: #131615;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.editor-window {
  grid-row: 1 / 3;
  border-color: rgba(115, 216, 173, 0.22);
  box-shadow: 0 0 0 1px rgba(115, 216, 173, 0.06), 0 16px 34px rgba(0, 0, 0, 0.22);
}

.mock-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: #181b1a;
  color: #7e8581;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.mock-top > span:first-child {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.mock-top small {
  justify-self: end;
  color: #454a47;
}

.code-lines {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 42px 46px;
}

.code-lines i {
  display: block;
  height: 7px;
  border-radius: 20px;
  background: #292e2b;
}

.code-lines i.wide {
  width: 85%;
}

.code-lines i.medium {
  width: 64%;
}

.code-lines i.short {
  width: 41%;
}

.code-lines i.accent {
  background: rgba(115, 216, 173, 0.23);
}

.terminal-copy {
  padding: 25px 28px;
  color: #959c98;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.terminal-copy p {
  margin: 0 0 12px;
}

.terminal-copy b {
  color: var(--green);
  font-weight: 600;
}

.terminal-copy .terminal-result {
  color: #56605b;
}

.terminal-copy i {
  color: var(--green);
  font-style: normal;
  animation: blink 1.2s step-end infinite;
}

.browser-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: calc(100% - 40px);
  padding: 18px;
}

.mini-logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.mini-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.browser-copy strong,
.browser-copy small {
  display: block;
}

.browser-copy strong {
  color: #d3d8d5;
  font-size: 13px;
}

.browser-copy small {
  margin-top: 5px;
  color: #646b67;
  font-size: 10px;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (max-width: 1120px) {
}

@media (max-width: 820px) {
  .site-shell {
    background-size: 48px 48px, 48px 48px, auto, auto;
  }

  .site-header {
    width: calc(100% - 40px);
    height: 76px;
  }

  .hero {
    min-height: calc(100svh - 76px);
    padding-top: 74px;
  }

  .hero-logo {
    width: 76px;
    height: 76px;
  }

  .preview-wrap {
    width: calc(100% - 28px);
    margin-top: 78px;
  }

  .demo-sidebar {
    padding: 20px 12px;
  }

  .shortcut-hint {
    display: none;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: calc(100% - 28px);
  }

  .github-pill {
    min-height: 42px;
    padding: 0 14px;
  }

  .external-icon {
    display: none;
  }

  .hero {
    padding: 58px 14px 0;
  }

  .hero-logo {
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
  }

  .eyebrow {
    margin-bottom: 19px;
    font-size: 10px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 66px);
    letter-spacing: -0.07em;
    line-height: 0.92;
  }

  .hero-description {
    margin: 27px auto 31px;
    font-size: 16px;
  }

  .install-command {
    flex-wrap: wrap;
    gap: 0;
    min-height: 0;
    padding: 17px 17px 8px;
  }

  .install-command code {
    font-size: 11px;
  }

  .prompt {
    margin-right: 9px;
    font-size: 12px;
  }

  .copy-button {
    width: 100%;
    min-height: 46px;
    margin: 14px 0 0;
  }

  .hero-links {
    flex-direction: column;
    gap: 9px;
  }

  .link-divider {
    display: none;
  }

  .preview-wrap {
    width: calc(100% - 4px);
    margin-top: 62px;
  }

  .preview-window {
    min-height: 0;
  }

  .demo-sidebar {
    display: none;
  }

  .tiled-area {
    gap: 7px;
  }

  .code-lines {
    padding: 32px 22px;
  }

  .terminal-copy {
    padding: 20px 16px;
    font-size: 9px;
  }

  .browser-copy {
    gap: 8px;
    padding: 10px;
  }

  .mini-logo {
    width: 40px;
    height: 40px;
  }

  .mini-logo img {
    width: 34px;
    height: 34px;
  }

  .browser-copy strong {
    font-size: 10px;
  }

  .browser-copy small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
