/* ===================================
   DEAL & CHILL CRM - Main Stylesheet
   Pure CSS (No Tailwind)
   Mobile-First Responsive Design
   =================================== */

/* ===== CSS VARIABLES ===== */
:root {
  /* Brand Colors - EXACT match with React version */
  --brand-purple: #8b5cf6;    /* Violet 500 */
  --brand-teal: #10b981;      /* Emerald 500 */
  --brand-blue: #3b82f6;      /* Blue 500 */
  --brand-cyan: #22d3ee;      /* Cyan 400 - for logo accent */
  --brand-dark: #020617;      /* Slate 950 - main background (DARKER!) */
  --brand-card: #0f172a;      /* Slate 900 - cards (DARKER!) */
  --brand-purple-dark: #7c3aed; /* Violet 600 - darker purple variant */

  /* Grays */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--brand-dark);
  color: var(--slate-100);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--brand-purple);
  color: white;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: white;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--slate-400);
}

a {
  color: var(--brand-teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-purple);
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
  position: relative;
}

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

.hidden {
  display: none !important;
}

/* Background Grid Effect - with purple tint like React version */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(139, 92, 246, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(139, 92, 246, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* 3D Perspective Grid (like in React) */
.bg-grid-perspective {
  background:
    linear-gradient(transparent 0%, var(--brand-dark) 100%),
    linear-gradient(to right, rgba(139, 92, 246, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
  background-size: 100% 100%, 60px 60px, 60px 60px;
  transform: perspective(1000px) rotateX(60deg) translateY(-100px) scale(2);
  opacity: 0.4;
}

/* ===== NAVIGATION ===== */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: white;
  text-decoration: none;
}

.nav-logo-icon {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue));
  padding: 0.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.nav-logo-text {
  color: white;
}

.nav-logo-text .highlight {
  color: var(--brand-cyan); /* Turkusowy akcent jak w oryginale! */
}

.nav-menu {
  display: none;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: var(--slate-400);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color var(--transition-base);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--brand-purple);
  text-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 1.5rem;
  margin-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--slate-300);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.lang-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.lang-dropdown-btn i.fa-globe {
  font-size: 0.875rem;
}

.lang-dropdown-arrow {
  font-size: 0.625rem;
  transition: transform var(--transition-fast);
}

.lang-dropdown.active .lang-dropdown-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--brand-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  z-index: 1000;
  overflow: visible;
}

.lang-dropdown.active .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--slate-300);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-dropdown-item:last-child {
  border-bottom: none;
}

.lang-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.lang-dropdown-item.active {
  background: rgba(139, 92, 246, 0.1);
  color: var(--brand-purple);
}

.lang-dropdown-item.active::before {
  content: '✓';
  font-weight: 700;
  margin-right: 0.25rem;
}

.mobile-menu-toggle {
  display: flex;
  background: transparent;
  border: none;
  color: var(--slate-300);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle:hover {
  color: white;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background-color: var(--brand-card);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--slate-400);
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: rgba(139, 92, 246, 0.1);
  color: var(--brand-purple);
}

/* Desktop Navigation */
@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }

  .mobile-menu-toggle {
    display: none;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-purple);
  color: white;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background: #7c3aed;
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
  overflow: visible;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, transparent, var(--brand-dark));
  z-index: 0;
  pointer-events: none;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

.hero-glow-purple {
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: var(--brand-purple);
  opacity: 0.2;
  border-radius: 50%;
  filter: blur(120px);
  transform: translate(50%, -50%);
}

.hero-glow-teal {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 500px;
  height: 500px;
  background: var(--brand-teal);
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(100px);
  transform: translate(-33%, 50%);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--brand-purple);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.pulse-dot {
  position: relative;
  display: flex;
  height: 8px;
  width: 8px;
}

.pulse-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand-purple);
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}

.pulse-dot::after {
  content: '';
  position: relative;
  display: inline-flex;
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background: var(--brand-purple);
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, white, white, var(--slate-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--slate-400);
  font-weight: 300;
  margin-bottom: 2rem;
}

.hero-features {
  list-style: none;
  margin: 2rem 0;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  color: var(--slate-300);
  margin-bottom: 1rem;
}

.hero-features li svg {
  color: var(--brand-teal);
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
  flex-shrink: 0;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.hero-visual {
  position: relative;
}

.dashboard-mockup {
  position: relative;
  background: rgba(15, 23, 42, 0.6); /* Glassmorphism */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 100px rgba(139, 92, 246, 0.2); /* Purple glow */
  padding: 0.5rem;
  transition: transform var(--transition-slow);
}

.dashboard-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.dashboard-header {
  height: 32px;
  background: var(--slate-900);
  border-radius: 0.75rem 0.75rem 0 0;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.dashboard-content {
  background: var(--slate-900);
  padding: 1.5rem;
  border-radius: 0 0 0.75rem 0.75rem;
  min-height: 400px;
}

.floating-card {
  position: absolute;
  background: var(--brand-card);
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: float 3s ease-in-out infinite;
  z-index: 20;
}

.floating-card-1 {
  left: -2.5rem;
  bottom: 5rem;
}

.floating-card-2 {
  right: -1.25rem;
  top: 2.5rem;
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Desktop Hero Grid */
@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .hero-text {
    text-align: left;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .hero-title {
    font-size: 4rem;
  }
}

/* ===== PROCESS SECTION ===== */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  margin-bottom: 3rem;
}

.step-card {
  background: var(--brand-card);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
  transition: all var(--transition-base);
}

.step-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.step-number {
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--slate-800);
  color: var(--slate-400);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px var(--brand-dark);
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 1rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  margin: 2rem auto 1.5rem;
}

.step-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.step-card p {
  color: var(--slate-400);
  line-height: 1.7;
}

.simulate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--slate-800);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 1.25rem 2.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin: 2rem auto;
}

.simulate-btn:hover:not(:disabled) {
  background: var(--slate-700);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
}

.simulate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

/* ===== AUDIENCE CARDS ===== */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.persona-card {
  background: var(--brand-card);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.persona-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(139, 92, 246, 0.05);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.persona-card:hover::before {
  opacity: 1;
}

.persona-card:hover {
  border-color: var(--brand-purple);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.persona-icon {
  width: 80px;
  height: 80px;
  background: var(--slate-800);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform var(--transition-base);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.persona-card:hover .persona-icon {
  transform: scale(1.1);
}

.persona-icon svg {
  color: var(--brand-purple);
  transition: color var(--transition-base);
}

.persona-card:hover .persona-icon svg {
  color: var(--brand-teal);
}

.persona-card h3 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.persona-card ul {
  list-style: none;
}

.persona-card li {
  display: flex;
  align-items: flex-start;
  color: var(--slate-400);
  margin-bottom: 1rem;
  transition: color var(--transition-fast);
}

.persona-card:hover li {
  color: var(--slate-300);
}

.persona-card li::before {
  content: '•';
  color: var(--brand-teal);
  font-size: 1.5rem;
  margin-right: 0.75rem;
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .audience-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== BENEFITS SECTION ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.benefit-card {
  background: var(--brand-card);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-base);
  position: relative;
  overflow: visible;
}

.benefit-card:hover {
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.3);
}

.benefit-value {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: transform var(--transition-base);
  transform-origin: left;
}

.benefit-card:hover .benefit-value {
  transform: scale(1.1);
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--brand-dark);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--slate-500);
  font-size: 0.875rem;
  margin: 1rem 0;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--slate-400);
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: var(--brand-purple);
}

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: var(--slate-400);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--brand-teal);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  font-size: 0.75rem;
  color: var(--slate-600);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-teal);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(8px); /* Glassmorphism */
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: rgba(15, 23, 42, 0.9); /* Glassmorphism - semi-transparent */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 80px rgba(139, 92, 246, 0.15); /* Purple glow */
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 2rem 2rem 1rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--slate-800);
  border: none;
  border-radius: 0.5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--slate-400);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--slate-700);
  color: white;
}

.modal-body {
  padding: 0 2rem 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--slate-300);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--slate-900);
  border: 1px solid var(--slate-700);
  border-radius: 0.5rem;
  color: white;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

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

.form-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* ===== CHAT WIDGET ===== */
.chat-widget-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--brand-purple);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 999;
}

.chat-widget-btn:hover {
  background: #7c3aed;
  transform: scale(1.1);
}

.chat-widget-btn .pulse {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
}

.chat-widget-btn .pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ef4444;
  border-radius: 50%;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}

.chat-widget-btn .pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #ef4444;
  border-radius: 50%;
}

.chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 90vw;
  max-width: 400px;
  height: 500px;
  background: var(--brand-card);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

.chat-header {
  background: linear-gradient(135deg, var(--brand-purple), #7c3aed);
  padding: 1rem;
  border-radius: 1rem 1rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chat-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 0.25rem;
  color: white;
  cursor: pointer;
  padding: 0.25rem;
  transition: background var(--transition-fast);
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: var(--slate-900);
}

.chat-message {
  display: flex;
  margin-bottom: 1rem;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chat-bubble.bot {
  background: var(--slate-800);
  color: var(--slate-200);
  border: 1px solid var(--slate-700);
  border-radius: 1rem 1rem 1rem 0.25rem;
}

.chat-bubble.user {
  background: var(--brand-purple);
  color: white;
  border-radius: 1rem 1rem 0.25rem 1rem;
}

.chat-typing {
  display: flex;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: 1rem 1rem 1rem 0.25rem;
  width: fit-content;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--slate-400);
  border-radius: 50%;
  animation: bounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-10px); }
}

.chat-input-container {
  padding: 1rem;
  background: var(--brand-card);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 1rem 1rem;
}

.chat-input-wrapper {
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  padding: 0.5rem 1rem;
  background: var(--slate-900);
  border: 1px solid var(--slate-700);
  border-radius: 0.75rem;
  color: white;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.chat-input:focus {
  outline: none;
  border-color: var(--brand-purple);
}

.chat-send {
  background: var(--brand-purple);
  border: none;
  border-radius: 0.75rem;
  color: white;
  padding: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-send:hover:not(:disabled) {
  background: #7c3aed;
}

.chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-powered {
  text-align: center;
  font-size: 0.625rem;
  color: var(--slate-500);
  margin-top: 0.5rem;
}

/* ===== FAQ SECTION ===== */
.faq-search {
  position: relative;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.faq-search input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: var(--slate-900);
  border: 1px solid var(--slate-800);
  border-radius: 0.75rem;
  color: white;
  font-size: 1rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.faq-search input:focus {
  outline: none;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.faq-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-500);
  pointer-events: none;
}

.faq-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.category-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--slate-800);
  background: transparent;
  color: var(--slate-400);
  cursor: pointer;
  transition: all var(--transition-base);
}

.category-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.category-btn.active {
  background: var(--brand-purple);
  color: white;
  border-color: var(--brand-purple);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--brand-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item.active {
  border-color: var(--brand-purple);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.faq-item:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: transparent;
  border: none;
  color: var(--slate-200);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: white;
}

.faq-item.active .faq-question {
  color: var(--brand-purple);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--slate-400);
  line-height: 1.7;
  border-left: 2px solid var(--slate-700);
  margin-left: 1.5rem;
}

/* ===== UTILITY ANIMATIONS ===== */
.fade-in {
  animation: fadeIn 0.6s ease;
}

.slide-up {
  animation: slideUp 0.6s ease;
}

/* ===== SCROLL TO TOP ===== */
.scroll-to-top {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  background: var(--slate-800);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 998;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
  display: flex;
}

.scroll-to-top:hover {
  background: var(--brand-purple);
  border-color: var(--brand-purple);
  transform: translateY(-4px);
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 4.5rem; }
  h2 { font-size: 3rem; }
}

/* ===== LOADING SPINNER ===== */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
/* Feature icons (About page) */
.feature-icon {
  position: relative;
  z-index: 1;
}

.feature-icon svg {
  width: 40px;
  height: 40px;
  display: inline-block;
  opacity: 1;
  stroke: currentColor;
  fill: none;
}

.chat-widget,
.chat-widget-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 1100px;
    margin: auto;
    background: #0f172a;
    color: #e5e7eb;
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-banner a {
    color: #38bdf8;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.cookie-btn.accept {
    background: #22c55e;
    color: #022c22;
}

.cookie-btn.decline {
    background: #334155;
    color: #e5e7eb;
}
/* ===== NAVIGATION LINKS COLOR ===== */
.navigation .nav-menu li a {
  color: #ffffff;
}

/* hover */
.navigation .nav-menu li a:hover {
  color: #ffffff;
  opacity: 0.85;
}

/* aktywna strona */
.navigation .nav-menu li a.active {
  color: #ffffff;
  font-weight: 600;
}
/* ===== LOGO CHILL COLOR ===== */
.nav-logo-text .highlight {
  color: var(--brand-teal);
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
}
/* ===== LOGO ICON HOVER EFFECT ===== */

/* stan domyślny */
.nav-logo-icon i {
  color: #ffffff;
  transition: color 0.3s ease, filter 0.3s ease;
}

/* hover na całe logo */
.nav-logo:hover .nav-logo-icon i {
  color: var(--brand-teal);
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
}
/* ===== PRIMARY BUTTON HOVER (GREEN TEAL) ===== */

.btn.btn-primary {
  transition: background-color 0.3s ease,
              box-shadow 0.3s ease,
              color 0.3s ease;
}

.btn.btn-primary:hover {
  background-color: var(--brand-teal);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.45);
}

/* ikona strzałki też na zielono */
.btn.btn-primary:hover i {
  color: #ffffff;
}
.footer {
  position: relative;
  z-index: 9999;
}
/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    color: #fff;
    z-index: 9999;
    padding: 1rem 1.5rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--slate-300);
}

.cookie-content a {
    color: var(--brand-teal);
    text-decoration: underline;
}

.cookie-banner button {
    white-space: nowrap;
}

