/* ============================================================
   Punix v2 — homepage marketing styles.
   Idiom: Stripe/Linear/Vercel — quiet, design-system, no stickers.
   Numbered section prefixes instead of emoji.
   Scoped to .punix-home so it doesn't leak into doc pages.
   ============================================================ */

.md-typeset .punix-home h1.punix-h1-hidden { display: none; }

.punix-home {
  max-width: 64rem;
  margin: 0 auto;
}

/* ---------- HERO ---------------------------------------------- */

.punix-home .hero {
  text-align: center;
  padding: 4rem 1rem 4.5rem;
  margin: -1.6rem -0.8rem 4rem;
  border-bottom: 1px solid color-mix(in srgb, var(--md-default-fg-color) 8%, transparent);
}

.punix-home .hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 1rem;
  color: var(--md-default-fg-color);
}

.punix-home .hero h1 .accent {
  background: linear-gradient(
    135deg,
    var(--md-primary-fg-color),
    var(--md-accent-fg-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.punix-home .hero .tagline {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin: 0 auto 1rem;
  max-width: 36rem;
  color: var(--md-default-fg-color);
}

.punix-home .hero .sub {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--md-default-fg-color--light);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.punix-home .hero .cta {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.punix-home .hero .cta .md-button {
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
}

@media (max-width: 600px) {
  .punix-home .hero { padding: 2.5rem 1rem 3rem; }
  .punix-home .hero h1 { font-size: 2rem; }
  .punix-home .hero .tagline { font-size: 1.05rem; }
}

/* ---------- SECTION HEADLINES (numbered, left-aligned) -------- */

.punix-home .section {
  margin: 4rem 0;
}

.punix-home .section-num {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--md-code-font-family, monospace);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--md-accent-fg-color);
  margin-bottom: 0.5rem;
}

.punix-home .section-num .twemoji {
  /* twemoji wraps inline SVGs from :material-...: shortcodes */
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.punix-home .section-num .twemoji svg {
  width: 100%;
  height: 100%;
}

.punix-home .headline {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--md-default-fg-color);
}

.punix-home .headline-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--md-default-fg-color--light);
  max-width: 38rem;
  margin: 0 0 2rem;
}

@media (max-width: 600px) {
  .punix-home .headline { font-size: 1.375rem; }
  .punix-home .section { margin: 3rem 0; }
}

/* ---------- TWO-COLUMN FEATURE ROWS --------------------------- */

.punix-home .feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.punix-home .feature-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--md-default-fg-color--light);
}

.punix-home .feature-text p:first-child {
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--md-default-fg-color);
  font-weight: 500;
  line-height: 1.5;
}

.punix-home .feature-text .more {
  font-size: 0.875rem;
  margin-top: 1rem;
}

.punix-home .feature-text .more a {
  font-weight: 500;
}

.punix-home .feature.reverse { direction: rtl; }
.punix-home .feature.reverse > * { direction: ltr; }

@media (max-width: 800px) {
  .punix-home .feature {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .punix-home .feature.reverse { direction: ltr; }
}

/* ---------- TERMINAL WINDOW CHROME ---------------------------- */

.punix-home .terminal {
  background: #1a1b26;
  color: #c0caf5;
  border-radius: 0.5rem;
  font-family: var(--md-code-font-family, monospace);
  font-size: 0.8rem;
  line-height: 1.55;
  box-shadow:
    0 8px 24px -10px rgba(0, 0, 0, 0.3),
    0 2px 6px -2px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.punix-home .terminal-chrome {
  background: #0f1019;
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid #2a2b36;
}

.punix-home .terminal-chrome .dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
}
.punix-home .terminal-chrome .dot.red    { background: #ff5f57; }
.punix-home .terminal-chrome .dot.yellow { background: #febc2e; }
.punix-home .terminal-chrome .dot.green  { background: #28c840; }

.punix-home .terminal-chrome .title {
  margin-left: auto;
  margin-right: auto;
  color: #6b7280;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.punix-home .terminal-body {
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
  white-space: pre;
}

.punix-home .terminal .prompt { color: #7aa2f7; }
.punix-home .terminal .cmd    { color: #c0caf5; }
.punix-home .terminal .out    { color: #9ca3af; }
.punix-home .terminal .ok     { color: #9ece6a; }
.punix-home .terminal .arrow  { color: #bb9af7; }
.punix-home .terminal .num    { color: #e0af68; }

/* ---------- PCL CODE BLOCK ------------------------------------ */

.punix-home .pcl-block {
  background: #1a1b26;
  color: #c0caf5;
  border-radius: 0.5rem;
  font-family: var(--md-code-font-family, monospace);
  font-size: 0.8rem;
  line-height: 1.55;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  white-space: pre;
  box-shadow:
    0 8px 24px -10px rgba(0, 0, 0, 0.3),
    0 2px 6px -2px rgba(0, 0, 0, 0.15);
}

.punix-home .pcl-block .kw  { color: #bb9af7; }
.punix-home .pcl-block .id  { color: #7aa2f7; }
.punix-home .pcl-block .str { color: #9ece6a; }
.punix-home .pcl-block .op  { color: #c0caf5; }
.punix-home .pcl-block .cmt { color: #565f89; font-style: italic; }

/* ---------- COMPARE CARDS ------------------------------------- */

.punix-home .compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.punix-home .compare-card {
  display: block;
  background: var(--md-default-bg-color);
  border: 1px solid color-mix(in srgb, var(--md-default-fg-color) 10%, transparent);
  border-radius: 0.5rem;
  padding: 1rem 1.1rem;
}

.punix-home .compare-card .title {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--md-default-fg-color);
}

.punix-home .compare-card .desc {
  display: block;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--md-default-fg-color--light);
}

/* ---------- STATUS BAR ---------------------------------------- */

.punix-home .status-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 1rem;
  background: color-mix(in srgb, var(--md-accent-fg-color) 6%, var(--md-default-bg-color));
  border-radius: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--md-accent-fg-color) 15%, transparent);
  margin-bottom: 1rem;
}

.punix-home .status-item {
  display: block;
  text-align: center;
}

.punix-home .status-item .num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--md-accent-fg-color);
  font-variant-numeric: tabular-nums;
}

.punix-home .status-item .label {
  display: block;
  font-size: 0.75rem;
  color: var(--md-default-fg-color--light);
  margin-top: 0.35rem;
  letter-spacing: 0.02em;
}

/* ---------- READING-PATH CARDS -------------------------------- */

.punix-home .paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin: 0 0 4rem;
}

.punix-home .path-card {
  display: block;
  background: var(--md-default-bg-color);
  border: 1px solid color-mix(in srgb, var(--md-default-fg-color) 10%, transparent);
  border-radius: 0.5rem;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.punix-home .path-card:hover {
  transform: translateY(-2px);
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--md-accent-fg-color) 25%, transparent);
}

.punix-home .path-card .num {
  display: block;
  font-family: var(--md-code-font-family, monospace);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--md-accent-fg-color);
  margin-bottom: 0.25rem;
}

.punix-home .path-card .title {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--md-default-fg-color);
  letter-spacing: -0.01em;
}

.punix-home .path-card .desc {
  display: block;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--md-default-fg-color--light);
}
