/* ════════════════════════════════════════════════════════════════
   N3XARO — Premium project subpages — shared stylesheet
   Dark-luxury (czerń + szampańskie złoto). Używane przez wszystkie
   strony w /projekty/*.html. Fonty ładowane w <head> każdej strony.
   ════════════════════════════════════════════════════════════════ */

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

:root {
  --n3-black: #090A0C;
  --graphite: #15171B;
  --charcoal: #1D2128;
  --ivory: #F3EEE3;
  --stone: #D8D1C5;
  --champagne: #C8A96A;
  --gold: #B8924F;
  --steel: #8A9099;
  --white-05: rgba(243,238,227,0.05);
  --white-10: rgba(243,238,227,0.10);
  --white-20: rgba(243,238,227,0.20);
  --white-40: rgba(243,238,227,0.40);
  --gold-10: rgba(200,169,106,0.10);
  --gold-20: rgba(200,169,106,0.20);
  --accent: var(--champagne);
}

html { scroll-behavior: smooth; }
body {
  background: var(--n3-black);
  color: var(--ivory);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}
.display { font-family: 'Cormorant Garamond', serif; }
.mono { font-family: 'Space Grotesk', sans-serif; }

/* ─── NOISE TEXTURE ─── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.5;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--n3-black); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }
::selection { background: var(--gold-20); color: var(--ivory); }

/* ─── SCROLL PROGRESS ─── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--champagne), var(--gold));
  transform: scaleX(0); transform-origin: left; z-index: 200;
}

/* ─── CURSOR RING ─── */
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 40px; height: 40px; border: 1px solid var(--gold-20);
  border-radius: 50%; pointer-events: none; z-index: 9998;
  opacity: 0; transition: opacity 0.3s, width 0.25s, height 0.25s, border-color 0.25s;
  mix-blend-mode: difference;
}
.cursor-ring.active { width: 64px; height: 64px; border-color: var(--champagne); }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 64px;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(9,10,12,0.9); backdrop-filter: blur(20px);
  padding: 16px 64px; border-bottom: 1px solid var(--white-10);
}
.nav-back {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 400;
  letter-spacing: 0.08em; color: var(--stone); text-decoration: none;
  display: flex; align-items: center; gap: 10px; transition: color 0.25s;
}
.nav-back:hover { color: var(--ivory); }
.nav-back .arrow { transition: transform 0.3s; display: inline-block; }
.nav-back:hover .arrow { transform: translateX(-4px); }
.nav-logo {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 18px;
  letter-spacing: 0.12em; color: var(--ivory); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-mark { display: flex; align-items: center; gap: 3px; }
.nav-logo-mark span { display: block; width: 4px; border-radius: 2px; background: var(--champagne); }
.nav-logo-mark span:nth-child(1) { height: 10px; }
.nav-logo-mark span:nth-child(2) { height: 16px; }
.nav-logo-mark span:nth-child(3) { height: 7px; }

/* ─── SHARED ─── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 64px; }
.eyebrow {
  font-family: 'Space Grotesk', sans-serif; font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--champagne);
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 28px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--champagne); }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ─── BUTTONS ─── */
.btn {
  position: relative; overflow: hidden;
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 38px; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.btn-primary { color: var(--n3-black); background: var(--champagne); border: 1px solid var(--champagne); }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg);
}
.btn-primary:hover::after { animation: sheen 0.9s ease; }
@keyframes sheen { to { left: 140%; } }
.btn-ghost { color: var(--champagne); border: 1px solid var(--gold-20); background: transparent; }
.btn-ghost:hover { border-color: var(--champagne); background: var(--gold-10); }

/* ─── HERO ─── */
#hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding: 120px 0 80px;
}
.hero-mesh {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 75% 30%, rgba(200,169,106,0.16), transparent 70%),
    radial-gradient(45% 55% at 20% 75%, rgba(184,146,79,0.12), transparent 70%),
    radial-gradient(35% 40% at 85% 80%, rgba(138,144,153,0.10), transparent 70%);
  animation: meshFloat 18s ease-in-out infinite alternate;
}
@keyframes meshFloat {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image:
    linear-gradient(var(--white-05) 1px, transparent 1px),
    linear-gradient(90deg, var(--white-05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 70% 40%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 70% 40%, black, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; width: 100%; }
.hero-h1 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(40px, 6.4vw, 84px); line-height: 1.0; letter-spacing: -0.01em;
  color: var(--ivory); margin-bottom: 22px;
}
.hero-h1 .accent { color: var(--champagne); }
.hero-tagline {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(22px, 3vw, 34px); font-weight: 400; color: var(--champagne);
  line-height: 1.25; margin-bottom: 28px;
}
.hero-lead { font-size: 16px; color: var(--stone); line-height: 1.85; max-width: 500px; margin-bottom: 40px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }

/* hero visual */
.hero-visual { position: relative; height: 460px; }
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
.hv-box { fill: none; stroke: var(--white-10); stroke-width: 1; }
.hv-box-active { fill: var(--gold-10); stroke: var(--champagne); stroke-width: 1.2; }
.hv-draw { fill: none; stroke: var(--champagne); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hv-soft { fill: none; stroke: var(--white-20); stroke-width: 1; }
.hv-dot { fill: var(--champagne); }
.hv-fill { fill: var(--gold-10); }
.hv-label { font-family: 'Space Grotesk', sans-serif; font-size: 10px; letter-spacing: 0.12em; fill: var(--steel); text-transform: uppercase; }
.hv-num { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; fill: var(--champagne); }

/* scroll hint */
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  font-family: 'Space Grotesk', sans-serif; font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--steel); display: flex; flex-direction: column;
  align-items: center; gap: 12px; z-index: 2;
}
.scroll-hint .line { width: 1px; height: 40px; background: linear-gradient(var(--champagne), transparent); animation: scrollLine 2s ease-in-out infinite; transform-origin: top; }
@keyframes scrollLine { 0%,100% { transform: scaleY(0.3); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ─── SECTION BASE ─── */
section.band { padding: 130px 0; position: relative; }
.band-graphite { background: var(--graphite); }
.sec-head { max-width: 680px; margin-bottom: 70px; }
.sec-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(34px, 4vw, 56px); line-height: 1.12; color: var(--ivory); margin-bottom: 18px;
}
.sec-title em { font-style: italic; color: var(--champagne); }
.sec-sub { font-size: 15px; color: var(--steel); line-height: 1.9; max-width: 560px; }

/* ─── PROBLEM / SOLUTION ─── */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ps-card { background: var(--charcoal); padding: 52px 48px; position: relative; overflow: hidden; }
.ps-card .tag {
  font-family: 'Space Grotesk', sans-serif; font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 20px; display: block;
}
.ps-card.problem .tag { color: var(--steel); }
.ps-card.solution { background: linear-gradient(140deg, #14110A, var(--charcoal)); }
.ps-card.solution .tag { color: var(--champagne); }
.ps-card h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 27px; color: var(--ivory); line-height: 1.3; margin-bottom: 14px; }
.ps-card p { font-size: 14px; color: var(--stone); line-height: 1.85; }

/* ─── FEATURES ─── */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.feat-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feat {
  background: var(--graphite); padding: 48px 44px; position: relative; overflow: hidden;
  transition: background 0.35s;
}
.band-graphite .feat { background: var(--charcoal); }
.feat:hover { background: var(--charcoal); }
.band-graphite .feat:hover { background: #23272F; }
.feat::before {
  content: ''; position: absolute; bottom: 0; left: 44px; right: 44px; height: 1px;
  background: linear-gradient(90deg, var(--champagne), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease;
}
.feat:hover::before { transform: scaleX(1); }
.feat-icon { width: 44px; height: 44px; margin-bottom: 26px; }
.feat-icon svg { width: 100%; height: 100%; overflow: visible; }
.feat-icon path, .feat-icon circle, .feat-icon rect, .feat-icon line, .feat-icon polyline { fill: none; stroke: var(--champagne); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 19px; color: var(--ivory); margin-bottom: 12px; }
.feat p { font-size: 14px; color: var(--steel); line-height: 1.8; }

/* ─── STATS ─── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stats-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stat { text-align: center; padding: 20px 0; }
.stat-value { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(38px, 5vw, 62px); color: var(--champagne); line-height: 1; margin-bottom: 14px; }
.stat-label { font-size: 12px; color: var(--steel); letter-spacing: 0.04em; line-height: 1.5; }

/* ─── COMPARISON CHART ─── */
.chart { display: grid; gap: 24px; max-width: 880px; }
.chart-row { display: grid; grid-template-columns: 150px 1fr 96px; gap: 22px; align-items: center; }
.chart-label { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 400; letter-spacing: 0.03em; color: var(--stone); }
.chart-track { position: relative; height: 16px; background: var(--white-05); border-radius: 8px; overflow: hidden; }
.chart-bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; }
.chart-bar.dim { background: linear-gradient(90deg, #41464e, var(--steel)); }
.chart-bar.mid { background: linear-gradient(90deg, var(--gold), var(--champagne)); }
.chart-bar.hot { background: linear-gradient(90deg, var(--champagne), #ffe7b4); box-shadow: 0 0 22px rgba(200,169,106,0.55); }
.chart-val { font-family: 'Cormorant Garamond', serif; font-size: 24px; color: var(--champagne); text-align: right; white-space: nowrap; }
.chart-note { margin-top: 36px; font-size: 14px; color: var(--steel); line-height: 1.8; }
.chart-note b { color: var(--champagne); font-weight: 500; }

/* big highlighted callout number */
.mega { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.mega-num { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(72px, 12vw, 150px); line-height: 0.9; color: var(--champagne); }
.mega-text { font-size: 15px; color: var(--stone); line-height: 1.7; max-width: 320px; }

/* ─── DOCUMENT MOCKUP SCENE ─── */
.doc-mock { position: relative; height: 440px; }
.doc-mock svg { width: 100%; height: 100%; overflow: visible; }

@media (max-width: 600px) {
  .chart-row { grid-template-columns: 92px 1fr 60px; gap: 12px; }
  .chart-label { font-size: 11px; }
  .chart-val { font-size: 18px; }
  .mega { gap: 12px; }
}

/* ─── PULLQUOTE ─── */
.pullquote { max-width: 860px; margin: 0 auto; text-align: center; }
.pullquote p {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300;
  font-size: clamp(26px, 3.4vw, 42px); line-height: 1.35; color: var(--ivory);
}
.pullquote p em { color: var(--champagne); font-style: italic; }
.pullquote cite { display: block; margin-top: 26px; font-family: 'Space Grotesk', sans-serif; font-style: normal; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }

/* ─── TAGS ─── */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-pill {
  font-family: 'Space Grotesk', sans-serif; font-size: 10px; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone);
  border: 1px solid var(--white-10); padding: 9px 15px;
}

/* ─── STEPS ─── */
.steps { position: relative; display: grid; gap: 0; }
.steps-line { position: absolute; left: 27px; top: 30px; bottom: 30px; width: 1px; background: var(--white-10); }
.steps-line-fill { position: absolute; left: 27px; top: 30px; width: 1px; height: 0; background: linear-gradient(var(--champagne), var(--gold)); z-index: 1; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 28px; padding: 30px 0; align-items: start; }
.step-num {
  position: relative; z-index: 2; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--gold-20); background: var(--n3-black);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 18px; color: var(--champagne);
  transition: border-color 0.4s, background 0.4s, color 0.4s, box-shadow 0.4s;
}
.step.lit .step-num { border-color: var(--champagne); background: var(--champagne); color: var(--n3-black); box-shadow: 0 0 28px rgba(200,169,106,0.35); }
.step-body h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 22px; color: var(--ivory); margin-bottom: 10px; margin-top: 12px; }
.step-body p { font-size: 15px; color: var(--steel); line-height: 1.85; max-width: 560px; }

/* ─── SPLIT (text + visual / list) ─── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.checklist { list-style: none; display: grid; gap: 16px; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; font-size: 15px; color: var(--stone); line-height: 1.7; }
.checklist li::before { content: ''; margin-top: 8px; width: 7px; height: 7px; background: var(--champagne); transform: rotate(45deg); flex-shrink: 0; }
.checklist li b { color: var(--ivory); font-weight: 500; }

/* ─── CTA BAND ─── */
#cta { padding: 150px 0; text-align: center; position: relative; overflow: hidden; background: var(--graphite); }
.cta-watermark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif; font-size: clamp(110px, 24vw, 360px);
  color: var(--white-05); white-space: nowrap; pointer-events: none; z-index: 0; font-weight: 300;
}
.cta-inner { position: relative; z-index: 2; }
.cta-h2 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(36px, 5vw, 68px); line-height: 1.1; color: var(--ivory); margin-bottom: 16px; }
.cta-h2 em { font-style: italic; color: var(--champagne); }
.cta-sub { font-size: 15px; color: var(--steel); max-width: 460px; margin: 0 auto 44px; line-height: 1.8; }
.cta-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─── */
footer { padding: 60px 0; border-top: 1px solid var(--white-10); }
.foot-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-copy { font-size: 12px; color: var(--steel); max-width: 420px; }
.foot-links { display: flex; gap: 26px; list-style: none; flex-wrap: wrap; }
.foot-links a { font-family: 'Space Grotesk', sans-serif; font-size: 12px; letter-spacing: 0.06em; color: var(--stone); text-decoration: none; transition: color 0.25s; }
.foot-links a:hover { color: var(--champagne); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .wrap { padding: 0 40px; }
  nav { padding: 20px 40px; }
  nav.scrolled { padding: 14px 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { height: 340px; order: 2; }
  .stats-grid, .stats-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .feat-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .wrap { padding: 0 24px; }
  nav { padding: 16px 24px; }
  nav.scrolled { padding: 12px 24px; }
  .nav-logo span.txt { display: none; }
  section.band { padding: 90px 0; }
  .ps-grid, .feat-grid, .feat-grid.cols-3 { grid-template-columns: 1fr; }
  .sec-head { margin-bottom: 48px; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
  #cta { padding: 100px 0; }
}
@media (max-width: 420px) {
  .stats-grid, .stats-grid.cols-3 { grid-template-columns: 1fr; gap: 24px; }
}

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