:root {
  --bg: #f4eee6;
  --panel: rgba(255, 252, 248, 0.84);
  --panel-strong: #fff9f2;
  --ink: #1c1612;
  --muted: #67594c;
  --accent: #b0463c;
  --accent-soft: #e7b88f;
  --teal: #5c7687;
  --line: rgba(28, 22, 18, 0.1);
  --shadow: 0 24px 60px rgba(78, 47, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(176, 70, 60, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 70, 60, 0.04) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(231, 184, 143, 0.55), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(92, 118, 135, 0.18), transparent 24%),
    linear-gradient(180deg, #f8f3ec 0%, #f1e8dc 52%, #ede0d2 100%);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.lang-float {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
  display: inline-flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 250, 245, 0.42);
  border-radius: 999px;
  background: rgba(33, 24, 19, 0.58);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 32px rgba(31, 20, 14, 0.18);
}

.lang-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: rgba(255, 246, 238, 0.72);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-chip.is-active {
  background: rgba(255, 247, 240, 0.96);
  color: #3f241b;
}

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

.landing,
.hero,
.two-col,
.spotlight,
.roadmap,
.workflow,
.commands-section {
  display: grid;
  gap: 24px;
}

.landing {
  position: relative;
  min-height: 100vh;
  align-items: end;
  padding: 32px;
  background: #091321;
  overflow: hidden;
}

.landing-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 16, 29, 0.18) 0%, rgba(8, 12, 22, 0.28) 42%, rgba(7, 10, 19, 0.62) 100%),
    url("./persona-landing-stars.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.landing-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 76% 26%, rgba(255, 223, 152, 0.12), transparent 16%),
    linear-gradient(90deg, rgba(6, 11, 20, 0.34) 0%, rgba(6, 11, 20, 0.16) 34%, rgba(6, 11, 20, 0.04) 100%);
}

.landing-copy {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  color: #f4f8ff;
}

.landing-copy h1 {
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-shadow: 0 14px 34px rgba(4, 9, 16, 0.3);
  max-width: 10ch;
}

.landing-kicker {
  margin: 0 0 14px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(236, 243, 255, 0.86);
}

.landing-quote {
  max-width: 26ch;
  margin: 24px 0 0;
  font-size: clamp(1.22rem, 2.2vw, 1.68rem);
  line-height: 1.45;
  color: rgba(248, 251, 255, 0.98);
  text-wrap: balance;
}

.landing-subquote {
  max-width: 58ch;
  margin: 16px 0 0;
  color: rgba(222, 231, 245, 0.88);
  font-size: 1rem;
}

.landing-button {
  margin-top: 26px;
  box-shadow: 0 12px 28px rgba(7, 12, 21, 0.2);
}

.visual-interlude {
  display: grid;
  gap: 18px;
  margin-bottom: 34px;
}

.visual-copy {
  max-width: 68ch;
}

.visual-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: rgba(248, 250, 255, 0.72);
}

.visual-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  align-items: stretch;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(231, 184, 143, 0.24), transparent 22%),
    linear-gradient(
      118deg,
      rgba(255, 249, 241, 0.97) 0%,
      rgba(255, 246, 236, 0.95) 44%,
      rgba(255, 243, 231, 0.9) 100%
    );
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 24px 20px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(92, 118, 135, 0.14) 0 24%, transparent 25%),
    radial-gradient(circle at center, transparent 0 38%, rgba(176, 70, 60, 0.1) 39% 43%, transparent 44%),
    radial-gradient(circle at center, transparent 0 56%, rgba(231, 184, 143, 0.16) 57% 61%, transparent 62%);
  filter: blur(0.4px);
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-copy h1,
.section-copy h2 {
  margin: 0;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  max-width: 10ch;
}

.lede {
  max-width: 58ch;
  font-size: 1.06rem;
  color: var(--muted);
}

.eyebrow,
.section-tag,
.card-kicker {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

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

.icon-links {
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  background: var(--teal);
  color: #f7fbfc;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(176, 70, 60, 0.18);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(176, 70, 60, 0.18);
  background: rgba(255, 253, 248, 0.82);
  color: #20303e;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(17, 24, 34, 0.08);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.icon-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 252, 246, 0.96);
  border-color: rgba(176, 70, 60, 0.34);
}

.icon-link svg {
  width: 24px;
  height: 24px;
  display: block;
}

.icon-link.is-hf {
  font-size: 1.45rem;
}

.icon-link.is-example {
  color: var(--accent);
}

.icon-emoji {
  line-height: 1;
}

.hero-panel,
.status-card,
.info-card,
.code-card,
.link-card,
.timeline article,
.command-card,
.step-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(10px);
}

.hero-panel {
  display: flex;
  align-items: stretch;
}

.status-card {
  width: 100%;
  padding: 22px;
  background:
    linear-gradient(160deg, rgba(74, 92, 110, 0.96), rgba(54, 64, 78, 0.92)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08));
  color: #f4fbfd;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 18px;
}

.label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
}

.status-grid strong {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.microcopy {
  margin: 0;
  opacity: 0.84;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 34px;
}

.stats article {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.8);
}

.stat-value {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.two-col {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  margin-bottom: 34px;
}

.section-copy p:last-child {
  color: var(--muted);
}

.card-grid,
.links-grid,
.commands-grid,
.step-grid {
  display: grid;
  gap: 16px;
}

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

.info-card,
.command-card,
.step-card,
.link-card,
.timeline article,
.code-card {
  padding: 20px;
}

.info-card h3,
.link-card h3,
.step-card strong {
  margin: 0 0 8px;
}

.workflow {
  margin-bottom: 34px;
}

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

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

.step-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-soft));
}

.step-index {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.spotlight {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-bottom: 34px;
}

.code-card {
  background: linear-gradient(180deg, rgba(18, 25, 33, 0.96), rgba(25, 34, 45, 0.94));
  color: #eef5f8;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.95rem;
}

.commands-section {
  margin-bottom: 34px;
}

.command-card code {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--teal);
}

.command-card p,
.step-card p,
.timeline p {
  margin: 10px 0 0;
  color: var(--muted);
}

.links-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 34px;
}

.link-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.link-card li + li {
  margin-top: 6px;
}

.roadmap {
  margin-bottom: 34px;
}

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

@media (max-width: 1080px) {
  .landing {
    min-height: 92vh;
  }

  .hero,
  .two-col,
  .spotlight {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .page-shell {
    width: min(100%, calc(100% - 20px));
    padding-top: 20px;
  }

  .landing {
    padding: 88px 18px 26px;
  }

  .landing-copy h1 {
    font-size: clamp(2.8rem, 16vw, 4.2rem);
  }

  .landing-quote {
    max-width: none;
    font-size: 1.08rem;
  }

  .hero {
    padding: 22px;
    border-radius: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 16vw, 4rem);
  }

  .stats,
  .card-grid,
  .commands-grid,
  .links-grid,
  .step-grid,
  .timeline,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .lang-float {
    left: 10px;
    right: 10px;
    justify-content: center;
  }
}
