/* ============================================================
   BestFX.pl — style strony głównej
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #05050c;
  --bg-alt: #0a0a18;
  --bg-card: #10101f;
  --border: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.22);
  --blue: #3b6bff;
  --blue-bright: #5b8bff;
  --purple: #8b2dff;
  --purple-bright: #a855f7;
  --grad: linear-gradient(135deg, #3b6bff 0%, #8b2dff 55%, #05050c 100%);
  --grad-text: linear-gradient(90deg, #6f9bff 0%, #b07bff 100%);
  --white: #ffffff;
  --text: #e9e9f3;
  --text-muted: #9797ad;
  --text-dim: #6e6e83;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow-glow: 0 0 60px rgba(80, 60, 255, 0.25);
  --maxw: 1240px;

  /* liquid glass */
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 45%, rgba(255, 255, 255, 0.05) 100%), rgba(20, 20, 38, 0.38);
  --glass-bg-strong: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.07) 100%), rgba(28, 28, 50, 0.46);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-border-strong: rgba(255, 255, 255, 0.3);
  --glass-blur: blur(22px) saturate(160%);
  --glass-shadow: 0 24px 60px -16px rgba(2, 2, 12, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-alt {
  background: rgba(9, 9, 20, 0.55);
}

/* ---------- liquid glass base ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 60px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 17px;
}

/* ---------- background glow decor ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.glow-orb.o1 {
  width: 560px;
  height: 560px;
  background: var(--blue);
  top: -180px;
  left: -140px;
}

.glow-orb.o2 {
  width: 520px;
  height: 520px;
  background: var(--purple);
  top: 22%;
  right: -200px;
}

.glow-orb.o3 {
  width: 460px;
  height: 460px;
  background: var(--blue);
  bottom: -160px;
  left: 15%;
}

.glow-orb.o4 {
  width: 440px;
  height: 440px;
  background: var(--purple);
  top: 55%;
  left: -180px;
  opacity: 0.3;
}

.glow-orb.o5 {
  width: 480px;
  height: 480px;
  background: var(--blue);
  bottom: 5%;
  right: -160px;
  opacity: 0.3;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
  overflow: hidden;
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  -webkit-mask-image: -webkit-radial-gradient(circle, #fff 100%, #000 100%);
  mask-image: radial-gradient(circle, #fff 100%, #000 100%);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 45%), var(--grad);
  color: var(--white);
  box-shadow: 0 8px 30px rgba(90, 60, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(120, 70, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-ghost {
  background: var(--glass-bg);
  color: var(--white);
  border-color: var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-ghost:hover {
  border-color: var(--glass-border-strong);
  background: var(--glass-bg-strong);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.01) 60%), rgba(6, 6, 16, 0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  padding: 12px 0;
  border-bottom-color: var(--glass-border);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06), 0 12px 40px -20px rgba(0, 0, 0, 0.5);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

.logo span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 14, 0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-size: 26px;
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  color: var(--white);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.08;
  margin-bottom: 24px;
  white-space: pre-line;
}

.hero-title .grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-dim);
  font-size: 14px;
}

.trust-avatars {
  display: flex;
}

.trust-avatars span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -10px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.trust-avatars span:first-child {
  margin-left: 0;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1/1.05;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.02) 40%, transparent 100%), linear-gradient(135deg, rgba(59, 107, 255, 0.75) 0%, rgba(139, 45, 255, 0.7) 55%, rgba(5, 5, 12, 0.7) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border-strong);
  overflow: hidden;
  box-shadow: var(--shadow-glow), var(--glass-shadow);
  -webkit-mask-image: -webkit-radial-gradient(circle, #fff 100%, #000 100%);
  mask-image: radial-gradient(circle, #fff 100%, #000 100%);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25), transparent 55%);
}

.hero-visual .noise {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 6px);
  mix-blend-mode: overlay;
}

.hero-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-play button {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero-play button svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

.hero-play button:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.25);
}

.hero-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(5, 5, 15, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: white;
  font-weight: 500;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 14px;
}

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

.service-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-strong);
  background: var(--glass-bg-strong);
  box-shadow: 0 30px 70px -18px rgba(60, 40, 200, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(circle, #fff 100%, #000 100%);
  mask-image: radial-gradient(circle, #fff 100%, #000 100%);
}

.service-icon .icon {
  color: white;
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-blob {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-blob::before {
  content: "";
  position: absolute;
  width: 140%;
  height: 140%;
  background: conic-gradient(from 180deg, #3b6bff, #8b2dff, #05050c, #3b6bff);
  animation: spin 14s linear infinite;
  opacity: 0.55;
  filter: blur(40px);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.about-blob .center-mark {
  position: relative;
  z-index: 1;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: white;
  text-align: center;
  padding: 24px;
}

.about-text p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 28px;
}

.about-list {
  display: grid;
  gap: 16px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  font-size: 15px;
}

.about-list .icon {
  color: var(--blue-bright);
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-card {
  position: relative;
  padding: 30px 22px;
}

.process-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 42px;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.6;
  margin-bottom: 14px;
}

.process-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.process-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(circle, #fff 100%, #000 100%);
  mask-image: radial-gradient(circle, #fff 100%, #000 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  color: var(--white);
  border-color: var(--glass-border-strong);
  background: var(--glass-bg-strong);
}

.filter-btn.active {
  background: var(--grad);
  color: white;
  border-color: transparent;
}

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

.portfolio-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-strong);
  box-shadow: 0 30px 70px -14px rgba(60, 40, 200, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.pf-thumb {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}

.pf-thumb .pf-grad {
  position: absolute;
  inset: 0;
}

.pf-thumb .pf-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
}

.pf-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pf-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.pf-play svg {
  width: 22px;
  height: 22px;
  color: white;
  margin-left: 3px;
}

.portfolio-card:hover .pf-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.pf-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  color: white;
}

.pf-body {
  padding: 20px;
}

.pf-body h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.pf-body p {
  color: var(--text-muted);
  font-size: 14px;
}

.pf-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 12px;
}

.pf-meta .icon {
  width: 14px;
  height: 14px;
}

.portfolio-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.portfolio-more {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 3, 8, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 40px 20px;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid var(--glass-border-strong);
  border-radius: 26px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s ease;
  max-height: 88vh;
  overflow-y: auto;
}

.lightbox.open .lightbox-content {
  transform: translateY(0) scale(1);
}

.lightbox-visual {
  aspect-ratio: 16/9;
  position: relative;
}

.lightbox-body {
  padding: 32px;
}

.lightbox-body h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.lightbox-body p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-track-wrap {
  overflow: hidden;
  position: relative;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 16px);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.t-stars {
  display: flex;
  gap: 3px;
  color: #ffb020;
  margin-bottom: 18px;
}

.t-stars .icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.testimonial-card p {
  color: var(--text);
  font-size: 15px;
  margin-bottom: 22px;
  flex: 1;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.t-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 14px;
  flex-shrink: 0;
}

.t-name {
  font-weight: 600;
  color: white;
  font-size: 14px;
}

.t-role {
  color: var(--text-dim);
  font-size: 13px;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  transition: all 0.3s ease;
}

.t-dot.active {
  background: var(--grad);
  width: 24px;
  border-radius: 4px;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
}

.price-card.highlighted {
  border-color: var(--glass-border-strong);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 45%, rgba(59, 107, 255, 0.1) 100%), rgba(30, 30, 60, 0.4);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  position: relative;
  box-shadow: 0 30px 70px -14px rgba(80, 50, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.price-card.highlighted::before {
  content: "Najpopularniejszy";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.price-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.price-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.price-value span {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}

.price-list {
  margin: 28px 0 32px;
  display: grid;
  gap: 14px;
  flex: 1;
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.price-list .icon {
  width: 16px;
  height: 16px;
  color: var(--blue-bright);
  margin-top: 2px;
  flex-shrink: 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.faq-item.open {
  border-color: var(--glass-border-strong);
  background: var(--glass-bg-strong);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  font-family: "Space Grotesk", sans-serif;
}

.faq-q .icon {
  transition: transform 0.3s ease;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item.open .faq-q .icon {
  transform: rotate(180deg);
  color: var(--blue-bright);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a-inner {
  padding: 0 26px 22px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ============================================================
   DISCORD
   ============================================================ */
.discord-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 45%, rgba(139, 45, 255, 0.08) 100%), rgba(20, 20, 38, 0.4);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--glass-shadow);
}

.discord-icon-wrap {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  border-radius: 22px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(90, 60, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(circle, #fff 100%, #000 100%);
  mask-image: radial-gradient(circle, #fff 100%, #000 100%);
}

.discord-icon-wrap .icon {
  width: 38px;
  height: 38px;
  color: white;
}

.discord-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.discord-card p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 440px;
  margin: 0 auto 30px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.contact-info-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.02) 40%, transparent 100%), linear-gradient(135deg, rgba(59, 107, 255, 0.55) 0%, rgba(139, 45, 255, 0.5) 55%, rgba(5, 5, 12, 0.6) 100%);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  padding: 40px 34px;
  position: relative;
  overflow: hidden;
  height: fit-content;
}

.contact-info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 8px);
}

.contact-info-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
  position: relative;
}

.contact-info-card > p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin-bottom: 32px;
  position: relative;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  color: white;
  position: relative;
}

.contact-info-item .ico-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item .lbl {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2px;
}

.contact-info-item .val {
  font-weight: 600;
  font-size: 14px;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  position: relative;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.2s ease;
  font-size: 13px;
  font-weight: 700;
}

.social-row a:hover {
  background: rgba(255, 255, 255, 0.3);
}

.contact-form {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 13px 16px;
  color: white;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(91, 139, 255, 0.15);
}

.form-group select option {
  background: var(--bg-card);
}

.form-msg {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
}

.form-msg.show {
  display: block;
}

.form-msg.success {
  background: rgba(40, 200, 120, 0.12);
  border: 1px solid rgba(40, 200, 120, 0.3);
  color: #4ee69a;
}

.form-msg.error {
  background: rgba(255, 70, 70, 0.12);
  border: 1px solid rgba(255, 70, 70, 0.3);
  color: #ff8a8a;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.02) 40%, transparent 100%), linear-gradient(135deg, rgba(59, 107, 255, 0.6) 0%, rgba(139, 45, 255, 0.55) 60%, rgba(5, 5, 12, 0.55) 100%);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--glass-shadow);
  padding: 70px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(circle, #fff 100%, #000 100%);
  mask-image: radial-gradient(circle, #fff 100%, #000 100%);
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 8px);
}

.cta-banner h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: white;
  margin-bottom: 16px;
  position: relative;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  margin-bottom: 32px;
  position: relative;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-ghost {
  background: white;
  color: #1a1a2e;
  border-color: white;
  position: relative;
}

.cta-banner .btn-ghost:hover {
  background: rgba(255,255,255,0.9);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 14px;
  color: white;
  margin-bottom: 18px;
  font-family: "Space Grotesk", sans-serif;
}

.footer-col ul {
  display: grid;
  gap: 12px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: var(--text-dim);
}

.footer-bottom a:hover {
  color: white;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger.visible > * {
  transition-delay: calc(var(--i, 0) * 0.08s);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }

  .services-grid,
  .portfolio-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

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

  .testimonial-card {
    flex: 0 0 calc(50% - 12px);
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

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

  .services-grid,
  .portfolio-grid,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    flex: 0 0 100%;
  }

  .cta-banner {
    padding: 50px 26px;
  }

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

  .header-actions .btn span {
    display: none;
  }
}
