/* ============================================================
   Synapsoic — landing page (light)
   White / Near-black / Violet (#7C3AED) accent
   Style: Minimalism & Swiss — per ui-ux-pro-max skill
   ============================================================ */

:root {
  --bg: #FAFAFA;
  --bg-soft: #F4F4F5;

  --glass: rgba(255, 255, 255, 0.82);
  --glass-strong: rgba(255, 255, 255, 0.96);

  --ink: #09090B;
  --ink-soft: #71717A;
  --ink-softer: #A1A1AA;

  --accent: #7C3AED;
  --accent-strong: #6D28D9;
  --accent-soft: rgba(124, 58, 237, 0.07);
  --accent-line: rgba(124, 58, 237, 0.30);

  --line: rgba(0, 0, 0, 0.07);
  --line-strong: rgba(0, 0, 0, 0.14);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.08), 0 6px 16px rgba(0,0,0,0.05);
  --shadow-accent: 0 8px 28px rgba(124, 58, 237, 0.22);

  --maxw: 1280px;
  --pad-x-sm: 24px;
  --pad-x-lg: 80px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, "Menlo", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

@media (min-width: 768px) {
  body { font-size: 20px; }
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* ============================================================
   Language switching — content has both PL and EN spans;
   we show only the matching one based on <html lang>
   ============================================================ */
.lang { display: none; }
html[lang="pl"] .lang-pl,
html[lang="en"] .lang-en { display: revert; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--bg);
  z-index: 100;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x-sm);
  position: relative;
}
@media (min-width: 768px) { .container { padding: 0 var(--pad-x-lg); } }

/* ============================================================
   Global synapse canvas
   ============================================================ */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}
.bg-canvas-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, rgba(250,250,250,0) 0%, rgba(250,250,250,0.15) 60%, rgba(250,250,250,0.45) 100%);
}

main, .nav, .footer { position: relative; z-index: 2; }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Typography utilities
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 28px;
}
.eyebrow__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(0.75); }
}

.kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--glass);
  color: var(--ink-soft);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--lg {
  padding: 18px 30px;
  font-size: 16px;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease),
              border-color 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(250, 250, 250, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad-x-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 768px) { .nav__inner { padding: 18px var(--pad-x-lg); } }

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav__logo-img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
  filter: drop-shadow(0 0 12px rgba(46, 124, 255, 0.25));
}
.nav__links {
  display: none;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
}
.nav__links a { transition: color 0.2s var(--ease); }
@media (min-width: 900px) { .nav__links { display: inline-flex; } }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--glass);
  transition: all 0.25s var(--ease);
}
.nav__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--accent);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav__lang {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 80px;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 2;
}
.hero__wordmark {
  font-size: clamp(72px, 14vw, 200px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero__motto {
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
  max-width: 28ch;
  margin-bottom: 18px;
}
.hero__motto-soft {
  color: var(--accent);
}
.hero__sub {
  max-width: 52ch;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 40px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 60px;
}
.hero__hint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-softer);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-softer);
  z-index: 2;
  transition: color 0.25s var(--ease);
}
@media (max-height: 600px) { .hero__scroll { display: none; } }
.hero__scroll svg { animation: bounce 2.6s ease-in-out infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%       { transform: translateY(5px); opacity: 0.9; }
}

/* ============================================================
   Generic section
   ============================================================ */
.section {
  padding: clamp(96px, 14vw, 180px) 0;
  position: relative;
}
.section--soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section > .container { position: relative; z-index: 1; }

.section__title {
  font-size: clamp(34px, 5.5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 22ch;
  margin-bottom: 56px;
  color: var(--ink);
}
.section__title-soft {
  color: var(--accent);
  font-weight: 500;
}

/* ============================================================
   Vision
   ============================================================ */
.vision-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 64px;
}
@media (min-width: 900px) {
  .vision-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}
.vision-grid__col {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 60ch;
}

.pull-quote {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 24px 0;
  max-width: 68ch;
}
.pull-quote__bar {
  flex-shrink: 0;
  width: 3px;
  align-self: stretch;
  background: var(--accent);
  border-radius: 2px;
}
.pull-quote p {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* ============================================================
   Mechanism cards
   ============================================================ */
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
.card {
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease),
              border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:nth-child(even) {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 24px;
}
.card__title {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--ink);
}
.card__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ============================================================
   ICP — two columns
   ============================================================ */
.icp {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .icp {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}
.icp__col {
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
}
.icp__col--mirror {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.icp__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.icp__title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  color: var(--ink);
}
.icp__list {
  list-style: none;
  margin-bottom: 32px;
}
.icp__list li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.icp__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}
.icp__close {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

/* ============================================================
   CTA section
   ============================================================ */
.section--cta {
  text-align: left;
  padding-top: clamp(72px, 9vw, 116px);
}
.section__title--cta {
  margin-bottom: 24px;
}
.cta__sub {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--ink-soft);
  max-width: 54ch;
  line-height: 1.6;
  margin-bottom: 32px;
}
.cta__explainer {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
}
@media (min-width: 900px) {
  .cta__explainer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.cta__note {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--glass);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.cta__note-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.cta__note-title {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--ink);
}
.cta__note-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.cta__note-action {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 28px;
}
.cta__notify {
  display: grid;
  gap: 22px;
  align-items: center;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 56px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) {
  .cta__notify {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  }
}
.cta__notify-title {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.cta__notify-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.cta__notify-form {
  display: grid;
  gap: 10px;
}
.cta__notify-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-softer);
}
.cta__notify-row {
  display: grid;
  gap: 10px;
}
@media (min-width: 620px) {
  .cta__notify-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
.cta__notify-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--glass-strong);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 0 18px;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cta__notify-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.cta__notify-submit {
  min-height: 48px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 0 20px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
              transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.cta__notify-submit:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
  box-shadow: none;
}
.cta__notify-hint {
  font-size: 13px;
  color: var(--ink-softer);
}
.cta__notify-status {
  min-height: 18px;
  font-size: 13px;
  color: var(--ink-soft);
}
.cta__notify-status.is-success {
  color: var(--accent-strong);
}
.cta__notify-status.is-error {
  color: #B91C1C;
}
.cta__signature {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-softer);
}
.cta__signature-link {
  color: var(--ink-soft);
  margin-left: 6px;
  transition: color 0.2s var(--ease);
  text-transform: none;
  letter-spacing: 0.04em;
}
.cta__socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.cta__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--accent);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
  }
  .btn--ghost:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--bg);
    transform: translateY(-1px);
  }
  .nav__logo:hover .nav__logo-img {
    transform: scale(1.06);
    filter: drop-shadow(0 0 18px rgba(46, 124, 255, 0.5));
  }
  .nav__links a:hover {
    color: var(--ink);
  }
  .nav__cta:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--bg);
  }
  .nav__social:hover {
    color: var(--accent-strong);
    background: var(--accent-soft);
    transform: translateY(-1px);
  }
  .nav__lang:hover {
    color: var(--ink);
    border-color: var(--ink-softer);
    background: rgba(255, 255, 255, 0.04);
  }
  .hero__scroll:hover {
    color: var(--ink-soft);
  }
  .card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-line);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-line);
  }
  .cta__notify-submit:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    box-shadow: var(--shadow-accent);
    transform: translateY(-1px);
  }
  .cta__signature-link:hover {
    color: var(--accent);
  }
  .cta__social:hover {
    color: var(--accent-strong);
    border-color: var(--accent-line);
    background: var(--accent-soft);
    transform: translateY(-1px);
  }
}

.btn:active,
.nav__cta:active,
.nav__social:active,
.nav__lang:active,
.cta__social:active,
.cta__notify-submit:active {
  transform: translateY(1px) scale(0.98);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--line-strong);
  padding: 36px 0;
  background: rgba(250, 250, 250, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer__brand {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
}
.footer__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-softer);
  letter-spacing: 0.04em;
}
