:root {
  --bg: #0e1014;
  --surface: #151922;
  --surface-strong: #1e2430;
  --text: #f4f7fb;
  --muted: #a7b0c2;
  --line: rgba(244, 247, 251, 0.12);
  --green: #9ece6a;
  --blue: #7aa2f7;
  --rose: #f7768e;
  --amber: #e0af68;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(158, 206, 106, 0.14), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(122, 162, 247, 0.12), transparent 26rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

code {
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid transparent;
  background: rgba(14, 16, 20, 0.72);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(14, 16, 20, 0.9);
}

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

.brand img {
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.hero,
.section,
.site-footer {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(580px, 0.95fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 68px);
  min-height: calc(100svh - 72px);
  padding: 60px 0 46px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(4.3rem, 14vw, 9.5rem);
  line-height: 0.82;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.lead {
  max-width: 680px;
  color: #d8deea;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  border-color: transparent;
  background: var(--green);
  color: #10140d;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.05);
}

.hero-visual {
  min-width: 0;
}

.desktop-frame {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(158, 206, 106, 0.18), transparent 34%),
    linear-gradient(225deg, rgba(247, 118, 142, 0.16), transparent 36%),
    linear-gradient(160deg, #11131a, #1a1f29 54%, #101219);
  box-shadow: var(--shadow);
}

.bar {
  display: grid;
  grid-template-columns: repeat(3, 34px) 1fr auto;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.bar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.bar strong {
  justify-self: center;
  color: var(--text);
}

.window-grid {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 18px;
  padding: 24px;
}

.terminal-window,
.status-panel,
.feature-card,
.command-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 16, 20, 0.78);
}

.terminal-window {
  min-height: 330px;
  overflow: hidden;
}

.window-top {
  display: flex;
  gap: 7px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.window-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--rose);
}

.window-top span:nth-child(2) {
  background: var(--amber);
}

.window-top span:nth-child(3) {
  background: var(--green);
}

.terminal-window pre {
  margin: 0;
  padding: 26px;
  color: #d7f5b7;
  font-size: clamp(0.82rem, 1.5vw, 1rem);
  white-space: pre-wrap;
}

.status-panel {
  align-self: end;
  padding: 22px;
}

.status-panel p,
.feature-card p,
.section > p,
.install-copy p,
.site-footer p {
  color: var(--muted);
}

.section {
  padding: 82px 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) 1fr;
  gap: clamp(24px, 6vw, 70px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro p:last-child {
  margin: 0;
  font-size: 1.08rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 22px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(158, 206, 106, 0.14);
  color: var(--green);
  font-weight: 900;
}

.theme-layout,
.install {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 22px;
  align-items: start;
}

.theme-preview {
  overflow: hidden;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.preview-wall {
  min-height: 300px;
  background:
    linear-gradient(135deg, var(--theme-a, #9ece6a), transparent 42%),
    linear-gradient(315deg, var(--theme-b, #7aa2f7), transparent 44%),
    #151922;
}

.preview-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
}

.preview-card span {
  font-size: 1.4rem;
  font-weight: 900;
}

.preview-card small {
  color: var(--muted);
  font-size: 0.95rem;
}

.theme-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.theme-button,
.copy-button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.theme-button:hover,
.theme-button:focus-visible,
.theme-button.active {
  border-color: rgba(158, 206, 106, 0.7);
  background: rgba(158, 206, 106, 0.14);
}

.install {
  align-items: center;
  padding: 64px clamp(20px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(122, 162, 247, 0.13), rgba(158, 206, 106, 0.07)), var(--surface);
}

.code-block {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090b0f;
}

.copy-button {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.code-block pre {
  margin: 0;
  padding: 58px 22px 22px;
  overflow-x: auto;
  color: #d7f5b7;
}

.hero-install {
  width: min(100%, 660px);
  margin-top: 28px;
}

.hero-install pre {
  overflow: hidden;
  padding: 52px 88px 18px 18px;
  white-space: pre;
}

.hero-install code {
  display: block;
  font-size: 0.8rem;
  line-height: 1.4;
}

.command-list {
  display: grid;
  gap: 10px;
}

.command-list article {
  display: grid;
  grid-template-columns: minmax(190px, 0.35fr) 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
}

.command-list code {
  color: var(--green);
  font-weight: 800;
}

.command-list span {
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0 56px;
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: min(245px, 58vw);
  height: auto;
  border-radius: 8px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1120px) {
  .hero,
  .intro,
  .theme-layout,
  .install {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-install {
    width: 100%;
  }

  .hero-install pre {
    overflow-x: auto;
    white-space: pre;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.86rem;
  }

  .hero,
  .section,
  .site-footer {
    width: min(100% - 28px, 1280px);
  }

  .desktop-frame,
  .theme-preview {
    min-height: 360px;
  }

  .window-grid,
  .feature-grid,
  .theme-list,
  .command-list article,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .window-grid {
    padding: 14px;
  }

  .status-panel {
    align-self: stretch;
  }

  .section {
    padding: 58px 0;
  }

  .install {
    padding: 32px 18px;
  }
}
