/* ============================================================
   OpenSourcePath — landing.css
   index.html page-specific styles: hero, pulse panel, forges,
   zigzag sections, band, CTA, footer and their responsive rules.
   Split out of the old css/styles.css.
   ============================================================ */

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vh, 96px) 0 clamp(48px, 8vh, 84px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-title {
  font-size: clamp(52px, 7.4vw, 96px); font-weight: 600;
  letter-spacing: -0.035em; line-height: 0.98;
}
.hero-title span { display: block; }
.accent { color: var(--accent); }
.hero-sub {
  margin-top: 22px; max-width: 46ch; font-size: clamp(16.5px, 1.35vw, 19px);
  color: var(--text-2); line-height: 1.55;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-ctas.center { justify-content: center; }

/* load-in animation */
[data-hero] { opacity: 0; transform: translateY(26px); filter: blur(6px); animation: heroIn 0.9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes heroIn { to { opacity: 1; transform: none; filter: blur(0); } }

/* ---------- Pulse panel (hero visual) ---------- */
.pulse {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  padding: 22px 22px 16px; box-shadow: var(--shadow-panel); position: relative; overflow: hidden;
}
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px 200px at 85% -10%, var(--accent-soft), transparent 70%);
}
.pulse-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-line); animation: live 2.4s var(--ease) infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 var(--accent-line); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* .graph + .pulse-spot moved to core/components.css: the dashboard
   (Overview, Profile) renders the same contribution graph and does
   not load landing.css. */
.pulse-foot { margin-top: 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--text-3); }

/* ---------- Forges row ---------- */
.forges { padding: 8px 0 26px; }
.forge-row {
  display: flex; align-items: center; justify-content: center; gap: clamp(26px, 5vw, 54px);
  padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.forge-row img { opacity: 0.5; filter: grayscale(1); transition: opacity 0.3s var(--ease), filter 0.3s var(--ease), transform 0.3s var(--ease); }
.forge-row img:hover { opacity: 0.95; filter: none; transform: translateY(-2px); }
html[data-theme="light"] .forge-row img { filter: none; opacity: 0.55; mix-blend-mode: luminosity; }
html[data-theme="light"] .forge-row img:hover { mix-blend-mode: normal; opacity: 1; }

/* ---------- Zigzag ---------- */
.zz { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.zz.alt { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
.ticks { list-style: none; padding: 0; margin-top: 26px; display: grid; gap: 12px; }
.ticks li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: var(--text-2); font-weight: 500; }
.ticks i { color: var(--accent); font-size: 19px; margin-top: 1px; }

.demo-stack { display: grid; gap: 10px; }
.demo-issue {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel);
  padding: 17px 19px; transition: border-color 0.3s var(--ease), opacity 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.3s var(--ease);
}
.demo-issue:hover { border-color: var(--accent-line); box-shadow: var(--shadow-panel); }
.demo-issue.hide { opacity: 0.14; transform: scale(0.985); filter: saturate(0.4); }
.demo-issue .top { display: flex; align-items: center; gap: 10px; }
.demo-issue .ttl { font-size: 14.5px; font-weight: 700; color: var(--text); flex: 1; min-width: 0; }
.demo-issue .rp { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); white-space: nowrap; }
.demo-issue .bot { display: flex; align-items: center; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.demo-issue .age { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }

/* ---------- Band ---------- */
.band { background: var(--bg-2); border-top: 1px solid var(--line); }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(36px, 5vw, 56px); }
.band-item {
  display: flex; align-items: flex-start; gap: 15px; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel);
  position: relative; overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.band-item:hover { border-color: var(--line-2); transform: translateY(-3px); }
.band-item::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s var(--ease);
  background: radial-gradient(320px 130px at 20% 0%, var(--accent-soft), transparent 70%); pointer-events: none;
}
.band-item:hover::after { opacity: 1; }
.band-ico {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  font-size: 20px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.band-body { display: grid; gap: 4px; }
.band-body strong { font-size: 15.5px; color: var(--text); }
.band-body span { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.band-arrow { margin-left: auto; color: var(--text-3); font-size: 16px; opacity: 0; transform: translate(-4px, 4px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s; flex-shrink: 0; margin-top: 4px; }
.band-item:hover .band-arrow { opacity: 1; transform: none; color: var(--accent); }

/* ---------- CTA ---------- */
.cta { position: relative; padding: clamp(100px, 13vw, 160px) 0; overflow: hidden; }
.cta-bars {
  position: absolute; inset: auto 0 0 0; height: 120px; display: flex; align-items: flex-end; gap: 5px;
  padding: 0 24px; opacity: 0.5; pointer-events: none;
}
.cta-bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--accent-line), transparent); min-height: 4px; }
.cta .container { position: relative; text-align: center; }
.cta-title { font-size: clamp(36px, 5.4vw, 68px); letter-spacing: -0.032em; }
.cta-sub { margin-top: 18px; color: var(--text-2); font-size: 17px; }
.cta .hero-ctas { justify-content: center; margin-top: 36px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding: clamp(52px, 6vw, 80px) 0 44px; }
.foot-brand p { margin-top: 16px; color: var(--text-2); font-size: 14px; max-width: 30ch; }
.foot-social { display: flex; gap: 8px; margin-top: 20px; }
.foot-col { display: grid; gap: 11px; align-content: start; }
.foot-col h5 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-3); margin-bottom: 6px; }
.foot-col a { font-size: 14px; color: var(--text-2); width: fit-content; transition: color 0.25s var(--ease); }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 26px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-3);
}
.totop { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text-2); transition: color 0.25s var(--ease); }
.totop:hover { color: var(--accent); }

/* landing mobile menu: the shortcut chips are not headline links */
.menu-links .menu-foot-rows a { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; padding: 7px 13px; opacity: 1; transform: none; }
.menu-links .menu-foot-rows { margin-top: 16px; }

/* ---------- Landing responsive ---------- */
@media (max-width: 1080px) {
  .nav-wide .nav-links { display: none; }
  .nav-wide .burger { display: block; }
  .nav-wide .user-name { display: none; }
  .nav-wide .user-btn { padding: 4px; gap: 0; }
  .nav-wide .user-btn > i { display: none; }
  .menu-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .c-7, .c-5 { grid-column: span 12; }
  .c-4 { grid-column: span 6; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .pulse { max-width: 640px; }
  .zz, .zz.alt { grid-template-columns: 1fr; gap: 36px; }
  .zz .zz-visual { order: -1; }
  .band-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav .btn-gh { display: none; }
  .burger { display: block; }
  .nav-pill { gap: 12px; padding-left: 14px; }
  .nav-actions { margin-left: auto; }
  .c-4 { grid-column: span 12; }
  .disc-grid { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .ms b { font-size: 15px; }
  .hero { padding-top: 44px; }
  .cta-bars { display: none; }
}

@media (max-width: 640px) {
  .menu-cols { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 480px) {
  .container { width: min(1180px, 100% - 32px); }
  .hero-title { font-size: clamp(38px, 11vw, 56px); }
  /* buttons are nowrap, so two side by side cannot fit at 320-420px: stack them */
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .disc-meta { flex-wrap: wrap; }
}
