/* A single, quiet studio composition. Copy is always above the sculpture. */
.flow-hero {
  /* Hero jest zawsze ciemne — przypinamy ciemną paletę, by przyciski miały poprawny kontrast niezależnie od trybu systemu. */
  --text: #E6EFEE; --muted: #9DB2B4; --accent: #2E9C8F;
  --surface: #15262B; --border: #2A4249; --on-accent: #04100F;
  min-height: 100svh; padding: 48px 24px 0; gap: 0;
  background: radial-gradient(ellipse 75% 70% at 50% 58%, rgba(50, 113, 101, .24) 0%, rgba(50, 113, 101, .08) 55%, transparent 100%), #0C0D0F;
  color: var(--text); justify-content: flex-start;
}
.hero-copy { position: relative; z-index: 3; max-width: 840px; margin: 0 auto; }
.hero-brand { display: inline-flex; align-items: center; gap: 2px; margin-bottom: 24px; }
.hero-brand img { width: auto; height: 72px; margin-right: -12px; }
.hero-brand strong { font: 700 34px/1 'Cabinet Grotesk', system-ui, sans-serif; letter-spacing: -.01em; }
.flow-hero .eyebrow { margin: 0; color: #9DB2B4; font-size: 10px; letter-spacing: .19em; }
.flow-hero h1 { margin: 14px auto 0; max-width: 21ch; font-size: clamp(38px, 4.7vw, 65px); line-height: 1.07; letter-spacing: -.04em; text-shadow: none; }
.flow-hero h1 span { color: #5BBCAD; }
.flow-hero .sub { margin: 19px auto 0; max-width: 59ch; font-size: 15px; line-height: 1.65; color: #9DB2B4; }
.flow-hero .links { margin-top: 23px; gap: 16px; }
.hero-install { display: flex; align-items: center; gap: 16px; width: min(100%, 660px); margin: 24px auto 0; padding: 8px 16px; background: #fff; border: 1px solid rgba(15, 30, 34, .08); border-radius: 18px; box-shadow: 0 8px 22px rgba(11, 22, 25, .05); text-align: left; }
.hero-install pre { flex: 1; min-width: 0; margin: 0; overflow-x: auto; color: #0B1619; font: 400 12px/1.8 'Geist Mono', monospace; }
.hero-copy-command { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; min-height: 32px; padding: 6px 8px; border: 0; border-radius: 11px; background: #0f1e22; color: #fff; font: 500 12px/1.2 'Cabinet Grotesk', sans-serif; cursor: pointer; }
.hero-copy-command svg { width: 18px; height: 18px; }
.hero-copy-command:hover { background: #327165; }
.hero-copy-command:focus-visible, .hero-install-links a:focus-visible { outline: 2px solid #5BBCAD; outline-offset: 4px; }
.hero-install-links { display: flex; justify-content: center; gap: 24px; margin-top: 12px; font-size: 14px; }
.hero-install-links a { color: #9DB2B4; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(157, 178, 180, .4); }
.hero-install-links a:hover { color: #E6EFEE; }
@media (max-width: 560px) {
  .hero-install { gap: 8px; padding: 8px 12px; }
  .hero-copy-command { font-size: 11px; }
}
/* Buttony wg aeterna.framer.ai: Geist Mono, ostre rogi. Primary = czarny solid, Secondary = crop marks. */
/* Przyciski w hero korzystają z jednego, wspólnego stylu .btn z index.html (zunifikowane). */
.hero-note { margin: 13px 0 0; font-size: 10px; color: #78827c; }
.hero-note span { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #829887; margin: 0 6px 2px 0; }
.knowledge-matter { position: relative; width: min(1440px, 100vw); height: clamp(390px, 37vw, 540px); margin: -8px -24px 0; touch-action: pan-y; }
#matterCanvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.knowledge-matter.is-ready #matterCanvas { opacity: 1; }
.matter-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; color: #52685d; }
.matter-fallback p { font: 500 clamp(22px, 4vw, 38px)/1.2 Fraunces, Georgia, serif; }
.matter-fallback span { max-width: 42ch; font-size: 13px; }
.is-ready .matter-fallback { display: none; }
.matter-footer { position: absolute; inset: auto 6% 22px; display: flex; justify-content: space-between; align-items: center; color: #758179; font-size: 10px; letter-spacing: .03em; }
.matter-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 8px 11px; border: 1px solid #a3aea54a; border-radius: 20px; background: #e6e7e599; color: #56665c; font: inherit; cursor: pointer; }
.matter-toggle:hover { background: #f2f3ef; }
.matter-toggle:focus-visible { outline: 2px solid #176b60; outline-offset: 4px; }
.matter-toggle[hidden] { display: none; }
@media (max-width: 767px) {
  .flow-hero { padding: 40px 20px 0; }
  .hero-brand { margin-bottom: 22px; }
  .flow-hero h1 { max-width: 20ch; font-size: clamp(36px, 8.8vw, 54px); }
  .flow-hero .sub { font-size: 14px; max-width: 40ch; }
  .hero-note { font-size: 9px; max-width: 38ch; margin: 14px auto 0; }
  .knowledge-matter { height: 410px; margin-top: 0; }
  .matter-footer { inset: auto 20px 16px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { #matterCanvas { transition: none; } }
