/* =========================================================
   hello.ai — Warm dark aesthetic, original palette
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Manrope:wght@300;400;500;600&display=swap');

/* --- CSS Variables (original palette) --- */
:root {
  --ink:       #090808;
  --surface:   #12100f;
  --paper:     #e8e4dc;
  --brass:     #b5965f;
  --brass-dim: #8a6c42;
  --clay:      #2a2623;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans:  'Manrope', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(181,150,95,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181,150,95,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Noise texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

::selection { background: var(--brass); color: var(--ink); }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--clay); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brass); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--paper);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-muted  { color: rgba(232,228,220,0.5); }
.text-accent { color: var(--brass); }
.serif       { font-family: var(--font-serif); }

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 0;
  transition: background 0.4s ease, padding 0.3s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(9, 8, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 0;
  border-bottom-color: rgba(42, 38, 35, 0.4);
}

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

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.nav-logo span { font-style: italic; color: var(--brass); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 228, 220, 0.7);
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--brass); }

.nav-sep {
  color: var(--clay);
  font-size: 0.75rem;
  padding: 0 16px;
  user-select: none;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--paper);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  padding-top: 100px;
  padding-bottom: 80px;
}

#neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.95;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      var(--ink) 0%,
      var(--ink) 32%,
      rgba(9, 8, 8, 0.85) 48%,
      rgba(9, 8, 8, 0.3) 65%,
      transparent 80%),
    linear-gradient(to bottom,
      transparent 65%,
      rgba(9, 8, 8, 0.7) 88%,
      var(--ink) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--brass);
  opacity: 0.6;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6.5vw, 5.6rem);
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--paper);
  line-height: 1.08;
  text-shadow: 0 2px 30px rgba(9, 8, 8, 0.95), 0 0 12px rgba(9, 8, 8, 0.8);
}

.hero-title em {
  font-style: italic;
  color: var(--brass);
}

.hero-title-line2 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6.5vw, 5.6rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(232, 228, 220, 0.62);
  margin-bottom: 36px;
  line-height: 1.08;
  text-shadow: 0 2px 30px rgba(9, 8, 8, 0.95), 0 0 12px rgba(9, 8, 8, 0.85);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(232, 228, 220, 0.72);
  max-width: 520px;
  margin-bottom: 16px;
  font-weight: 300;
  line-height: 1.7;
  text-shadow: 0 1px 16px rgba(9, 8, 8, 0.9);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
  margin-top: 28px;
}

.tag {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid rgba(42, 38, 35, 0.8);
  color: rgba(232, 228, 220, 0.4);
  border-radius: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tag:hover { border-color: var(--brass); color: var(--brass); }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid rgba(181, 150, 95, 0.5);
  color: var(--paper);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hero-cta:hover {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

.hero-cta svg { transition: transform 0.25s ease; }
.hero-cta:hover svg { transform: translateX(4px); }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(232, 228, 220, 0.25);
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--brass), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(0.8); }
}

/* =========================================================
   SECTION INDICATOR
   ========================================================= */
.section-indicator {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ind-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  opacity: 0.25;
  transition: opacity 0.3s ease;
}

.ind-item.active { opacity: 1; }
.ind-item:hover  { opacity: 0.6; }

.ind-num {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--paper);
  writing-mode: vertical-rl;
}

.ind-dot {
  width: 4px;
  height: 4px;
  background: var(--paper);
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s ease;
}

.ind-item.active .ind-dot {
  background: var(--brass);
  transform: scale(1.6);
}

/* =========================================================
   SECTIONS — shared
   ========================================================= */
section {
  position: relative;
  padding: 120px 0;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--brass);
  opacity: 0.6;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--paper);
}

.section-subtitle {
  font-size: 0.95rem;
  color: rgba(232, 228, 220, 0.55);
  max-width: 560px;
  line-height: 1.8;
  font-weight: 300;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: rgba(42, 38, 35, 0.5);
}

/* Bokeh */
.bokeh {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.bokeh-gold { background: var(--brass); }
.bokeh-blue { background: var(--brass-dim); }

/* =========================================================
   STATS / KEY CLAIMS
   ========================================================= */
#kontekst { background: var(--surface); }

.claims-header { margin-bottom: 72px; }

.claims-header em {
  font-style: italic;
  color: var(--brass);
}

.claims-desc {
  font-size: 0.95rem;
  color: rgba(232, 228, 220, 0.5);
  max-width: 560px;
  line-height: 1.9;
  margin-top: 20px;
  font-weight: 300;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--clay);
  border: 1px solid var(--clay);
  margin-top: 64px;
}

.stat-item {
  background: var(--ink);
  padding: 48px 40px;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 0;
  background: var(--brass);
  transition: height 0.4s ease;
}

.stat-item:hover::after { height: 100%; }

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 500;
  color: var(--paper);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: rgba(232, 228, 220, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* =========================================================
   PROCESS
   ========================================================= */
#proces { background: var(--ink); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--clay);
  border: 1px solid var(--clay);
  margin-top: 64px;
}

.process-step {
  background: var(--surface);
  padding: 48px 28px;
  position: relative;
  overflow: hidden;
}

.process-step-num {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 500;
  color: var(--paper);
  opacity: 0.05;
  position: absolute;
  top: 16px; right: 16px;
  line-height: 1;
  pointer-events: none;
}

.process-step-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--clay);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--brass);
}

.process-step h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--paper);
}

.process-step p {
  font-size: 0.83rem;
  color: rgba(232, 228, 220, 0.5);
  line-height: 1.75;
  font-weight: 300;
}

.process-step::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width 0.4s ease;
}

.process-step:hover::before { width: 100%; }

/* =========================================================
   SERVICES
   ========================================================= */
#uslugi { background: var(--surface); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--clay);
  border: 1px solid var(--clay);
  margin-top: 64px;
}

.card {
  background: var(--ink);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.card:hover {
  border-color: rgba(181, 150, 95, 0.3);
  box-shadow: 0 0 24px rgba(181, 150, 95, 0.08);
}

.card-num {
  font-family: var(--font-serif);
  font-size: 5.5rem;
  font-weight: 500;
  color: var(--paper);
  opacity: 0.04;
  position: absolute;
  top: 12px; left: 20px;
  line-height: 1;
  pointer-events: none;
}

.card-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--clay);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--brass);
  position: relative;
  z-index: 1;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  color: var(--paper);
}

.card p {
  font-size: 0.88rem;
  color: rgba(232, 228, 220, 0.5);
  line-height: 1.85;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

.card-arrow {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 228, 220, 0.25);
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.card:hover .card-arrow { color: var(--brass); }

/* =========================================================
   CONTACT
   ========================================================= */
#kontakt { background: var(--ink); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 64px;
}

.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--paper);
}

.contact-info p {
  color: rgba(232, 228, 220, 0.5);
  font-size: 0.92rem;
  line-height: 1.85;
  margin-bottom: 40px;
  font-weight: 300;
}

.contact-links {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--clay);
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--clay);
  transition: background 0.2s ease;
  color: var(--paper);
}

.contact-link-item:last-child { border-bottom: none; }
.contact-link-item:hover { background: rgba(181, 150, 95, 0.04); }

.contact-link-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--clay);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass);
  flex-shrink: 0;
}

.contact-link-label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 228, 220, 0.35);
  margin-bottom: 4px;
}

.contact-link-value {
  font-size: 0.9rem;
  color: rgba(232, 228, 220, 0.8);
}

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

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

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--paper);
}

.footer-logo span { font-style: italic; color: var(--brass); }

.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: rgba(232, 228, 220, 0.3);
}

.footer-meta {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: rgba(232, 228, 220, 0.25);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .section-indicator { display: none; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  section { padding: 80px 0; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0;
    width: 100%;
    background: rgba(9, 8, 8, 0.98);
    padding: 24px;
    gap: 20px;
    border-top: 1px solid var(--clay);
  }
  .nav-sep    { display: none; }
  .nav-toggle { display: flex; }

  #neural-canvas { opacity: 0.6; }

  /* Na mobile gradient centralny — mózg na środku, tekst u góry */
  .hero::after {
    background:
      linear-gradient(to bottom,
        var(--ink) 0%,
        rgba(9, 8, 8, 0.88) 22%,
        rgba(9, 8, 8, 0.35) 45%,
        rgba(9, 8, 8, 0.35) 65%,
        rgba(9, 8, 8, 0.88) 85%,
        var(--ink) 100%);
  }

  .cards-grid   { grid-template-columns: 1fr; }
  .stats-row    { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .hero-title, .hero-title-line2 { font-size: 2.6rem; }
}
