/* ============================================================
   KWIATEKmedia — Head of Performance recruitment
   Premium dark / editorial SaaS UI system
   ============================================================ */

:root {
  --color-black: #05070A;
  --color-black-soft: #080B10;
  --color-navy: #0B2A4A;
  --color-navy-dark: #08111F;
  --color-surface: #0B1220;
  --color-surface-elevated: #111827;
  --color-surface-glass: rgba(255, 255, 255, 0.055);

  --color-white: #FFFFFF;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #AAB4C0;
  --color-text-muted: #8A94A4;
  --color-text-soft: #D1D5DB;

  --color-orange: #FF6A03;
  --color-orange-soft: #FF8A65;
  --color-orange-muted: rgba(255, 106, 3, 0.16);

  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-strong: rgba(255, 255, 255, 0.24);

  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.32);
  --shadow-large: 0 40px 120px rgba(0, 0, 0, 0.46);
  --shadow-orange: 0 18px 48px rgba(255, 106, 3, 0.28);

  --motion-fast: 160ms;
  --motion-medium: 220ms;
  --motion-slow: 360ms;
  --motion-reveal: 720ms;
  --motion-ambient: 8000ms;

  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  background: var(--color-black);
  color: var(--color-white);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(255, 106, 3, 0.32); color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--color-orange);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ----------------------------- Containers ----------------------------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-large { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-narrow { width: 100%; max-width: 840px; margin: 0 auto; padding: 0 24px; }

/* ----------------------------- Sections ----------------------------- */
.section { padding: 120px 0; position: relative; }
.section-large { padding: 144px 0; }

.editorial-section {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 106, 3, 0.07), transparent 34%),
    linear-gradient(180deg, #05070A 0%, #08111F 100%);
}
.grid-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(11, 42, 74, 0.40), transparent 38%),
    linear-gradient(180deg, #05070A 0%, #060A11 100%);
}
.final-cta-section {
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 106, 3, 0.18), transparent 36%),
    radial-gradient(circle at 50% 100%, rgba(11, 42, 74, 0.7), transparent 44%),
    linear-gradient(180deg, #05070A 0%, #0B1220 100%);
}

/* ----------------------------- Typography ----------------------------- */
.text-display {
  font-size: clamp(44px, 6.4vw, 100px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 800;
}
.text-section-title {
  font-size: clamp(34px, 4.6vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.text-card-title {
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--color-white);
}
.text-body {
  font-size: 16.5px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  color: var(--color-text-secondary);
}
.text-eyebrow {
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-orange-soft);
}

/* ----------------------------- Section header ----------------------------- */
.section-header { max-width: 860px; margin-bottom: 56px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header .text-section-title { margin-top: 18px; }
.section-subheadline {
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  max-width: 740px;
}
.section-header.center .section-subheadline { margin-left: auto; margin-right: auto; }

/* ----------------------------- Buttons ----------------------------- */
.button {
  height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.button-primary {
  background: var(--color-orange);
  color: #fff;
  font-weight: 700;
  border-color: rgba(255, 106, 3, 0.72);
  box-shadow: var(--shadow-orange);
  transition: transform var(--motion-medium) var(--ease-standard),
              background var(--motion-medium) var(--ease-standard),
              box-shadow var(--motion-medium) var(--ease-standard);
}
.button-primary:hover {
  transform: translateY(-2px);
  background: #FF7A1A;
  box-shadow: 0 22px 56px rgba(255, 106, 3, 0.36);
}
.button-primary:active { transform: translateY(0); box-shadow: 0 12px 32px rgba(255, 106, 3, 0.24); }

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 600;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform var(--motion-medium) var(--ease-standard),
              background var(--motion-medium) var(--ease-standard),
              border-color var(--motion-medium) var(--ease-standard);
}
.button-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.24);
}
.button-secondary:active { transform: translateY(0); }

.text-link {
  color: var(--color-white);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 106, 3, 0.6);
  transition: color var(--motion-fast) ease, border-color var(--motion-fast) ease;
}
.text-link:hover { color: var(--color-orange-soft); border-color: var(--color-orange-soft); }

/* ----------------------------- Focus states ----------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, .option-item:focus-within {
  outline: 2px solid rgba(255, 138, 101, 0.95);
  outline-offset: 4px;
}

/* ----------------------------- Cards ----------------------------- */
.card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 32px;
}
.card-elevated {
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.88), rgba(5, 7, 10, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 40px;
}
.card-editorial {
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 56px;
}
.card-hover {
  transition: transform var(--motion-medium) var(--ease-standard),
              border-color var(--motion-medium) var(--ease-standard),
              background var(--motion-medium) var(--ease-standard),
              box-shadow var(--motion-medium) var(--ease-standard);
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.36);
}

/* Fallback when backdrop-filter unsupported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .card-editorial { background: rgba(17, 24, 39, 0.92); }
  .card-elevated, .application-form-card, .hero-dashboard { background: rgba(10, 14, 22, 0.96); }
}

/* ----------------------------- Chips ----------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 500;
}

/* ----------------------------- Grids ----------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ============================================================ NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  background: rgba(5, 7, 10, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--motion-medium) var(--ease-standard),
              border-color var(--motion-medium) var(--ease-standard);
}
.nav.is-scrolled {
  background: rgba(5, 7, 10, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.nav-inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 12px; height: 12px; border-radius: 4px;
  background: var(--color-orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 3, 0.16);
  flex: none;
}
.logo-text { font-size: 17px; font-weight: 800; letter-spacing: -0.035em; color: #fff; }
.logo-sub {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text-muted); padding-left: 10px; margin-left: 4px;
  border-left: 1px solid rgba(255,255,255,0.14);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--color-text-secondary); transition: color var(--motion-fast) ease; }
.nav-link:hover { color: #fff; }
.nav-cta {
  height: 40px; padding: 0 18px; border-radius: 999px;
  background: rgba(255, 106, 3, 0.14);
  border: 1px solid rgba(255, 106, 3, 0.32);
  color: #fff; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center;
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease;
}
.nav-cta:hover { background: rgba(255, 106, 3, 0.22); border-color: rgba(255, 106, 3, 0.5); }

/* ============================================================ HERO */
.hero-section {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 96px 0 80px;
  margin-top: 72px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 106, 3, 0.16), transparent 32%),
    radial-gradient(circle at 18% 82%, rgba(11, 42, 74, 0.88), transparent 38%),
    linear-gradient(135deg, #05070A 0%, #0B1220 48%, #05070A 100%);
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-copy .text-display { max-width: 12ch; }
.hero-subheadline {
  font-size: 20px; line-height: 1.55; font-weight: 400;
  color: var(--color-text-secondary); max-width: 600px;
}
.hero-context {
  font-size: 15px; line-height: 1.6; color: var(--color-text-soft);
  max-width: 580px;
  padding-left: 16px; border-left: 2px solid rgba(255, 106, 3, 0.4);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-credibility {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px;
  font-size: 13px; color: var(--color-text-muted);
}
.hero-credibility li { position: relative; }
.hero-credibility li:not(:last-child)::after {
  content: ""; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.28);
}

/* Hero dashboard */
.hero-visual { position: relative; }
.hero-dashboard-wrap { position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; }
.hero-dashboard-glow {
  position: absolute; inset: 6%;
  background:
    radial-gradient(circle at 60% 28%, rgba(255, 106, 3, 0.28), transparent 42%),
    radial-gradient(circle at 28% 72%, rgba(11, 42, 74, 0.82), transparent 50%);
  filter: blur(44px); opacity: 0.9; z-index: 0;
}
.hero-dashboard {
  position: relative; z-index: 1; width: 100%;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(5, 7, 10, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 44px 128px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: 26px;
}
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.dash-title { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.dash-sub { font-size: 12.5px; color: var(--color-text-muted); margin-top: 3px; }
.status-dot {
  position: relative; width: 9px; height: 9px; border-radius: 50%;
  background: var(--color-orange); margin-top: 4px; flex: none;
}
.status-dot::after {
  content: ""; position: absolute; inset: -6px; border-radius: inherit;
  background: rgba(255, 106, 3, 0.22); animation: statusPulse 2400ms ease-in-out infinite;
}
.dash-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.dash-metric {
  padding: 14px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
}
.dm-label { font-size: 11px; color: var(--color-text-muted); letter-spacing: 0.02em; }
.dm-value { font-size: 14px; font-weight: 700; margin-top: 6px; }
.dm-value.accent { color: var(--color-orange-soft); }
.dash-chart { margin-bottom: 18px; border-radius: 14px; overflow: hidden; height: 84px;
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.06); padding: 6px; }
.dash-chart svg { width: 100%; height: 100%; }
.dash-systems { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-bottom: 18px; }
.dash-systems li { font-size: 12.5px; color: var(--color-text-soft); display: flex; align-items: center; gap: 8px; }
.ds-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 138, 101, 0.7); flex: none; }
.dash-standards { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-mini {
  font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 106, 3, 0.10); border: 1px solid rgba(255, 106, 3, 0.24);
  color: var(--color-orange-soft);
}
.floating-card {
  position: absolute; z-index: 2; padding: 14px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.fc-1 { top: 4%; right: -4%; }
.fc-2 { bottom: 6%; left: -6%; }
.fc-label { font-size: 11px; color: var(--color-text-muted); }
.fc-value { font-size: 13.5px; font-weight: 700; margin-top: 3px; }

.scroll-indicator {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 3; opacity: 0.4; width: 24px; height: 38px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.4); display: flex; justify-content: center; padding-top: 7px;
}
.scroll-line { width: 2px; height: 8px; border-radius: 2px; background: #fff; animation: scrollPulse 1800ms ease-in-out infinite; }

/* ============================================================ OPPORTUNITY */
.opportunity-card { display: flex; flex-direction: column; gap: 22px; min-height: 240px; }
.card-number {
  font-size: 13px; font-weight: 700; color: var(--color-orange-soft);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.opportunity-card .text-card-title { margin-bottom: 10px; }

/* ============================================================ FOUNDER LETTER */
.founder-letter-grid {
  display: grid; grid-template-columns: 0.36fr 0.64fr; gap: 48px; align-items: start;
}
.founder-identity { position: sticky; top: 100px; }
.founder-photo-wrap {
  border-radius: 24px; overflow: hidden; margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,0.10); box-shadow: var(--shadow-soft);
  background: #000; aspect-ratio: 1 / 1;
}
.founder-photo { width: 100%; height: 100%; object-fit: cover; }
.founder-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-orange-soft); font-weight: 700; }
.founder-name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-top: 8px; }
.founder-role { font-size: 14px; color: var(--color-text-muted); margin-top: 2px; }
.founder-note { font-size: 15px; color: var(--color-text-secondary); margin-top: 16px; line-height: 1.6; }
.founder-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.founder-letter-content { display: block; }
.pull-quote {
  font-size: clamp(26px, 3vw, 42px); line-height: 1.1; letter-spacing: -0.035em;
  font-weight: 800; color: #fff; border-left: 3px solid var(--color-orange);
  padding-left: 24px; margin-bottom: 40px;
}
.letter-body { display: flex; flex-direction: column; gap: 20px; }
.letter-body p { font-size: 18px; line-height: 1.78; letter-spacing: -0.01em; color: var(--color-text-soft); }
.letter-body p.strong { color: #fff; font-weight: 600; }
.founder-signature {
  display: flex; align-items: center; gap: 14px; margin-top: 40px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.sig-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-orange); flex: none; box-shadow: 0 0 0 4px rgba(255,106,3,0.16); }
.sig-name { font-weight: 800; font-size: 17px; }
.sig-role { font-size: 14px; color: var(--color-text-muted); }
.letter-next-link { display: inline-block; margin-top: 28px; }

/* ============================================================ ROLE MISSION */
.mission-layout { display: grid; grid-template-columns: 1fr; gap: 28px; }
.mission-statement { }
.mission-quote { font-size: clamp(20px, 2.2vw, 27px); line-height: 1.4; font-weight: 600; color: #fff; letter-spacing: -0.02em; margin-bottom: 26px; }
.mission-bullets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.mission-bullets li {
  font-size: 15.5px; color: var(--color-text-secondary); line-height: 1.5;
  padding-left: 22px; position: relative;
}
.mission-bullets li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px;
  border-radius: 50%; background: rgba(255,106,3,0.7);
}
.system-diagram {
  border-radius: 24px; padding: 28px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
}
.diagram-caption { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); margin-bottom: 20px; font-weight: 600; }
.diagram-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.node {
  font-size: 13.5px; font-weight: 600; padding: 9px 14px; border-radius: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); color: var(--color-text-soft);
}
.node-accent { background: rgba(255,106,3,0.14); border-color: rgba(255,106,3,0.34); color: var(--color-orange-soft); }
.arrow { color: rgba(255,138,101,0.7); font-size: 15px; }

/* ============================================================ FIRST 90 DAYS */
.timeline-line-wrap { height: 2px; margin-bottom: 24px; overflow: hidden; }
.timeline-line {
  display: block; height: 2px; width: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, rgba(255,106,3,0.6), rgba(255,138,101,0.2));
  transition: transform 900ms var(--ease-smooth);
}
.reveal.is-visible .timeline-line, .timeline-line-wrap.is-visible .timeline-line { transform: scaleX(1); }
.timeline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.timeline-card { position: relative; padding-top: 38px; }
.timeline-marker {
  position: absolute; top: 28px; right: 28px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--color-orange);
  box-shadow: 0 0 0 8px rgba(255, 106, 3, 0.12);
}
.timeline-card .card-number { margin-bottom: 6px; }
.timeline-card .text-card-title { margin-bottom: 12px; }
.mini-list { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.mini-list li {
  font-size: 14px; color: var(--color-text-secondary); padding-left: 20px; position: relative; line-height: 1.45;
}
.mini-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,138,101,0.6);
}

/* ============================================================ OWNERSHIP */
.ownership-card { min-height: 200px; }
.ownership-card .text-card-title { margin-bottom: 12px; }

/* ============================================================ STANDARDS */
.standards-list { display: flex; flex-direction: column; gap: 16px; }
.standard-item {
  display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 28px;
  border-radius: 24px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.09);
  position: relative; overflow: hidden;
}
.standard-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--color-orange); transform: scaleY(0); transform-origin: top;
  transition: transform 520ms var(--ease-smooth);
}
.reveal-stagger.is-visible .standard-item::before { transform: scaleY(1); }
.standard-number { font-size: 22px; font-weight: 800; color: var(--color-orange-soft); letter-spacing: 0.04em; }
.standard-item .text-card-title { margin-bottom: 8px; }

/* ============================================================ CANDIDATE FIT */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit-block { border-left: 2px solid rgba(255, 106, 3, 0.72); }
.not-fit-block { border-left: 2px solid rgba(255, 138, 101, 0.72); background: rgba(255, 106, 3, 0.04); }
.fit-heading { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
.not-fit-sub { margin-bottom: 18px; color: var(--color-text-soft); }
.fit-list { display: flex; flex-direction: column; gap: 13px; }
.fit-list li { font-size: 15.5px; line-height: 1.55; color: var(--color-text-secondary); padding-left: 28px; position: relative; }
.fit-list.positive li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--color-orange-soft); font-weight: 700;
}
.fit-list.negative li::before {
  content: "—"; position: absolute; left: 0; top: 0; color: var(--color-text-muted); font-weight: 700;
}
.fit-identity { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 16px; font-weight: 600; color: #fff; line-height: 1.5; }
.fit-close { text-align: center; margin-top: 44px; font-size: clamp(19px, 2.2vw, 26px); font-weight: 700; letter-spacing: -0.02em; color: #fff; max-width: 760px; margin-left: auto; margin-right: auto; line-height: 1.35; }

/* ============================================================ COMPENSATION */
.comp-card { display: flex; flex-direction: column; gap: 14px; min-height: 240px; }
.comp-card .card-number { margin-bottom: 4px; }
.compensation-number {
  font-size: clamp(30px, 3.4vw, 46px); line-height: 1; letter-spacing: -0.05em; font-weight: 800; color: #fff;
}
.compensation-number.small { font-size: clamp(24px, 2.4vw, 32px); color: var(--color-orange-soft); }
.comp-clarification {
  margin-top: 36px; text-align: center; font-size: 16px; color: var(--color-text-secondary);
  max-width: 720px; margin-left: auto; margin-right: auto; line-height: 1.6;
}

/* ============================================================ APPLICATION FLOW */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process-step {
  position: relative; padding: 28px; border-radius: 24px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex; flex-direction: column; gap: 14px;
}
.process-step-number {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 106, 3, 0.14); border: 1px solid rgba(255, 106, 3, 0.32);
  color: var(--color-orange-soft); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}

/* ============================================================ FORM */
.application-form-card {
  max-width: 880px; margin: 0 auto; border-radius: 32px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.9), rgba(5, 7, 10, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-large);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: 48px;
}
.form-intro { font-size: 16px; color: var(--color-text-secondary); margin-bottom: 30px; line-height: 1.6; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-block { border: none; margin-bottom: 8px; padding: 0; }
.form-block + .form-block { margin-top: 18px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,0.08); }
.form-block-legend {
  display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800;
  letter-spacing: -0.02em; color: #fff; margin-bottom: 24px; padding: 0;
}
.fb-num {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: rgba(255,106,3,0.14); border: 1px solid rgba(255,106,3,0.3);
  color: var(--color-orange-soft); display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}

.form-field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.form-field-large { margin-bottom: 28px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.form-grid-2 .form-field { margin-bottom: 22px; }

.form-label { font-size: 15px; font-weight: 650; color: #fff; letter-spacing: -0.01em; line-height: 1.45; }
.required { color: var(--color-orange-soft); }
.form-help { font-size: 13px; line-height: 1.5; color: var(--color-text-muted); }

.form-input, .form-select, .form-textarea {
  width: 100%; border-radius: 16px;
  background: rgba(255, 255, 255, 0.055); border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff; padding: 15px 16px; font-size: 15px; line-height: 1.5; font-family: inherit;
  outline: none;
  transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}
.form-select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23AAB4C0' stroke-width='2.2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(255, 138, 101, 0.82);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 4px rgba(255, 106, 3, 0.10);
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(170, 180, 192, 0.45); }
.form-textarea { min-height: 150px; resize: vertical; }
.form-textarea-case { min-height: 200px; }
.form-select option { background: #0B1220; color: #fff; }

.form-input[aria-invalid="true"], .form-select[aria-invalid="true"], .form-textarea[aria-invalid="true"] {
  border-color: rgba(255, 138, 101, 0.82);
  box-shadow: 0 0 0 4px rgba(255, 106, 3, 0.08);
}
.form-error {
  font-size: 13px; line-height: 1.45; color: var(--color-orange-soft); min-height: 0;
}
.form-error:not(:empty) { margin-top: 2px; }

/* options */
.option-fieldset { border: none; padding: 0; }
.option-group { display: grid; gap: 10px; margin-top: 6px; }
.option-grid-2 { grid-template-columns: 1fr 1fr; }
.option-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.10);
  cursor: pointer; font-size: 14.5px; color: var(--color-text-soft);
  transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease;
}
.option-item:hover { background: rgba(255, 255, 255, 0.065); border-color: rgba(255, 255, 255, 0.16); }
.option-item input { margin-top: 2px; accent-color: var(--color-orange); width: 17px; height: 17px; flex: none; }
.option-item:has(input:checked) {
  background: rgba(255, 106, 3, 0.10); border-color: rgba(255, 106, 3, 0.32); color: #fff;
}

.consent-field { margin-top: 8px; }
.consent-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14.5px; color: var(--color-text-soft); line-height: 1.55; }
.consent-label input { margin-top: 3px; accent-color: var(--color-orange); width: 18px; height: 18px; flex: none; }
.privacy-note { margin-top: 12px; }

.form-submit-area { display: flex; flex-direction: column; gap: 16px; margin-top: 36px; }
.pre-submit { font-size: 14px; color: var(--color-text-muted); line-height: 1.5; }
.button-submit { align-self: flex-start; min-width: 220px; }
.button-loading { position: relative; pointer-events: none; opacity: 0.82; }
.button-loading::after {
  content: ""; width: 14px; height: 14px; margin-left: 4px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.32); border-top-color: #fff;
  animation: buttonSpin 800ms linear infinite;
}
.form-global-error {
  font-size: 14px; color: var(--color-orange-soft);
  background: rgba(255,106,3,0.08); border: 1px solid rgba(255,106,3,0.24);
  border-radius: 12px; padding: 12px 16px; line-height: 1.5;
}

.form-success-card {
  border-radius: 28px; background: rgba(255, 106, 3, 0.08); border: 1px solid rgba(255, 106, 3, 0.24);
  padding: 44px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px;
  animation: successReveal 420ms var(--ease-smooth) both;
}
.success-mark {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,106,3,0.16); border: 1px solid rgba(255,106,3,0.4); color: var(--color-orange-soft);
  font-size: 26px; font-weight: 700; margin-bottom: 4px;
}
.success-title { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.success-body { font-size: 16px; color: var(--color-text-soft); max-width: 520px; line-height: 1.6; }
.success-secondary { font-size: 14px; color: var(--color-text-muted); }
.form-success-card .button { margin-top: 12px; }

/* ============================================================ FINAL CTA */
.center-block { text-align: center; }
.final-sub { font-size: 19px; color: var(--color-text-secondary); margin-top: 26px; line-height: 1.6; max-width: 700px; margin-left: auto; margin-right: auto; }
.final-actions { margin-top: 36px; display: flex; justify-content: center; }
.final-micro { margin-top: 22px; font-size: 14px; color: var(--color-text-muted); }

/* ============================================================ FOOTER */
.footer { padding: 56px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); background: #05070A; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-logo { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.footer-tagline { font-size: 14px; color: var(--color-orange-soft); margin-top: 4px; }
.footer-note { font-size: 14px; color: var(--color-text-muted); margin-top: 10px; max-width: 360px; }
.footer-meta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-link { font-size: 14px; color: var(--color-text-secondary); transition: color var(--motion-fast) ease; }
.footer-link:hover { color: #fff; }
.footer-copy { font-size: 13px; color: var(--color-text-muted); margin-top: 6px; }

/* ============================================================ MOTION */
.hero-reveal { opacity: 0; transform: translateY(18px); animation: heroReveal 720ms var(--ease-smooth) forwards; }
.hero-reveal-1 { animation-delay: 80ms; }
.hero-reveal-2 { animation-delay: 160ms; }
.hero-reveal-3 { animation-delay: 240ms; }
.hero-reveal-4 { animation-delay: 320ms; }
.hero-reveal-5 { animation-delay: 400ms; }
@keyframes heroReveal { to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--motion-reveal) var(--ease-smooth), transform var(--motion-reveal) var(--ease-smooth); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 680ms var(--ease-smooth), transform 680ms var(--ease-smooth); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }

.float-slow { animation: floatSlow 8s ease-in-out infinite; }
.float-slower { animation: floatSlow 10s ease-in-out infinite; animation-delay: 1.2s; }
@keyframes floatSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.dashboard-glow { animation: glowDrift 10s ease-in-out infinite; }
@keyframes glowDrift {
  0%, 100% { transform: translate3d(0,0,0) scale(1); opacity: 0.82; }
  50% { transform: translate3d(8px,-10px,0) scale(1.04); opacity: 1; }
}
.chart-line { stroke-dasharray: 420; stroke-dashoffset: 420; animation: chartDraw 1300ms var(--ease-smooth) 600ms forwards; }
@keyframes chartDraw { to { stroke-dashoffset: 0; } }
@keyframes statusPulse { 0%,100% { opacity: 0.18; transform: scale(0.9); } 50% { opacity: 0.42; transform: scale(1.12); } }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(4px); } }
@keyframes buttonSpin { to { transform: rotate(360deg); } }
@keyframes successReveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================ RESPONSIVE */
@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy .text-display { max-width: 100%; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .founder-letter-grid { grid-template-columns: 1fr; gap: 32px; }
  .founder-identity { position: static; display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
  .founder-photo-wrap { margin-bottom: 0; }
  .grid-3, .grid-6, .timeline-grid, .process-grid, .fit-grid { grid-template-columns: 1fr; }
  .mission-bullets { grid-template-columns: 1fr; }
  .timeline-line-wrap { display: none; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .section-large { padding: 92px 0; }
  .container, .container-large, .container-narrow { padding: 0 20px; }
  .nav-links { display: none; }
  .nav { height: 64px; }
  .nav-inner { padding: 0 20px; }
  .logo-sub { display: none; }
  .nav-cta { font-size: 13px; padding: 0 14px; }

  .hero-section { min-height: auto; padding: 72px 0 64px; }
  .hero-subheadline { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-dashboard-wrap { min-height: auto; }
  .floating-card { display: none; } /* avoid clutter & any narrow-screen overflow per spec */
  .scroll-indicator { display: none; }

  .section-header { margin-bottom: 40px; }
  .section-subheadline { font-size: 16.5px; }

  .card, .card-editorial, .card-elevated { border-radius: 24px; padding: 26px; }
  .card-editorial { padding: 28px; }
  .application-form-card { padding: 26px; border-radius: 24px; }
  .pull-quote { font-size: 23px; padding-left: 18px; }
  .letter-body p { font-size: 16.5px; }
  .founder-identity { grid-template-columns: 1fr; text-align: left; }
  .founder-photo-wrap { max-width: 220px; }

  .standard-item { grid-template-columns: 1fr; gap: 10px; }
  .form-grid-2, .option-grid-2 { grid-template-columns: 1fr; }
  .form-textarea { min-height: 150px; }
  .button-submit { width: 100%; align-self: stretch; }
  .grid-3, .grid-6, .timeline-grid, .process-grid { gap: 16px; }
  .dash-metrics { gap: 8px; }
  .dm-value { font-size: 13px; }
  .footer-inner { flex-direction: column; gap: 24px; }
}

@media (max-width: 374px) {
  .dash-metrics { grid-template-columns: 1fr; }
  .diagram-flow { font-size: 12px; }
}

/* ============================================================ REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > *, .hero-reveal { opacity: 1 !important; transform: none !important; }
  .timeline-line { transform: scaleX(1) !important; }
  .standard-item::before { transform: scaleY(1) !important; }
  .chart-line { stroke-dashoffset: 0 !important; }
  /* the spinner is purely decorative; the "Wysyłanie" label conveys state */
  .button-loading::after { display: none !important; }
}
