.header {
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: all var(--transition-normal);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.header--scrolled {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header__container {
  align-items: center;
  gap: var(--space-lg);
  grid-template-columns: auto 1fr auto;
  display: grid;
}

.header__logo {
  font-family: var(--font-logo);
  color: var(--color-text);
  align-items: center;
  gap: 2px;
  min-width: 10ch;
  font-size: 1.75rem;
  text-decoration: none;
  display: flex;
}

.header__logo:hover {
  text-decoration: none;
}

.header__logo-bracket {
  color: var(--color-text-muted);
}

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

.header__logo-rest {
  color: var(--color-text);
}

.header__logo-cursor {
  background-color: var(--color-accent);
  width: 2px;
  height: .8em;
  margin-left: 1px;
  animation: .6s infinite header-blink;
  display: inline-block;
}

.header__logo-cursor--done {
  animation: 1s infinite header-blink;
}

@keyframes header-blink {
  0%, 50% {
    opacity: 1;
  }

  51%, 100% {
    opacity: 0;
  }
}

.header__nav {
  justify-content: center;
  gap: var(--space-lg);
  display: flex;
}

.header__nav a {
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  font-size: .875rem;
  text-decoration: none;
}

.header__nav a:hover, .header__nav a.active {
  color: var(--color-accent);
  text-decoration: none;
}

.header__playground-link {
  background: var(--color-accent);
  border-radius: var(--border-radius);
  transition: background var(--transition-fast), transform var(--transition-fast);
  padding: .35rem .75rem;
  color: #fff !important;
}

.header__playground-link:hover {
  background: var(--color-accent-light, #818cf8);
  transform: translateY(-1px);
  color: #fff !important;
}

.header__actions {
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-sm);
  display: flex;
}

.header__btn {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  width: 36px;
  height: 36px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: none;
  justify-content: center;
  align-items: center;
  padding: 0;
  text-decoration: none;
  display: flex;
}

.header__btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

.header__btn-icon {
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
  display: flex;
}

.header__btn svg.header__btn-icon {
  width: 18px;
  height: 18px;
}

.header__mobile-toggle {
  padding: var(--space-sm);
  cursor: pointer;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  display: none;
}

.header__mobile-toggle span {
  background-color: var(--color-text);
  width: 24px;
  height: 2px;
  transition: all var(--transition-fast);
  display: block;
}

@media (width <= 900px) {
  .header__container {
    justify-content: space-between;
    display: flex;
  }
}

@media (width <= 768px) {
  .header__nav {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-lg);
    gap: var(--space-md);
    flex-direction: column;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
  }

  .header__nav--open, .header__mobile-toggle {
    display: flex;
  }
}

.terminal {
  background-color: var(--color-terminal-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-retro);
  overflow: hidden;
}

.terminal__header {
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background-color: #ffffff0d;
  border-bottom: 1px solid #ffffff1a;
  display: flex;
}

.terminal__dot {
  background-color: #fff3;
  border-radius: 50%;
  width: 12px;
  height: 12px;
}

.terminal__dot--red {
  background-color: #ff5f56;
}

.terminal__dot--yellow {
  background-color: #ffbd2e;
}

.terminal__dot--green {
  background-color: #27ca40;
}

.terminal__filename {
  font-family: var(--font-mono);
  color: #ffffff80;
  margin-left: auto;
  font-size: .75rem;
}

.terminal__code {
  padding: var(--space-lg);
  font-family: var(--font-mono);
  color: var(--color-terminal-text);
  text-align: left;
  white-space: pre;
  margin: 0;
  font-size: .9rem;
  line-height: 1.8;
  overflow-x: auto;
}

.terminal__code code {
  color: inherit;
  text-align: left;
  white-space: pre;
  display: block;
}

.terminal__code code * {
  text-align: left;
}

@media (width <= 480px) {
  .terminal__code {
    padding: var(--space-md);
    font-size: .75rem;
    line-height: 1.6;
  }
}

.hero {
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding-top: 80px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.hero__bg-pattern {
  background-image: radial-gradient(circle at 20% 80%, var(--color-accent) 0%, transparent 25%), radial-gradient(circle at 80% 20%, var(--color-accent-secondary) 0%, transparent 25%);
  opacity: .03;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.hero__container {
  gap: var(--space-xl);
  grid-template-columns: 1fr 1fr;
  align-items: center;
  display: grid;
}

.hero__content {
  max-width: 600px;
}

.hero__logo {
  font-family: var(--font-logo);
  margin-bottom: var(--space-lg);
  align-items: center;
  font-size: clamp(3rem, 8vw, 5rem);
  display: flex;
  position: relative;
}

.hero__bracket {
  color: var(--color-text-muted);
}

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

.hero__rest {
  color: var(--color-text);
}

.hero__cursor {
  background-color: var(--color-accent);
  width: 4px;
  height: .8em;
  margin-left: 2px;
  animation: .6s infinite blink;
  display: inline-block;
}

.hero__cursor--done {
  animation: 1s infinite blink;
}

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

  51%, 100% {
    opacity: 0;
  }
}

.hero__tagline {
  font-family: var(--font-logo);
  color: var(--color-text);
  margin-bottom: var(--space-md);
  opacity: 0;
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.hero__description {
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  opacity: 0;
  font-size: 1.125rem;
  line-height: 1.8;
}

.hero__highlight {
  color: var(--color-accent);
  font-weight: 500;
}

.hero__cta {
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  opacity: 0;
  flex-wrap: wrap;
  display: flex;
}

.hero__cta .btn-primary span {
  color: #fff9;
}

.hero__stats {
  gap: var(--space-xl);
  opacity: 0;
  flex-wrap: wrap;
  display: flex;
}

.hero__stat {
  flex-direction: column;
  display: flex;
}

.hero__stat-number {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: 2rem;
}

.hero__stat-label {
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .75rem;
}

.hero__demo {
  opacity: 0;
}

.hero__scroll-indicator {
  bottom: var(--space-xl);
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  flex-direction: column;
  font-size: .75rem;
  display: flex;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-line {
  background: linear-gradient(to bottom, var(--color-text-muted), transparent);
  width: 1px;
  height: 40px;
  animation: 2s ease-in-out infinite scrollPulse;
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: .3;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}

@media (width <= 968px) {
  .hero__container {
    grid-template-columns: 1fr;
  }

  .hero__content {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    display: flex;
  }

  .hero__tagline, .hero__description {
    text-align: center;
  }

  .hero__logo {
    justify-content: center;
  }

  .hero__description {
    max-width: 600px;
  }

  .hero__cta, .hero__stats {
    justify-content: center;
  }

  .hero__demo {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (width <= 480px) {
  .hero {
    padding-top: 60px;
  }

  .hero__logo {
    font-size: clamp(2.5rem, 15vw, 4rem);
  }

  .hero__cta {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    justify-content: center;
    font-size: .8rem;
  }

  .hero__stats {
    gap: var(--space-md);
    justify-content: space-between;
  }

  .hero__stat-number {
    font-size: 1.5rem;
  }

  .hero__stat-label {
    font-size: .65rem;
  }

  .hero__scroll-indicator {
    display: none;
  }
}

.features {
  background-color: var(--color-bg);
}

.features__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.features__label {
  font-family: var(--font-mono);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  font-size: .875rem;
  display: inline-block;
}

.features__header h2 {
  margin-bottom: var(--space-md);
}

.features__subtitle {
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

.features__grid {
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  display: grid;
}

.feature-card {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  transition: all var(--transition-normal);
  position: relative;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.feature-card__icon {
  font-family: var(--font-display);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  opacity: .9;
  font-size: 2.5rem;
}

.feature-card__tag {
  top: var(--space-lg);
  right: var(--space-lg);
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: var(--space-xs) var(--space-sm);
  background-color: var(--color-bg);
  border-radius: var(--border-radius);
  font-size: .7rem;
  position: absolute;
}

.feature-card__title {
  font-family: var(--font-display);
  margin-bottom: var(--space-sm);
  font-size: 1.75rem;
}

.feature-card__description {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.features__highlight {
  gap: var(--space-xl);
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow-retro);
  margin-bottom: var(--space-xl);
  grid-template-columns: 1fr 1fr;
  align-items: center;
  display: grid;
}

.features__highlight:last-child {
  margin-bottom: 0;
}

.features__highlight--reverse {
  direction: rtl;
}

.features__highlight--reverse > * {
  direction: ltr;
}

.features__highlight-label {
  font-family: var(--font-mono);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: var(--space-sm);
  font-size: .75rem;
  display: inline-block;
}

.features__highlight-content h3 {
  font-family: var(--font-display);
  margin-bottom: var(--space-md);
  font-size: 1.75rem;
}

.features__highlight-content p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.features__highlight-code {
  background-color: var(--color-terminal-bg);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  overflow-x: auto;
}

.features__highlight-code pre {
  margin: 0;
}

.features__highlight-code code {
  font-family: var(--font-mono);
  color: var(--color-terminal-text);
  font-size: .875rem;
  line-height: 1.8;
}

@media (width <= 968px) {
  .features__highlight {
    grid-template-columns: 1fr;
  }

  .features__highlight-content {
    text-align: center;
  }

  .features__highlight-content p {
    max-width: 100%;
  }
}

@media (width <= 480px) {
  .features__grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: var(--space-lg);
  }

  .feature-card__title {
    font-size: 1.5rem;
  }

  .feature-card__description {
    font-size: .85rem;
  }

  .features__highlight {
    padding: var(--space-lg);
  }

  .features__highlight-content h3 {
    font-size: 1.25rem;
  }

  .features__highlight-code {
    padding: var(--space-md);
  }

  .features__highlight-code code {
    font-size: .7rem;
    line-height: 1.6;
  }
}

.code-demo {
  background-color: var(--color-bg-alt);
}

.code-demo__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.code-demo__label {
  font-family: var(--font-mono);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  font-size: .875rem;
  display: inline-block;
}

.code-demo__header h2 {
  margin-bottom: var(--space-md);
}

.code-demo__subtitle {
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

.code-demo__tabs {
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
  display: flex;
}

.code-demo__tab {
  font-family: var(--font-mono);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  background-color: #0000;
  font-size: .875rem;
}

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

.code-demo__tab--active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.code-demo__tab--active:hover {
  color: #fff;
}

.code-demo__content {
  gap: var(--space-xl);
  grid-template-columns: 300px 1fr;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
}

.code-demo__info {
  padding: var(--space-lg);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}

.code-demo__info h3 {
  font-family: var(--font-display);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.code-demo__info p {
  color: var(--color-text-muted);
  font-size: .9rem;
  line-height: 1.6;
}

.code-demo__play-btn {
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-alt, #ff6b35));
  border-radius: var(--border-radius);
  color: #fff;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-size: .875rem;
  font-weight: 600;
  display: inline-flex;
  box-shadow: 0 2px 8px #ff6b354d;
}

.code-demo__play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px #ff6b3566;
}

.code-demo__play-btn:active {
  transform: translateY(0);
}

.code-demo__play-btn--playing {
  background: linear-gradient(135deg, #27ca40, #1fa832);
  box-shadow: 0 2px 8px #27ca404d;
}

.code-demo__play-btn--playing:hover {
  box-shadow: 0 4px 16px #27ca4066;
}

.code-demo__play-icon {
  letter-spacing: -2px;
  font-size: .75rem;
}

.code-demo__editor {
  background-color: var(--color-terminal-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-retro);
  overflow: hidden;
}

.code-demo__editor-header {
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background-color: #ffffff08;
  border-bottom: 1px solid #ffffff14;
  display: flex;
}

.code-demo__dot {
  background-color: #ffffff26;
  border-radius: 50%;
  width: 12px;
  height: 12px;
}

.code-demo__dot:first-child {
  background-color: #ff5f56;
}

.code-demo__dot:nth-child(2) {
  background-color: #ffbd2e;
}

.code-demo__dot:nth-child(3) {
  background-color: #27ca40;
}

.code-demo__filename {
  margin-left: var(--space-md);
  font-family: var(--font-mono);
  color: #ffffff80;
  font-size: .75rem;
}

.code-demo__status {
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  color: #27ca40;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-left: auto;
  font-size: .7rem;
  display: flex;
}

.code-demo__status-dot {
  background-color: #27ca40;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  animation: 2s ease-in-out infinite pulse;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .4;
  }
}

.code-demo__code {
  padding: var(--space-lg) var(--space-xl);
  font-family: var(--font-mono);
  color: var(--color-terminal-text);
  min-height: 380px;
  margin: 0;
  font-size: .85rem;
  line-height: 1.8;
  overflow-x: auto;
}

.code-demo__code code {
  color: inherit;
  white-space: pre;
  display: block;
}

.code-demo__hint {
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  font-size: .8rem;
  display: flex;
}

.code-demo__hint-icon {
  color: var(--color-accent);
  font-size: 1rem;
}

@media (width <= 868px) {
  .code-demo__content {
    grid-template-columns: 1fr;
  }

  .code-demo__info {
    text-align: center;
  }

  .code-demo__play-btn {
    justify-content: center;
    width: 100%;
  }
}

@media (width <= 480px) {
  .code-demo__tabs {
    gap: var(--space-xs);
  }

  .code-demo__tab {
    padding: var(--space-xs) var(--space-sm);
    font-size: .7rem;
  }

  .code-demo__info {
    padding: var(--space-md);
  }

  .code-demo__info h3 {
    font-size: 1.25rem;
  }

  .code-demo__info p {
    font-size: .85rem;
  }

  .code-demo__code {
    padding: var(--space-md);
    min-height: auto;
    font-size: .65rem;
    line-height: 1.6;
  }

  .code-demo__hint {
    font-size: .7rem;
  }
}

.extension-showcase {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  position: relative;
  overflow: hidden;
}

.extension-showcase:before {
  content: "";
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: .03;
  pointer-events: none;
  width: 800px;
  height: 800px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.extension-showcase__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.extension-showcase__label {
  font-family: var(--font-mono);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  font-size: .875rem;
  display: inline-block;
}

.extension-showcase__header h2 {
  margin-bottom: var(--space-md);
}

.extension-showcase__subtitle {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

.extension-showcase__tabs {
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  justify-content: center;
  display: flex;
}

.extension-showcase__tab {
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  background-color: #0000;
  font-size: .875rem;
  display: flex;
}

.extension-showcase__tab:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
  transform: translateY(-2px);
}

.extension-showcase__tab--active {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-alt, #ff6b35));
  color: #fff;
  border-color: #0000;
  box-shadow: 0 4px 16px #ff6b354d;
}

.extension-showcase__tab--active:hover {
  color: #fff;
  transform: translateY(-2px);
}

.extension-showcase__tab-icon {
  letter-spacing: -1px;
  font-size: .75rem;
}

.extension-showcase__tab-name {
  font-weight: 500;
}

.extension-showcase__content {
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto var(--space-xl);
  grid-template-columns: 340px 1fr;
  align-items: start;
  display: grid;
}

.extension-showcase__info {
  padding: var(--space-lg);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}

.extension-showcase__tag {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: var(--space-xs) var(--space-sm);
  background-color: var(--color-accent);
  color: #fff;
  margin-bottom: var(--space-md);
  border-radius: 4px;
  font-size: .7rem;
  display: inline-block;
}

.extension-showcase__info h3 {
  font-family: var(--font-display);
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
  line-height: 1.3;
}

.extension-showcase__info p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  font-size: .95rem;
  line-height: 1.7;
}

.extension-showcase__highlights {
  margin: 0;
  padding: 0;
  list-style: none;
}

.extension-showcase__highlights li {
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--color-text);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: .9rem;
  display: flex;
}

.extension-showcase__highlights li:last-child {
  border-bottom: none;
}

.extension-showcase__check {
  color: var(--color-accent);
  font-family: var(--font-mono);
  flex-shrink: 0;
  font-weight: bold;
}

.extension-showcase__preview {
  background-color: var(--color-terminal-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-retro), 0 20px 60px #0000004d;
  overflow: hidden;
}

.extension-showcase__preview-header {
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background-color: #ffffff08;
  border-bottom: 1px solid #ffffff14;
  display: flex;
}

.extension-showcase__dot {
  background-color: #ffffff26;
  border-radius: 50%;
  width: 12px;
  height: 12px;
}

.extension-showcase__dot:first-child {
  background-color: #ff5f56;
}

.extension-showcase__dot:nth-child(2) {
  background-color: #ffbd2e;
}

.extension-showcase__dot:nth-child(3) {
  background-color: #27ca40;
}

.extension-showcase__preview-title {
  margin-left: var(--space-md);
  font-family: var(--font-mono);
  color: #fff9;
  font-size: .8rem;
}

.extension-showcase__preview-badge {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fff;
  background-color: #007acc;
  border-radius: 3px;
  margin-left: auto;
  padding: 2px 8px;
  font-size: .65rem;
}

.extension-showcase__preview-content {
  background-color: #1e1e1e;
  justify-content: center;
  align-items: center;
  min-height: 350px;
  display: flex;
  position: relative;
}

.extension-showcase__image {
  opacity: 0;
  width: 100%;
  height: auto;
  transition: opacity .3s;
  display: block;
}

.extension-showcase__image--loaded {
  opacity: 1;
}

.extension-showcase__loading {
  font-family: var(--font-mono);
  color: #fff6;
  font-size: .875rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.extension-showcase__shortcuts {
  max-width: 900px;
  margin: 0 auto var(--space-xl);
  padding: var(--space-lg);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}

.extension-showcase__shortcuts-header {
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  display: flex;
}

.extension-showcase__shortcuts-icon {
  background-color: var(--color-accent);
  color: #fff;
  width: 40px;
  height: 40px;
  font-family: var(--font-mono);
  border-radius: var(--border-radius);
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  font-weight: bold;
  display: flex;
}

.extension-showcase__shortcuts-header h4 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.25rem;
}

.extension-showcase__shortcuts-grid {
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  display: grid;
}

.extension-showcase__shortcut {
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm);
  background-color: var(--color-bg-alt);
  border-radius: 6px;
  display: flex;
}

.extension-showcase__shortcut kbd {
  font-family: var(--font-mono);
  padding: var(--space-xs) var(--space-sm);
  background-color: var(--color-terminal-bg);
  color: var(--color-terminal-text);
  white-space: nowrap;
  border: 1px solid #ffffff1a;
  border-radius: 4px;
  font-size: .75rem;
}

.extension-showcase__shortcut span {
  color: var(--color-text-muted);
  font-size: .875rem;
}

.extension-showcase__sync {
  max-width: 900px;
  margin: 0 auto var(--space-xl);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  gap: var(--space-xl);
  background: linear-gradient(135deg, #ff6b350d, #ff6b3505);
  grid-template-columns: 1fr 1fr;
  align-items: center;
  display: grid;
}

.extension-showcase__sync-visual {
  align-items: center;
  gap: var(--space-md);
  justify-content: center;
  display: flex;
}

.extension-showcase__sync-box {
  padding: var(--space-md);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  text-align: center;
  min-width: 140px;
}

.extension-showcase__sync-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  font-size: .7rem;
  display: block;
}

.extension-showcase__sync-box code {
  font-family: var(--font-mono);
  color: var(--color-text);
  white-space: nowrap;
  font-size: .7rem;
}

.extension-showcase__sync-notes {
  justify-content: center;
  gap: 6px;
  display: flex;
}

.extension-showcase__sync-notes span {
  background-color: var(--color-accent);
  border-radius: 3px;
  width: 16px;
  height: 24px;
}

.extension-showcase__sync-notes span:nth-child(2) {
  margin-top: -8px;
}

.extension-showcase__sync-notes span:nth-child(3) {
  margin-top: -16px;
}

.extension-showcase__sync-arrows {
  color: var(--color-accent);
  font-size: 1.5rem;
  animation: 2s ease-in-out infinite sync-pulse;
}

@keyframes sync-pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

.extension-showcase__sync-text h4 {
  font-family: var(--font-display);
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.extension-showcase__sync-text p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: .95rem;
  line-height: 1.7;
}

.extension-showcase__cta {
  text-align: center;
  margin-top: var(--space-xl);
}

.extension-showcase__cta-button {
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  color: #fff;
  font-family: var(--font-mono);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  background: linear-gradient(135deg, #007acc, #005a9e);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  box-shadow: 0 4px 16px #007acc4d;
}

.extension-showcase__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px #007acc66;
}

.extension-showcase__cta-icon svg {
  width: 20px;
  height: 20px;
}

.extension-showcase__cta-hint {
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  font-size: .8rem;
}

@media (width <= 968px) {
  .extension-showcase__content {
    grid-template-columns: 1fr;
  }

  .extension-showcase__info {
    order: 2;
  }

  .extension-showcase__preview {
    order: 1;
  }

  .extension-showcase__sync {
    text-align: center;
    grid-template-columns: 1fr;
  }

  .extension-showcase__sync-text {
    order: -1;
  }
}

@media (width <= 680px) {
  .extension-showcase__tabs {
    gap: var(--space-xs);
  }

  .extension-showcase__tab {
    padding: var(--space-xs) var(--space-sm);
    font-size: .75rem;
  }

  .extension-showcase__tab-icon {
    display: none;
  }

  .extension-showcase__shortcuts-grid {
    grid-template-columns: 1fr;
  }

  .extension-showcase__sync-visual {
    flex-direction: column;
  }

  .extension-showcase__sync-arrows {
    transform: rotate(90deg);
  }
}

@media (width <= 480px) {
  .extension-showcase__tab {
    flex: 1 1 calc(50% - var(--space-xs));
    justify-content: center;
  }

  .extension-showcase__info {
    padding: var(--space-md);
  }

  .extension-showcase__info h3 {
    font-size: 1.25rem;
  }

  .extension-showcase__preview-content {
    min-height: 200px;
  }

  .extension-showcase__shortcuts, .extension-showcase__sync {
    padding: var(--space-md);
  }
}

.sound-library {
  background-color: var(--color-bg);
}

.sound-library__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.sound-library__label {
  font-family: var(--font-mono);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  font-size: .875rem;
  display: inline-block;
}

.sound-library__header h2 {
  margin-bottom: var(--space-md);
}

.sound-library__subtitle {
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

.sound-library__grid {
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  display: grid;
}

.sound-card {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.sound-card:before {
  content: "";
  background-color: var(--card-color);
  transform-origin: 0;
  height: 3px;
  transition: transform var(--transition-normal);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: scaleX(0);
}

.sound-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.sound-card:hover:before {
  transform: scaleX(1);
}

.sound-card__header {
  margin-bottom: var(--space-md);
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.sound-card__icon {
  font-family: var(--font-display);
  color: var(--card-color);
  font-size: 2rem;
}

.sound-card__count {
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  font-size: 1.5rem;
  font-weight: 700;
}

.sound-card__title {
  font-family: var(--font-display);
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.sound-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sound-card__list li {
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: .75rem;
}

.sound-card__list li:last-child {
  border-bottom: none;
}

.sound-library__example {
  background-color: var(--color-terminal-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-retro);
  margin-bottom: var(--space-xl);
  overflow: hidden;
}

.sound-library__example-header {
  padding: var(--space-md) var(--space-lg);
  background-color: #ffffff08;
  border-bottom: 1px solid #ffffff14;
}

.sound-library__example-label {
  font-family: var(--font-mono);
  color: #ffffff80;
  font-size: .75rem;
}

.sound-library__example-content {
  padding: var(--space-lg);
}

.sound-library__example-content pre {
  margin: 0;
}

.sound-library__example-content code {
  font-family: var(--font-mono);
  color: var(--color-terminal-text);
  font-size: .85rem;
  line-height: 1.8;
}

.sound-library__cta {
  text-align: center;
}

.sound-library__cta p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  max-width: 100%;
}

@media (width <= 768px) {
  .sound-library__grid {
    gap: var(--space-md);
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .sound-card {
    padding: var(--space-md);
  }
}

@media (width <= 480px) {
  .sound-library__grid {
    gap: var(--space-sm);
    grid-template-columns: repeat(2, 1fr);
  }

  .sound-card {
    padding: var(--space-sm);
  }

  .sound-card__icon {
    font-size: 1.5rem;
  }

  .sound-card__count {
    font-size: 1rem;
  }

  .sound-card__title {
    font-size: 1.25rem;
  }

  .sound-card__list li {
    padding: 2px 0;
    font-size: .65rem;
  }

  .sound-library__example-content {
    padding: var(--space-md);
  }

  .sound-library__example-content code {
    font-size: .7rem;
    line-height: 1.6;
  }
}

.workflow {
  background-color: var(--color-bg-alt);
}

.workflow__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.workflow__label {
  font-family: var(--font-mono);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  font-size: .875rem;
  display: inline-block;
}

.workflow__header h2 {
  margin-bottom: var(--space-md);
}

.workflow__subtitle {
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

.workflow__steps {
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  align-items: stretch;
  display: flex;
}

.workflow-step {
  text-align: center;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 320px;
  display: flex;
  position: relative;
}

.workflow-step__number {
  font-family: var(--font-display);
  color: var(--color-accent);
  opacity: .3;
  margin-bottom: var(--space-sm);
  font-size: 3rem;
}

.workflow-step__content {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  flex-direction: column;
  flex: 1;
  width: 100%;
  display: flex;
}

.workflow-step__title {
  font-family: var(--font-display);
  margin-bottom: var(--space-sm);
  font-size: 2rem;
}

.workflow-step__description {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  flex: 1;
  font-size: .9rem;
  line-height: 1.6;
}

.workflow-step__code {
  background-color: var(--color-terminal-bg);
  border-radius: var(--border-radius);
  padding: var(--space-sm) var(--space-md);
  overflow-x: auto;
}

.workflow-step__code code {
  font-family: var(--font-mono);
  color: var(--color-terminal-text);
  white-space: nowrap;
  font-size: .75rem;
}

.workflow-step__connector {
  font-family: var(--font-display);
  color: var(--color-accent);
  opacity: .5;
  font-size: 1.5rem;
  display: none;
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
}

.workflow__features {
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  display: grid;
}

.workflow-feature {
  text-align: center;
  padding: var(--space-lg);
}

.workflow-feature__icon {
  font-family: var(--font-display);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  opacity: .8;
  font-size: 2.5rem;
  display: inline-block;
}

.workflow-feature h4 {
  font-family: var(--font-display);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.workflow-feature p {
  color: var(--color-text-muted);
  max-width: 100%;
  font-size: .9rem;
  line-height: 1.6;
}

@media (width >= 900px) {
  .workflow-step__connector {
    display: block;
  }
}

@media (width <= 768px) {
  .workflow__steps {
    flex-direction: column;
    align-items: center;
  }

  .workflow-step {
    max-width: 400px;
  }
}

@media (width <= 480px) {
  .workflow-step {
    max-width: 100%;
  }

  .workflow-step__number {
    font-size: 2rem;
  }

  .workflow-step__content {
    padding: var(--space-md);
  }

  .workflow-step__title {
    font-size: 1.5rem;
  }

  .workflow-step__description {
    font-size: .85rem;
  }

  .workflow-step__code {
    padding: var(--space-xs) var(--space-sm);
  }

  .workflow-step__code code {
    font-size: .65rem;
  }

  .workflow__features {
    gap: var(--space-md);
    grid-template-columns: 1fr;
  }

  .workflow-feature {
    padding: var(--space-md);
  }

  .workflow-feature__icon {
    font-size: 2rem;
  }

  .workflow-feature h4 {
    font-size: 1.25rem;
  }

  .workflow-feature p {
    font-size: .85rem;
  }
}

.get-started {
  background-color: var(--color-bg);
}

.get-started__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.get-started__label {
  font-family: var(--font-mono);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  font-size: .875rem;
  display: inline-block;
}

.get-started__header h2 {
  margin-bottom: var(--space-md);
}

.get-started__subtitle {
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

.get-started__grid {
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  grid-template-columns: repeat(3, 1fr);
  display: grid;
}

@media (width <= 1024px) {
  .get-started__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

.get-started__step {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  position: relative;
}

.get-started__step-number {
  top: var(--space-md);
  right: var(--space-md);
  font-family: var(--font-display);
  color: var(--color-accent);
  opacity: .2;
  font-size: 3rem;
  line-height: 1;
  position: absolute;
}

.get-started__step h3 {
  font-family: var(--font-display);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.get-started__step p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  font-size: .9rem;
  line-height: 1.6;
}

.get-started__step .btn {
  padding: var(--space-sm) var(--space-md);
  font-size: .8rem;
}

.get-started__install {
  align-items: center;
  gap: var(--space-md);
  background-color: var(--color-terminal-bg);
  border-radius: var(--border-radius);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  overflow: hidden;
}

.get-started__install code {
  font-family: var(--font-mono);
  color: var(--color-terminal-text);
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  font-size: .8rem;
}

.get-started__copy {
  font-family: var(--font-mono);
  border-radius: var(--border-radius);
  color: #fff9;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  background-color: #0000;
  border: 1px solid #fff3;
  flex-shrink: 0;
  padding: 4px 8px;
  font-size: .65rem;
}

.get-started__copy:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.get-started__commands {
  background-color: var(--color-terminal-bg);
  border-radius: var(--border-radius);
  padding: var(--space-md) var(--space-lg);
}

.get-started__commands code {
  font-family: var(--font-mono);
  color: var(--color-terminal-text);
  white-space: nowrap;
  font-size: .85rem;
}

.get-started__example {
  background-color: var(--color-terminal-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-retro);
  margin-bottom: var(--space-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.get-started__example-header {
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-mono);
  color: #ffffff80;
  background-color: #ffffff08;
  border-bottom: 1px solid #ffffff14;
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
  display: flex;
}

.get-started__example-status {
  align-items: center;
  gap: var(--space-xs);
  color: #27ca40;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .7rem;
  display: flex;
}

.get-started__example-dot {
  background-color: #27ca40;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  animation: 2s ease-in-out infinite statusPulse;
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .4;
  }
}

.get-started__example-code {
  padding: var(--space-lg);
  font-family: var(--font-mono);
  color: var(--color-terminal-text);
  margin: 0;
  font-size: .85rem;
  line-height: 1.8;
  overflow-x: auto;
}

.get-started__example-code code {
  color: inherit;
}

.get-started__resources {
  text-align: center;
}

.get-started__resources h3 {
  font-family: var(--font-display);
  margin-bottom: var(--space-lg);
  font-size: 1.75rem;
}

.get-started__links {
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  display: flex;
}

.get-started__link {
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  font-size: .9rem;
  display: flex;
}

.get-started__link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

.get-started__link-icon {
  color: var(--color-accent);
  font-size: .75rem;
}

@media (width <= 480px) {
  .get-started__step {
    padding: var(--space-lg);
  }

  .get-started__step h3 {
    font-size: 1.25rem;
  }

  .get-started__step p {
    font-size: .85rem;
  }

  .get-started__install {
    align-items: stretch;
    gap: var(--space-sm);
    flex-direction: column;
  }

  .get-started__install code {
    text-align: center;
    font-size: .75rem;
  }

  .get-started__example-code {
    padding: var(--space-md);
    font-size: .7rem;
    line-height: 1.6;
  }

  .get-started__resources h3 {
    font-size: 1.5rem;
  }

  .get-started__links {
    flex-direction: column;
    align-items: stretch;
  }

  .get-started__link {
    justify-content: center;
    font-size: .8rem;
  }
}

.footer {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: var(--space-2xl) 0 var(--space-xl);
}

.footer__content {
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
  grid-template-columns: 1fr 2fr;
  display: grid;
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-family: var(--font-display);
  color: var(--color-text);
  margin-bottom: var(--space-md);
  align-items: center;
  font-size: 1.75rem;
  text-decoration: none;
  display: inline-flex;
}

.footer__logo:hover {
  text-decoration: none;
}

.footer__bracket {
  color: var(--color-text-muted);
}

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

.footer__text {
  color: var(--color-text);
}

.footer__tagline {
  color: var(--color-text-muted);
  font-size: .9rem;
}

.footer__links {
  gap: var(--space-lg);
  grid-template-columns: repeat(3, 1fr);
  display: grid;
}

.footer__column h4 {
  font-family: var(--font-display);
  margin-bottom: var(--space-md);
  color: var(--color-text);
  font-size: 1.25rem;
}

.footer__column a {
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
  font-size: .85rem;
  display: block;
}

.footer__column a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.footer__bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.footer__copyright {
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  font-size: .75rem;
  display: flex;
}

.footer__separator {
  opacity: .3;
}

.footer__made-with {
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  font-size: .75rem;
  display: flex;
}

.footer__heart {
  color: var(--color-accent);
  font-size: 1rem;
}

@media (width <= 868px) {
  .footer__content {
    gap: var(--space-xl);
    grid-template-columns: 1fr;
  }

  .footer__brand {
    text-align: center;
    max-width: 100%;
  }

  .footer__links {
    text-align: center;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (width <= 580px) {
  .footer__links {
    gap: var(--space-lg);
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    gap: var(--space-md);
    text-align: center;
    flex-direction: column;
  }

  .footer__copyright {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.documentation {
  background: var(--color-bg);
  height: 100vh;
  color: var(--color-text);
  padding-top: 60px;
  overflow: hidden;
}

.docs-layout {
  width: 100%;
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  display: flex;
}

.docs-sidebar {
  border-right: 1px solid var(--color-border);
  background: var(--color-bg);
  flex-direction: column;
  flex-shrink: 0;
  width: 280px;
  padding: 1.5rem;
  display: flex;
  overflow: hidden;
}

.docs-sidebar__tabs {
  flex-shrink: 0;
  gap: .5rem;
  margin-bottom: 1rem;
  display: flex;
}

.docs-sidebar__search {
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  padding-bottom: 1rem;
}

.docs-sidebar__search input {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  width: 100%;
  color: var(--color-text);
  font-family: var(--font-mono);
  border-radius: 6px;
  padding: .75rem 1rem;
  font-size: .875rem;
}

.docs-sidebar__search input:focus {
  border-color: var(--color-accent);
  outline: none;
}

.docs-sidebar__search input::placeholder {
  color: var(--color-text-muted);
}

.docs-sidebar__tabs button {
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  cursor: pointer;
  background: none;
  border-radius: 4px;
  flex: 1;
  padding: .5rem;
  font-size: .75rem;
  transition: all .2s;
}

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

.docs-sidebar__tabs button.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.docs-sidebar__categories {
  flex-direction: column;
  flex: 1;
  gap: .125rem;
  min-height: 0;
  margin-top: 1rem;
  display: flex;
  overflow-y: auto;
}

.docs-sidebar__categories > button, .docs-sidebar__category-group > button {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 4px;
  width: 100%;
  padding: .5rem .75rem;
  font-size: .8rem;
  transition: all .2s;
}

.docs-sidebar__categories > button:hover, .docs-sidebar__category-group > button:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text);
}

.docs-sidebar__categories > button.active, .docs-sidebar__category-group > button.active {
  background: var(--color-bg-tertiary);
  color: var(--color-primary);
}

.docs-sidebar__category-group {
  flex-direction: column;
  display: flex;
}

.docs-sidebar__category.has-children {
  align-items: center;
  gap: .25rem;
  display: flex;
}

.docs-sidebar__expand-icon {
  color: var(--color-text-muted);
  flex-shrink: 0;
  width: 1rem;
  font-size: .7rem;
}

.docs-sidebar__subcategories {
  border-left: 1px solid var(--color-border);
  flex-direction: column;
  margin-left: 1rem;
  padding-left: .5rem;
  display: flex;
}

.docs-sidebar__subcategory {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 4px;
  padding: .35rem .5rem;
  font-size: .75rem;
  transition: all .2s;
}

.docs-sidebar__subcategory:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text);
}

.docs-sidebar__subcategory.active {
  background: var(--color-bg-tertiary);
  color: var(--color-primary);
}

.docs-sidebar__subcategory.has-children {
  align-items: center;
  gap: .25rem;
  display: flex;
}

.docs-sidebar__subcategory-group {
  flex-direction: column;
  display: flex;
}

.docs-sidebar__item-count {
  color: var(--color-text-muted);
  opacity: .6;
  margin-left: auto;
  font-size: .65rem;
}

.docs-sidebar__items {
  border-left: 1px solid var(--color-border);
  flex-direction: column;
  margin-left: .75rem;
  padding-left: .5rem;
  display: flex;
}

.docs-sidebar__item {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: none;
  border: none;
  border-radius: 3px;
  padding: .25rem .5rem;
  font-size: .7rem;
  transition: all .2s;
  overflow: hidden;
}

.docs-sidebar__item:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text);
}

.docs-sidebar__item.active {
  background: var(--color-bg-tertiary);
  color: var(--color-primary);
}

.docs-sidebar__item.match {
  color: var(--color-text);
  font-weight: 500;
}

.docs-sidebar__no-results {
  color: var(--color-text-muted);
  text-align: center;
  padding: 1rem .75rem;
  font-size: .85rem;
  font-style: italic;
}

.docs-sidebar__items--direct {
  border-left: none;
  margin-bottom: .5rem;
  margin-left: 0;
  padding-left: .75rem;
}

.docs-content {
  flex: 1;
  max-width: 900px;
  min-height: 0;
  padding: 2rem 3rem;
  overflow-y: auto;
}

.docs-intro {
  margin-bottom: 3rem;
}

.docs-intro h1 {
  font-family: var(--font-logo);
  color: var(--color-text);
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.docs-intro p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.api-category, .ugen-category, .stdlib-category {
  margin-bottom: 3rem;
}

.api-category__title, .ugen-category__title, .stdlib-category__title {
  font-family: var(--font-logo);
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  font-size: 1.75rem;
}

.docs-intro--category {
  background: var(--color-bg-secondary);
  border-left: 4px solid var(--color-primary);
  border-radius: 8px;
  padding: 1.5rem 2rem;
}

.docs-intro--category h1 {
  margin-bottom: .75rem;
  font-size: 1.75rem;
}

.docs-intro--category p {
  font-size: 1rem;
  line-height: 1.7;
}

.api-category__list, .ugen-category__list, .stdlib-category__list, .stdlib-subcategory__list {
  flex-direction: column;
  gap: .75rem;
  display: flex;
}

.stdlib-subcategory {
  margin-top: 1.5rem;
}

.stdlib-subcategory__title {
  font-family: var(--font-logo);
  color: var(--color-text-muted);
  text-transform: capitalize;
  margin-bottom: .75rem;
  font-size: 1.25rem;
}

.api-card, .ugen-card, .stdlib-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color .2s;
  overflow: hidden;
}

.api-card:hover, .ugen-card:hover, .stdlib-card:hover {
  border-color: var(--color-border-hover);
}

.docs-card--highlighted, .stdlib-card--highlighted {
  box-shadow: 0 0 0 2px var(--color-primary);
  animation: .5s ease-out highlight-pulse;
  border-color: var(--color-primary) !important;
}

@keyframes highlight-pulse {
  0% {
    box-shadow: 0 0 0 4px var(--color-primary);
  }

  100% {
    box-shadow: 0 0 0 2px var(--color-primary);
  }
}

.api-card__header, .ugen-card__header, .stdlib-card__header {
  cursor: pointer;
  padding: 1rem 1.25rem;
  position: relative;
}

.api-card__title-row, .ugen-card__title-row, .stdlib-card__title-row {
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
  display: flex;
}

.api-card__signature {
  font-family: var(--font-mono);
  color: var(--color-primary);
  background: var(--color-bg-tertiary);
  border-radius: 4px;
  padding: .25rem .5rem;
  font-size: .95rem;
}

.ugen-card__name, .stdlib-card__name {
  font-family: var(--font-mono);
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 600;
}

.ugen-card__rates {
  gap: .25rem;
  display: flex;
}

.ugen-card__rate {
  font-family: var(--font-mono);
  text-transform: uppercase;
  border-radius: 3px;
  padding: .15rem .4rem;
  font-size: .7rem;
}

.ugen-card__rate--ar {
  color: #10b981;
  background: #10b98133;
}

.ugen-card__rate--kr {
  color: #3b82f6;
  background: #3b82f633;
}

.ugen-card__rate--ir {
  color: #9ca3af;
  background: #9ca3af33;
}

.ugen-card__rate--builder {
  color: #ec4899;
  background: #ec489933;
}

.stdlib-card__type {
  font-family: var(--font-mono);
  text-transform: uppercase;
  border-radius: 3px;
  padding: .15rem .4rem;
  font-size: .7rem;
}

.stdlib-card__type--synthdef {
  color: #7c3aed;
  background: #7c3aed33;
}

.stdlib-card__type--fx {
  color: #ec4899;
  background: #ec489933;
}

.stdlib-card__genre {
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  background: var(--color-bg-tertiary);
  border-radius: 3px;
  margin-bottom: .5rem;
  padding: .15rem .4rem;
  font-size: .7rem;
  display: inline-block;
}

.api-card__description, .ugen-card__description, .stdlib-card__description {
  color: var(--color-text-muted);
  margin: 0;
  padding-right: 2rem;
  font-size: .875rem;
  line-height: 1.5;
}

.api-card__expand-icon, .ugen-card__expand-icon, .stdlib-card__expand-icon {
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  font-size: 1.25rem;
  display: flex;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.api-card__details, .ugen-card__details, .stdlib-card__details {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
  padding: 1rem 1.25rem;
}

.api-card__params-section h4, .stdlib-card__params-section h5 {
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .75rem;
  font-size: .8rem;
}

.api-card__params, .ugen-card__params, .stdlib-card__params {
  border-collapse: collapse;
  width: 100%;
  font-size: .85rem;
}

.api-card__params th, .ugen-card__params th, .stdlib-card__params th {
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  text-transform: uppercase;
  padding: .5rem;
  font-size: .75rem;
  font-weight: 500;
}

.api-card__params td, .ugen-card__params td, .stdlib-card__params td {
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  padding: .5rem;
}

.api-card__params tr:last-child td, .ugen-card__params tr:last-child td, .stdlib-card__params tr:last-child td {
  border-bottom: none;
}

.api-card__param-name, .ugen-card__param-name, .stdlib-card__param-name {
  font-family: var(--font-mono);
  color: var(--color-primary);
}

.api-card__param-type, .ugen-card__param-type {
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-size: .8rem;
}

.api-card__param-default, .ugen-card__param-default, .stdlib-card__param-default {
  font-family: var(--font-mono);
  color: var(--color-text-muted);
}

.api-card__param-desc, .ugen-card__param-desc {
  color: var(--color-text-muted);
  line-height: 1.4;
}

.ugen-card__no-params {
  color: var(--color-text-muted);
  margin: 0;
  font-size: .9rem;
  font-style: italic;
}

.api-card__example {
  margin-top: 1rem;
}

.api-card__example h4 {
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .75rem;
  font-size: .8rem;
}

.api-card__example pre {
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
}

.api-card__example code {
  font-family: var(--font-mono);
  font-size: .85rem;
  line-height: 1.6;
}

.stdlib-card__collapsible-section {
  border-top: 1px solid var(--color-border);
  margin-top: 1rem;
  padding-top: 1rem;
}

.stdlib-card__section-toggle {
  border: 1px solid var(--color-border);
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  cursor: pointer;
  background: none;
  border-radius: 4px;
  padding: .5rem .75rem;
  font-size: .8rem;
  transition: all .2s;
}

.stdlib-card__section-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.stdlib-card__code {
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  margin-top: .75rem;
  margin-bottom: 0;
  padding: 1rem;
  overflow-x: auto;
}

.stdlib-card__code code {
  font-family: var(--font-mono);
  color: var(--color-text);
  white-space: pre;
  font-size: .85rem;
  line-height: 1.6;
}

.stdlib-card__code--source code {
  font-size: .8rem;
  line-height: 1.5;
}

@media (width <= 900px) {
  .documentation {
    height: auto;
    min-height: 100vh;
    padding-top: 60px;
    overflow: visible;
  }

  .docs-layout {
    flex-direction: column;
    height: auto;
  }

  .docs-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
    max-height: 40vh;
  }

  .docs-sidebar__categories {
    flex-flow: wrap;
    gap: .5rem;
  }

  .docs-content {
    padding: 1.5rem;
    overflow-y: visible;
  }
}

@media (width <= 600px) {
  .api-card__params, .ugen-card__params {
    font-size: .75rem;
  }

  .api-card__params th, .ugen-card__params th, .api-card__params td, .ugen-card__params td {
    padding: .25rem;
  }
}

.playground {
  background: var(--bg-primary, #1e1e2e);
  height: 100vh;
  color: var(--text-primary, #cdd6f4);
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  display: flex;
}

.playground-header {
  background: var(--bg-secondary, #181825);
  border-bottom: 1px solid var(--border-color, #313244);
  justify-content: space-between;
  align-items: center;
  height: 48px;
  padding: 0 1rem;
  display: flex;
}

.playground-logo {
  align-items: center;
  gap: 1rem;
  display: flex;
}

.back-link {
  color: var(--accent-color, #cba6f7);
  align-items: center;
  gap: .5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s;
  display: flex;
}

.back-link:hover {
  color: var(--accent-hover, #b491e0);
}

.back-arrow {
  font-size: 1.1rem;
}

.playground-title {
  color: var(--text-secondary, #a6adc8);
  border-left: 1px solid var(--border-color, #313244);
  padding-left: 1rem;
  font-size: .85rem;
}

.playground-tabs {
  gap: 4px;
  display: flex;
}

.tab-button {
  color: var(--text-secondary, #a6adc8);
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: 6px;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  transition: all .15s;
  display: flex;
}

.tab-button:hover {
  background: var(--bg-hover, #cba6f71a);
  color: var(--text-primary, #cdd6f4);
}

.tab-button.active {
  background: var(--accent-color, #cba6f7);
  color: var(--bg-primary, #1e1e2e);
  border-color: var(--accent-color, #cba6f7);
}

.tab-icon {
  font-size: 11px;
  font-weight: 700;
}

.tab-label {
  font-weight: 500;
}

.playground-actions {
  align-items: center;
  gap: 8px;
  display: flex;
}

.shortcuts-button, .theme-toggle {
  border: 1px solid var(--border-color, #313244);
  width: 32px;
  height: 32px;
  color: var(--text-secondary, #a6adc8);
  cursor: pointer;
  background: none;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  transition: all .15s;
  display: flex;
}

.shortcuts-button:hover, .theme-toggle:hover {
  background: var(--bg-hover, #cba6f71a);
  color: var(--text-primary, #cdd6f4);
  border-color: var(--accent-color, #cba6f7);
}

.playground-main {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.editor-section {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.editor-panel {
  border-bottom: 1px solid var(--border-color, #313244);
  flex-direction: column;
  flex: 1;
  min-height: 200px;
  display: flex;
}

.output-panel {
  flex-direction: column;
  flex: 0 0 200px;
  min-height: 150px;
  max-height: 300px;
  display: flex;
}

.side-panel {
  border-left: 1px solid var(--border-color, #313244);
  flex-direction: column;
  flex-shrink: 0;
  width: 320px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.side-panel-collapse {
  z-index: 10;
  background: var(--bg-secondary, #181825);
  border: 1px solid var(--border-color, #313244);
  width: 24px;
  height: 24px;
  color: var(--text-secondary, #a6adc8);
  cursor: pointer;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  transition: all .15s;
  display: flex;
  position: absolute;
  top: 8px;
  left: 8px;
}

.side-panel-collapse:hover {
  background: var(--bg-hover, #cba6f71a);
  color: var(--text-primary, #cdd6f4);
}

.editor-toolbar, .output-toolbar {
  background: var(--bg-secondary, #181825);
  border-bottom: 1px solid var(--border-color, #313244);
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  display: flex;
}

.editor-label, .output-label {
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-secondary, #a6adc8);
  font-size: 11px;
  font-weight: 600;
}

.toolbar-left, .toolbar-right {
  align-items: center;
  gap: 8px;
  display: flex;
}

.run-button, .stop-button {
  cursor: pointer;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
}

.run-button {
  background: var(--accent-color, #cba6f7);
  color: var(--bg-primary, #1e1e2e);
  border: none;
}

.run-button:hover:not(:disabled) {
  background: var(--accent-hover, #b491e0);
  transform: translateY(-1px);
}

.run-button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.stop-button {
  color: var(--text-primary, #cdd6f4);
  border: 1px solid var(--border-color, #313244);
  background: none;
}

.stop-button:hover:not(:disabled) {
  color: var(--bg-primary, #1e1e2e);
  background: #f38ba8;
  border-color: #f38ba8;
}

.stop-button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.editor-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.stats {
  gap: 16px;
  display: flex;
}

.stat {
  color: var(--text-primary, #cdd6f4);
  font-size: 12px;
}

.stat-label {
  color: var(--text-secondary, #a6adc8);
  margin-right: 4px;
}

.console {
  background: var(--bg-primary, #1e1e2e);
  flex: 1;
  padding: 12px;
  font-family: JetBrains Mono, Fira Code, monospace;
  font-size: 12px;
  overflow-y: auto;
}

.console-error {
  color: #f38ba8;
  background: #f38ba826;
  border: 1px solid #f38ba84d;
  border-radius: 6px;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  padding: 10px 12px;
  display: flex;
}

.error-icon {
  width: 18px;
  height: 18px;
  color: var(--bg-primary, #1e1e2e);
  background: #f38ba8;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  font-weight: bold;
  display: inline-flex;
}

.console-line {
  border-bottom: 1px solid var(--border-color, #313244);
  gap: 12px;
  padding: 4px 0;
  display: flex;
}

.console-time {
  color: var(--text-tertiary, #585b70);
  flex-shrink: 0;
  font-size: 11px;
}

.console-message {
  flex: 1;
}

.console-info .console-message {
  color: var(--text-secondary, #a6adc8);
}

.console-success .console-message {
  color: #a6e3a1;
}

.console-error .console-message {
  color: #f38ba8;
}

.console-placeholder {
  color: var(--text-tertiary, #585b70);
  font-style: italic;
}

.playground-footer {
  background: var(--bg-secondary, #181825);
  border-top: 1px solid var(--border-color, #313244);
  justify-content: center;
  align-items: center;
  min-height: 48px;
  display: flex;
  position: relative;
}

.footer-right {
  color: var(--text-tertiary, #585b70);
  border-left: 1px solid var(--border-color, #313244);
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  font-size: 12px;
  display: flex;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
}

.version {
  color: var(--text-secondary, #a6adc8);
}

.playground-footer a {
  color: var(--accent-color, #cba6f7);
  text-decoration: none;
}

.playground-footer a:hover {
  text-decoration: underline;
}

.console::-webkit-scrollbar {
  width: 6px;
}

.console::-webkit-scrollbar-track {
  background: none;
}

.console::-webkit-scrollbar-thumb {
  background: var(--border-color, #45475a);
  border-radius: 3px;
}

@media (width <= 1024px) {
  .side-panel {
    width: 280px;
  }

  .tab-label {
    display: none;
  }
}

@media (width <= 768px) {
  .playground-main {
    flex-direction: column;
  }

  .side-panel {
    border-left: none;
    border-top: 1px solid var(--border-color, #313244);
    width: 100%;
    height: 300px;
  }

  .editor-panel {
    min-height: 300px;
  }

  .output-panel {
    flex: 0 0 150px;
  }
}

@media (width <= 640px) {
  .side-panel, .side-panel-collapsed {
    display: none !important;
  }

  .playground-tabs {
    display: none;
  }

  .playground-header {
    height: 44px;
    padding: 0 .75rem;
  }

  .playground-title {
    display: none;
  }

  .back-link {
    gap: .25rem;
    font-size: .9rem;
  }

  .playground-actions {
    gap: 4px;
  }

  .action-button {
    width: 32px;
    height: 32px;
  }

  .template-button {
    display: none;
  }

  .playground-main, .editor-section, .editor-panel {
    flex: 1;
    min-height: 0;
  }

  .editor-toolbar {
    flex-wrap: nowrap;
    justify-content: center;
    padding: 6px 8px;
  }

  .toolbar-left, .toolbar-right {
    display: none;
  }

  .toolbar-center {
    flex: none;
  }

  .transport-controls {
    gap: 2px;
    padding: 3px;
  }

  .transport-btn {
    width: 32px;
    height: 32px;
  }

  .play-btn {
    width: 40px;
    height: 40px;
    margin: 0 2px;
  }

  .output-panel {
    flex: 0 0 100px;
    min-height: 80px;
    max-height: 120px;
  }

  .output-toolbar {
    padding: 4px 8px;
  }

  .output-label {
    font-size: 10px;
  }

  .stats {
    display: none;
  }

  .console {
    padding: 8px;
    font-size: 11px;
  }

  .console-time {
    display: none;
  }

  .console-line {
    gap: 8px;
    padding: 2px 0;
  }

  .playground-footer {
    display: none;
  }

  .template-dropdown {
    width: auto;
    top: 50px;
    left: 10px;
    right: 10px;
  }

  .activation-icon {
    width: 80px;
    height: 80px;
  }

  .activation-content h2 {
    font-size: 22px;
  }

  .activation-content p {
    font-size: 14px;
  }
}

@media (width <= 400px) {
  .playground-header {
    height: 40px;
    padding: 0 .5rem;
  }

  .back-link span {
    display: none;
  }

  .output-panel {
    flex: 0 0 80px;
    min-height: 60px;
    max-height: 100px;
  }

  .transport-btn {
    width: 28px;
    height: 28px;
  }

  .play-btn {
    width: 36px;
    height: 36px;
  }
}

[data-theme="light"] .playground {
  --bg-primary: #eff1f5;
  --bg-secondary: #e6e9ef;
  --bg-hover: #8839ef1a;
  --text-primary: #4c4f69;
  --text-secondary: #5c5f77;
  --text-tertiary: #7c7f93;
  --border-color: #ccd0da;
  --accent-color: #8839ef;
  --accent-hover: #7432d4;
}

[data-theme="light"] .tab-button.active {
  background: var(--accent-color, #8839ef);
  color: #fff;
}

[data-theme="light"] .run-button, [data-theme="light"] .stop-button:hover:not(:disabled) {
  color: #fff;
}

[data-theme="light"] .console-error {
  color: #d20f39;
  background: #d20f391a;
  border-color: #d20f394d;
}

[data-theme="light"] .error-icon {
  color: #fff;
  background: #d20f39;
}

[data-theme="light"] .console-success .console-message {
  color: #40a02b;
}

[data-theme="light"] .console-error .console-message {
  color: #d20f39;
}

.activation-overlay {
  z-index: 100;
  backdrop-filter: blur(8px);
  cursor: pointer;
  background: #11111bf2;
  justify-content: center;
  align-items: center;
  animation: .3s fadeIn;
  display: flex;
  position: fixed;
  inset: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.activation-content {
  text-align: center;
  animation: .4s bounceIn;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(.9);
  }

  70% {
    transform: scale(1.02);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.activation-icon {
  background: linear-gradient(135deg, var(--accent-color, #cba6f7), #89b4fa);
  width: 100px;
  height: 100px;
  color: var(--bg-primary, #1e1e2e);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  margin: 0 auto 24px;
  transition: transform .2s;
  display: flex;
  box-shadow: 0 8px 32px #cba6f766;
}

.activation-overlay:hover .activation-icon {
  transform: scale(1.1);
}

.activation-content h2 {
  color: var(--text-primary, #cdd6f4);
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
}

.activation-content p {
  color: var(--text-secondary, #a6adc8);
  margin: 0;
  font-size: 16px;
}

[data-theme="light"] .activation-overlay {
  background: #eff1f5f2;
}

.dropdown-backdrop {
  z-index: 50;
  background: #0000004d;
  position: fixed;
  inset: 0;
}

.template-dropdown {
  z-index: 51;
  background: var(--bg-secondary, #181825);
  border: 1px solid var(--border-color, #313244);
  border-radius: 12px;
  width: 220px;
  animation: .15s dropdownSlide;
  position: fixed;
  top: 56px;
  right: 150px;
  overflow: hidden;
  box-shadow: 0 8px 32px #0006;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-header {
  border-bottom: 1px solid var(--border-color, #313244);
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-secondary, #a6adc8);
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
}

.dropdown-close {
  color: var(--text-secondary, #a6adc8);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  transition: color .15s;
}

.dropdown-close:hover {
  color: var(--text-primary, #cdd6f4);
}

.template-list {
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  display: flex;
}

.template-item {
  color: var(--text-primary, #cdd6f4);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  border-radius: 8px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  transition: all .15s;
  display: flex;
}

.template-item:hover {
  background: var(--bg-hover, #cba6f71a);
}

.template-icon {
  background: var(--bg-primary, #1e1e2e);
  width: 36px;
  height: 36px;
  color: var(--accent-color, #cba6f7);
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  display: flex;
}

.template-name {
  font-weight: 500;
}

.toolbar-btn {
  background: var(--bg-primary, #1e1e2e);
  border: 1px solid var(--border-color, #313244);
  color: var(--text-secondary, #a6adc8);
  cursor: pointer;
  border-radius: 6px;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  transition: all .15s;
  display: flex;
}

.toolbar-btn:hover:not(:disabled) {
  background: var(--bg-hover, #cba6f71a);
  border-color: var(--accent-color, #cba6f7);
  color: var(--text-primary, #cdd6f4);
}

.toolbar-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.toolbar-btn .btn-label {
  font-weight: 600;
}

.toolbar-btn .status-icon {
  margin-left: 2px;
}

.toolbar-btn.compile-btn.success {
  color: #a6e3a1;
  border-color: #a6e3a1;
}

.toolbar-btn.compile-btn.error {
  color: #f38ba8;
  border-color: #f38ba8;
}

.toolbar-btn .spinner.small {
  border-width: 1.5px;
  width: 14px;
  height: 14px;
}

.toolbar-divider {
  background: var(--border-color, #313244);
  width: 1px;
  height: 24px;
  margin: 0 8px;
}

.toolbar-center {
  justify-content: center;
  align-items: center;
  display: flex;
}

.transport-controls {
  background: var(--bg-primary, #1e1e2e);
  border: 1px solid var(--border-color, #313244);
  border-radius: 10px;
  align-items: center;
  gap: 4px;
  padding: 4px;
  display: flex;
}

.transport-btn {
  cursor: pointer;
  width: 36px;
  height: 36px;
  color: var(--text-secondary, #a6adc8);
  background: none;
  border: none;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  transition: all .15s;
  display: flex;
}

.transport-btn:hover:not(:disabled) {
  background: var(--bg-hover, #cba6f726);
  color: var(--text-primary, #cdd6f4);
}

.transport-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.transport-btn.disabled {
  opacity: .4;
}

.play-btn {
  background: var(--accent-color, #cba6f7);
  width: 44px;
  height: 44px;
  color: var(--bg-primary, #1e1e2e);
  border-radius: 50%;
  margin: 0 4px;
}

.play-btn:hover:not(:disabled) {
  background: var(--accent-hover, #b491e0);
  transform: scale(1.05);
}

.play-btn.playing {
  color: var(--bg-primary, #1e1e2e);
  background: #f9e2af;
}

.stop-btn:hover:not(:disabled) {
  color: #f38ba8;
  background: #f38ba833;
}

.reload-btn:hover:not(:disabled) {
  color: #89b4fa;
  background: #89b4fa33;
}

.spinner {
  border: 2px solid #0000;
  border-top-color: currentColor;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: .8s linear infinite spin;
}

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

.tempo-display {
  background: var(--bg-primary, #1e1e2e);
  border: 1px solid var(--border-color, #313244);
  opacity: .5;
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  transition: opacity .2s;
  display: flex;
}

.tempo-display.active {
  opacity: 1;
}

.beat-dots {
  align-items: center;
  gap: 5px;
  display: flex;
}

.beat-dot {
  background: var(--border-color, #45475a);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  transition: all .1s;
}

.beat-dot.active {
  background: var(--accent-color, #cba6f7);
  box-shadow: 0 0 8px var(--accent-color, #cba6f7);
  transform: scale(1.2);
}

.tempo-value {
  color: var(--text-primary, #cdd6f4);
  font-family: JetBrains Mono, Fira Code, monospace;
  font-size: 14px;
  font-weight: 700;
}

.tempo-unit {
  color: var(--text-secondary, #a6adc8);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 10px;
  font-weight: 500;
}

.side-panel-collapsed {
  border-left: 1px solid var(--border-color, #313244);
  background: var(--bg-secondary, #181825);
  flex-shrink: 0;
  justify-content: center;
  width: 48px;
  padding-top: 8px;
  display: flex;
}

.panel-toggle {
  background: var(--bg-primary, #1e1e2e);
  border: 1px solid var(--border-color, #313244);
  width: 32px;
  height: 32px;
  color: var(--text-secondary, #a6adc8);
  cursor: pointer;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  transition: all .15s;
  display: flex;
}

.panel-toggle:hover {
  background: var(--bg-hover, #cba6f71a);
  color: var(--text-primary, #cdd6f4);
  border-color: var(--accent-color, #cba6f7);
}

.collapse-btn {
  z-index: 10;
  position: absolute;
  top: 8px;
  right: 8px;
}

.expand-btn {
  position: relative;
}

.action-button {
  border: 1px solid var(--border-color, #313244);
  width: 36px;
  height: 36px;
  color: var(--text-secondary, #a6adc8);
  cursor: pointer;
  background: none;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  transition: all .15s;
  display: flex;
}

.action-button:hover {
  background: var(--bg-hover, #cba6f71a);
  color: var(--text-primary, #cdd6f4);
  border-color: var(--accent-color, #cba6f7);
}

.output-actions {
  align-items: center;
  gap: 12px;
  display: flex;
}

.stats {
  color: var(--text-secondary, #a6adc8);
  gap: 4px;
  font-size: 12px;
  display: flex;
}

.stat-sep {
  color: var(--border-color, #45475a);
}

.clear-btn {
  border: 1px solid var(--border-color, #313244);
  width: 28px;
  height: 28px;
  color: var(--text-secondary, #a6adc8);
  cursor: pointer;
  background: none;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  transition: all .15s;
  display: flex;
}

.clear-btn:hover {
  color: #f38ba8;
  background: #f38ba81a;
  border-color: #f38ba8;
}

[data-theme="light"] .activation-icon {
  background: linear-gradient(135deg, var(--accent-color, #8839ef), #1e66f5);
}

[data-theme="light"] .play-btn {
  color: #fff;
}

[data-theme="light"] .play-btn.playing {
  color: #fff;
  background: #df8e1d;
}

[data-theme="light"] .beat-dot.active {
  background: var(--accent-color, #8839ef);
  box-shadow: 0 0 8px var(--accent-color, #8839ef);
}

.mobile-tutorials-button {
  display: none;
}

.mobile-tutorials-modal {
  z-index: 51;
  background: var(--bg-secondary, #181825);
  border: 1px solid var(--border-color, #313244);
  border-radius: 12px;
  flex-direction: column;
  animation: .15s dropdownSlide;
  display: flex;
  position: fixed;
  inset: 50px 10px 60px;
  overflow: hidden;
  box-shadow: 0 8px 32px #0006;
}

.mobile-tutorials-header {
  border-bottom: 1px solid var(--border-color, #313244);
  color: var(--text-primary, #cdd6f4);
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
}

.mobile-tutorials-content {
  flex: 1;
  overflow-y: auto;
}

@media (width <= 640px) {
  .mobile-tutorials-button {
    display: flex;
  }
}

.action-button.share-button {
  background: linear-gradient(135deg, var(--accent-color, #cba6f7), #89b4fa);
  width: auto;
  height: auto;
  color: var(--bg-primary, #1e1e2e);
  border: none;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.action-button.share-button:hover {
  background: linear-gradient(135deg, var(--accent-hover, #b491e0), #7aa2f7);
  color: var(--bg-primary, #1e1e2e);
  border-color: #0000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px #cba6f74d;
}

.share-label {
  font-weight: 600;
}

[data-theme="light"] .action-button.share-button {
  background: linear-gradient(135deg, var(--accent-color, #8839ef), #1e66f5);
  color: #fff;
}

[data-theme="light"] .action-button.share-button:hover {
  background: linear-gradient(135deg, var(--accent-hover, #7432d4), #1a5cd6);
  color: #fff;
}

@media (width <= 768px) {
  .share-label {
    display: none;
  }

  .share-button {
    padding: 8px 12px;
  }
}

.share-toast {
  color: var(--bg-primary, #1e1e2e);
  z-index: 100;
  background: #a6e3a1;
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  animation: .3s toastSlideUp;
  display: flex;
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 8px 32px #a6e3a14d;
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateX(-50%)translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%)translateY(0);
  }
}

[data-theme="light"] .share-toast {
  color: #fff;
  background: #40a02b;
}

@media (width <= 640px) {
  .share-toast {
    justify-content: center;
    bottom: 20px;
    left: 20px;
    right: 20px;
    transform: none;
  }

  @keyframes toastSlideUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.autocomplete-popup {
  z-index: 100;
  background: var(--popup-bg, #1e1e2e);
  border: 1px solid var(--border-color, #45475a);
  border-radius: 6px;
  max-height: 300px;
  font-family: JetBrains Mono, Fira Code, Monaco, Consolas, monospace;
  font-size: 12px;
  display: flex;
  position: absolute;
  overflow: hidden;
  box-shadow: 0 4px 16px #0000004d;
}

.autocomplete-list {
  min-width: 200px;
  max-width: 350px;
  max-height: 280px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  overflow-y: auto;
}

.autocomplete-item {
  cursor: pointer;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  transition: background .1s;
  display: flex;
}

.autocomplete-item:hover {
  background: var(--hover-bg, #cba6f71a);
}

.autocomplete-item.selected {
  background: var(--selected-bg, #cba6f733);
}

.autocomplete-icon {
  background: var(--icon-bg, #ffffff0d);
  border-radius: 3px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 18px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
}

.autocomplete-name {
  color: var(--text-color, #cdd6f4);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 500;
  overflow: hidden;
}

.autocomplete-signature {
  color: var(--muted-color, #6c7086);
  white-space: nowrap;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
  font-size: 11px;
  overflow: hidden;
}

.autocomplete-detail {
  color: var(--detail-color, #585b70);
  white-space: nowrap;
  margin-left: auto;
  font-size: 10px;
}

.autocomplete-detail-panel {
  border-left: 1px solid var(--border-color, #45475a);
  background: var(--detail-bg, #181825);
  width: 280px;
  padding: 12px;
  overflow-y: auto;
}

.detail-header {
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  display: flex;
}

.detail-type {
  text-transform: uppercase;
  background: #ffffff0d;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
}

.detail-name {
  color: var(--text-color, #cdd6f4);
  font-weight: 600;
}

.detail-signature {
  background: var(--code-bg, #0000004d);
  color: var(--syntax-method, #f9e2af);
  white-space: pre-wrap;
  word-break: break-all;
  border-radius: 4px;
  margin: 8px 0;
  padding: 8px;
  font-size: 11px;
  display: block;
}

.detail-description {
  color: var(--muted-color, #a6adc8);
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.autocomplete-list::-webkit-scrollbar {
  width: 6px;
}

.autocomplete-detail-panel::-webkit-scrollbar {
  width: 6px;
}

.autocomplete-list::-webkit-scrollbar-track {
  background: none;
}

.autocomplete-detail-panel::-webkit-scrollbar-track {
  background: none;
}

.autocomplete-list::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb, #45475a);
  border-radius: 3px;
}

.autocomplete-detail-panel::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb, #45475a);
  border-radius: 3px;
}

.autocomplete-list::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover, #585b70);
}

.autocomplete-detail-panel::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover, #585b70);
}

[data-theme="light"] .autocomplete-popup {
  --popup-bg: #eff1f5;
  --border-color: #ccd0da;
  --hover-bg: #8839ef1a;
  --selected-bg: #8839ef26;
  --icon-bg: #0000000d;
  --text-color: #4c4f69;
  --muted-color: #7c7f93;
  --detail-color: #9ca0b0;
  --detail-bg: #e6e9ef;
  --code-bg: #0000000d;
  --scrollbar-thumb: #bcc0cc;
  --scrollbar-thumb-hover: #9ca0b0;
  --ac-function: #1e66f5;
  --ac-method: #df8e1d;
  --ac-synthdef: #40a02b;
  --ac-ugen: #ea76cb;
  --ac-keyword: #8839ef;
  --ac-sample: #fe640b;
}

@media (width <= 768px) {
  .autocomplete-popup {
    flex-direction: column;
    max-width: calc(100vw - 80px);
  }

  .autocomplete-detail-panel {
    display: none;
  }

  .autocomplete-list {
    max-width: none;
  }
}

.hover-tooltip {
  z-index: 1000;
  background: var(--tooltip-bg, #1e1e2e);
  border: 1px solid var(--border-color, #45475a);
  pointer-events: none;
  border-radius: 6px;
  max-width: 320px;
  padding: 12px;
  font-family: JetBrains Mono, Fira Code, Monaco, Consolas, monospace;
  font-size: 12px;
  animation: .15s ease-out tooltipFadeIn;
  box-shadow: 0 4px 16px #0006;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hover-header {
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  display: flex;
}

.hover-type {
  text-transform: uppercase;
  background: #ffffff0d;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
}

.hover-name {
  color: var(--text-color, #cdd6f4);
  font-size: 13px;
  font-weight: 600;
}

.hover-signature {
  background: var(--code-bg, #0000004d);
  color: var(--syntax-method, #f9e2af);
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 4px;
  margin: 8px 0;
  padding: 8px;
  font-size: 11px;
  display: block;
}

.hover-description {
  color: var(--muted-color, #a6adc8);
  margin: 0 0 8px;
  line-height: 1.5;
}

.hover-params {
  border-top: 1px solid var(--border-color, #313244);
  margin-top: 8px;
  padding-top: 8px;
}

.hover-params-label {
  color: var(--muted-color, #6c7086);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 10px;
  font-weight: 600;
}

.hover-params ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.hover-params li {
  gap: 8px;
  padding: 2px 0;
  font-size: 11px;
  display: flex;
}

.param-name {
  color: var(--syntax-identifier, #cdd6f4);
}

.param-default {
  color: var(--syntax-number, #fab387);
}

.param-more {
  color: var(--muted-color, #6c7086);
  font-style: italic;
}

.hover-category, .hover-genre, .hover-context {
  border-top: 1px solid var(--border-color, #313244);
  color: var(--muted-color, #6c7086);
  margin-top: 8px;
  padding-top: 8px;
  font-size: 10px;
  display: block;
}

.hover-genre {
  border-top: none;
  margin-top: 0;
  padding-top: 4px;
}

.hover-context {
  font-style: italic;
}

[data-theme="light"] .hover-tooltip {
  --tooltip-bg: #eff1f5;
  --border-color: #ccd0da;
  --text-color: #4c4f69;
  --muted-color: #7c7f93;
  --code-bg: #0000000d;
  --syntax-method: #df8e1d;
  --syntax-identifier: #4c4f69;
  --syntax-number: #fe640b;
}

.code-editor-wrapper {
  background: var(--editor-bg, #1e1e2e);
  border: 1px solid var(--border-color, #313244);
  border-radius: 8px;
  flex-direction: column;
  height: 100%;
  display: flex;
  overflow: hidden;
}

.code-editor-main {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.code-editor-line-numbers {
  background: var(--line-numbers-bg, #181825);
  border-right: 1px solid var(--border-color, #313244);
  user-select: none;
  flex-shrink: 0;
  width: 50px;
  padding-top: 8px;
  overflow: hidden;
}

.line-number {
  text-align: right;
  height: 21px;
  color: var(--line-number-color, #6c7086);
  padding: 0 12px 0 8px;
  font-family: JetBrains Mono, Fira Code, monospace;
  font-size: 14px;
  line-height: 21px;
}

.line-number.active {
  color: var(--line-number-active, #cdd6f4);
  background: var(--line-number-active-bg, #cba6f71a);
}

.line-number.error {
  color: var(--error-color, #f38ba8);
  background: var(--error-bg, #f38ba826);
}

.code-editor-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.code-editor-layer {
  font-variant: normal;
  letter-spacing: 0;
  word-spacing: 0;
  text-align: left;
  text-indent: 0;
  text-transform: none;
  text-shadow: none;
  white-space: pre;
  word-wrap: normal;
  word-break: normal;
  overflow-wrap: normal;
  tab-size: 4;
  hyphens: none;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: auto;
  background: none;
  border: none;
  outline: none;
  margin: 0;
  padding: 8px 12px;
  font-family: JetBrains Mono, Fira Code, Consolas, monospace;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  line-height: 21px;
  text-decoration: none;
  position: absolute;
  inset: 0;
  overflow: auto;
}

.code-editor-textarea {
  resize: none;
  color: #0000;
  caret-color: var(--caret-color, #cba6f7);
  z-index: 2;
}

.code-editor-textarea::placeholder {
  color: var(--placeholder-color, #6c7086);
}

.code-editor-textarea::selection {
  background: var(--selection-bg, #cba6f74d);
  color: #0000;
}

.code-editor-highlight {
  color: var(--text-color, #cdd6f4);
  pointer-events: none;
  z-index: 1;
  overflow: auto;
}

.hl-builtin {
  color: #89b4fa;
}

.hl-ugen {
  color: #74c7ec;
}

.hl-method {
  color: #f9e2af;
}

.code-editor-status-bar {
  background: var(--status-bar-bg, #181825);
  border-top: 1px solid var(--border-color, #313244);
  height: 24px;
  color: var(--status-bar-color, #6c7086);
  align-items: center;
  gap: 16px;
  padding: 0 12px;
  font-family: JetBrains Mono, Fira Code, monospace;
  font-size: 11px;
  display: flex;
}

.status-item {
  white-space: nowrap;
}

.status-hint {
  opacity: .7;
  margin-left: auto;
}

[data-theme="light"] .code-editor-wrapper {
  --editor-bg: #eff1f5;
  --line-numbers-bg: #e6e9ef;
  --border-color: #ccd0da;
  --line-number-color: #8c8fa1;
  --line-number-active: #4c4f69;
  --line-number-active-bg: #8839ef1a;
  --text-color: #4c4f69;
  --caret-color: #8839ef;
  --placeholder-color: #9ca0b0;
  --selection-bg: #8839ef33;
  --status-bar-bg: #e6e9ef;
  --status-bar-color: #7c7f93;
}

[data-theme="light"] .hl-comment {
  color: #8c8fa1;
}

[data-theme="light"] .hl-string {
  color: #40a02b;
}

[data-theme="light"] .hl-number {
  color: #fe640b;
}

[data-theme="light"] .hl-keyword {
  color: #8839ef;
}

[data-theme="light"] .hl-builtin {
  color: #1e66f5;
}

[data-theme="light"] .hl-ugen {
  color: #04a5e5;
}

[data-theme="light"] .hl-method {
  color: #df8e1d;
}

[data-theme="light"] .hl-operator {
  color: #179299;
}

[data-theme="light"] .hl-bracket {
  color: #ea76cb;
}

[data-theme="light"] .hl-punctuation {
  color: #7c7f93;
}

[data-theme="light"] .hl-identifier {
  color: #4c4f69;
}

@media (width <= 768px) {
  .code-editor-line-numbers {
    width: 40px;
  }

  .line-number {
    padding: 0 8px 0 4px;
    font-size: 12px;
  }

  .code-editor-layer {
    padding: 6px 8px;
    font-size: 13px;
    line-height: 19px;
  }

  .code-editor-status-bar {
    font-size: 10px;
  }

  .status-hint {
    display: none;
  }
}

@media (width <= 640px) {
  .code-editor-wrapper {
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  .code-editor-line-numbers {
    width: 32px;
    padding-top: 6px;
  }

  .line-number {
    height: 18px;
    padding: 0 6px 0 4px;
    font-size: 11px;
    line-height: 18px;
  }

  .code-editor-layer {
    tab-size: 2;
    padding: 6px 8px;
    font-size: 13px;
    line-height: 18px;
  }

  .code-editor-status-bar {
    display: none;
  }
}

@media (width <= 400px) {
  .code-editor-line-numbers {
    width: 28px;
  }

  .line-number {
    padding: 0 4px 0 2px;
    font-size: 10px;
  }

  .code-editor-layer {
    padding: 4px 6px;
    font-size: 12px;
    line-height: 17px;
  }
}

.stdlib-explorer {
  background: var(--panel-bg, #1e1e2e);
  border-left: 1px solid var(--border-color, #313244);
  flex-direction: column;
  height: 100%;
  display: flex;
}

.stdlib-search {
  border-bottom: 1px solid var(--border-color, #313244);
  padding: 12px;
  position: relative;
}

.stdlib-search-input {
  background: var(--input-bg, #181825);
  border: 1px solid var(--border-color, #45475a);
  width: 100%;
  color: var(--text-color, #cdd6f4);
  border-radius: 6px;
  padding: 8px 32px 8px 12px;
  font-family: inherit;
  font-size: 13px;
}

.stdlib-search-input:focus {
  border-color: var(--accent-color, #cba6f7);
  outline: none;
}

.stdlib-search-input::placeholder {
  color: var(--placeholder-color, #6c7086);
}

.stdlib-search-clear {
  color: var(--muted-color, #6c7086);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 14px;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.stdlib-search-clear:hover {
  color: var(--text-color, #cdd6f4);
}

.stdlib-tree {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
}

.stdlib-empty {
  text-align: center;
  color: var(--muted-color, #6c7086);
  padding: 24px;
  font-style: italic;
}

.stdlib-category {
  margin-bottom: 2px;
}

.stdlib-category-header {
  cursor: pointer;
  user-select: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  transition: background .1s;
  display: flex;
}

.stdlib-category-header:hover {
  background: var(--hover-bg, #cba6f71a);
}

.stdlib-chevron {
  color: var(--muted-color, #6c7086);
  font-size: 10px;
  transition: transform .15s;
}

.stdlib-category-header.expanded .stdlib-chevron {
  transform: rotate(90deg);
}

.stdlib-category-name {
  color: var(--text-color, #cdd6f4);
  font-size: 13px;
  font-weight: 600;
}

.stdlib-category-count {
  color: var(--muted-color, #6c7086);
  background: var(--count-bg, #ffffff0d);
  border-radius: 10px;
  margin-left: auto;
  padding: 2px 8px;
  font-size: 11px;
}

.stdlib-subcategories {
  border-left: 1px solid var(--border-color, #313244);
  margin-left: 12px;
}

.stdlib-subcategory-header {
  cursor: pointer;
  user-select: none;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  transition: background .1s;
  display: flex;
}

.stdlib-subcategory-header:hover {
  background: var(--hover-bg, #cba6f70d);
}

.stdlib-chevron-small {
  color: var(--muted-color, #585b70);
  text-align: center;
  width: 12px;
  font-size: 10px;
}

.stdlib-subcategory-name {
  color: var(--secondary-text, #a6adc8);
  text-transform: capitalize;
  font-size: 12px;
}

.stdlib-subcategory-count {
  color: var(--muted-color, #585b70);
  margin-left: auto;
  font-size: 10px;
}

.stdlib-items {
  margin-left: 12px;
}

.stdlib-item {
  cursor: pointer;
  border-radius: 4px;
  margin: 1px 4px;
  padding: 5px 12px;
  transition: background .1s;
}

.stdlib-item:hover {
  background: var(--hover-bg, #cba6f71a);
}

.stdlib-item.selected {
  background: var(--selected-bg, #cba6f733);
}

.stdlib-item-name {
  color: var(--text-color, #cdd6f4);
  font-family: JetBrains Mono, Fira Code, Monaco, Consolas, monospace;
  font-size: 12px;
}

.stdlib-detail {
  border-top: 1px solid var(--border-color, #313244);
  background: var(--detail-bg, #181825);
  max-height: 250px;
  padding: 12px;
  overflow-y: auto;
}

.stdlib-detail-header {
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  display: flex;
}

.stdlib-detail-name {
  color: var(--text-color, #cdd6f4);
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.stdlib-detail-type {
  text-transform: uppercase;
  background: var(--type-bg, #a6e3a133);
  color: var(--type-color, #a6e3a1);
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 10px;
}

.stdlib-detail-desc {
  color: var(--secondary-text, #a6adc8);
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.4;
}

.stdlib-detail-genre {
  color: var(--muted-color, #6c7086);
  margin-bottom: 8px;
  font-size: 11px;
}

.stdlib-label {
  color: var(--secondary-text, #9399b2);
  font-weight: 600;
}

.stdlib-detail-params {
  margin-bottom: 12px;
}

.stdlib-detail-params ul {
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.stdlib-detail-params li {
  font-family: JetBrains Mono, Fira Code, Monaco, Consolas, monospace;
  font-size: 11px;
}

.stdlib-detail-params .param-name {
  color: var(--param-name-color, #cdd6f4);
}

.stdlib-detail-params .param-value {
  color: var(--param-value-color, #fab387);
}

.stdlib-detail-params .param-more {
  color: var(--muted-color, #6c7086);
  font-style: italic;
}

.stdlib-detail-actions {
  gap: 8px;
  display: flex;
}

.stdlib-preview-btn, .stdlib-insert-btn {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  transition: all .15s;
}

.stdlib-preview-btn {
  background: var(--preview-btn-bg, #89b4fa);
  color: var(--preview-btn-color, #1e1e2e);
}

.stdlib-preview-btn:hover {
  background: var(--preview-btn-hover, #74a8f8);
}

.stdlib-preview-btn.playing {
  background: var(--stop-btn-bg, #f38ba8);
}

.stdlib-insert-btn {
  background: var(--insert-btn-bg, #a6e3a1);
  color: var(--insert-btn-color, #1e1e2e);
}

.stdlib-insert-btn:hover {
  background: var(--insert-btn-hover, #94e090);
}

.stdlib-tree::-webkit-scrollbar {
  width: 6px;
}

.stdlib-detail::-webkit-scrollbar {
  width: 6px;
}

.stdlib-tree::-webkit-scrollbar-track {
  background: none;
}

.stdlib-detail::-webkit-scrollbar-track {
  background: none;
}

.stdlib-tree::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb, #45475a);
  border-radius: 3px;
}

.stdlib-detail::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb, #45475a);
  border-radius: 3px;
}

[data-theme="light"] .stdlib-explorer {
  --panel-bg: #eff1f5;
  --border-color: #ccd0da;
  --input-bg: #e6e9ef;
  --text-color: #4c4f69;
  --secondary-text: #5c5f77;
  --muted-color: #7c7f93;
  --placeholder-color: #9ca0b0;
  --hover-bg: #8839ef1a;
  --selected-bg: #8839ef26;
  --count-bg: #0000000d;
  --detail-bg: #e6e9ef;
  --type-bg: #40a02b33;
  --type-color: #40a02b;
  --param-name-color: #4c4f69;
  --param-value-color: #fe640b;
  --preview-btn-bg: #1e66f5;
  --preview-btn-color: white;
  --preview-btn-hover: #2c71f5;
  --stop-btn-bg: #d20f39;
  --insert-btn-bg: #40a02b;
  --insert-btn-color: white;
  --insert-btn-hover: #369b26;
  --scrollbar-thumb: #bcc0cc;
  --accent-color: #8839ef;
}

.tutorial-panel {
  background: var(--panel-bg, #1e1e2e);
  border-left: 1px solid var(--border-color, #313244);
  flex-direction: column;
  height: 100%;
  display: flex;
}

.tutorial-header {
  border-bottom: 1px solid var(--border-color, #313244);
  padding: 16px;
}

.tutorial-title {
  color: var(--text-color, #cdd6f4);
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.tutorial-subtitle {
  color: var(--muted-color, #6c7086);
  margin: 4px 0 0;
  font-size: 12px;
}

.tutorial-tree {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
}

.tutorial-category {
  margin-bottom: 2px;
}

.tutorial-category-header {
  cursor: pointer;
  user-select: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  transition: background .1s;
  display: flex;
}

.tutorial-category-header:hover {
  background: var(--hover-bg, #cba6f71a);
}

.tutorial-chevron {
  color: var(--muted-color, #6c7086);
  font-size: 10px;
  transition: transform .15s;
}

.tutorial-category-header.expanded .tutorial-chevron {
  transform: rotate(90deg);
}

.tutorial-category-name {
  color: var(--text-color, #cdd6f4);
  font-size: 13px;
  font-weight: 600;
}

.tutorial-category-count {
  color: var(--muted-color, #6c7086);
  background: var(--count-bg, #ffffff0d);
  border-radius: 10px;
  margin-left: auto;
  padding: 2px 8px;
  font-size: 11px;
}

.tutorial-list {
  border-left: 1px solid var(--border-color, #313244);
  margin-left: 16px;
}

.tutorial-item {
  cursor: pointer;
  border-radius: 4px;
  margin: 2px 8px;
  padding: 10px 16px;
  transition: background .1s;
}

.tutorial-item:hover {
  background: var(--hover-bg, #cba6f714);
}

.tutorial-item.selected {
  background: var(--selected-bg, #cba6f726);
}

.tutorial-item.loaded {
  border-left: 2px solid var(--accent-color, #cba6f7);
  margin-left: 6px;
}

.tutorial-item-main {
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  display: flex;
}

.tutorial-item-title {
  color: var(--text-color, #cdd6f4);
  font-size: 13px;
}

.tutorial-item-loaded {
  text-transform: uppercase;
  background: var(--accent-color, #cba6f7);
  color: var(--panel-bg, #1e1e2e);
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 600;
}

.tutorial-item-meta {
  gap: 12px;
  font-size: 11px;
  display: flex;
}

.tutorial-difficulty {
  text-transform: capitalize;
}

.tutorial-duration {
  color: var(--muted-color, #6c7086);
}

.tutorial-detail {
  border-top: 1px solid var(--border-color, #313244);
  background: var(--detail-bg, #181825);
  padding: 16px;
}

.tutorial-detail-header {
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  display: flex;
}

.tutorial-detail-title {
  color: var(--text-color, #cdd6f4);
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.tutorial-detail-difficulty {
  text-transform: uppercase;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
}

.tutorial-detail-desc {
  color: var(--secondary-text, #a6adc8);
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
}

.tutorial-detail-meta {
  color: var(--muted-color, #6c7086);
  gap: 16px;
  margin-bottom: 16px;
  font-size: 12px;
  display: flex;
}

.meta-icon {
  margin-right: 4px;
}

.tutorial-load-btn {
  cursor: pointer;
  background: var(--accent-color, #cba6f7);
  width: 100%;
  color: var(--panel-bg, #1e1e2e);
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
}

.tutorial-load-btn:hover:not(:disabled) {
  background: var(--accent-hover, #b491e0);
  transform: translateY(-1px);
}

.tutorial-load-btn:disabled {
  background: var(--disabled-bg, #45475a);
  color: var(--disabled-color, #6c7086);
  cursor: not-allowed;
}

.tutorial-tree::-webkit-scrollbar {
  width: 6px;
}

.tutorial-tree::-webkit-scrollbar-track {
  background: none;
}

.tutorial-tree::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb, #45475a);
  border-radius: 3px;
}

[data-theme="light"] .tutorial-panel {
  --panel-bg: #eff1f5;
  --border-color: #ccd0da;
  --text-color: #4c4f69;
  --secondary-text: #5c5f77;
  --muted-color: #7c7f93;
  --hover-bg: #8839ef1a;
  --selected-bg: #8839ef1f;
  --count-bg: #0000000d;
  --detail-bg: #e6e9ef;
  --accent-color: #8839ef;
  --accent-hover: #7432d4;
  --disabled-bg: #ccd0da;
  --disabled-color: #9ca0b0;
  --scrollbar-thumb: #bcc0cc;
  --difficulty-beginner: #40a02b;
  --difficulty-intermediate: #df8e1d;
  --difficulty-advanced: #fe640b;
  --difficulty-expert: #d20f39;
}

.tips-widget {
  background: var(--tips-bg, #cba6f714);
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  padding: 10px 24px;
  transition: opacity .2s, transform .2s;
  display: flex;
}

.tips-widget.animating {
  opacity: 0;
  transform: translateY(4px);
}

.tips-icon {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
}

.tips-content {
  flex-wrap: wrap;
  flex: 1;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.tips-label {
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--accent-color, #cba6f7);
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
}

.tips-text {
  color: var(--text-color, #a6adc8);
  font-size: 12px;
  line-height: 1.4;
}

.tips-next {
  cursor: pointer;
  color: var(--muted-color, #6c7086);
  background: none;
  border: none;
  border-radius: 4px;
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 14px;
  transition: all .15s;
}

.tips-next:hover {
  background: var(--hover-bg, #cba6f726);
  color: var(--text-color, #cdd6f4);
}

.tips-next-icon {
  transition: transform .15s;
  display: inline-block;
}

.tips-next:hover .tips-next-icon {
  transform: translateX(2px);
}

@media (width <= 600px) {
  .tips-widget {
    flex-wrap: wrap;
    gap: 8px;
  }

  .tips-content {
    flex-direction: column;
    gap: 2px;
  }

  .tips-next {
    margin-left: auto;
  }
}

[data-theme="light"] .tips-widget {
  --tips-bg: #8839ef0f;
  --border-color: #ccd0da;
  --accent-color: #8839ef;
  --text-color: #5c5f77;
  --muted-color: #7c7f93;
  --hover-bg: #8839ef1a;
}

.shortcuts-backdrop {
  z-index: 1000;
  background: #0009;
  justify-content: center;
  align-items: center;
  animation: .15s ease-out backdropFadeIn;
  display: flex;
  position: fixed;
  inset: 0;
}

@keyframes backdropFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.shortcuts-modal {
  background: var(--modal-bg, #1e1e2e);
  border: 1px solid var(--border-color, #313244);
  border-radius: 12px;
  flex-direction: column;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  animation: .2s ease-out modalSlideIn;
  display: flex;
  box-shadow: 0 16px 48px #00000080;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px)scale(.95);
  }

  to {
    opacity: 1;
    transform: translateY(0)scale(1);
  }
}

.shortcuts-header {
  border-bottom: 1px solid var(--border-color, #313244);
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  display: flex;
}

.shortcuts-title {
  color: var(--text-color, #cdd6f4);
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.shortcuts-close {
  color: var(--muted-color, #6c7086);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 18px;
  transition: all .15s;
}

.shortcuts-close:hover {
  background: var(--hover-bg, #cba6f726);
  color: var(--text-color, #cdd6f4);
}

.shortcuts-content {
  flex: 1;
  padding: 16px 24px;
  overflow-y: auto;
}

.shortcuts-category {
  margin-bottom: 20px;
}

.shortcuts-category:last-child {
  margin-bottom: 0;
}

.shortcuts-category-title {
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--accent-color, #cba6f7);
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
}

.shortcuts-list {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.shortcuts-item {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  display: flex;
}

.shortcuts-keys {
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  display: flex;
}

.shortcuts-key {
  background: var(--key-bg, #313244);
  border: 1px solid var(--key-border, #45475a);
  color: var(--text-color, #cdd6f4);
  text-align: center;
  min-width: 28px;
  box-shadow: 0 2px 0 var(--key-shadow, #181825);
  border-radius: 4px;
  padding: 4px 8px;
  font-family: JetBrains Mono, Fira Code, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  display: inline-block;
}

.shortcuts-plus {
  color: var(--muted-color, #6c7086);
  font-size: 12px;
}

.shortcuts-desc {
  color: var(--secondary-text, #a6adc8);
  font-size: 13px;
}

.shortcuts-footer {
  border-top: 1px solid var(--border-color, #313244);
  text-align: center;
  padding: 12px 24px;
}

.shortcuts-hint {
  color: var(--muted-color, #6c7086);
  font-size: 11px;
}

.shortcuts-content::-webkit-scrollbar {
  width: 6px;
}

.shortcuts-content::-webkit-scrollbar-track {
  background: none;
}

.shortcuts-content::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb, #45475a);
  border-radius: 3px;
}

[data-theme="light"] .shortcuts-backdrop {
  background: #0006;
}

[data-theme="light"] .shortcuts-modal {
  --modal-bg: #eff1f5;
  --border-color: #ccd0da;
  --text-color: #4c4f69;
  --secondary-text: #5c5f77;
  --muted-color: #7c7f93;
  --hover-bg: #8839ef1a;
  --accent-color: #8839ef;
  --key-bg: #e6e9ef;
  --key-border: #bcc0cc;
  --key-shadow: #ccd0da;
  --scrollbar-thumb: #bcc0cc;
}

@media (width <= 640px) {
  .shortcuts-modal {
    width: 95%;
    max-height: 85vh;
    margin: 0 10px;
  }

  .shortcuts-header {
    padding: 14px 16px;
  }

  .shortcuts-title {
    font-size: 16px;
  }

  .shortcuts-content {
    padding: 12px 16px;
  }

  .shortcuts-category {
    margin-bottom: 16px;
  }

  .shortcuts-item {
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 0;
  }

  .shortcuts-desc {
    order: 2;
    width: 100%;
    padding-left: 0;
    font-size: 12px;
  }

  .shortcuts-key {
    min-width: 24px;
    padding: 3px 6px;
    font-size: 10px;
  }

  .shortcuts-footer {
    padding: 10px 16px;
  }

  .shortcuts-hint {
    font-size: 10px;
  }
}

:root {
  --color-bg: #f5f5f0;
  --color-bg-alt: #eaeae5;
  --color-bg-code: #e5e5e0;
  --color-text: #1a1a1a;
  --color-text-muted: #666;
  --color-accent: #ff6b35;
  --color-accent-hover: #ff8555;
  --color-accent-secondary: #7c3aed;
  --color-border: #d0d0c8;
  --color-success: #10b981;
  --color-terminal-bg: #1e1e1e;
  --color-terminal-text: #d4d4d4;
  --font-display: "VT323", ui-monospace, monospace;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-logo: "VT323", ui-monospace, monospace;
  --space-xs: .25rem;
  --space-sm: .5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 8rem;
  --max-width: 1200px;
  --border-radius: 4px;
  --transition-fast: .15s ease;
  --transition-normal: .3s ease;
  --shadow-sm: 0 1px 2px #0000000d;
  --shadow-md: 0 4px 6px #00000012;
  --shadow-lg: 0 10px 15px #0000001a;
  --shadow-retro: 4px 4px 0 var(--color-border);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0f0f0f;
    --color-bg-alt: #1a1a1a;
    --color-bg-code: #252525;
    --color-text: #f0f0f0;
    --color-text-muted: #a0a0a0;
    --color-accent: #ff8555;
    --color-accent-hover: #ff9f75;
    --color-border: #333;
    --color-terminal-bg: #0a0a0a;
    --color-terminal-text: #e0e0e0;
    --shadow-retro: 4px 4px 0 #222;
  }
}

[data-theme="light"] {
  --color-bg: #f5f5f0;
  --color-bg-alt: #eaeae5;
  --color-bg-code: #e5e5e0;
  --color-text: #1a1a1a;
  --color-text-muted: #666;
  --color-accent: #ff6b35;
  --color-accent-hover: #ff8555;
  --color-border: #d0d0c8;
  --color-terminal-bg: #1e1e1e;
  --color-terminal-text: #d4d4d4;
  --shadow-retro: 4px 4px 0 var(--color-border);
}

[data-theme="dark"] {
  --color-bg: #0f0f0f;
  --color-bg-alt: #1a1a1a;
  --color-bg-code: #252525;
  --color-text: #f0f0f0;
  --color-text-muted: #a0a0a0;
  --color-accent: #ff8555;
  --color-accent-hover: #ff9f75;
  --color-border: #333;
  --color-terminal-bg: #0a0a0a;
  --color-terminal-text: #e0e0e0;
  --shadow-retro: 4px 4px 0 #222;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: .02em;
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  max-width: 65ch;
}

a {
  color: var(--color-accent);
  transition: color var(--transition-fast);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

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

.container {
  max-width: var(--max-width);
  padding: 0 var(--space-lg);
  margin: 0 auto;
}

.text-muted {
  color: var(--color-text-muted);
}

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

.text-center {
  text-align: center;
}

.btn {
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-mono);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid #0000;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-retro);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: 6px 6px 0 var(--color-border);
  text-decoration: none;
  transform: translate(-2px, -2px);
}

.btn-secondary {
  color: var(--color-text);
  border-color: var(--color-border);
  background-color: #0000;
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

.code-block {
  background-color: var(--color-terminal-bg);
  color: var(--color-terminal-text);
  padding: var(--space-lg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-retro);
  font-size: .875rem;
  line-height: 1.7;
  overflow-x: auto;
}

.code-block code {
  white-space: pre;
  display: block;
}

.code-block .comment {
  color: #6a9955;
}

.code-block .keyword {
  color: #c586c0;
}

.code-block .string {
  color: #ce9178;
}

.code-block .number {
  color: #b5cea8;
}

.code-block .function {
  color: #dcdcaa;
}

.code-block .variable {
  color: #9cdcfe;
}

.code-block .operator {
  color: #d4d4d4;
}

.highlighted-code {
  white-space: pre;
  margin: 0;
}

.highlighted-code code {
  display: block;
}

.hl-comment {
  color: #6a9955;
  font-style: italic;
}

.hl-keyword {
  color: #c586c0;
}

.hl-string {
  color: #ce9178;
}

.hl-number {
  color: #b5cea8;
}

.hl-builtin, .hl-method {
  color: #dcdcaa;
}

.hl-identifier {
  color: #9cdcfe;
}

.hl-operator {
  color: #d4d4d4;
}

.hl-bracket {
  color: gold;
}

.hl-punctuation {
  color: #d4d4d4;
}

.card {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.grid {
  gap: var(--space-lg);
  display: grid;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

section {
  padding: var(--space-2xl) 0;
}

section:nth-child(2n) {
  background-color: var(--color-bg-alt);
}

.scanlines:after {
  content: "";
  pointer-events: none;
  background: repeating-linear-gradient(0deg, #0000, #0000 2px, #00000008 2px 4px);
  position: absolute;
  inset: 0;
}

.cursor-blink {
  animation: 1s infinite blink;
}

.fade-in {
  animation: .6s ease-out forwards fadeIn;
}

.stagger-1 {
  animation-delay: .1s;
}

.stagger-2 {
  animation-delay: .2s;
}

.stagger-3 {
  animation-delay: .3s;
}

.stagger-4 {
  animation-delay: .4s;
}

.stagger-5 {
  animation-delay: .5s;
}

.tag {
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--font-mono);
  background-color: var(--color-bg-code);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: .75rem;
  display: inline-block;
}

@media (width <= 768px) {
  section {
    padding: var(--space-xl) 0;
  }

  .container {
    padding: 0 var(--space-md);
  }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media print {
  body {
    color: #000;
    background: #fff;
  }
}
/*# sourceMappingURL=landing-page.9f367d21.css.map */
