/* ====
   TOKENS / RESET
==== */
:root{
  --bg: #050b1e;
  --text: #f5f6f7;
  --brand-blue: #6fb7ff;
  --brand-gold: #f4b400;
  --brand-darkblue: #0b1e3f;
  --header-bg: #143268;
  --border-color: #3a4c6e;
  --container: 1500px;
  --gap: 16px;
  --header-height: 80px;

  /* dekor (SVG) */
  --net: #6fb7ff;
  --node: #bfe0ff;
  --alpha-line: .18;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html, body{ height:100%; }

/* ====
   GLOBAL BACKGROUND + TYPO
==== */
body{
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
  line-height:1.5;
  min-height:100svh;

  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 900px at 8% 92%,
    rgba(244,180,0,0.85) 0%,
    rgba(244,180,0,0.45) 18%,
    rgba(214,122,51,0.28) 32%,
    rgba(140,76,143,0.22) 48%,
    rgba(96,78,170,0.16) 62%,
    rgba(49,94,180,0.08) 76%,
    rgba(11,30,63,0.00) 100%),
    linear-gradient(135deg,#071024 0%,#0b1e3f 25%,#173a77 50%,#1e5fa9 70%,#0a1630 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Zablokuj scroll gdy menu otwarte */
body.menu-open {
  overflow: hidden;
}

main{ position:relative; z-index:2; }

/* ====
   CONTAINER + 6-COLUMN GRID
==== */
.container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding:0 32px;
}

.row{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:var(--gap);
}

.span-1{ grid-column:span 1; }
.span-2{ grid-column:span 2; }
.span-3{ grid-column:span 3; }
.span-4{ grid-column:span 4; }
.span-5{ grid-column:span 5; }
.span-6{ grid-column:span 6; }

@media (min-width:1024px){
  .lg-span-1{ grid-column:span 1; }
  .lg-span-2{ grid-column:span 2; }
  .lg-span-3{ grid-column:span 3; }
  .lg-span-4{ grid-column:span 4; }
  .lg-span-5{ grid-column:span 5; }
  .lg-span-6{ grid-column:span 6; }
}

/* ====
   HERO (3/6 + 3/6)
==== */
.hero{
  position: relative;
  min-height:100vh;
  display:grid;
  align-items:center;
}

.hero-left{
  grid-column:span 3;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  text-align:left;
  gap:16px;
}

.hero-right{
  grid-column:span 3;
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

/* Logo */
.logo{
  width:100%;
  max-width:353px;
  height:auto;
  display:block;
  image-rendering:-webkit-optimize-contrast;
}

/* Teksty hero */
.tagline{
  margin-top:30px;
  font-size: clamp(32px, 3vw + 4px, 38px);
  font-weight:700;
  line-height:1.3;
  letter-spacing:.3px;
  color:var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.tagline .left{ color: var(--brand-blue); font-weight:600; margin-right:6px; }
.tagline .right{ color: var(--brand-gold); font-weight:700; white-space:nowrap; }

.subtext{
  margin-top:12px;
  margin-bottom:30px;
  font-size: clamp(18px, 1.6vw + 8px, 23px);
  color: rgba(245,246,247,.92);
  font-weight:500;
  line-height:1.4;
  max-width:640px;
}

h1.subtext{
  font-size: clamp(22px, 1.6vw + 8px, 28px);	
}

/* ====
   BUTTONS
==== */
.btn-group{ display:flex; gap:14px; margin-top:20px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:12px 20px;
  font-weight:700; letter-spacing:.2px;
  border-radius:9999px; border:2px solid transparent;
  text-decoration:none; cursor:pointer; user-select:none;
  transition:background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .05s;
}
.btn--ghost{
  background:#fff; color:var(--brand-darkblue);
  border-color:var(--brand-darkblue);
  box-shadow:0 2px 10px rgba(0,0,0,.12);
}
.btn--ghost:hover{
  background:var(--brand-darkblue); color:#fff; border-color:var(--brand-darkblue);
  box-shadow:0 6px 22px rgba(11,30,63,.45);
}
.btn--solid{
  background:var(--brand-darkblue); color:#fff;
  border-color:var(--brand-darkblue);
  box-shadow:0 2px 10px rgba(0,0,0,.12);
}
.btn--solid:hover{
  background:#fff; color:var(--brand-darkblue); border-color:var(--brand-darkblue);
  box-shadow:0 6px 22px rgba(11,30,63,.45);
}
.btn:active{ transform:translateY(1px); }
.btn:focus-visible{ outline:none; box-shadow:0 0 0 3px rgba(30,136,229,.35); }

/* ==== 
   HERO VIDEO CONTAINER
==== */
.hero-video-container {
  position: relative;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  border: 5px solid var(--bg);
  background-color: #000;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

/* ====
   DEKOR SVG (AI linie)
==== */
.decor-svg{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.decor-svg svg{ 
  filter:saturate(110%) brightness(1); 
}
.decor-svg .line{ 
  stroke-width:1.9; 
  opacity:var(--alpha-line); 
}

/* ====
   STICKY HEADER
==== */
.rs-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:var(--header-height);
  background:var(--header-bg);
  border-bottom:1px solid var(--border-color);
  z-index:1000;
  transform:translateY(-100%);
  opacity:0;
  pointer-events:none;
  transition:transform .25s ease, opacity .25s ease;
}

.rs-header.rs-header--visible{
  transform:translateY(0);
  opacity:1;
  pointer-events:auto;
}

.rs-header-inner{
  max-width:var(--container);
  height:100%;
  margin:0 auto;
  padding:0 32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* Logo w headerze */
.rs-logo-link,
.rs-logo{
  display:block;
  height:var(--header-height);
  width:auto;
}

/* ====
   HAMBURGER BUTTON (< 1024px)
==== */
.menu-toggle{
  /* USUŃ position: absolute */
  display:flex;
  align-items:center;
  background:none;
  border:0;
  padding:0;
  cursor:pointer;
  height:var(--header-height);
}

.menu-toggle img{
  height:var(--header-height);
  width:auto;
  display:block;
}

/* ====
   MOBILE MENU (< 1024px)
==== */
.mobile-menu{
  position:fixed;
  top:var(--header-height);
  left:0;
  width:100%;
  background:var(--header-bg);
  border-bottom:1px solid var(--border-color);
  z-index:999;
  visibility:hidden;
  transform:translateY(-100%);
  transition:transform .3s ease, visibility .3s ease;
  pointer-events:none;
}

.mobile-menu.is-open{
  visibility:visible;
  transform:translateY(0);
  pointer-events:auto;
}

.mobile-menu ul{
  list-style:none;
  margin:0;
  padding:0;
}

.mobile-menu ul li a{
  display:block;
  padding:1.2rem 1.5rem;
  color:var(--text);
  font-size:1.1rem;
  font-weight:600;
  border-top:1px solid var(--border-color);
  text-decoration:none;
}

.mobile-menu ul li:first-child a{
  border-top:none;
}

.mobile-menu ul li a:hover{
  background:rgba(255,255,255,.04);
}

/* Backdrop (< 1024px) */
.backdrop{
  position:fixed;
  top:var(--header-height);
  left:0;
  right:0;
  bottom:0;
  background:rgba(0,0,0,.4);
  display:none;
  z-index:900;
}

body.menu-open .backdrop{
  display:block;
}

/* ====
   DESKTOP MENU (≥ 1024px)
==== */
.desktop-menu{
  display:none;
}

/* ====
   MID-DESKTOP TWEAK (≤1280)
==== */
@media (max-width:1279.98px){
  .hero-left{ max-width:48ch; }
  .tagline{ font-size:clamp(28px,2.2vw + 6px,36px); line-height:1.15; letter-spacing:.1px; text-wrap:balance; }
  .subtext{ font-size:17px; line-height:1.4; max-width:58ch; text-wrap:balance; }
  .btn-group{ gap:14px; margin-top:20px; }
}

/* ====
   DESKTOP (≥ 1024px) - POKAŻ MENU, UKRYJ HAMBURGER
==== */
@media (min-width:1024px){
  /* Ukryj hamburger i mobile menu */
  .menu-toggle{
    display:none !important;
  }
  
  .mobile-menu{
    display:none !important;
  }
  
  .backdrop{
    display:none !important;
  }
  
  /* Pokaż desktop menu */
  .desktop-menu{
    display:flex;
    align-items:center;
    gap:0;
  }
  
  .rs-nav-link{
    display:block;
    padding:0.75rem 1.15rem;
    font-size:15px;
    font-weight:600;
    color:var(--text);
    text-decoration:none;
    border-bottom:3px solid transparent;
    transition:all 0.3s ease;
    white-space:nowrap;
  }
  
  .rs-nav-link:hover{
    color:var(--brand-gold);
    border-bottom-color:var(--brand-gold);
  }
  
  .rs-nav-link--primary{
    background:var(--brand-gold);
    color:var(--bg);
    font-weight:600;
    border-radius:6px;
    border-bottom:none;
    margin-left:0.5rem;
    padding:0.75rem 1.5rem;
  }
  
  .rs-nav-link--primary:hover{
    background:#fff;
    color:var(--bg);
  }
}

/* ====
   MOBILE/TABLET (≤1024)
==== */
@media (max-width:1023.98px){
  .row{ grid-template-columns:1fr; gap:20px; }
  .hero{
    grid-template-columns:1fr;
    justify-items:center;
    text-align:center;
    min-height:72svh;
    padding-top:25px;
	padding-bottom:60px;
  }
  .hero-left{
    grid-column:auto;
    align-items:center;
    justify-content:center;
  }
  .logo{ margin:0 auto 8px; max-width:93%; }
  .tagline, .subtext{ margin-inline:auto; text-align:center; }
  .subtext{ max-width:92%; }

  .btn-group{
    width:100%;
    max-width:680px;
    flex-direction:column;
    align-items:stretch;
    justify-content:center;
    gap:16px;
    margin-inline:auto;
  }
  .btn{ width:100%; max-width:100%; }

  .hero-right{
    grid-column:auto;
    justify-content:center;
    align-items:center;
    margin-top:36px;
  }
  .hero-video-container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
  }
  /* Header BEZ paddingu - obrazki mają własny whitespace */
  .rs-header-inner{
    padding:0;
  }
  
  /* Logo i hamburger BEZ paddingu */
  .rs-logo-link,
  .menu-toggle{
    padding:0;
    margin:0;
  }  
}

/* ====
   SEKCJA "POZNAJ APLIKACJĘ"
==== */
.poznaj-section{
  background:#f9f5f9;
  min-height:100vh;
  padding:96px 0 64px;
  position:relative;
  z-index:10;
}

.poznaj-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
}

/* Złoty przycisk TYLKO w dolnym CTA */
.poznaj-cta .btn.btn--primary {
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
  color: #000;
  font-weight: 700;
}

.poznaj-cta .btn.btn--primary:hover {
  background-color: #ffce4d;
  border-color: #ffce4d;
}

/* ====
   SEKCJA FAQ
==== */
.faq-section {
  background: #ebeffa;
  padding: 64px 0;
  position: relative;
  z-index: 10;
}

.faq-inner {
  max-width: var(--container); /* Taka sama szerokość jak poznaj */
  margin: 0 auto;
  padding: 0 32px;
}

.faq-section h2 {
  text-align: center;
  color: #0a0f19;
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 3rem 0; /* Odstęp do pierwszego pytania */
  letter-spacing: 1px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: var(--container); /* Taka sama szerokość */
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(10, 15, 25, 0.1);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-item h3 {
  color: #0a0f19;
  font-size: 1.4rem;
  margin: 0 0 1rem 0;
  line-height: 1.4;
  font-weight: 700;
}

.faq-item p {
  color: #334155;
  font-size: 1.3rem;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .faq-section h2 {
    font-size: 1.8rem;
  }
  
  .faq-item {
    padding: 1.5rem;
  }
  
  .faq-item h3 {
    font-size: 1.15rem;
  }
  
  .faq-item p {
    font-size: 1.2rem;
  }
}

/* ====
   FOOTER
==== */
footer {
  background: var(--bg);
  color: var(--text);
  padding: 2rem 0;
  border-top: 1px solid rgba(111, 183, 255, 0.2);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--brand-gold);
  text-decoration: underline;
}

.footer-separator {
  opacity: 0.5;
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .footer-separator {
    display: none;
  }
}


