:root {
  --bg: #09131c;
  --bg-alt: #0f1f2c;
  --card: rgba(16, 31, 45, 0.84);
  --card-strong: rgba(9, 23, 35, 0.95);
  --line: rgba(150, 194, 214, 0.18);
  --text: #f0f5f7;
  --muted: #a8bdc8;
  --teal: #5be0c2;
  --teal-deep: #198f85;
  --amber: #f0bb58;
  --amber-deep: #8a5a10;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(91, 224, 194, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(240, 187, 88, 0.12), transparent 24%),
    linear-gradient(160deg, #071019 0%, #0a1620 40%, #0d1c28 100%);
}

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

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  min-height: 72vh;
}

.hero-copy,
.hero-card,
.info-card,
.channel-card,
.tutorial-card,
.feature-strip,
.link-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-copy {
  padding: 40px;
}

.hero-card {
  padding: 18px;
  background: linear-gradient(180deg, rgba(15, 31, 44, 0.92), rgba(8, 20, 30, 0.96));
}

.hero-card img {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.35rem;
}

.lede,
.info-card p,
.channel-card p,
.tutorial-card p,
.feature-strip li,
.link-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.lede {
  margin: 18px 0 0;
  font-size: 1.06rem;
  max-width: 60ch;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--teal), #93f0dd);
  color: #082018;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button[aria-disabled="true"] {
  opacity: 0.72;
}

.quick-grid,
.channel-grid,
.tutorial-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.quick-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 36px;
}

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

.tutorial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.tutorial-card {
  padding: 24px;
}

.channel-section,
.tutorial-section,
.feature-strip,
.link-panel {
  margin-top: 24px;
}

.channel-card {
  padding: 24px;
}

.channel-card.stable {
  border-color: rgba(240, 187, 88, 0.34);
}

.channel-card.beta {
  border-color: rgba(91, 224, 194, 0.34);
}

.channel-top {
  min-height: 190px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.command-block {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: var(--card-strong);
  border: 1px solid var(--line);
}

.command-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: Consolas, "Courier New", monospace;
  color: #dbfff8;
  line-height: 1.7;
}

.section-heading {
  margin-bottom: 16px;
}

.feature-strip {
  padding: 28px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 26px;
  margin: 22px 0 0;
  padding-left: 18px;
}

.link-panel {
  padding: 28px;
}

.link-row.spread {
  justify-content: flex-start;
}

@media (max-width: 980px) {
  .hero,
  .quick-grid,
  .channel-grid,
  .tutorial-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding: 30px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 18px;
    padding-bottom: 40px;
  }

  .hero-copy,
  .hero-card,
  .info-card,
  .channel-card,
  .tutorial-card,
  .feature-strip,
  .link-panel {
    border-radius: 20px;
  }

  .hero-copy,
  .channel-card,
  .info-card,
  .tutorial-card,
  .feature-strip,
  .link-panel {
    padding: 20px;
  }
}
