/* ============================================================
   Maciej Mięso — Marketing dla Małych Firm
   Luxury Light Mode Design System
   ============================================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  /* Core palette - Apple Light Mode */
  --white: #FFFFFF;
  --off-white: #FBFBFD;
  --bg-subtle: #F5F5F7;
  --bg-warm: #F5F5F7;

  /* Text */
  --text-primary: #1D1D1F;
  --text-secondary: #86868B;
  --text-muted: #86868B;
  --text-light: #D2D2D7;

  /* Accent — Apple Blue */
  --accent: #0066CC;
  --accent-light: #EDF2F9;
  --accent-subtle: rgba(0, 102, 204, 0.08);
  --accent-border: rgba(0, 102, 204, 0.15);
  --accent-glow: rgba(0, 102, 204, 0.06);

  /* Borders & dividers */
  --border-light: rgba(0, 0, 0, 0.04);
  --border-medium: rgba(0, 0, 0, 0.08);
  --divider: rgba(0, 0, 0, 0.06);

  /* Shadows - Extremely diffused */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.08);
  --shadow-image: 0 24px 80px rgba(0, 0, 0, 0.12);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --nav-height: 56px;
  --container-max: 1100px;
  --section-padding: clamp(100px, 14vw, 180px);

  /* Transitions (Emil Kowalski) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-default: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration-fast: 160ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

::selection {
  background: var(--accent-subtle);
  color: var(--accent);
}

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

:focus:not(:focus-visible) {
  outline: none;
}

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 12px 24px;
  background: var(--text-primary);
  color: var(--white);
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10001;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ---------- UTILITY ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px);
}

.accent-text {
  color: var(--accent);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  max-width: 680px;
}

.section-title--center {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   NAVIGATION — Glassmorphism
   ============================================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--duration-normal), box-shadow var(--duration-normal), backdrop-filter var(--duration-normal);
}

#nav.scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--border-light);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px);
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-logo {
  z-index: 10;
}

.nav-logo-text {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--duration-fast);
  letter-spacing: 0.2px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--text-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 10;
  justify-self: end;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}

.nav-social a {
  color: var(--text-muted);
  transition: color var(--duration-fast);
  display: flex;
  align-items: center;
}

.nav-social a:hover {
  color: var(--text-primary);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   MOBILE MENU — Luxury Light
   ============================================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-menu a {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 300;
  color: var(--text-secondary);
  transition: color var(--duration-fast), transform 250ms var(--ease-out), opacity 250ms var(--ease-out);
  transform: translateY(16px);
  opacity: 0;
  letter-spacing: -0.2px;
}

.mobile-menu.active a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu a:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu a:nth-child(6) { transition-delay: 0.3s; }

.mobile-menu a:hover {
  color: var(--text-primary);
}

.mobile-cta {
  margin-top: 20px;
  padding: 14px 36px;
  background: var(--text-primary);
  border-radius: 980px;
  color: var(--white) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  opacity: 0 !important;
  letter-spacing: 0 !important;
}

.mobile-menu.active .mobile-cta {
  opacity: 1 !important;
  transition-delay: 0.3s;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 160ms var(--ease-out), background 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--text-primary);
  color: var(--white);
}

.btn-primary:hover {
  background: #000000;
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  color: var(--text-primary);
  background: var(--off-white);
  font-weight: 500;
  border: 1px solid var(--border-medium);
}

.btn-ghost:hover {
  background: var(--bg-subtle);
  border-color: var(--border-medium);
}

.btn-large {
  padding: 18px 40px;
  font-size: 15px;
}

.btn-full {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
}

/* ============================================================
   1. HERO — Two-column layout
   ============================================================ */
.hero {
  background: var(--white);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero-content {
  padding: 40px 0;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.hero-title .line {
  display: block;
}

.hero-title-accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 20px;
  box-shadow: var(--shadow-image);
  transition: transform 800ms var(--ease-out);
}

html.js-loaded .hero-image img {
  transform: scale(1.02);
}

html.js-loaded .hero-image.revealed img {
  transform: scale(1);
}

/* ============================================================
   2. PROBLEM
   ============================================================ */
.problem {
  background: var(--off-white);
  padding: var(--section-padding) 0;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.problem-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-image);
}

.problem-content {
  padding: 20px 0;
}

.problem-content .section-title {
  margin-bottom: 48px;
}

.problem-bullets {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.problem-bullet {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--divider);
}

.problem-bullet:first-child {
  border-top: 1px solid var(--divider);
}

.problem-bullet-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 3px;
  letter-spacing: 1px;
}

.problem-bullet p {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.6;
}

.problem-shift {
  margin-top: 48px;
}

.shift-divider {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 24px;
}

.shift-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.shift-text strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================================
   3. COMPONENTS (Service Grid)
   ============================================================ */
.components {
  background: var(--white);
  padding: var(--section-padding) 0;
}

.components .section-label {
  text-align: center;
}

.components-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}

.component-card {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 32px 24px;
  transition: transform 280ms var(--ease-out), border-color var(--duration-normal), box-shadow var(--duration-normal);
}

.component-card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.component-card-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.1px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.component-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   4. SYSTEM
   ============================================================ */
.system {
  background: var(--off-white);
  padding-bottom: var(--section-padding);
}

.system-hero {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  margin-bottom: 80px;
}

.system-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.system .section-label {
  text-align: center;
}

.system-steps {
  max-width: 720px;
  margin: 0 auto;
  margin-top: 56px;
  display: flex;
  flex-direction: column;
}

.system-step {
  display: grid;
  grid-template-columns: 48px 1fr 8fr;
  gap: 0;
  padding: 48px 0;
  border-bottom: 1px solid var(--divider);
  align-items: start;
}

.system-step:first-child {
  border-top: 1px solid var(--divider);
}

.system-step-number {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  padding-top: 4px;
  letter-spacing: 1px;
}

.system-step-line {
  width: 1px;
  height: 100%;
  min-height: 40px;
  background: var(--border-light);
  margin: 0 24px;
}

.system-step-content h3 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.2px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.system-step-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.system-step-outcome {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 12px 20px;
  background: var(--white);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
}

.system-step-arrow {
  color: var(--accent);
  font-size: 14px;
}

.system-step-outcome p {
  font-size: 14px;
  color: var(--accent);
  line-height: 1.5;
  font-weight: 500;
}

/* ============================================================
   5. RESULTS
   ============================================================ */
.results {
  background: var(--white);
  padding: var(--section-padding) 0;
}

.results .section-label {
  text-align: center;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}

.result-card {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 36px 32px;
  transition: transform 280ms var(--ease-out), border-color var(--duration-normal), box-shadow var(--duration-normal);
}

.result-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.result-card h3 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.2px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.result-card > p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.result-card-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.result-stat {
  display: flex;
  flex-direction: column;
}

.result-stat-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
}

.result-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.3px;
}

.result-card-image {
  border-radius: 4px;
  overflow: hidden;
}

.result-card-image img {
  width: 100%;
  border-radius: 12px;
}

/* ============================================================
   6. MODEL
   ============================================================ */
.model {
  background: var(--off-white);
  padding: var(--section-padding) 0;
}

.model-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}

.model-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-image);
}

.model-content {
  padding: 20px 0;
}

.model-content .section-title {
  margin-bottom: 28px;
}

.model-intro {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.model-points {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}

.model-point {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--divider);
}

.model-point:first-child {
  border-top: 1px solid var(--divider);
}

.model-point-dash {
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.model-point p {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.6;
}

.model-note {
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--accent-border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
}

.model-note p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   7. CONTACT
   ============================================================ */
.contact {
  background: var(--white);
  padding: var(--section-padding) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-content {
  padding: 20px 0;
}

.contact-content .section-title {
  margin-bottom: 20px;
}

.contact-intro {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
}

.contact-profiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.contact-profile {
  padding: 24px;
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: border-color var(--duration-normal), box-shadow var(--duration-normal);
}

.contact-profile-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.contact-profile ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-profile li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.contact-profile li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.contact-exclusions {
  margin-bottom: 40px;
  padding: 20px 24px;
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.contact-exclusions-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.contact-exclusions-items {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-exclusions-items span {
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-exclusions-dot {
  color: var(--text-light);
}

.contact-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-image);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms var(--ease-out), visibility 200ms var(--ease-out);
  padding: 20px;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.modal-content {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(10px) scale(0.95);
  opacity: 0;
  transition: transform 300ms var(--ease-out), opacity 300ms var(--ease-out);
  box-shadow: var(--shadow-lg);
}

.modal.active .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color var(--duration-fast);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-title {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--off-white);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  outline: none;
  box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-success {
  text-align: center;
  padding: 24px 0;
}

.modal-success-title {
  font-size: 20px;
  font-weight: 300;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal-success p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--off-white);
  padding: 40px 0;
  border-top: 1px solid var(--divider);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social a {
  color: var(--text-muted);
  transition: color var(--duration-fast);
  display: flex;
  align-items: center;
}

.footer-social a:hover {
  color: var(--text-primary);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */

/* All elements visible by default (no-JS fallback) */
.reveal {
  transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out);
}

/* Only hide elements when JS is active */
html.js-loaded .reveal {
  opacity: 0;
}

html.js-loaded .reveal.revealed {
  opacity: 1;
  transform: none !important;
}

html.js-loaded .reveal-up {
  transform: translateY(24px);
}

html.js-loaded .reveal-left {
  transform: translateX(-24px);
}

html.js-loaded .reveal-right {
  transform: translateX(24px);
}

/* ---- Component card stagger ---- */
.component-card.reveal:nth-child(1) { transition-delay: 0ms; }
.component-card.reveal:nth-child(2) { transition-delay: 60ms; }
.component-card.reveal:nth-child(3) { transition-delay: 120ms; }
.component-card.reveal:nth-child(4) { transition-delay: 180ms; }

/* ---- Result card stagger ---- */
.result-card.reveal:nth-child(1) { transition-delay: 0ms; }
.result-card.reveal:nth-child(2) { transition-delay: 80ms; }
.result-card.reveal:nth-child(3) { transition-delay: 160ms; }
.result-card.reveal:nth-child(4) { transition-delay: 240ms; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html.js-loaded .reveal {
    opacity: 1;
    transform: none !important;
    transition: none;
  }

  .hero-image img {
    transform: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   HOVER: POINTER DEVICES
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  }

  .btn-ghost:hover {
    transform: translateY(-1px);
  }

  .result-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  }

  .component-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  }

  .contact-profile:hover {
    border-color: var(--accent-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet+ */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 40px;
  }

  .hero-image img {
    max-height: 70vh;
  }

  .problem-grid {
    gap: 48px;
  }

  .model-grid {
    gap: 48px;
  }

  .contact-grid {
    gap: 48px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .nav-container {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-social {
    display: none;
  }

  /* Hero — stack */
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 32px);
    padding-bottom: 48px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    padding: 20px 0 0;
    text-align: center;
  }

  .hero-eyebrow {
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: clamp(26px, 6vw, 36px);
    margin-bottom: 20px;
  }

  .hero-subtitle {
    margin-bottom: 32px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-height: 50vh;
  }

  /* Problem — stack */
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .problem-content {
    padding: 0;
  }

  /* Components — stack */
  .components-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* System */
  .system-hero {
    aspect-ratio: 16 / 9;
    margin-bottom: 56px;
  }

  .system-hero img {
    height: 100%;
  }

  .system-step {
    grid-template-columns: 40px 1fr;
    padding: 32px 0;
  }

  .system-step-line {
    display: none;
  }

  .system-step-content {
    grid-column: 2;
  }

  /* Results — stack */
  .results-grid {
    grid-template-columns: 1fr;
  }

  .result-card {
    padding: 28px 24px;
  }

  /* Model — stack */
  .model-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .model-content {
    padding: 0;
  }

  /* Contact — stack */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-content {
    padding: 0;
  }

  .contact-profiles {
    grid-template-columns: 1fr;
  }

  .contact-cta {
    text-align: center;
  }

  /* Button full width */
  .btn {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }

  .contact-exclusions-items {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .contact-exclusions-dot {
    display: none;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  :root {
    --section-padding: clamp(72px, 12vw, 120px);
  }

  .section-title {
    margin-bottom: 24px;
  }

  .result-card {
    padding: 24px 20px;
  }

  .components-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SYSTEM PROMISE (Speed promise after steps)
   ============================================================ */
.system-promise {
  max-width: 720px;
  margin: 48px auto 0;
  text-align: center;
}

.system-promise-text {
  font-size: 17px;
  font-weight: 400;
  color: var(--accent);
  padding: 24px 32px;
  background: var(--white);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  display: inline-block;
  line-height: 1.5;
}

.system-promise-text strong {
  font-weight: 600;
}

/* ============================================================
   6.5 ABOUT (O mnie)
   ============================================================ */
.about {
  background: var(--off-white);
  padding: var(--section-padding) 0;
}

.about-grid {
  max-width: 720px;
  margin: 0 auto;
}

.about-content .section-title {
  max-width: 600px;
}

.about-intro {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 600px;
}

.about-credentials {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-credential {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--divider);
}

.about-credential:first-child {
  border-top: 1px solid var(--divider);
}

.about-credential-icon {
  font-size: 24px;
  flex-shrink: 0;
  padding-top: 2px;
}

.about-credential strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.about-credential p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}