@font-face {
  font-family: "Geist Pixel";
  src: url("../assets/fonts/GeistPixel-Square.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Near-black base #0e0e0e; TUI accents mint/blue/amber */
[data-md-color-scheme="slate"] {
  --md-default-bg-color: #0e0e0e;
  --md-default-bg-color--light: #161616;
  --md-default-bg-color--lighter: #1c1c1c;
  --md-default-bg-color--lightest: #1a1a1a;
  --md-code-bg-color: #141414;
  --md-footer-bg-color: #0e0e0e;
  --md-footer-bg-color--dark: #0a0a0a;
  --md-primary-fg-color: #14539d;
  --md-primary-fg-color--light: #1a6bc4;
  --md-primary-fg-color--dark: #0f3d75;
  --md-primary-bg-color: #0e0e0e;
  --md-primary-bg-color--light: #161616;
  --md-accent-fg-color: #34dab7;
  --md-accent-fg-color--transparent: rgba(52, 218, 183, 0.1);
  --md-typeset-a-color: #34dab7;
  --md-typeset-font-size: 0.8rem;
  --oc-amber: #fcb05d;
  --oc-mint: #34dab7;
  --oc-blue: #14539d;
  --oc-surface: #1a1a1a;
}

/* No top chrome on this landing page */
.md-header,
.md-tabs,
.md-sidebar,
.md-top,
.md-dialog,
.md-progress {
  display: none !important;
}

.md-main__inner {
  margin-top: 0;
}

.md-content {
  max-width: 44rem;
  margin-inline: auto;
}

.md-main,
.md-main__inner,
.md-content,
.md-typeset {
  background-color: transparent;
}

.md-typeset {
  font-size: 0.875rem;
  line-height: 1.55;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.hero-logo-text {
  font-family: "Geist Pixel", ui-monospace, monospace;
  font-feature-settings: normal;
  letter-spacing: 0.02em;
}

.md-typeset h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
}

.md-typeset h3 {
  font-size: 0.95rem;
}

.hero {
  text-align: center;
  padding: 2.25rem 0 1.5rem;
  min-height: min(72vh, 32rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.md-typeset .hero-logo,
.md-typeset h1.hero-logo {
  margin: 0 0 0.85rem;
  padding: 0;
  border: none;
  font-size: inherit;
  line-height: 1;
  color: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.hero-logo-text {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 1.45rem;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: 0.1em;
  font-weight: 700;
  -webkit-text-stroke: 0.35px currentColor;
  text-shadow: 0.35px 0 0 currentColor, -0.35px 0 0 currentColor;
}

.hero-logo-text .hero-logo-icon,
.hero-logo-text .twemoji {
  display: inline-flex;
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  color: var(--oc-mint, #34dab7);
}

.hero-logo-text .hero-logo-icon svg,
.hero-logo-text .twemoji svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
}

.hero p,
.hero-lead {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--md-default-fg-color--light);
  max-width: 38rem;
  margin: 0 auto 0.3rem;
}

.hero-lead {
  letter-spacing: 0.01em;
}

.hero .md-button {
  margin: 0.35rem 0.2rem 0;
  font-size: 0.8rem;
  padding: 0.45em 1.1em;
}

/* Install block with rotating gradient border + in-field copy */
.hero-install {
  position: relative;
  width: 100%;
  max-width: 30rem;
  margin: 0.85rem auto 0.65rem;
  text-align: left;
  border-radius: 0.4rem;
  padding: 1px;
  overflow: hidden;
  isolation: isolate;
  background: #141414;
}

.hero-install::before {
  content: "";
  position: absolute;
  inset: -60%;
  z-index: 0;
  background: conic-gradient(
    from 0deg,
    #34dab7 0deg,
    #14539d 120deg,
    #fcb05d 240deg,
    #34dab7 360deg
  );
  animation: oc-border-spin 12s linear infinite;
}

.hero-install-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  border-radius: calc(0.4rem - 1px);
  background: #141414;
  padding: 0.4rem 0.45rem 0.4rem 0.65rem;
}

.hero-install code,
.hero-install #install-cmd {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--md-code-fg-color, #e6e6e6);
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-install-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0.3rem;
  background: transparent;
  color: var(--oc-mint, #34dab7);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.hero-install-copy:hover {
  color: #5ee6c9;
  background: rgba(52, 218, 183, 0.12);
}

.hero-install-copy:focus-visible {
  outline: 1px solid var(--oc-mint, #34dab7);
  outline-offset: 1px;
}

.hero-install-copy .icon-check {
  display: none;
}

.hero-install-copy.is-copied {
  color: var(--oc-mint, #34dab7);
}

.hero-install-copy.is-copied .icon-copy {
  display: none;
}

.hero-install-copy.is-copied .icon-check {
  display: block;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-install::before {
    animation: none;
    background: #34dab7;
    inset: 0;
  }
}

.mechanics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0.75rem;
}

.mechanics-card {
  padding: 1rem 1rem 0.95rem;
  border-radius: 0.45rem;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-width: 1px !important;
  box-shadow: none !important;
  outline: none;
}

.mechanics-card .mechanics-icon,
.mechanics-card p:has(.twemoji):first-child {
  margin: 0 0 0.55rem;
  line-height: 0;
}

.mechanics-card .twemoji,
.mechanics-card .mechanics-icon.twemoji {
  display: inline-flex;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--oc-mint, #34dab7);
}

.mechanics-card .twemoji svg {
  width: 1.4rem;
  height: 1.4rem;
  stroke: currentColor;
  fill: none;
}

.mechanics-card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  border: none !important;
  box-shadow: none !important;
}

.mechanics-card ul {
  margin-bottom: 0;
  font-size: 0.85rem;
}

.mechanics-card li {
  margin-bottom: 0.35rem;
}

.mechanics-card li:last-child {
  margin-bottom: 0;
}

/* Animated terminal demo */
.term-demo {
  margin: 0.75rem 0 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0a0a;
  overflow: hidden;
  box-shadow: none;
}

.term-demo__bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  background: #121212;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.term-demo__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.term-demo__dot--r { background: #ff5f57; }
.term-demo__dot--y { background: #febc2e; }
.term-demo__dot--g { background: #28c840; }

.term-demo__title {
  margin-left: 0.4rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.term-demo__screen {
  height: 24rem;
  min-height: 24rem;
  max-height: 24rem;
  padding: 0.75rem 0.85rem 0.9rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #e8e8e8;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: hidden;
  box-sizing: border-box;
}

.term-demo .t-card {
  border: 1px solid #555;
  border-radius: 0.2rem;
  padding: 0.35rem 0.5rem 0.45rem;
  margin-bottom: 0.55rem;
}

.term-demo .t-card__title {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  margin-bottom: 0.25rem;
}

.term-demo .t-card__body {
  color: #fff;
}

.term-demo .t-footer {
  color: #777;
  margin-top: 0.45rem;
  font-size: 0.68rem;
}

.term-demo .t-mint { color: #34dab7; }
.term-demo .t-blue { color: #4a8fd4; }
.term-demo .t-amber { color: #fcb05d; }
.term-demo .t-red { color: #f07178; }
.term-demo .t-dim { color: #777; }
.term-demo .t-bold { font-weight: 700; }
.term-demo .t-italic { font-style: italic; }

.term-demo .t-progress-course {
  margin-bottom: 0.55rem;
  white-space: normal;
}

.term-demo .t-progress-levels {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.term-demo .t-progress-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}

.term-demo .t-progress-label {
  flex: 0 0 6.5rem;
  font-variant-numeric: tabular-nums;
}

.term-demo .t-bar {
  display: inline-flex;
  flex: 1;
  min-width: 0;
  max-width: 12rem;
  height: 0.55rem;
  border-radius: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.term-demo .t-bar--empty {
  background: rgba(255, 255, 255, 0.06);
}

.term-demo .t-bar__seg {
  display: block;
  height: 100%;
  min-width: 0;
}

.term-demo .t-bar__done { background: #34dab7; }
.term-demo .t-bar__ip { background: #fcb05d; }
.term-demo .t-bar__new { background: #14539d; }

.term-demo .t-cursor {
  display: inline-block;
  width: 0.5ch;
  margin-left: 1px;
  background: #34dab7;
  color: transparent;
  animation: t-blink 1s step-end infinite;
}

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

.cta-section {
  text-align: center;
  padding: 2.25rem 0 1.5rem;
}

.cta-section h2 {
  margin-bottom: 0.55rem;
  font-size: 1.1rem;
}

.cta-section p {
  font-size: 0.9rem;
}

.cta-section .md-button {
  margin: 0.4rem 0.2rem;
  font-size: 0.8rem;
}

.md-typeset .md-button--primary {
  background-color: var(--oc-mint, #34dab7);
  border-color: var(--oc-mint, #34dab7);
  color: #0b1a17;
}

.md-typeset .md-button--primary:hover {
  background-color: #5ee6c9;
  border-color: #5ee6c9;
  color: #0b1a17;
}

.md-footer {
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 1.75rem 0 1.25rem;
  }

  .hero-logo-text {
    font-size: 1.2rem;
    gap: 0.55em;
  }

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

  .hero-install {
    max-width: 100%;
  }

  .hero p,
  .hero-lead {
    max-width: 100%;
  }

  .hero-install code {
    font-size: 0.75rem;
  }

  .term-demo__screen {
    height: 22rem;
    min-height: 22rem;
    max-height: 22rem;
    font-size: 0.7rem;
  }

  .term-demo .t-progress-label {
    flex-basis: 5.75rem;
  }
}
