
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #05070d, #0b0f19);
  color: #e6e9ef;
}

body.light {
  background: linear-gradient(180deg, #f6f8ff, #eef2ff);
  color: #0b1220;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

.nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid #1f2937;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(16px);
}

body.light .nav {
  background: rgba(246, 248, 255, 0.75);
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

/* ── Nav brand / logo ──────────────────────────── */
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  height: 36px;
  width: auto;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-brand:hover .nav-logo {
  opacity: 0.85;
  transform: scale(1.02);
}

/* Text colour inside SVG adapts to dark/light */
.nav-logo-text {
  fill: #e6e9ef;
}

body.light .nav-logo-text {
  fill: #0b1220;
}

/* Brush stroke ellipse adapts */
body.light .nav-logo ellipse {
  fill: rgba(29, 78, 216, 0.09);
}

/* On small screens: compact logo — icons still visible but smaller */
@media (max-width: 640px) {
  .nav-logo {
    height: 26px;
  }
}

/* Apple icon silver path */
.nav-logo-apple-path {
  fill: url(#silverGrad);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

a {
  color: #4facfe;
  text-decoration: none;
}

.nav a {
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  background: rgba(79, 172, 254, 0.14);
}

body.light .nav a:hover {
  background: rgba(29, 78, 216, 0.10);
}

body.light a {
  color: #1d4ed8;
}

h1 {
  font-size: 52px;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light h1 {
  background: linear-gradient(90deg, #1d4ed8, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(16px);
  padding: 25px;
  border-radius: 18px;
  margin-top: 20px;
  border: 1px solid #1f2937;
  transition: 0.3s;
}

body.light .card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(79,172,254,0.25);
}

body.light .card:hover {
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.12);
}

.button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  color: black;
  font-weight: bold;
  border: none;
}

.button.secondary {
  background: transparent;
  border: 1px solid #1f2937;
  color: #e6e9ef;
}

body.light .button.secondary {
  border: 1px solid rgba(15, 23, 42, 0.18);
  color: #0b1220;
}

.footer {
  margin-top: 60px;
  color: #777;
}

.muted {
  color: rgba(230, 233, 239, 0.76);
}

body.light .muted {
  color: rgba(15, 23, 42, 0.72);
}

.toggle {
  cursor: pointer;
}

.icon-button {
  background: transparent;
  border: 1px solid #1f2937;
  color: inherit;
  border-radius: 10px;
  padding: 8px 10px;
  line-height: 1;
}

body.light .icon-button {
  border: 1px solid rgba(15, 23, 42, 0.18);
}

.lang-btn {
  background: transparent;
  border: 1px solid #1f2937;
  color: inherit;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 600;
}

body.light .lang-btn {
  border: 1px solid rgba(15, 23, 42, 0.18);
}

.lang-btn.active {
  background: rgba(79, 172, 254, 0.15);
  border-color: rgba(79, 172, 254, 0.55);
}

body.light .lang-btn.active {
  background: rgba(29, 78, 216, 0.12);
  border-color: rgba(29, 78, 216, 0.35);
}

input {
  padding: 10px;
  border-radius: 8px;
  border: none;
  width: 100%;
  margin-top: 10px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-header h2 {
  margin: 0;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.app-icon.lg {
  width: 120px;
  height: 120px;
  border-radius: 28px;
}

body.light .app-icon {
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.16);
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
}

.hero-card {
  padding: 28px;
}

.hero h1 {
  margin: 0;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(79, 172, 254, 0.45);
  background: rgba(79, 172, 254, 0.10);
  color: #dbeafe;
  font-weight: 600;
  font-size: 13px;
}

body.light .badge {
  border: 1px solid rgba(29, 78, 216, 0.25);
  background: rgba(29, 78, 216, 0.08);
  color: rgba(15, 23, 42, 0.86);
}

.feature-list {
  margin: 14px 0 0 0;
  padding-left: 18px;
}

.feature-list li {
  margin: 8px 0;
}

details {
  border: 1px solid #1f2937;
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(17, 24, 39, 0.5);
}

body.light details {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

details + details {
  margin-top: 10px;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

summary::-webkit-details-marker {
  display: none;
}

.details-body {
  margin-top: 10px;
}

@media (max-width: 640px) {
  h1 {
    font-size: 38px;
  }

  .nav {
    padding: 14px 16px;
  }

  .container {
    padding: 28px 16px;
  }

  .hero {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   MEDIA SECTION — shared heading
═══════════════════════════════════════════════════════════ */
.media-section {
  overflow: hidden;
}

.media-section-title {
  font-size: clamp(18px, 2.5vw, 22px);
  margin: 0 0 20px 0;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light .media-section-title {
  background: linear-gradient(90deg, #1d4ed8, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ═══════════════════════════════════════════════════════════
   VIDEO GRID
═══════════════════════════════════════════════════════════ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.video-card {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(9, 14, 30, 0.6);
  border: 1px solid rgba(79, 172, 254, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(79, 172, 254, 0.2);
}

body.light .video-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.video-wrap {
  position: relative;
  aspect-ratio: 9/19.5;   /* iPhone portrait ratio */
  background: #000;
  overflow: hidden;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-label {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(230, 233, 239, 0.8);
  text-align: center;
  letter-spacing: 0.01em;
}

body.light .video-label {
  color: rgba(11, 18, 32, 0.72);
}

/* ═══════════════════════════════════════════════════════════
   SCREENSHOT GRID
═══════════════════════════════════════════════════════════ */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

@media (min-width: 640px) {
  .screenshot-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

.shot-thumb {
  position: relative;
  border: none;
  background: none;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 9/19.5;
  display: block;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.shot-thumb:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 32px rgba(79, 172, 254, 0.35);
}

.shot-thumb:focus-visible {
  outline: 2px solid #4facfe;
  outline-offset: 3px;
}

.shot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

.shot-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 50, 0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  transition: background 0.22s ease;
}

.shot-thumb:hover .shot-overlay {
  background: rgba(10, 20, 50, 0.45);
}

.shot-overlay span {
  font-size: 26px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.22s ease, transform 0.22s ease;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.shot-thumb:hover .shot-overlay span {
  opacity: 1;
  transform: scale(1);
}

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 15, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  max-height: 92vh;
  animation: lbIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes lbIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-img-wrap {
  max-height: 88vh;
  max-width: min(380px, 84vw);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(79,172,254,0.2);
}

.lightbox-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 88vh;
}

.lightbox-nav {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.lightbox-nav:hover {
  background: rgba(79, 172, 254, 0.25);
  transform: scale(1.1);
}

.lightbox-nav:focus-visible {
  outline: 2px solid #4facfe;
  outline-offset: 3px;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(239, 68, 68, 0.35);
}

.lightbox-counter {
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Mobile lightbox adjustments */
@media (max-width: 640px) {
  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
  .lightbox-img-wrap {
    max-width: 72vw;
  }
  .lightbox-panel {
    gap: 8px;
  }
}

/* ═══════════════════════════════════════════════════════════
   HERO HEADING SVG  (index.html)
═══════════════════════════════════════════════════════════ */
.hero-heading-wrap {
  margin: 0 0 4px 0;
  line-height: 1;
}

.hero-h1-svg {
  display: block;
  width: 100%;
  max-width: 680px;
  height: auto;
  overflow: visible;
}

/* Sub-text colour (line 2) — adapts to dark/light theme */
.hero-h1-sub {
  fill: rgba(230, 233, 239, 0.72);
}

body.light .hero-h1-sub {
  fill: rgba(15, 23, 42, 0.65);
}

/* Language toggle — controlled by JS via body.lang-pl / body.lang-en */
/* Both hidden by default to prevent flash; JS adds class immediately */
.hero-h1-pl, .hero-h1-en { display: none; }
body.lang-pl .hero-h1-pl { display: block; }
body.lang-en .hero-h1-en { display: block; }
/* Fallback if JS hasn't run yet — show PL (default) */
body:not(.lang-pl):not(.lang-en) .hero-h1-pl { display: block; }

/* Responsive scaling */
@media (max-width: 768px) {
  .hero-h1-svg {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-heading-wrap {
    margin-bottom: 0;
  }
}
