/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  /* Colors — Dark */
  --bg-primary: #080808;
  --bg-surface: #111111;
  --bg-elevated: #1a1a1a;
  --text-primary: #F5F5F0;
  --text-secondary: #888888;
  --accent-orange: rgb(243, 99, 25);
  --accent-purple: rgb(80, 71, 237);
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);

  /* Colors — Light (Tech Map) */
  --contrast-bg: #F7F5F0;
  --contrast-text: #1a1a1a;
  --contrast-text-secondary: #666666;
  --contrast-border: rgba(0, 0, 0, 0.08);

  /* Category colors */
  --cat-ecommerce: #F36319;
  --cat-engineering: #6366f1;
  --cat-ai: #f59e0b;
  --cat-tracking: #22c55e;
  --cat-ads: #ec4899;
  --cat-infra: #06b6d4;
  --cat-collab: #8b5cf6;

  /* Fonts */
  --font-heading: 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Geist Mono', monospace;

  /* Spacing */
  --section-padding: clamp(80px, 12vh, 160px);
  --content-width: 1200px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

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

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

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

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.4, 0.25, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--accent-purple);
  color: var(--text-primary);
  border: 1px solid var(--accent-purple);
}

.btn--primary:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  color: var(--text-primary);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn--ghost:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.btn--large {
  height: 44px;
  padding: 0 28px;
  font-size: 14px;
}

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 120px;
}

/* Background photo — positioned to show on the right */
.hero__photo {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/pawel-bw.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: calc(55% + 200px) center;
  z-index: 0;
}

/* Gradient overlay — heavy on left (text), transparent on right (photo) */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(8, 8, 8, 0.97) 0%,
    rgba(8, 8, 8, 0.92) 30%,
    rgba(8, 8, 8, 0.7) 55%,
    rgba(8, 8, 8, 0.35) 80%,
    rgba(8, 8, 8, 0.2) 100%
  );
}

/* Mobile: much darker overlay so text is readable */
.hero__overlay-mobile {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(8, 8, 8, 0.88);
  display: block;
}

@media (min-width: 768px) {
  .hero__overlay-mobile { display: none; }
}

/* Noise texture */
.hero__noise {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Glow orbs */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  z-index: 2;
}

.hero__glow--purple {
  background: var(--accent-purple);
  width: 600px;
  height: 600px;
  top: -15%;
  left: 5%;
  opacity: 0.06;
}

.hero__glow--orange {
  background: var(--accent-orange);
  width: 400px;
  height: 400px;
  bottom: 5%;
  left: 20%;
  opacity: 0.04;
}

/* Golden glow behind the photo silhouette */
.hero__photo-glow {
  position: absolute;
  top: 50%;
  right: 15%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(243, 99, 25, 0.12) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 2;
}

/* Content — centered, constrained */
.hero__content {
  position: relative;
  z-index: 10;
  text-align: left;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
}

@media (min-width: 768px) {
  .hero__content {
    padding: 32px 40px;
  }
}

/* Bottom gradient line */
.hero__bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 20;
  opacity: 0.3;
  background: linear-gradient(90deg, transparent, var(--accent-purple), var(--accent-orange), var(--accent-orange), transparent);
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  margin-bottom: 40px;
  opacity: 0;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* Title */
.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 52px;
  line-height: 60px;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  opacity: 0;
}

.hero__title-accent {
  color: var(--accent-purple);
}

/* CheckoutChamp badge */
.hero__cc-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px 8px 10px;
  background: rgba(243, 99, 25, 0.08);
  border: 1px solid rgba(243, 99, 25, 0.2);
  border-radius: 4px;
  margin-bottom: 20px;
  opacity: 0;
}

.hero__cc-badge img {
  height: 24px;
  width: auto;
  border-radius: 3px;
}

.hero__cc-badge span {
  font-size: 13px;
  font-weight: 600;
  color: rgb(243, 99, 25);
  letter-spacing: 0.01em;
}

/* Subtitle */
.hero__subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 29px;
  margin-bottom: 36px;
  opacity: 0;
}

.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile { display: inline; }
}

/* Stats */
.hero__stats {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  margin-bottom: 2rem;
  opacity: 0;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.hero__stat-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.hero__stat-prefix {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero__stat-number {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}


.hero__stat-suffix {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent-purple);
  font-weight: 700;
}

.hero__stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-light);
}

/* CTA */
.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  margin-bottom: 56px;
  opacity: 0;
}

/* Brands */
.hero__brands {
  opacity: 0;
}

.hero__brands-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 12px;
  opacity: 0.6;
}

.hero__brands-list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__brands-list img {
  height: 36px;
  width: auto;
  object-fit: cover;
  border-radius: 4px;
  filter: brightness(60%);
  transition: filter 0.3s;
}

.hero__brands-list img:hover {
  filter: brightness(100%);
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent-orange), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ═══════════════════════════════════════════
   TECH MAP SECTION
═══════════════════════════════════════════ */
.tech-map {
  position: relative;
  background: var(--contrast-bg);
  padding: 48px 24px 64px;
  overflow: hidden;
}

.tech-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/noise.png');
  background-repeat: repeat;
  background-size: 100px 100px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 768px) {
  .tech-map { padding: 60px 40px 80px; }
}

.tech-map__header {
  text-align: center;
  margin-bottom: 32px;
}

.tech-map__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 36px;
  color: var(--contrast-text);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  opacity: 0;
}

.tech-map__subtitle {
  font-size: 16px;
  color: var(--contrast-text-secondary);
  opacity: 0;
}

/* ── Custom layout of category blocks ── */
.tech-map__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 16px;
}

.tech-map__row {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* ── Category block: pill → lines → icons ── */
.cat-block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.cat-block__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  border: 1.5px solid;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  background: var(--contrast-bg);
}

.cat-block__pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* SVG lines overlay */
.cat-block__svg {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

/* Icons row — fixed width per icon for even spacing */
.cat-block__icons {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* Wyrównanie ikon — top of icon boxes aligned */
  padding-top: 72px;
  position: relative;
  z-index: 2;
}

.cat-block__icons .tech-node {
  width: 100px;
}

/* ── Tech node ── */
.tech-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.3s;
}

.tech-node:hover {
  transform: translateY(-2px);
}

.tech-node__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s;
  overflow: hidden;
}

.tech-node__icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* CheckoutChamp — wyróżniony, lekko większy ale wyrównany */
.tech-node[data-id="checkoutchamp"] .tech-node__icon {
  width: 50px;
  height: 50px;
  outline: 1px solid var(--accent-orange);
  outline-offset: -1px;
  margin-top: -3px;
}

.tech-node[data-id="checkoutchamp"] .tech-node__icon img {
  width: 32px;
  height: 32px;
}

/* Google Ads — wyróżniony */
.tech-node[data-id="google-ads"] .tech-node__icon {
  width: 50px;
  height: 50px;
  outline: 1px solid #4285F4;
  outline-offset: -1px;
  margin-top: -3px;
}

/* TikTok Ads — wyróżniony */
.tech-node[data-id="tiktok"] .tech-node__icon {
  width: 50px;
  height: 50px;
  outline: 1px solid #fe2c55;
  outline-offset: -1px;
  margin-top: -3px;
}

/* Claude Code — wyróżniony */
.tech-node[data-id="claude-code"] .tech-node__icon {
  width: 50px;
  height: 50px;
  outline: 1px solid #d97757;
  outline-offset: -1px;
  margin-top: -3px;
}

/* Next.js — wyróżniony */
.tech-node[data-id="next"] .tech-node__icon {
  width: 50px;
  height: 50px;
  outline: 1px solid #000;
  outline-offset: -1px;
  margin-top: -3px;
}

/* Node.js — wyróżniony */
.tech-node[data-id="node"] .tech-node__icon {
  width: 50px;
  height: 50px;
  outline: 1px solid #3DA92E;
  outline-offset: -1px;
  margin-top: -3px;
}

/* Supabase — wyróżniony */
.tech-node[data-id="supabase"] .tech-node__icon {
  width: 50px;
  height: 50px;
  outline: 1px solid #3ecf8e;
  outline-offset: -1px;
  margin-top: -3px;
}

/* ClickUp — wyróżniony */
.tech-node[data-id="clickup"] .tech-node__icon {
  width: 50px;
  height: 50px;
  outline: 1px solid #8930FD;
  outline-offset: -1px;
  margin-top: -3px;
}

/* Cursor — wyróżniony */
.tech-node[data-id="cursor"] .tech-node__icon {
  width: 50px;
  height: 50px;
  outline: 1px solid #43413c;
  outline-offset: -1px;
  margin-top: -3px;
}

/* AppLovin — wyróżniony */
.tech-node[data-id="applovin"] .tech-node__icon {
  width: 50px;
  height: 50px;
  outline: 1px solid #1d6afe;
  outline-offset: -1px;
  margin-top: -3px;
}

/* Voluum — wyróżniony jak CheckoutChamp */
.tech-node[data-id="voluum"] .tech-node__icon {
  width: 50px;
  height: 50px;
  outline: 1px solid #C800A0;
  outline-offset: -1px;
  margin-top: -3px;
}

.tech-node[data-id="voluum"] .tech-node__icon img {
  width: 32px;
  height: 32px;
}

.tech-node__label {
  font-size: 10px;
  font-weight: 500;
  color: var(--contrast-text-secondary);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.tech-map__legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.tech-map__legend-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--contrast-text-secondary);
}

/* ═══════════════════════════════════════════
   CONTACT SECTION — mirrors hero style
═══════════════════════════════════════════ */
.contact {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 280px;
}

.contact__noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.contact__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  z-index: 1;
}

.contact__glow--purple {
  background: var(--accent-purple);
  width: 500px;
  height: 500px;
  top: -15%;
  left: 5%;
  opacity: 0.06;
}

.contact__glow--orange {
  background: var(--accent-orange);
  width: 400px;
  height: 400px;
  bottom: 5%;
  right: 10%;
  opacity: 0.04;
}

.contact__content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
}

@media (min-width: 768px) {
  .contact__content {
    padding: 32px 40px;
  }
}

/* Badge — same as hero */
.contact__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  margin-bottom: 32px;
  opacity: 0;
}

.contact__badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.contact__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 52px;
  line-height: 60px;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  opacity: 0;
}

.contact__title-accent {
  color: var(--accent-purple);
}

.contact__text {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 29px;
  margin-bottom: 36px;
  opacity: 0;
}

.contact__content .btn {
  opacity: 0;
}

/* Footer */
.footer {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.4;
}

.footer__separator {
  opacity: 0.3;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 600px) {
  .tech-map__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .tech-node__icon {
    width: 36px;
    height: 36px;
  }

  .tech-node__icon img {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 600px) {
  .hero__stats {
    gap: 16px;
  }

  .hero__stat-divider {
    height: 32px;
  }

  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
  }

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

/* ═══════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}
