/* ============================================================
   Polska Szkoła Claude — Auros design system
   Abyssal terminal: teal surface stack, no shadows,
   weight-500 headings, aurora gradient only on the primary CTA.
   ============================================================ */

:root {
  /* Colors */
  --color-liquid-abyss: #012624;
  --color-liquid-deep: #011d1c;
  --color-liquid-kelp: #003734;
  --color-liquid-mist: #edfffe;
  --color-platinum: #ffffff;
  --color-silver-mist: #bbc7c6;
  --color-ash: #f2f2f2;
  --color-slate-deep: #707777;
  --color-lavender-phosphor: #fde9ff;
  --gradient-aurora: linear-gradient(90deg, rgb(203, 255, 252) 0%, rgb(237, 255, 254) 26.25%, rgb(255, 253, 250) 47.57%, rgb(250, 209, 255) 88.96%);
  --gradient-bioluminescent: linear-gradient(90deg, rgb(0, 130, 124) 0%, rgb(203, 255, 252) 100%);
  --hairline: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-matter: 'Satoshi', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --page-max-width: 1440px;
  --content-width: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-pad: clamp(72px, 10vw, 140px);

  /* Radii — the complete shape vocabulary */
  --radius-cards: 16px;
  --radius-small: 6px;
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--color-liquid-abyss);
  color: var(--color-silver-mist);
  font-family: var(--font-matter);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Atmospheric depth — rationed chromatic gradients, teal only */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90rem 48rem at 78% -10%, rgba(0, 130, 124, 0.16), transparent 60%),
    radial-gradient(70rem 42rem at -12% 110%, rgba(0, 55, 52, 0.5), transparent 65%);
  pointer-events: none;
}

::selection { background: #cbfffc; color: var(--color-liquid-abyss); }

img, svg, canvas { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid #cbfffc;
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 16px;
  z-index: 100;
  background: var(--color-liquid-kelp);
  color: var(--color-platinum);
  padding: 12px 20px;
  border-radius: var(--radius-small);
}
.skip-link:focus { left: 16px; }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-weight: 500;              /* medium only — no bold, no light */
  color: var(--color-platinum);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-silver-mist);
  margin-bottom: 20px;
}

.lead, .section-lead {
  color: var(--color-silver-mist);
  font-size: clamp(1rem, 1.6vw, 1.185rem);
  line-height: 1.5;
  max-width: 600px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius-small);
  padding: 16px 28px;
  font-family: var(--font-matter);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  white-space: nowrap;
}

.btn-gradient {
  background: var(--gradient-aurora);
  color: #222222;
}
.btn-gradient:hover { filter: brightness(1.06); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--color-platinum);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-ghost:hover { border-color: rgba(237, 255, 254, 0.55); transform: translateY(-1px); }

.btn-nav { padding: 12px 22px; }

.arrow-btn {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-small);
  background: rgba(3, 81, 75, 0.5);
  color: var(--color-platinum);
  display: grid;
  place-items: center;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.arrow-btn svg { width: 13px; height: 13px; }
.arrow-btn:hover { background: rgba(3, 81, 75, 0.9); transform: translate(1px, -1px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 80px;
  padding-inline: var(--gutter);
  max-width: var(--page-max-width);
  margin-inline: auto;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(1, 38, 36, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark { width: 28px; height: 28px; }
.brand-name {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-platinum);
}

.site-nav {
  display: flex;
  gap: 24px;
  margin-inline: auto;
}
.site-nav a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-silver-mist);
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--color-platinum); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 140px var(--gutter) 80px;
  overflow: hidden;
}

#orb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(52% 46% at 50% 58%, rgba(0, 130, 124, 0.14), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .lead { margin-top: 28px; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.hero-note {
  margin-top: 24px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-slate-deep);
}

/* ---------- Stats ---------- */

.stats {
  max-width: var(--content-width);
  margin-inline: auto;
  padding: 64px var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.stat { display: flex; flex-direction: column; gap: 14px; }

.stat-num {
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-lavender-phosphor);
}

.stat-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  color: var(--color-liquid-mist);
  max-width: 220px;
}

/* ---------- Sections ---------- */

.section {
  max-width: var(--content-width);
  margin-inline: auto;
  padding: var(--section-pad) var(--gutter) 0;
}

.section-narrow { max-width: 880px; }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { max-width: 640px; }
.section-head .section-lead { margin-top: 24px; }

/* ---------- Pillars (mission cards) ---------- */

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card {
  background: var(--color-liquid-kelp);
  border-radius: var(--radius-cards);
  padding: clamp(28px, 4vw, 48px);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.card p { max-width: 480px; }

/* ---------- Program tracks ---------- */

.program-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.tracks { display: flex; flex-direction: column; }

.track {
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 1px solid var(--hairline);
}
.track:last-child { border-bottom: 1px solid var(--hairline); }

.track-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.track-index {
  color: var(--color-slate-deep);
  font-size: 0.72em;
  letter-spacing: 0.06em;
  margin-right: 10px;
}

.track p { max-width: 520px; }

.track-meta {
  margin-top: 18px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-slate-deep);
}

.molecule-col {
  position: sticky;
  top: 140px;
  padding-top: 12px;
}
.molecule { width: 100%; max-width: 400px; }
.molecule-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--color-slate-deep);
  max-width: 300px;
  line-height: 1.5;
}

/* ---------- Kinetic band ---------- */

.kinetic {
  overflow: hidden;
  padding: clamp(56px, 9vw, 120px) 0 0;
  white-space: nowrap;
}

.kinetic span {
  display: inline-block;
  font-size: clamp(5rem, 16vw, 15rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.046em;
  color: var(--color-platinum);
  transform: translateX(clamp(20px, 5vw, 88px));
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}

.step-num {
  display: block;
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-lavender-phosphor);
  margin-bottom: 20px;
}

.step h3 { font-size: 1.25rem; margin-bottom: 12px; }
.step p { font-size: 15px; line-height: 1.5; }

.audience { margin-top: clamp(48px, 7vw, 80px); }

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chips li {
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-small);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-liquid-mist);
}

/* ---------- Apply panel (recessed well) ---------- */

.apply-panel {
  background: var(--color-liquid-deep);
  border-radius: var(--radius-cards);
  padding: clamp(56px, 9vw, 120px) clamp(24px, 8vw, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.apply-panel .section-lead { margin: 24px auto 0; }

#apply-form {
  width: 100%;
  max-width: 640px;
  margin-top: clamp(36px, 5vw, 56px);
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }

.field label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-silver-mist);
}
.field .optional { color: var(--color-slate-deep); text-transform: none; letter-spacing: 0.02em; }

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--color-liquid-abyss);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-small);
  padding: 14px 16px;
  color: var(--color-liquid-mist);
  font-family: var(--font-matter);
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.field textarea { resize: vertical; min-height: 120px; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(187, 199, 198, 0.45); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(203, 255, 252, 0.6);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23bbc7c6' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field select:invalid { color: rgba(187, 199, 198, 0.45); }
.field select option { color: #222222; background: #ffffff; }

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}

.form-note {
  font-size: 12px;
  color: var(--color-slate-deep);
  max-width: 280px;
  line-height: 1.4;
}

#form-status {
  margin-top: 20px;
  font-size: 14px;
  color: var(--color-liquid-mist);
  min-height: 20px;
}

/* ---------- FAQ ---------- */

.faq-list { border-bottom: 1px solid var(--hairline); }

.faq-item { border-top: 1px solid var(--hairline); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--color-liquid-mist);
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--color-platinum); }

.faq-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-small);
  background: rgba(3, 81, 75, 0.5);
  color: var(--color-platinum);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.25s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }

.faq-item p {
  padding: 0 0 28px;
  max-width: 640px;
  line-height: 1.5;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: var(--section-pad);
  background: var(--color-liquid-deep);
  padding: clamp(72px, 9vw, 120px) var(--gutter) 48px;
}

.footer-grid {
  max-width: var(--content-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p { margin-top: 20px; max-width: 320px; }

.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col .eyebrow { margin-bottom: 6px; }
.footer-col a {
  color: var(--color-silver-mist);
  font-size: 15px;
  transition: color 0.2s ease;
  width: fit-content;
}
.footer-col a:hover { color: var(--color-platinum); }
.footer-muted { font-size: 13px; color: var(--color-slate-deep); }

.footer-legal {
  max-width: var(--content-width);
  margin: 64px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.footer-legal p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-slate-deep);
  max-width: 780px;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.vis { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .program-grid { grid-template-columns: 1fr; }
  .molecule-col { position: static; max-width: 420px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
}

@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); padding-block: 48px; }
  .pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .brand-name { max-width: 160px; line-height: 1.35; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .stats { grid-template-columns: 1fr; }
}
