:root {
  --bg: #100c16;
  --bg-elevated: rgba(28, 22, 39, 0.9);
  --bg-soft: rgba(247, 244, 255, 0.032);
  --panel-border: rgba(214, 201, 241, 0.08);
  --text-main: #fbf8ff;
  --text-secondary: #d7cde6;
  --text-muted: #9f96b5;
  --primary: #b999df;
  --primary-strong: #8c68c0;
  --accent: #e4d3ff;
  --success: #cdb7f0;
  --shadow: 0 22px 56px rgba(4, 2, 8, 0.46);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 999px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    sans-serif;
  background:
    radial-gradient(circle at top, rgba(130, 103, 173, 0.12), transparent 26%),
    radial-gradient(circle at 85% 16%, rgba(88, 67, 132, 0.08), transparent 20%),
    linear-gradient(180deg, #15111e 0%, #0d0a14 100%);
  color: var(--text-main);
  min-height: 100vh;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(calc(100% - 24px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: 28px 20px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(78, 61, 118, 0.2), rgba(48, 38, 78, 0.12)),
    rgba(30, 24, 43, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -70px -70px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(156, 123, 216, 0.16), transparent 72%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 240, 246, 0.05);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 220, 235, 0.06);
}

.hero__title {
  margin: 16px 0 10px;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.hero__subtitle {
  margin: 0;
  max-width: 680px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero__intro-line {
  margin: 18px 0 0;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.7;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero__meta li {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 245, 250, 0.04);
  color: var(--text-secondary);
  font-size: 13px;
  border: 1px solid rgba(255, 220, 235, 0.04);
}

.hero__side {
  display: none;
  position: relative;
  z-index: 1;
}

.hero__side-card {
  padding: 18px 16px;
  border: 1px solid rgba(222, 210, 245, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(247, 244, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.hero__side-label {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__side-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.hero__side-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.hero__side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero__side-tags span {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: rgba(185, 153, 223, 0.1);
  color: var(--accent);
  font-size: 12px;
}

.main-content {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.panel {
  padding: 20px 18px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(28, 22, 39, 0.96), rgba(18, 14, 28, 0.96));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panel--accent {
  background:
    linear-gradient(145deg, rgba(95, 71, 142, 0.14), rgba(49, 38, 77, 0.1)),
    linear-gradient(180deg, rgba(31, 24, 42, 0.96), rgba(20, 15, 31, 0.96));
}

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

.section-heading__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 14px;
}

.category-lead {
  margin: -2px 0 14px;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.7;
}

.starter-grid,
.category-grid,
.content-list,
.funnel-grid,
.cta-grid,
.principles-list {
  display: grid;
  gap: 12px;
}

.starter-card,
.category-card,
.content-card,
.funnel-card,
.cta-card,
.principle-item {
  padding: 16px 15px;
  border: 1px solid rgba(222, 210, 245, 0.06);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(247, 244, 255, 0.03), rgba(255, 255, 255, 0.018));
}

.category-card {
  position: relative;
  overflow: hidden;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -26px auto;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(185, 153, 223, 0.1), transparent 72%);
  pointer-events: none;
}

.starter-card__top,
.category-card__header,
.content-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.starter-card h3,
.category-card h3,
.content-card h3,
.funnel-card h3,
.cta-card h3,
.principle-item h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.starter-card p,
.category-card p,
.content-card p,
.funnel-card p,
.cta-card p,
.principle-item p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 14px;
}

.category-card__mood {
  margin: -2px 0 12px;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.4;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.button:active {
  transform: scale(0.98);
}

.button--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #1a1227;
  box-shadow: 0 8px 18px rgba(140, 104, 192, 0.2);
}

.button--ghost {
  border: 1px solid rgba(255, 225, 238, 0.1);
  background: rgba(255, 245, 250, 0.03);
  color: var(--text-main);
}

.button--secondary {
  margin-top: 14px;
  background: rgba(255, 245, 250, 0.05);
  color: var(--text-main);
}

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 243, 248, 0.05);
  color: var(--text-main);
  font-size: 12px;
}

.pill--accent {
  color: var(--success);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(185, 153, 223, 0.12);
  color: #e5d5ff;
  font-size: 12px;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.content-card__date,
.content-card__duration {
  color: var(--text-muted);
  font-size: 13px;
}

.content-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 12px;
}

.funnel-card {
  position: relative;
  overflow: hidden;
  background: rgba(247, 244, 255, 0.03);
}

.funnel-card__index {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.cta-grid {
  margin-top: 18px;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin-top: -2px;
  padding: 4px 4px 0;
}

.footer-cta__text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.footer-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button--small {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}

.footer {
  margin-top: 14px;
  padding: 18px 14px 8px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
}

@media (min-width: 720px) {
  .app-shell {
    width: min(calc(100% - 40px), var(--max-width));
    padding-top: 30px;
  }

  .hero {
    padding: 34px 30px;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    align-items: stretch;
  }

  .hero__title {
    font-size: 52px;
  }

  .hero__side {
    display: flex;
  }

  .hero__side-card {
    width: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .panel {
    padding: 28px 24px;
  }

  .starter-grid,
  .cta-grid,
  .principles-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid,
  .content-list,
  .funnel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .starter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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