/* ═══════════════════════════════════════════════════════════════
   StellarMinds Landing — dark cosmic theme + motion
   ═══════════════════════════════════════════════════════════════ */

:root {
  --sm-bg: #050814;
  --sm-bg-elevated: #0b1020;
  --sm-surface: rgba(18, 24, 48, 0.72);
  --sm-border: rgba(120, 160, 255, 0.18);
  --sm-text: #e8ecf8;
  --sm-muted: #9aa6c3;
  --sm-cyan: #5eead4;
  --sm-violet: #a78bfa;
  --sm-blue: #60a5fa;
  --sm-pink: #f472b6;
  --sm-gradient: linear-gradient(135deg, #5eead4 0%, #60a5fa 45%, #a78bfa 100%);
  --sm-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --sm-radius: 1.25rem;
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

.landing-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--sm-text);
  background: var(--sm-bg);
  overflow-x: hidden;
}

.landing-body a {
  text-decoration: none;
}

/* ── Stars canvas / ambient ─────────────────────────────────── */

.stars-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(160, 200, 255, 0.8), transparent),
    radial-gradient(1px 1px at 40% 90%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 10% 60%, rgba(200, 180, 255, 0.6), transparent),
    radial-gradient(1.2px 1.2px at 90% 50%, rgba(255, 255, 255, 0.55), transparent);
  background-size: 100% 100%;
  animation: twinkle 8s ease-in-out infinite alternate;
  opacity: 0.55;
}

@keyframes twinkle {
  from { opacity: 0.35; }
  to { opacity: 0.7; }
}

/* ── Navigation ─────────────────────────────────────────────── */

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.landing-nav.scrolled {
  background: rgba(5, 8, 20, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--sm-border);
}

.landing-nav .nav-inner {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--sm-text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-orb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sm-gradient);
  box-shadow: 0 0 24px rgba(94, 234, 212, 0.45);
  animation: pulse-orb 3s ease-in-out infinite;
  position: relative;
}

.brand-orb::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--sm-bg);
  opacity: 0.35;
}

@keyframes pulse-orb {
  0%, 100% { transform: scale(1); box-shadow: 0 0 18px rgba(94, 234, 212, 0.4); }
  50% { transform: scale(1.06); box-shadow: 0 0 32px rgba(167, 139, 250, 0.55); }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--sm-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--sm-gradient);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--sm-text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
}

/* ── Buttons ────────────────────────────────────────────────── */

.btn-sm-ghost,
.btn-sm-primary,
.btn-sm-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.35rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.2s ease;
}

.btn-sm-ghost {
  background: transparent;
  color: var(--sm-text);
  border: 1px solid transparent;
}

.btn-sm-ghost:hover {
  color: var(--sm-cyan);
}

.btn-sm-outline {
  background: transparent;
  color: var(--sm-text);
  border: 1px solid rgba(160, 190, 255, 0.35);
}

.btn-sm-outline:hover {
  border-color: var(--sm-cyan);
  color: var(--sm-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(94, 234, 212, 0.15);
}

.btn-sm-primary {
  background: var(--sm-gradient);
  color: #061018;
  box-shadow: 0 8px 28px rgba(96, 165, 250, 0.35);
}

.btn-sm-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 36px rgba(167, 139, 250, 0.45);
  color: #02040a;
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
}

/* ── Hero ───────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: hero-kenburns 18s ease-in-out infinite alternate;
}

@keyframes hero-kenburns {
  from { transform: scale(1.05) translate(0, 0); }
  to { transform: scale(1.14) translate(-1.5%, -1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 20, 0.55) 0%, rgba(5, 8, 20, 0.72) 45%, rgba(5, 8, 20, 0.96) 100%),
    radial-gradient(ellipse at 50% 20%, rgba(96, 165, 250, 0.18), transparent 55%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.1);
  border: 1px solid rgba(94, 234, 212, 0.3);
  color: var(--sm-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fade-up 0.8s ease both;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sm-cyan);
  box-shadow: 0 0 10px var(--sm-cyan);
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  animation: fade-up 0.9s 0.1s ease both;
}

.hero h1 .gradient-text {
  background: var(--sm-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--sm-muted);
  line-height: 1.65;
  animation: fade-up 1s 0.2s ease both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  animation: fade-up 1s 0.3s ease both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 720px;
  margin: 3.5rem auto 0;
  animation: fade-up 1s 0.45s ease both;
}

.stat-card {
  padding: 1.1rem 0.75rem;
  border-radius: var(--sm-radius);
  background: rgba(12, 18, 40, 0.55);
  border: 1px solid var(--sm-border);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 234, 212, 0.4);
}

.stat-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  background: var(--sm-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.25rem;
}

.stat-card span {
  font-size: 0.85rem;
  color: var(--sm-muted);
}

.scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--sm-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounce-soft 2.2s ease-in-out infinite;
}

.scroll-hint .mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(160, 190, 255, 0.4);
  border-radius: 12px;
  position: relative;
}

.scroll-hint .mouse::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--sm-cyan);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

@keyframes bounce-soft {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Sections ───────────────────────────────────────────────── */

.section {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0;
}

.section-inner {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-kicker {
  display: inline-block;
  color: var(--sm-cyan);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
}

.section-header p {
  margin: 0;
  color: var(--sm-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Features grid ──────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  position: relative;
  border-radius: var(--sm-radius);
  overflow: hidden;
  background: var(--sm-surface);
  border: 1px solid var(--sm-border);
  box-shadow: var(--sm-shadow);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: rgba(94, 234, 212, 0.4);
  box-shadow: 0 28px 60px rgba(80, 120, 255, 0.2);
}

.feature-card .card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.feature-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature-card:hover .card-media img {
  transform: scale(1.08);
}

.feature-card .card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 8, 20, 0.85) 100%);
}

.feature-card .card-body {
  padding: 1.35rem 1.4rem 1.6rem;
}

.feature-card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(94, 234, 212, 0.12);
  color: var(--sm-cyan);
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.feature-card p {
  margin: 0;
  color: var(--sm-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ── Showcase split ─────────────────────────────────────────── */

.showcase {
  background:
    radial-gradient(ellipse at 10% 50%, rgba(96, 165, 250, 0.08), transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(167, 139, 250, 0.1), transparent 45%);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

.showcase-video-wrap {
  position: relative;
  border-radius: calc(var(--sm-radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--sm-border);
  box-shadow: var(--sm-shadow);
  aspect-ratio: 16 / 10;
  background: #000;
}

.showcase-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-video-wrap .glow-ring {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.5), transparent 40%, rgba(167, 139, 250, 0.5));
  opacity: 0.5;
  z-index: 1;
  mix-blend-mode: screen;
  animation: rotate-glow 8s linear infinite;
}

@keyframes rotate-glow {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}

.showcase-copy h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.showcase-copy > p {
  color: var(--sm-muted);
  line-height: 1.65;
  margin: 0 0 1.5rem;
}

.check-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--sm-text);
  font-size: 0.98rem;
  line-height: 1.45;
}

.check-list .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(94, 234, 212, 0.15);
  color: var(--sm-cyan);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  margin-top: 1px;
}

/* ── Roles ──────────────────────────────────────────────────── */

.roles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .roles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.role-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--sm-radius);
  background: linear-gradient(160deg, rgba(20, 28, 56, 0.9), rgba(10, 14, 28, 0.95));
  border: 1px solid var(--sm-border);
  transition: transform 0.35s ease, border-color 0.3s ease;
  height: 100%;
}

.role-card:hover {
  transform: translateY(-6px);
  border-color: rgba(167, 139, 250, 0.45);
}

.role-card .role-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.role-card.admin .role-tag {
  background: rgba(244, 114, 182, 0.15);
  color: var(--sm-pink);
}

.role-card.coord .role-tag {
  background: rgba(96, 165, 250, 0.15);
  color: var(--sm-blue);
}

.role-card.socio .role-tag {
  background: rgba(94, 234, 212, 0.15);
  color: var(--sm-cyan);
}

.role-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  margin: 0 0 0.65rem;
}

.role-card p {
  margin: 0;
  color: var(--sm-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ── Tech strip ─────────────────────────────────────────────── */

.tech-strip {
  padding: 2.5rem 0;
  border-top: 1px solid var(--sm-border);
  border-bottom: 1px solid var(--sm-border);
  background: rgba(8, 12, 28, 0.6);
  overflow: hidden;
}

.tech-marquee {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.tech-marquee span {
  color: var(--sm-muted);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0.85;
}

.tech-marquee span::before {
  content: "✦";
  margin-right: 2.5rem;
  color: var(--sm-violet);
  opacity: 0.6;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Proyecto ───────────────────────────────────────────────── */

.project-section {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(94, 234, 212, 0.06), transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(167, 139, 250, 0.08), transparent 45%);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  padding: 1.6rem 1.5rem;
  border-radius: var(--sm-radius);
  background: linear-gradient(160deg, rgba(20, 28, 56, 0.9), rgba(10, 14, 28, 0.95));
  border: 1px solid var(--sm-border);
  transition: transform 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 234, 212, 0.35);
}

.project-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  margin: 0 0 0.65rem;
  color: var(--sm-text);
}

.project-card p {
  margin: 0;
  color: var(--sm-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-card strong {
  color: var(--sm-text);
  font-weight: 600;
}

.project-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--sm-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.project-list li + li {
  margin-top: 0.35rem;
}

/* ── Repositorio estilo GitHub ──────────────────────────────── */

.repo-section {
  padding-bottom: 2rem;
}

.gh-repo-card {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #30363d;
  background: #0d1117;
  color: #e6edf3;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.gh-repo-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem 0.75rem;
  border-bottom: 1px solid #21262d;
}

.gh-repo-title {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}

.gh-icon {
  flex-shrink: 0;
  margin-top: 4px;
  color: #8b949e;
}

.gh-repo-name-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.4rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.gh-owner {
  color: #2f81f7;
  font-weight: 400;
}

.gh-owner:hover,
.gh-name:hover {
  text-decoration: underline;
  color: #2f81f7;
}

.gh-sep {
  color: #8b949e;
  font-weight: 300;
}

.gh-name {
  color: #2f81f7;
  font-weight: 600;
}

.gh-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 0.5rem;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #30363d;
  color: #8b949e;
  font-size: 12px;
  font-weight: 500;
  margin-left: 0.25rem;
}

.gh-repo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #30363d;
  background: #21262d;
  color: #c9d1d9;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.gh-btn:hover {
  background: #30363d;
  border-color: #8b949e;
  color: #e6edf3;
}

.gh-btn-primary {
  background: #238636;
  border-color: rgba(240, 246, 252, 0.1);
  color: #fff;
}

.gh-btn-primary:hover {
  background: #2ea043;
  border-color: rgba(240, 246, 252, 0.1);
  color: #fff;
}

.gh-description {
  margin: 0;
  padding: 0.85rem 1.35rem 0.5rem;
  color: #8b949e;
  font-size: 14px;
}

.gh-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  padding: 0.5rem 1.35rem 1rem;
  color: #8b949e;
  font-size: 12px;
  align-items: center;
}

.gh-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.gh-meta-item code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(110, 118, 129, 0.2);
  color: #e6edf3;
}

.gh-lang-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.gh-lang-bar {
  display: flex;
  height: 8px;
  margin: 0 1.35rem;
  border-radius: 999px;
  overflow: hidden;
  background: #21262d;
}

.gh-lang-seg {
  display: block;
  height: 100%;
  min-width: 2px;
}

.gh-lang-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0.75rem 1.35rem 1.15rem;
  color: #8b949e;
  font-size: 12px;
}

.gh-lang-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.gh-lang-legend em {
  font-style: normal;
  color: #e6edf3;
  font-weight: 600;
}

.gh-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid #21262d;
}

@media (min-width: 900px) {
  .gh-body-grid {
    grid-template-columns: 280px 1fr;
  }

  .gh-about {
    border-right: 1px solid #21262d;
  }
}

.gh-about {
  padding: 1.15rem 1.25rem 1.35rem;
  background: rgba(13, 17, 23, 0.6);
}

.gh-about h3 {
  margin: 0 0 0.65rem;
  font-size: 14px;
  font-weight: 600;
  color: #e6edf3;
  font-family: inherit;
}

.gh-about > p {
  margin: 0 0 0.85rem;
  color: #8b949e;
  font-size: 13px;
  line-height: 1.5;
}

.gh-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #2f81f7;
  font-size: 13px;
  word-break: break-all;
  margin-bottom: 0.85rem;
}

.gh-link:hover {
  text-decoration: underline;
  color: #2f81f7;
}

.gh-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.gh-topic {
  display: inline-flex;
  padding: 0 0.55rem;
  height: 22px;
  align-items: center;
  border-radius: 999px;
  background: rgba(56, 139, 253, 0.15);
  color: #2f81f7;
  font-size: 12px;
  font-weight: 500;
}

.gh-about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid #21262d;
}

.gh-about-stats dt {
  font-size: 11px;
  color: #8b949e;
  margin: 0 0 0.15rem;
  font-weight: 400;
}

.gh-about-stats dd {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #e6edf3;
}

.gh-files {
  min-width: 0;
}

.gh-files-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  background: #161b22;
  border-bottom: 1px solid #21262d;
  color: #e6edf3;
  font-size: 13px;
}

.gh-files-header span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.gh-files-header code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: #e6edf3;
}

.gh-commit-hint {
  color: #8b949e !important;
  font-size: 12px !important;
}

.gh-file-tree {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gh-file-tree li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 0.55rem;
  row-gap: 0.1rem;
  align-items: center;
  padding: 0.55rem 1.15rem;
  border-bottom: 1px solid #21262d;
  font-size: 13px;
}

@media (min-width: 640px) {
  .gh-file-tree li {
    grid-template-columns: 18px minmax(140px, 0.9fr) 1.4fr;
  }
}

.gh-file-tree li:hover {
  background: rgba(56, 139, 253, 0.06);
}

.gh-file-icon {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  display: block;
}

.gh-file-icon.folder {
  background: linear-gradient(135deg, #54aeff, #218bff);
  clip-path: polygon(0 20%, 40% 20%, 48% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.9;
}

.gh-file-icon.file {
  background: #8b949e;
  opacity: 0.55;
  border-radius: 2px;
  height: 14px;
  margin-top: 1px;
}

.gh-file-name {
  color: #2f81f7;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-file-desc {
  grid-column: 2 / -1;
  color: #8b949e;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .gh-file-desc {
    grid-column: auto;
  }
}

.gh-readme {
  margin: 1rem 1.15rem 1.25rem;
  border: 1px solid #30363d;
  border-radius: 6px;
  overflow: hidden;
}

.gh-readme-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  background: #161b22;
  border-bottom: 1px solid #21262d;
  font-size: 13px;
  font-weight: 600;
  color: #e6edf3;
}

.gh-readme-body {
  padding: 1rem 1.1rem 1.15rem;
}

.gh-readme-body h4 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid #21262d;
  padding-bottom: 0.5rem;
  color: #e6edf3;
  font-family: inherit;
}

.gh-readme-body p {
  margin: 0 0 0.75rem;
  color: #c9d1d9;
  font-size: 13.5px;
  line-height: 1.6;
}

.gh-readme-body p:last-child {
  margin-bottom: 0;
}

.gh-readme-stack {
  color: #8b949e !important;
  font-size: 13px !important;
}

.gh-readme-stack strong {
  color: #e6edf3;
}

/* ── CTA final ──────────────────────────────────────────────── */

.cta-section {
  padding: 5rem 0 6rem;
}

.cta-panel {
  position: relative;
  width: min(1000px, 92%);
  margin: 0 auto;
  padding: 3.5rem 2rem;
  border-radius: calc(var(--sm-radius) + 8px);
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(120, 160, 255, 0.25);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(96, 165, 250, 0.25), transparent 55%),
    linear-gradient(160deg, rgba(18, 28, 60, 0.95), rgba(8, 12, 28, 0.98));
  box-shadow: var(--sm-shadow);
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/landing/hero.jpg") center/cover;
  opacity: 0.12;
  z-index: 0;
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0 0 0.85rem;
}

.cta-panel p {
  max-width: 520px;
  margin: 0 auto 1.75rem;
  color: var(--sm-muted);
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* ── Footer ─────────────────────────────────────────────────── */

.landing-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--sm-border);
  text-align: center;
  color: var(--sm-muted);
  font-size: 0.9rem;
}

.landing-footer a {
  color: var(--sm-cyan);
}

.landing-footer a:hover {
  text-decoration: underline;
}

/* ── Floating particles (JS-generated) ──────────────────────── */

.particle {
  position: fixed;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(180, 210, 255, 0.7);
  pointer-events: none;
  z-index: 0;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) scale(0.4); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ── Mobile nav toggle ──────────────────────────────────────── */

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sm-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(5, 8, 20, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sm-border);
  padding: 1.25rem 1.5rem 1.5rem;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu.open {
  display: flex;
  animation: fade-up 0.3s ease both;
}

.mobile-menu a {
  color: var(--sm-text);
  font-weight: 500;
  padding: 0.5rem 0;
}

.mobile-menu .btn-sm-primary,
.mobile-menu .btn-sm-outline {
  width: 100%;
}

@media (min-width: 900px) {
  .mobile-menu { display: none !important; }
}

/* Reduce motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
