@font-face {
  font-family: "Chivo Mono";
  src: url("assets/chivo-mono-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Chivo Mono";
  src: url("assets/chivo-mono-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/instrument-sans-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/instrument-sans-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
}

:root {
  --bg: #0b0d0a;
  --surface: #11140f;
  --surface-raised: #171a14;
  --ink: #f0f2e9;
  --muted: #92998a;
  --faint: #5d6457;
  --line: #2b3026;
  --accent: #c9f85b;
  --accent-soft: #d9ef9d;
  --mono: "Chivo Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Instrument Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  background: #070806;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 6%, rgba(201, 248, 91, 0.055), transparent 27rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(201, 248, 91, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 248, 91, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  content: "";
  pointer-events: none;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.026;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  content: "";
  pointer-events: none;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

button {
  font: inherit;
}

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

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

code {
  font-family: var(--mono);
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.site-shell {
  width: min(100%, 1480px);
  margin-inline: auto;
  border-inline: 1px solid var(--line);
  background: rgba(11, 13, 10, 0.72);
}

.topbar {
  min-height: 78px;
  padding: 20px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.domain {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.domain img {
  width: 23px;
  height: 23px;
}

.domain span {
  transition: color 160ms ease;
}

.domain:hover span {
  color: var(--accent);
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
}

.language-link {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--accent);
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 160ms ease;
}

.language-link:hover,
.language-link:focus-visible {
  color: var(--accent);
}

@media (max-width: 420px) {
  .topbar-meta .status {
    display: none;
  }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-soft);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(201, 248, 91, 0.08);
  animation: status-pulse 2.8s ease-in-out infinite;
}

.hero {
  position: relative;
  min-height: calc(100svh - 78px);
  padding: 34px 42px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(201, 248, 91, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit--one {
  width: 560px;
  height: 560px;
  top: -340px;
  right: -110px;
}

.hero-orbit--two {
  width: 400px;
  height: 400px;
  top: -260px;
  right: -30px;
}

.hero-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow,
.hero-edition,
.section-index,
.section-tag {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.eyebrow {
  color: var(--accent-soft);
}

.eyebrow span {
  padding-inline: 8px;
  color: var(--faint);
}

.brand-lockup {
  margin: clamp(72px, 11vh, 126px) 0 clamp(66px, 9vh, 104px);
}

.brand-lockup-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4.2vw, 64px);
}

.brand-word {
  display: block;
  flex: 0 0 auto;
  background-color: var(--ink);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
}

.brand-word--omarchy {
  width: clamp(240px, 29vw, 390px);
  aspect-ratio: 4131 / 950;
  mask-image: url("assets/omarchy-wordmark.svg");
  -webkit-mask-image: url("assets/omarchy-wordmark.svg");
}

.brand-word--mimo {
  width: clamp(300px, 36vw, 450px);
  aspect-ratio: 439 / 56;
  mask-image: url("assets/mimo-logo.svg");
  -webkit-mask-image: url("assets/mimo-logo.svg");
}

.brand-asterisk {
  display: block;
  color: var(--accent);
  font-family: var(--sans);
  font-size: clamp(76px, 9vw, 128px);
  font-weight: 400;
  line-height: 0.6;
  transform-origin: 50% 54%;
  animation: slow-spin 20s linear infinite;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: end;
  gap: 64px;
  margin-bottom: clamp(56px, 8vh, 90px);
}

.hero-statement {
  position: relative;
}

.hero-statement h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(44px, 5.4vw, 76px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.accent {
  color: var(--accent);
}

.terminal-cursor {
  display: block;
  width: 46px;
  height: 7px;
  margin-top: 24px;
  background: var(--accent);
  animation: cursor-blink 1.3s steps(1) infinite;
}

.hero-description {
  max-width: 440px;
  justify-self: end;
}

.hero-description p {
  margin: 0;
  color: #b7bdaf;
  font-size: 16px;
  line-height: 1.9;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 46px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

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

.button--primary {
  min-width: 160px;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.button--primary:hover {
  background: #dcff88;
}

.button--ghost {
  min-width: 170px;
  color: var(--muted);
}

.button--ghost:hover {
  border-color: var(--muted);
  color: var(--ink);
}

.hero-specs {
  margin: auto -42px 0;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  border-top: 1px solid var(--line);
}

.hero-specs div {
  min-width: 0;
  padding: 22px 42px 24px;
}

.hero-specs div + div {
  border-left: 1px solid var(--line);
}

.hero-specs dt {
  margin-bottom: 6px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.hero-specs dd {
  margin: 0;
  overflow: hidden;
  color: #c8cec0;
  font-family: var(--mono);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section {
  padding: 110px 42px;
  border-bottom: 1px solid var(--line);
}

.section-header {
  margin-bottom: 42px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.section-index {
  margin-bottom: 14px;
  color: var(--accent);
}

.section-header h2 {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 50px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.text-button {
  min-width: 128px;
  padding: 11px 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 0;
  border-bottom: 1px solid var(--muted);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}

.text-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.key-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.key-card {
  min-width: 0;
  min-height: 78px;
  padding: 18px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.key-card:hover,
.key-card.is-copied {
  background: var(--accent);
  color: var(--bg);
}

.key-card:focus-visible,
.text-button:focus-visible,
.terminal-bar button:focus-visible,
.button:focus-visible,
.docs-link:focus-visible,
.domain:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.key-card:hover:focus-visible,
.key-card.is-copied:focus-visible {
  outline-color: var(--ink);
}

.key-number {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.key-value {
  min-width: 0;
  overflow-x: auto;
  color: inherit;
  font-size: 12px;
  letter-spacing: -0.025em;
  white-space: nowrap;
  scrollbar-width: none;
}

.key-value::-webkit-scrollbar {
  display: none;
}

.copy-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.key-card:hover .key-number,
.key-card:hover .copy-label,
.key-card.is-copied .key-number,
.key-card.is-copied .copy-label {
  color: var(--bg);
}

.copy-icon {
  position: relative;
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
}

.copy-icon::after {
  position: absolute;
  width: 8px;
  height: 8px;
  top: -4px;
  right: -4px;
  border: 1px solid currentColor;
  background: var(--surface);
  content: "";
  transition: background 150ms ease;
}

.key-card:hover .copy-icon::after,
.key-card.is-copied .copy-icon::after {
  background: var(--accent);
}

.key-note {
  margin: 18px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.8;
}

.key-note span {
  margin-right: 6px;
  color: var(--accent);
}

.quickstart-section {
  background: rgba(23, 26, 20, 0.42);
}

.section-tag {
  padding: 7px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.quickstart-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}

.steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.steps li {
  padding: 20px 0;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.steps li > span {
  padding-top: 3px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.steps li p {
  margin: 0;
  color: #b7bdaf;
  font-size: 14px;
}

.steps li code {
  color: var(--accent-soft);
  font-size: 12px;
}

.docs-link {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--muted);
  transition: color 160ms ease, border-color 160ms ease;
}

.docs-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.terminal-window {
  min-width: 0;
  border: 1px solid #343a2e;
  background: #080a07;
  box-shadow: 14px 14px 0 rgba(201, 248, 91, 0.045);
}

.terminal-bar {
  min-height: 46px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #343a2e;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.terminal-bar-right {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.terminal-bar button {
  padding: 4px 0 4px 12px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  cursor: pointer;
}

pre {
  margin: 0;
  padding: 26px 28px 30px;
  overflow: auto;
  color: #d4d9cc;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
  tab-size: 2;
}

pre code {
  font: inherit;
}

.code-muted {
  color: #626a5b;
}

.code-command {
  color: var(--accent);
}

.code-string {
  color: var(--accent-soft);
}

.footer {
  padding: 72px 42px 30px;
}

.footer-brand {
  margin-bottom: 72px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.footer-star {
  color: var(--accent);
  font-size: 112px;
  line-height: 0.7;
}

.footer-brand strong {
  display: block;
  font-family: var(--mono);
  font-size: clamp(20px, 3vw, 34px);
  letter-spacing: -0.05em;
}

.footer-brand p {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
}

.footer-bottom p {
  margin: 0;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer a {
  transition: color 160ms ease;
}

.footer a:hover {
  color: var(--accent);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.js .scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-reveal {
  animation: hero-in 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.brand-lockup.hero-reveal {
  animation-delay: 80ms;
}

.hero-statement.hero-reveal {
  animation-delay: 150ms;
}

.hero-description.hero-reveal {
  animation-delay: 220ms;
}

.hero-specs.hero-reveal {
  animation-delay: 290ms;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cursor-blink {
  0%, 48% {
    opacity: 1;
  }
  49%, 100% {
    opacity: 0;
  }
}

@keyframes status-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@media (max-width: 1080px) {
  .key-grid {
    grid-template-columns: 1fr;
  }

  .key-value {
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .hero-copy {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-description {
    max-width: 560px;
    justify-self: start;
  }

  .quickstart-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    max-width: 560px;
  }
}

@media (max-width: 700px) {
  .topbar {
    min-height: 68px;
    padding: 18px 20px;
  }

  .topbar-meta > span:last-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 26px 20px 0;
  }

  .hero-edition {
    display: none;
  }

  .brand-lockup {
    margin: 70px 0;
  }

  .brand-lockup-visual {
    flex-direction: column;
    gap: 28px;
  }

  .brand-word--omarchy {
    width: min(67vw, 290px);
  }

  .brand-word--mimo {
    width: min(83vw, 360px);
  }

  .brand-asterisk {
    font-size: 68px;
    line-height: 0.45;
  }

  .hero-copy {
    margin-bottom: 58px;
  }

  .hero-statement h2 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .hero-description p {
    font-size: 15px;
  }

  .hero-specs {
    margin-inline: -20px;
    grid-template-columns: 1fr;
  }

  .hero-specs div {
    padding: 17px 20px;
  }

  .hero-specs div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hero-specs dd {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .section {
    padding: 80px 20px;
  }

  .section-header {
    align-items: flex-start;
  }

  .section-header h2 {
    font-size: 34px;
  }

  .section-tag {
    display: none;
  }

  .text-button {
    min-width: auto;
    flex-shrink: 0;
  }

  .terminal-window {
    box-shadow: 8px 8px 0 rgba(201, 248, 91, 0.045);
  }

  pre {
    padding: 22px 18px 24px;
    font-size: 11px;
  }

  .footer {
    padding: 60px 20px 26px;
  }

  .footer-brand {
    margin-bottom: 54px;
    gap: 20px;
  }

  .footer-star {
    font-size: 82px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .key-card {
    min-height: 104px;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "number action"
      "key key";
    gap: 12px;
  }

  .key-number {
    grid-area: number;
  }

  .key-value {
    grid-area: key;
    overflow: visible;
    font-size: 11px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .copy-label {
    grid-area: action;
  }
}

@media (max-width: 420px) {
  .domain {
    gap: 9px;
    font-size: 9px;
  }

  .domain img {
    width: 20px;
    height: 20px;
  }

  .status {
    font-size: 8px;
  }

  .section-header {
    gap: 16px;
  }

  .section-header h2 {
    font-size: 30px;
  }

  .text-button {
    font-size: 9px;
  }

  .text-button > span:last-child {
    display: none;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button {
    min-width: 0;
    gap: 10px;
  }
}

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

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