:root {
  --bg: #f6f4ec;
  --bg-strong: #ece6d6;
  --text: #1f2a2f;
  --muted: #5f6a6f;
  --accent: #0f8a7b;
  --accent-strong: #0a6f63;
  --warm: #d77f1e;
  --card: rgba(255, 255, 255, 0.82);
  --border: rgba(31, 42, 47, 0.12);
  --shadow: 0 20px 40px rgba(20, 33, 40, 0.12);
  --radius-lg: 22px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
}

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 8%, rgba(215, 127, 30, 0.18), transparent 34%),
    radial-gradient(circle at 85% 14%, rgba(15, 138, 123, 0.18), transparent 38%),
    linear-gradient(155deg, #f6f4ec 0%, #f0ede3 48%, #f8f4ea 100%);
}

.topbar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 20px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(15, 138, 123, 0.25);
  object-fit: cover;
}

.link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

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

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 14px rgba(20, 33, 40, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.github-link:hover {
  border-color: rgba(15, 138, 123, 0.4);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 9px 18px rgba(20, 33, 40, 0.12);
  transform: translateY(-1px);
}

.github-icon {
  width: 16px;
  height: 16px;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.hero {
  padding: 50px 0 34px;
}

.tag {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: rgba(15, 138, 123, 0.12);
  padding: 7px 11px;
  border-radius: 999px;
  margin: 0 0 14px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  max-width: 760px;
  letter-spacing: -0.02em;
}

.lead {
  margin: 16px 0 0;
  max-width: 700px;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--muted);
}

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

.hero-preview-media {
  margin-top: 28px;
  width: 100%;
  max-width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 42, 47, 0.12);
  background: #0f1114;
  box-shadow: 0 22px 44px rgba(20, 33, 40, 0.16);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.btn {
  text-decoration: none;
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font: 500 0.95rem/1 "Space Grotesk", sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
}

.btn-secondary {
  color: #fff;
  background: linear-gradient(135deg, var(--warm), #b86b17);
  margin-top: 8px;
}

.install,
.how,
.faq {
  margin-top: 30px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.cards {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.77);
  padding: 16px;
}

.card-featured {
  border-color: rgba(15, 138, 123, 0.35);
  box-shadow: 0 16px 26px rgba(15, 138, 123, 0.12);
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.card h3 {
  font-size: 1.08rem;
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.pill {
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(15, 138, 123, 0.14);
  color: var(--accent-strong);
}

.pill.subtle {
  background: rgba(31, 42, 47, 0.08);
  color: var(--muted);
}

.code-wrap {
  margin-top: 14px;
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.code-wrap code,
.code-stack code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.83rem;
}

.code-wrap code {
  flex: 1;
  background: #faf8f2;
  padding: 12px;
  overflow-x: auto;
}

.copy-btn {
  border: 0;
  border-left: 1px solid var(--border);
  background: #f0ede3;
  padding: 0 12px;
  font: 500 0.8rem/1 "Space Grotesk", sans-serif;
  cursor: pointer;
}

.copy-btn:hover {
  background: #e7e2d5;
}

.meta {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.code-stack {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.code-stack code {
  display: block;
  padding: 10px;
  border-radius: 8px;
  background: #faf8f2;
  border: 1px solid var(--border);
  overflow-x: auto;
}

.release-note {
  margin-top: 12px;
}

.first-launch-note {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(31, 42, 47, 0.18);
  background:
    radial-gradient(circle at 12% 0%, rgba(215, 127, 30, 0.16), transparent 36%),
    linear-gradient(145deg, rgba(24, 26, 30, 0.94), rgba(12, 14, 17, 0.95));
  box-shadow: 0 16px 30px rgba(10, 12, 16, 0.28);
  color: #f5f7fa;
}

.first-launch-note h3 {
  font-size: 1.2rem;
}

.first-launch-note p {
  margin: 10px 0 0;
  color: rgba(236, 240, 245, 0.8);
}

.first-launch-code {
  margin-top: 12px;
  border-color: rgba(129, 156, 185, 0.25);
}

.first-launch-code code {
  background: rgba(5, 8, 12, 0.95);
  color: #82b6ff;
}

.first-launch-code .copy-btn {
  border-left-color: rgba(129, 156, 185, 0.25);
  background: rgba(19, 23, 30, 0.92);
  color: rgba(235, 242, 251, 0.9);
}

.first-launch-code .copy-btn:hover {
  background: rgba(30, 36, 46, 0.95);
}

.first-launch-help code {
  color: #9cc2ff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.how {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  align-items: start;
}

.how p {
  margin: 9px 0 0;
  color: var(--muted);
}

.how-grid {
  display: grid;
  gap: 12px;
}

.how-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.how-item h4 {
  font-size: 0.95rem;
}

.how-item p {
  margin-top: 7px;
  font-size: 0.9rem;
}

.faq details {
  border-top: 1px dashed var(--border);
  padding: 12px 0;
}

.faq details:first-of-type {
  margin-top: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
}

.faq p {
  margin: 8px 0 0;
  color: var(--muted);
}

.faq code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(31, 42, 47, 0.08);
  color: #25333a;
}

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 30px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: inline-flex;
  gap: 12px;
}

.footer a {
  color: inherit;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.6s ease forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 0.09s;
}

.reveal:nth-of-type(3) {
  animation-delay: 0.16s;
}

.reveal:nth-of-type(4) {
  animation-delay: 0.23s;
}

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

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

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

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