:root {
      --bg-main: #f5f5f7;
      --bg-window: #ffffff;
      --bg-dark: #050505;

      --text-main: #111111;
      --text-soft: #6b7280;

      --accent-neon: #00ff41;
      --accent-cyan: #00e0ff;
      --accent-magenta: #ff2fa8;
      --accent-blue: #111827;

      --border-soft: #e5e7eb;
      --error: #f43f5e;
      
      --cta-color: var(--accent-neon);
    }

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

    body {
      font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
      background: radial-gradient(circle at top left, #f9fafb 0, #f5f5f7 40%, #e5e7eb 100%);
      color: var(--text-main);
      line-height: 1.5;
      overflow-x: hidden;
    }

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

    h1, h2, h3 {
      font-weight: 700;
      letter-spacing: -0.04em;
    }

    h1 {
      font-size: clamp(2.2rem, 5vw, 4.2rem);
      line-height: 1.05;
      margin-bottom: 1.2rem;
    }

    h2 {
      font-size: clamp(1.8rem, 4vw, 2.8rem);
      margin-bottom: 1.2rem;
    }

    h3 {
      font-size: 1.4rem;
      margin-bottom: 0.8rem;
    }

    p {
      font-size: 1rem;
      max-width: 70ch;
    }

    main {
      max-width: 1040px;
      margin: 0 auto;
      padding: 2rem 1.4rem 3.5rem;
    }

    .section {
      margin: 4rem 0;
      padding-top: 2rem;
      scroll-margin-top: 80px;
      opacity: 0;
      transition: opacity 0.6s ease-out, transform 0.6s ease-out;
      transform: translateY(20px);
    }

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

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

    .highlight {
      background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
      -webkit-background-clip: text;
      color: transparent;
      position: relative;
    }

    .blink {
      animation: blinker 1s linear infinite;
    }

    @keyframes blinker {
      50% { opacity: 0; }
    }

    .btn {
      border-radius: 999px;
      padding: 0.8rem 1.8rem;
      font-size: 0.96rem;
      border: 1px solid rgba(15, 23, 42, 0.9);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      background: #fff;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      transition: all 0.2s ease-out;
    }

    .btn-primary {
      background: var(--accent-blue);
      color: #e5e7eb;
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.45);
      border-color: transparent;
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 30px rgba(15, 23, 42, 0.6);
    }

    .win-box, .module-card {
      background: var(--bg-window);
      border-radius: 14px;
      box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.16),
        0 1px 0 rgba(255, 255, 255, 0.7);
      border: 1px solid rgba(148, 163, 184, 0.5);
      overflow: hidden;
      transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
    }

    .win-box:hover, .module-card:hover {
      transform: translate(-4px, -4px);
      box-shadow:
        0 26px 60px rgba(15, 23, 42, 0.22),
        0 0 0 1px rgba(148, 163, 184, 0.3);
      border-color: rgba(59, 130, 246, 0.4);
    }

    .module-header {
      background: #020617;
      color: #e5e7eb;
      padding: 8px 14px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.78rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
    }

    .module-dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: var(--accent-neon);
      box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
    }

    .module-body {
      padding: 1.4rem 1.5rem 1.5rem;
      font-size: 0.96rem;
      background: #ffffff;
    }

    .sticky-cta {
      position: fixed;
      bottom: 1.5rem;
      right: 1.5rem;
      z-index: 1000;
      display: none;
      opacity: 0;
      transition: opacity 0.3s ease-in-out;
    }

    .sticky-cta.show {
      display: block;
      opacity: 1;
    }

    #problem-solution .content-grid {
      display: flex;
      flex-direction: column-reverse;
      gap: 2.5rem;
      align-items: center;
      margin-top: 2rem;
    }

    #problem-solution .icon-box {
      font-size: 4rem;
      color: var(--accent-neon);
      filter: drop-shadow(0 0 8px rgba(0, 255, 65, 0.5));
      text-align: center;
      padding: 2rem;
      max-width: 300px;
    }
    
    .benefits-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
      margin-top: 2.5rem;
    }

    .benefit-card h3 {
      font-size: 1.1rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      color: var(--accent-blue);
    }

    .benefit-card .icon {
      font-size: 1.4rem;
      color: var(--accent-magenta);
    }

    .testimonials-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
      margin-top: 2rem;
    }

    .testimonial-card {
      background: #f9fafb;
      border: 1px dashed rgba(148, 163, 184, 0.7);
      border-radius: 12px;
      padding: 1.5rem;
      font-style: italic;
      color: #374151;
      position: relative;
    }

    .testimonial-card::before {
      content: '“';
      font-size: 3rem;
      position: absolute;
      top: 0.5rem;
      left: 1.5rem;
      color: var(--border-soft);
      z-index: 0;
    }

    .testimonial-card p {
      position: relative;
      z-index: 1;
    }

    .testimonial-meta {
      margin-top: 1rem;
      font-style: normal;
      display: flex;
      align-items: center;
      gap: 1rem;
    }
    
    .testimonial-meta .stars {
      color: #ffc700;
      font-size: 1.1rem;
      letter-spacing: 1px;
    }
    
    .pricing-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
      margin-top: 2.5rem;
      align-items: center;
    }

    .pricing-card {
      border-radius: 16px;
      border: 3px solid #e5e7eb;
      padding: 2.2rem 1.8rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      transition: all 0.3s ease-out;
      background: white;
    }

    .pricing-card.recommended {
      border-color: var(--accent-neon);
      box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
      transform: scale(1.05);
    }

    .pricing-card h3 {
      text-transform: uppercase;
      letter-spacing: 0.12em;
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
      color: var(--accent-blue);
    }
    
    .hero-tag {
        background: #0f172a;
        color: #e5e7eb;
        padding: 0.18rem 0.6rem;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        border-radius: 999px;
        font-size: 0.76rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }
    
    .price {
      font-size: 2.8rem;
      font-weight: 700;
      color: var(--accent-blue);
      margin: 1rem 0 0.5rem;
    }
    
    .pricing-card.recommended .price {
        color: var(--accent-neon);
        filter: drop-shadow(0 0 2px var(--accent-neon));
    }
    
    .price-old {
        text-decoration: line-through;
        color: var(--text-soft);
        font-size: 1.2rem;
        margin-top: -0.5rem;
    }

    .price-features {
      list-style: none;
      padding: 0;
      margin: 1.5rem 0 2rem;
      flex-grow: 1;
      text-align: left;
    }

    .price-features li {
      margin-bottom: 0.7rem;
      font-size: 0.95rem;
      color: var(--text-main);
      display: flex;
      align-items: flex-start;
      gap: 0.7rem;
    }

    .price-features li::before {
      content: '✓';
      color: var(--accent-neon);
      font-weight: 700;
      font-size: 1.1rem;
      flex-shrink: 0;
      margin-top: 2px;
    }
    
    .pricing-card .btn {
        width: 100%;
        justify-content: center;
    }

    #guarantee {
        background: radial-gradient(circle at center, var(--terminal-bg) 0, #000 100%);
        color: var(--terminal-green-soft);
        padding: 4rem 1.4rem;
        margin: 4rem 0 0;
        text-align: center;
        border-top: 1px solid rgba(0,0,0,0.8);
        box-shadow: 0 0 40px rgba(0,0,0,0.9) inset;
    }

    #guarantee h2 {
      color: var(--terminal-green);
      text-transform: uppercase;
      letter-spacing: 0.1em;
    }

    #guarantee .badge {
      font-size: 5rem;
      margin-bottom: 1rem;
      filter: drop-shadow(0 0 12px rgba(123, 255, 59, 0.5));
      display: block;
    }

    #guarantee p {
      max-width: 60ch;
      margin: 0.5rem auto 0;
      font-size: 1.1rem;
      color: #9ca3af;
    }

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

    .faq-item {
      border-bottom: 1px solid var(--border-soft);
    }

    .faq-question {
      background: none;
      border: none;
      width: 100%;
      text-align: left;
      padding: 1.2rem 1rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      font-size: 1rem;
      font-weight: 500;
      color: var(--accent-blue);
      transition: color 0.2s ease;
    }

    .faq-question:hover {
      color: var(--accent-magenta);
    }

    .faq-question .arrow {
      font-size: 1.2rem;
      transition: transform 0.3s ease;
    }

    .faq-question[aria-expanded="true"] .arrow {
      transform: rotate(180deg);
    }

    .faq-answer {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease-out, padding 0.4s ease-out;
      padding: 0 1rem;
    }

    .faq-answer.show {
      max-height: 500px; /* Duża wartość na zapas */
      padding: 0.5rem 1rem 1.5rem;
    }

    .faq-answer p {
        font-size: 0.95rem;
        color: var(--text-soft);
    }

    #final-cta, #author-section {
      background: var(--accent-blue);
      color: #e5e7eb;
      padding: 4rem 1.4rem;
      text-align: center;
      margin-top: 4rem;
    }
    
    #author-section {
      background: var(--bg-main);
      color: var(--text-main);
      border-top: 1px solid var(--border-soft);
    }

    #final-cta h2, #author-section h2 {
      color: var(--accent-cyan);
    }
    
    #author-section h2 {
      color: var(--accent-blue);
    }

    #final-cta p, #author-section p {
      font-size: 1.1rem;
      margin: 0.8rem auto 2rem;
      max-width: 70ch;
    }
    
    @media (min-width: 720px) {
        #problem-solution .content-grid {
            flex-direction: row;
        }

        #problem-solution .text-content, #problem-solution .icon-box {
            flex: 1;
        }

        #problem-solution .icon-box {
          text-align: right;
        }
    }

/* --- CALCULATOR STYLES --- */
#calculator .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

#calculator .field label {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 0.25rem;
  display: block;
  font-weight: 500;
}

/* Overriding .input-retro specifically for the calculator section */
#calculator .input-retro {
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    color: var(--text-main);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    box-shadow: none; /* remove terminal shadow */
}

#calculator .input-retro::placeholder {
    color: #9ca3af;
}

#calculator .input-retro:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
    outline: none;
}

.calculator-results {
  background: var(--accent-blue) !important;
  color: #fff !important;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid transparent !important;
}

.calculator-results #total-cost {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  color: var(--accent-neon) !important;
  filter: drop-shadow(0 0 12px rgba(0, 255, 65, 0.7));
  margin: 0.5rem 0;
}

/* Layout for wider screens */
@media (min-width: 820px) {
  #calculator .calculator-grid {
    grid-template-columns: 1.2fr 1fr; /* Give more space to inputs */
    gap: 2.5rem;
    align-items: center;
  }
}
