/* style.css - Light Mode & Bento Grid */

body {
  scroll-behavior: smooth;
  background-color: #f8fafc; /* slate-50 */
  color: #334155; /* slate-700 */
}

/* Szklana nawigacja i karty (Light Glassmorphism) */
.glass-nav {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

/* Sticky header on scroll */
#main-header.scrolled nav {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
}

#main-header.scrolled nav .nav-link {
  color: #0f172a;
}

/* Section helpers */
.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: #cc5700;
  background: rgba(251, 173, 78, 0.15);
  border: 1px solid rgba(251, 173, 78, 0.2);
}

.section-pill::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #fbad4e;
  box-shadow: 0 0 10px #fbad4e;
}

.section-title {
  margin-top: 1.2rem;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #0f172a;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-lead {
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #475569;
  max-width: 48rem;
}

/* BENTO GRID OFERTA */
.bento-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
  }
  
  .bento-item-large {
    grid-column: span 2;
  }
  .bento-item-tall {
    grid-row: span 2;
  }
}

.bento-card {
  position: relative;
  border-radius: 2rem;
  padding: 2rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.8) 100%);
  border: 1px solid rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, -20%), rgba(251,173,78,0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08), 0 0 20px rgba(251, 173, 78, 0.1);
  border-color: rgba(251, 173, 78, 0.3);
}

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

/* Ikony */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: rgba(251, 173, 78, 0.1);
  border: 1px solid rgba(251, 173, 78, 0.2);
  color: #cc5700;
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.5rem;
}

.offer-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #334155;
}

/* Konfigurator */
.config-option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  border-radius: 1.5rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  color: #0f172a;
}

.config-option:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.config-option.selected {
  border-color: #fbad4e;
  background: rgba(251, 173, 78, 0.05);
  box-shadow: 0 0 20px rgba(251, 173, 78, 0.15);
}

/* FAQ */
.faq-item {
  border-radius: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.05);
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  transition: background 0.3s;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.9);
}

.faq-trigger {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: #0f172a;
}

.faq-content {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: #475569;
  display: none;
}

.faq-item.open .faq-content {
  display: block;
}

/* Formularz */
.form-input {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 0.8rem 1.2rem;
  font-size: 0.95rem;
  color: #0f172a;
  background-color: rgba(255, 255, 255, 0.8);
  outline: none;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: #fbad4e;
  box-shadow: 0 0 0 2px rgba(251, 173, 78, 0.2);
  background-color: #ffffff;
}

/* Blog Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.5rem;
}

.modal-container {
  max-width: 36rem;
  width: 100%;
  border-radius: 2rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2);
  padding: 2.5rem;
  color: #0f172a;
}

.modal-close {
  color: #64748b;
}
.modal-close:hover {
  color: #0f172a;
}

/* Utilities */
.text-brand { color: #fbad4e; }
.bg-brand { background-color: #fbad4e; }
.hover\:bg-brandDark:hover { background-color: #cc5700; }
.text-brandDark { color: #cc5700; }

.gradient-text {
  background: linear-gradient(to right, #0f172a, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-accent {
  background: linear-gradient(to right, #fbad4e, #f87171);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animacja pisania (Typewriter) */
.typewriter-word {
  background: linear-gradient(135deg, #fbad4e, #f87171);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
  font-weight: 700;
  padding-right: 6px;
  /* Dodatkowy padding-bottom zapobiega ucinaniu descenderów (y, g, p) */
  padding-bottom: 0.1em;
  line-height: 1.15;
}
.typewriter-word::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 4px;
  background-color: #fbad4e;
  border-radius: 2px;
  animation: blink-cursor 0.75s step-end infinite;
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Button hover animation */
.btn-hover-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-hover-arrow i {
  transition: transform 0.3s ease;
}

.btn-hover-arrow:hover i {
  transform: translateX(4px);
}

/* Glow Orb */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

/* Nowy Konfigurator Modal */
body.modal-open {
  overflow: hidden;
}

#advanced-config-modal {
  transition: opacity 0.5s ease;
}

#advanced-config-modal.show {
  opacity: 1;
  pointer-events: auto;
}

#advanced-config-modal.show #config-box {
  transform: scale(1);
}

.config-modal-step {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  position: absolute;
  top: 0; left: 0; right: 0;
  pointer-events: none;
  visibility: hidden;
}

.config-modal-step.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
  visibility: visible;
}

.config-answer-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  transition: all 0.3s ease;
  text-align: left;
}

.config-answer-btn:hover, .config-answer-btn:focus {
  border-color: #fbad4e;
  background: rgba(251, 173, 78, 0.05);
  box-shadow: 0 4px 15px rgba(251,173,78,0.1);
  outline: none;
}

.config-answer-btn:active {
  transform: scale(0.98);
}

.config-answer-letter {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #64748b;
  margin-right: 1.25rem;
  transition: all 0.3s ease;
}

.config-answer-btn:hover .config-answer-letter, .config-answer-btn:focus .config-answer-letter {
  background: #fbad4e;
  color: #ffffff;
}

.config-answer-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: #334155;
}

.config-answer-btn:hover .config-answer-text, .config-answer-btn:focus .config-answer-text {
  color: #0f172a;
}

/* AI Siri Border (Apple Intelligence Style) */
.ai-siri-border {
  position: fixed;
  inset: 0; 
  z-index: 9999;
  pointer-events: none;
  /* overflow: hidden dba o to, by blur nie psuł siatki bocznych pasków przewijania w przeglądarkach */
  overflow: hidden; 
}

.ai-siri-border::before {
  content: "";
  position: absolute;
  /* Border wychodzi dokładnie poza krawędź ekranu, by wniknięcie kolorów opierało się wyłącznie na magicznym blurze */
  inset: -45px; 
  border: 45px solid transparent; 
  
  /* Paleta kolorów wprost z nowego asystenta Apple Intelligence */
  background: linear-gradient(
    115deg,
    #ffc933 0%,   /* Żywy Żółty / Pomarańcz - Lewa góra */
    #ff2181 33%,  /* Mocna Magenta / Róż - Lewy środek/dół */
    #7a1cf6 66%,  /* Głęboki Fiolet - Prawy dół */
    #17ccff 100%  /* Czysty Błękit Cyjan - Prawa góra */
  ) border-box;
  
  /* Maska pozostawiająca puste centrum ekranu, farbuje tylko krawędź poza obszarem roboczym */
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  
  /* Potężny, kinowy blur, który wtapia światło w stronę - rozlewa się na ok. 35px do środka! */
  filter: blur(35px);
  opacity: 0.95;
  
  /* Animacja pływania cieczy i oddychania światła */
  background-size: 250% 250%;
  animation: apple-ai-glow 7s ease-in-out infinite alternate;
}

@keyframes apple-ai-glow {
  0% { 
    background-position: 5% 10%; 
    filter: blur(35px); 
    opacity: 0.85;
  }
  50% { 
    background-position: 95% 50%; 
    filter: blur(45px); 
    opacity: 1; 
  }
  100% { 
    background-position: 50% 95%; 
    filter: blur(30px); 
    opacity: 0.9; 
  }
}

/* Efekt dla tekstu Boost (Stonowane: Useemore Brand & Koral) */
.ai-glow-text {
  background: linear-gradient(
    115deg,
    #fbad4e 0%,   /* Useemore Brand pomarańcz */
    #f87171 40%,  /* Miękki koral/czerwień */
    #fbad4e 80%,  /* Powrót pomarańczowy */
    #f87171 100%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-ai-glow 5s linear infinite;
  display: inline-block;
  font-weight: 800;
}

@keyframes shine-ai-glow {
  0% { background-position: 0% center; }
  100% { background-position: -200% center; }
}
