/* -----------------------------
   CSS Reset & Normalize
------------------------------ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
main, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  height: 100%;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background-color: #181F25;
  color: #F6F3EE;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: linear-gradient(120deg, #233642 0%, #466573 100%);
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #9BEEFF;
  text-decoration: none;
  transition: color 0.18s cubic-bezier(0.4,0,0.2,1);
}
a:hover,
a:focus {
  color: #5DF2D6;
  text-shadow: 0 0 8px #5DF2D6;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: 100%;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

ul,ol {
  list-style: none;
}

/* -------------------------------------
   Typography – Tech Futuristic Hierarchy
-------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #F6F3EE;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  text-shadow: 0 2px 16px rgba(0,255,255,0.07);
}
h1 {
  font-size: 2.5rem; /* 40px */
  line-height: 1.16;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 14px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1rem;
  font-weight: 600;
}

p, li, dt, dd {
  color: #E8F0F5;
  font-size: 1rem;
  margin-bottom: 12px;
}
strong {
  color: #BAA898;
  font-weight: 700;
}

/* -------------------------------------
   Layout and Containers
-------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}

main {
  padding-top: 24px;
  padding-bottom: 60px;
  min-height: 60vh;
}

.content-wrapper {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  background: #24343d;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(93, 242, 214, 0.10), 0 1.5px 8px #233642;
  padding: 28px 28px 24px;
  position: relative;
  min-width: 200px;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.23s, transform 0.21s;
}
.card:hover {
  box-shadow: 0 4px 48px 0 #233642, 0 0 25px #9BEEFF inset;
  transform: translateY(-5px) scale(1.018);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F6F3EE;
  color: #24343D;
  border-radius: 16px;
  box-shadow: 0 2px 24px 0 #5DF2D6,0 0.5px 12px #313d45 inset;
  margin-bottom: 20px;
  min-width: 200px;
  max-width: 540px;
  font-size: 1.08rem;
}
.testimonial-card p {
  color: #24343D;
  margin-bottom: 8px;
}
.testimonial-card div {
  font-size: 0.98rem;
  color: #456573;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* -------------------------------------
   Lists and Details
-------------------------------------- */
ul, ol {
  padding-left: 0;
}
ul li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  font-size: 1rem;
}
ul li img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 6px #5DF2D6) brightness(1.12);
}

dt {
  font-weight: 700;
  color: #5DF2D6;
  margin-top: 12px;
}
dd {
  margin-bottom: 8px;
  color: #E8F0F5;
}

article {
  background: #233642;
  border-radius: 14px;
  box-shadow: 0 4px 16px 0 #5DF2D6 inset;
  padding: 18px 20px 14px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
  position: relative;
}
article:hover {
  box-shadow: 0 4px 32px 0 #466573;
}

/* -------------------------------------
   Header & Navigation
-------------------------------------- */
header {
  background: #1C282F;
  box-shadow: 0 2px 32px 0 #233642;
  padding: 0;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 0 16px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
header nav a {
  color: #F6F3EE;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border 0.13s, color 0.18s;
}
header nav a:hover,
header nav a:focus {
  color: #5DF2D6;
  border-bottom: 2px solid #9BEEFF;
}

.cta-btn {
  background: linear-gradient(92deg, #5DF2D6 0%, #9BEEFF 100%);
  color: #233642 !important;
  border-radius: 42px;
  padding: 12px 36px;
  font-size: 1.18rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-left: 24px;
  box-shadow: 0 2px 26px 0 #5DF2D6 inset, 0 0 14px #9BEEFF55;
  border: none;
  outline: none;
  transition: box-shadow 0.16s, background 0.16s, transform 0.18s;
  cursor: pointer;
  text-shadow: 0 1px 4px #BAA89860;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(92deg, #9BEEFF 0%, #5DF2D6 100%);
  color: #24343D;
  box-shadow: 0 2px 36px 0 #9BEEFF, 0 0 1px #5DF2D6 inset;
  transform: translateY(-1px) scale(1.025);
}

header img[alt="Domowa Przestrzeń"] {
  height: 46px;
  width: auto;
  margin-right: 30px;
  filter: drop-shadow(0 3px 8px #5DF2D6cc);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  color: #5DF2D6;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 20px;
  z-index: 101;
  border-radius: 8px;
  padding: 4px 12px 2px 10px;
  transition: background 0.14s, color 0.15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #46657344;
  color: #9BEEFF;
}

/* -----------------------------------
   Mobile Menu Overlay
------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(28, 40, 47, 0.98);
  z-index: 2000;
  transform: translateX(100vw);
  transition: transform 0.31s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #5DF2D6;
  font-size: 2.5rem;
  margin: 24px 30px 10px 0;
  cursor: pointer;
  z-index: 2100;
  border-radius: 8px;
  padding: 4px 12px 2px 10px;
  transition: background 0.14s, color 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #46657333;
  color: #9BEEFF;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 8px;
  padding-left: 42px;
}
.mobile-nav a {
  color: #F6F3EE;
  font-size: 1.3rem;
  padding: 18px 0 6px 0;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  border-bottom: 1px solid #3E4C56;
  width: 100%;
  display: block;
  transition: color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #5DF2D6;
}

/* -----------------------------------
   Footer
------------------------------------- */
footer {
  background: #181F25;
  color: #BAA898;
  padding: 36px 0 20px 0;
}
footer .container {
  flex-direction: column;
}
footer .content-wrapper {
  flex-direction: row;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}

footer nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
}
footer nav a {
  color: #9BEEFF;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px #BAA89833;
  transition: color 0.15s;
}
footer nav a:hover,footer nav a:focus {
  color: #5DF2D6;
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.brand-credits {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  color: #BAA898;
}
.brand-credits img {
  height: 26px;
  width: auto;
}

/* -------------------------------------
   Cookie Consent Banner & Modal
------------------------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #233642;
  color: #F6F3EE;
  padding: 20px 16px 16px 16px;
  box-shadow: 0 -2px 36px #5DF2D6cc;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  animation: cookieSlideIn 0.7s cubic-bezier(0.19,1,0.22,1) 1;
}
@keyframes cookieSlideIn {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  color: #F6F3EE;
  margin-bottom: 0;
}

.cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.cookie-btn,
.cookie-btn-secondary {
  border-radius: 18px;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  padding: 8px 22px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.17s,color 0.14s,box-shadow 0.14s;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 1px 8px #46657344;
}
.cookie-btn {
  background: linear-gradient(93deg, #5DF2D6 0%, #9BEEFF 100%);
  color: #233642;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: linear-gradient(93deg, #9BEEFF 0%, #5DF2D6 100%);
  color: #24343D;
}
.cookie-btn-secondary {
  background: #233642;
  border: 1.5px solid #5DF2D6;
  color: #5DF2D6;
}
.cookie-btn-secondary:hover,
.cookie-btn-secondary:focus {
  background: #466573;
  color: #F6F3EE;
}

.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  width: 100vw; height: 100vh;
  background: rgba(28,40,47,0.97);
  z-index: 10099;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInBg 0.25s linear 1;
}
@keyframes fadeInBg {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #233642;
  color: #F6F3EE;
  border-radius: 18px;
  max-width: 380px;
  width: 98vw;
  padding: 34px 28px 28px 28px;
  box-shadow: 0 4px 44px #5DF2D6cc,0 1.5px 8px #466573;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalSlideIn 0.32s cubic-bezier(0.2,0.9,0.3,1) 1;
  z-index: 10100;
}
@keyframes modalSlideIn {
  from { transform: translateY(70px) scale(.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h3 {
  color: #5DF2D6;
  font-size: 1.32rem;
  margin-bottom: 6px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 10px;
  gap: 13px;
}
.cookie-switch {
  width: 46px;
  height: 26px;
  border-radius: 16px;
  background: #24343D;
  position: relative;
  transition: background 0.16s;
}
.cookie-switch input {
  display: none;
}
.cookie-slider {
  width: 22px;
  height: 22px;
  background: #5DF2D6;
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 2px;
  transition: left 0.17s;
}
.cookie-switch input:checked + .cookie-slider {
  left: 22px;
  background: #9BEEFF;
}
.cookie-category.disabled .cookie-switch {
  opacity: 0.5;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 10px;
}

/* -------------------------------------
   Responsive Design Breakpoints
-------------------------------------- */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 980px) {
  header .container {
    flex-direction: row;
    gap: 14px;
  }
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 22px 4px;
  }
  main {
    padding-top: 6px;
    padding-bottom: 26px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  header .container {
    flex-direction: row;
    gap: 8px;
    padding: 0 6px;
    min-height: 56px;
  }
  header nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
    margin-right: 6px;
    padding: 10px 18px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-wrapper, .card-container, .content-grid, .testimonial-card, .footer .content-wrapper {
    flex-direction: column !important;
    gap: 14px;
    align-items: stretch !important;
  }
  .content-grid, .card-container {
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 13px;
  }
  article, .card, .testimonial-card {
    max-width: 100%;
    min-width: 0;
  }
  .footer .container {
    padding: 0 8px;
  }
  .footer nav {
    flex-direction: column;
    gap: 8px;
  }
  .brand-credits {
    gap: 4px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 8px;
    font-size: 15px;
  }
  .cookie-modal {
    padding: 18px 8px 16px 8px;
    max-width: 99vw;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.68rem;  }
  h2 { font-size: 1.23rem; }
  .cta-btn, .cookie-btn, .cookie-btn-secondary {
    font-size: 0.97rem;
    padding: 9px 12px;
  }
  .testimonial-card, .card, article {
    padding: 16px 7px 12px 7px;
  }
}

/* -------------------------------------
   Miscellaneous / Micro-interactions
-------------------------------------- */
::-webkit-scrollbar {
  width: 7px;
  background: #233642;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(#5DF2D6,#466573);
  border-radius: 5px;
}
::-webkit-input-placeholder { color: #BAA898; }
::-moz-placeholder { color: #BAA898;  }
:-ms-input-placeholder { color: #BAA898; }
::placeholder { color: #BAA898;  }

hr {
  border: none;
  height: 1px;
  background: #466573;
  margin: 24px 0;
}

/* Utility classes for spacing & shadows */
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.gap-12 { gap: 12px !important; }
.gap-18 { gap: 18px !important; }
.rounded-18 { border-radius: 18px !important; }
.shadow-futuristic {
  box-shadow: 0 2px 32px #5DF2D6bb, 0 1.5px 8px #233642;
}

/* Neon glow for links and icons (for accents) */
.neon-glow {
  text-shadow: 0 0 10px #5DF2D6;
  filter: drop-shadow(0 0 10px #5DF2D6);
}

/* -------------------------------------
   Hide and Show Classes
------------------------------------- */
.d-none { display: none !important; }
.d-flex { display: flex !important; }

/* -------------------------------------
   END CSS
------------------------------------- */
