/* =============================================
   APLIKACJA MOBILNA — PREMIUM APPLE-STYLE v2
   ============================================= */

/* --- EXTRA AOS DELAYS --- */
[data-aos-delay="500"] { transition-delay: 0.5s; }
[data-aos-delay="600"] { transition-delay: 0.6s; }
[data-aos-delay="700"] { transition-delay: 0.7s; }
[data-aos-delay="800"] { transition-delay: 0.8s; }

/* =============================================
   ANIMATED GRADIENT MESH BACKGROUND
   ============================================= */
@keyframes meshMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -50px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(50px, 30px) scale(1.05); }
}

.gradient-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.gradient-mesh .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: meshMove 20s ease-in-out infinite;
}

.gradient-mesh .orb-1 {
  width: 600px; height: 600px;
  top: -15%; right: -10%;
  background: rgba(243, 146, 0, 0.12);
  animation-delay: 0s;
}

.gradient-mesh .orb-2 {
  width: 500px; height: 500px;
  bottom: -10%; left: -8%;
  background: rgba(26, 58, 106, 0.15);
  animation-delay: -7s;
}

.gradient-mesh .orb-3 {
  width: 400px; height: 400px;
  top: 40%; left: 30%;
  background: rgba(106, 27, 154, 0.06);
  animation-delay: -14s;
}

/* =============================================
   GRADIENT TEXT
   ============================================= */
.gradient-text {
  background: linear-gradient(135deg, var(--orange) 0%, #FFa726 50%, #ffcc80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   APP HERO
   ============================================= */
.app-hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(160deg, #060e1c 0%, #0D2344 40%, #142e55 70%, #0a1a33 100%);
  display: flex;
  align-items: center;
  padding: 120px 6% 80px;
  overflow: hidden;
}

/* Grid pattern */
.app-hero .grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.025) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.app-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.app-hero-content {
  max-width: 560px;
}

.app-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(243, 146, 0, 0.1);
  border: 1px solid rgba(243, 146, 0, 0.25);
  border-radius: 50px;
  color: var(--orange);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.app-hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.app-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  color: white;
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.app-hero-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 480px;
}

/* Store Buttons */
.store-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(12px);
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(243,146,0,0.1);
}

.store-btn svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-btn-text { display: flex; flex-direction: column; text-align: left; }
.store-btn-label { font-size: 0.6rem; font-weight: 500; letter-spacing: 0.5px; opacity: 0.7; text-transform: uppercase; }
.store-btn-name { font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700; line-height: 1.2; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase;
  z-index: 2;
}

.scroll-indicator svg { animation: scrollBounce 2s infinite; }

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.5; }
}

/* =============================================
   MULTI-PHONE HERO MOCKUP (3 phones in fan)
   ============================================= */
.phones-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1500px;
  min-height: 550px;
}

/* Glow behind phones */
.phones-showcase::before {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(243,146,0,0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: meshMove 15s ease-in-out infinite;
}

.hero-phone {
  position: absolute;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1),
              opacity 0.6s ease, box-shadow 0.8s ease;
}

.hero-phone .phone-body {
  background: #111;
  border-radius: 38px;
  padding: 8px;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.08),
    0 25px 60px rgba(0,0,0,0.5),
    0 50px 100px rgba(0,0,0,0.25);
}

.hero-phone .phone-inner {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
}

.hero-phone .phone-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Center phone */
.hero-phone.center {
  z-index: 3;
  animation: phoneFloat 6s ease-in-out infinite;
}
.hero-phone.center .phone-body {
  width: 260px;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.1),
    0 30px 80px rgba(0,0,0,0.5),
    0 60px 120px rgba(0,0,0,0.3),
    0 0 80px rgba(243,146,0,0.08);
}

/* Left phone */
.hero-phone.left {
  z-index: 2;
  transform: translateX(-140px) rotateY(15deg) scale(0.82);
  opacity: 0.7;
}
.hero-phone.left .phone-body { width: 230px; }

/* Right phone */
.hero-phone.right {
  z-index: 2;
  transform: translateX(140px) rotateY(-15deg) scale(0.82);
  opacity: 0.7;
}
.hero-phone.right .phone-body { width: 230px; }

.phones-showcase:hover .hero-phone.left {
  transform: translateX(-160px) rotateY(10deg) scale(0.85);
  opacity: 0.85;
}
.phones-showcase:hover .hero-phone.right {
  transform: translateX(160px) rotateY(-10deg) scale(0.85);
  opacity: 0.85;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* =============================================
   FEATURES — GLASSMORPHISM
   ============================================= */
.app-features {
  padding: 120px 6%;
  background: linear-gradient(180deg, #f0f4f8 0%, #e8edf4 100%);
  position: relative;
  overflow: hidden;
}

.app-features .gradient-mesh .orb-1 { background: rgba(243,146,0,0.05); top: 0; right: -5%; }
.app-features .gradient-mesh .orb-2 { background: rgba(13,35,68,0.04); bottom: -5%; left: -5%; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1250px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.glass-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Top shimmer line */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(255,255,255,0.9) 50%, transparent 90%);
}

.glass-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(243, 146, 0, 0.2);
  border-color: rgba(243, 146, 0, 0.15);
  background: rgba(255, 255, 255, 0.8);
}

.feature-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--gradient-warm);
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(243, 146, 0, 0.3);
}

.feature-icon svg { stroke: white; }

.glass-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.glass-card p {
  color: var(--text-body);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* =============================================
   SCREENSHOTS SHOWCASE — FULL WIDTH FAN
   ============================================= */
.screenshots-showcase {
  padding: 100px 0 120px;
  background: linear-gradient(180deg, #060e1c 0%, #0D2344 50%, #0a1a33 100%);
  position: relative;
  overflow: hidden;
}

.screenshots-showcase .gradient-mesh .orb-1 { background: rgba(243,146,0,0.08); }
.screenshots-showcase .gradient-mesh .orb-2 { background: rgba(106,27,154,0.06); }

.screenshots-header {
  text-align: center;
  max-width: 1250px;
  margin: 0 auto 60px;
  padding: 0 6%;
}

.screenshots-header .section-tag { color: var(--orange); }
.screenshots-header h2 { color: white; }

/* Phones row — horizontal scroll */
.phones-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: flex-end;
  padding: 20px 40px 40px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.phones-row::-webkit-scrollbar { display: none; }

.showcase-phone {
  flex: 0 0 auto;
  scroll-snap-align: center;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.5s ease;
  cursor: pointer;
}

.showcase-phone:hover {
  transform: translateY(-16px) scale(1.04);
}

.showcase-phone .s-phone-body {
  background: #111;
  border-radius: 32px;
  padding: 6px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 20px 50px rgba(0,0,0,0.4);
  transition: box-shadow 0.5s ease;
}

.showcase-phone:hover .s-phone-body {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 30px 70px rgba(0,0,0,0.5),
    0 0 40px rgba(243,146,0,0.08);
}

.showcase-phone .s-phone-screen {
  width: 200px;
  aspect-ratio: 9 / 19.5;
  border-radius: 26px;
  overflow: hidden;
  background: #000;
}

.showcase-phone .s-phone-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-phone-label {
  text-align: center;
  margin-top: 16px;
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.showcase-phone:hover .showcase-phone-label {
  color: var(--orange);
}

/* Featured (larger) phone */
.showcase-phone.featured .s-phone-screen { width: 230px; }
.showcase-phone.featured .s-phone-body {
  box-shadow:
    0 0 0 1px rgba(243,146,0,0.15),
    0 25px 60px rgba(0,0,0,0.5),
    0 0 50px rgba(243,146,0,0.06);
}

/* =============================================
   STICKY SCREENSHOTS (DESKTOP)
   ============================================= */
.sticky-screenshots {
  position: relative;
  background: linear-gradient(180deg, #0a1a33 0%, #0D2344 50%, #060e1c 100%);
  /* clip zamiast hidden: hidden tworzy kontener przewijania i wyłącza position: sticky */
  overflow: clip;
}

.sticky-screenshots .grid-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.02) 1px, transparent 0);
  background-size: 50px 50px;
  pointer-events: none;
}

.sticky-screenshots-inner { height: 350vh; position: relative; }

.sticky-viewport {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 0 6%;
}

.sticky-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1250px; width: 100%;
}

.sticky-text-area { position: relative; min-height: 200px; }

.sticky-text-slide {
  position: absolute; top: 0; left: 0; width: 100%;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.sticky-text-slide.active {
  opacity: 1; transform: translateY(0);
  position: relative; pointer-events: auto;
}

.sticky-text-slide .section-tag { color: var(--orange); margin-bottom: 12px; }

.sticky-text-slide h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: white; margin-bottom: 18px; line-height: 1.2;
}

.sticky-text-slide p {
  color: rgba(255,255,255,0.6);
  font-size: 1rem; line-height: 1.7; max-width: 440px;
}

/* Sticky phone */
.sticky-phone-wrapper { display: flex; justify-content: center; }

.sticky-phone {
  position: relative; width: 280px;
  background: #111; border-radius: 40px; padding: 8px;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.08), 0 40px 80px rgba(0,0,0,0.5), 0 0 60px rgba(243,146,0,0.05);
}

.sticky-phone-screen {
  width: 100%; aspect-ratio: 9 / 19.5;
  border-radius: 32px; overflow: hidden;
  position: relative; background: #000;
}

.sticky-phone-screen img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 0.6s ease;
}

.sticky-phone-screen img.active { opacity: 1; }

/* Progress dots */
.sticky-progress {
  position: absolute; right: 4%; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px; z-index: 10;
}

.sticky-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: all 0.4s ease; cursor: pointer;
}

.sticky-dot.active {
  background: var(--orange);
  box-shadow: 0 0 14px rgba(243,146,0,0.5);
  transform: scale(1.4);
}

/* =============================================
   MOBILE SLIDER
   ============================================= */
.mobile-slider {
  display: none;
  padding: 100px 6% 80px;
  background: linear-gradient(180deg, #0a1a33 0%, #0D2344 100%);
  overflow: hidden;
}

.mobile-slider .section-header {
  max-width: 1250px; margin: 0 auto 40px;
}

.slider-track {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  padding: 20px 0 40px;
  max-width: 1250px; margin: 0 auto;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }

.slider-item { flex: 0 0 auto; scroll-snap-align: center; text-align: center; }

.slider-phone {
  width: 220px; background: #111;
  border-radius: 34px; padding: 6px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  margin-bottom: 14px;
}

.slider-phone-screen {
  width: 100%; aspect-ratio: 9 / 19.5;
  border-radius: 28px; overflow: hidden; background: #000;
}

.slider-phone-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }

.slider-item-label { color: rgba(255,255,255,0.6); font-size: 0.8rem; font-weight: 600; }

.slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }

.slider-dot-btn {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.2); border: none;
  cursor: pointer; transition: all 0.3s ease; padding: 0;
}
.slider-dot-btn.active { background: var(--orange); transform: scale(1.3); }

/* =============================================
   SUBJECTS
   ============================================= */
.app-subjects {
  padding: 120px 6%;
  background: linear-gradient(180deg, #f0f4f8 0%, var(--bg-cream) 100%);
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1250px; margin: 0 auto;
}

.subject-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  border-top: 4px solid var(--subject-color, var(--navy));
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: var(--transition);
  position: relative; overflow: hidden;
}

.subject-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 0;
  background: linear-gradient(to top, rgba(var(--subject-r,13),var(--subject-g,35),var(--subject-b,68),0.04) 0%, transparent 100%);
  transition: height 0.4s ease;
}

.subject-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}
.subject-card:hover::after { height: 70%; }

.subject-emoji { font-size: 2.4rem; margin-bottom: 16px; display: block; }

.subject-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--navy); margin-bottom: 16px;
}

.subject-chapters { list-style: none; padding: 0; margin: 0 0 20px; }

.subject-chapters li {
  color: var(--text-body); font-size: 0.85rem;
  padding: 6px 0; border-bottom: 1px solid #f1f5f9;
  display: flex; justify-content: space-between; align-items: center;
}
.subject-chapters li:last-child { border-bottom: none; }

.chapter-count { font-weight: 600; color: var(--text-muted); font-size: 0.8rem; }

.subject-total {
  display: flex; align-items: center; gap: 8px;
  padding-top: 16px; border-top: 2px solid #f1f5f9;
}

.subject-total-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem; font-weight: 800;
  color: var(--subject-color, var(--navy));
}

.subject-total-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

/* =============================================
   STEPS
   ============================================= */
.app-steps {
  padding: 120px 6%;
  background: linear-gradient(180deg, #0b1e3a 0%, #142e55 100%);
  position: relative;
}

.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; max-width: 1250px; margin: 0 auto;
  position: relative;
}

.steps-connector {
  position: absolute; top: 44px; left: 12.5%; right: 12.5%;
  height: 2px; z-index: 0;
}

.steps-connector-line {
  width: 100%; height: 100%;
  background: var(--gradient-warm);
  transform-origin: left; transform: scaleX(0);
  transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.steps-connector.animate-in .steps-connector-line { transform: scaleX(1); }

.step-card { text-align: center; position: relative; z-index: 1; }

.step-number {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(243,146,0,0.08);
  border: 2px solid rgba(243,146,0,0.4);
  color: var(--orange);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 1.2rem;
  margin: 0 auto 24px;
  transition: var(--transition);
}

.step-card:hover .step-number {
  background: var(--orange); color: white;
  border-color: var(--orange);
  box-shadow: 0 0 30px rgba(243,146,0,0.35);
}

.step-icon { font-size: 2rem; margin-bottom: 12px; display: block; }

.step-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem; font-weight: 700; color: white; margin-bottom: 10px;
}

.step-card p { color: rgba(255,255,255,0.5); font-size: 0.85rem; line-height: 1.6; }

/* =============================================
   DOWNLOAD CTA
   ============================================= */
.app-download {
  padding: 120px 6%;
  background: linear-gradient(160deg, #060e1c 0%, #0D2344 50%, #142e55 100%);
  position: relative; overflow: hidden; text-align: center;
}

.app-download .gradient-mesh .orb-1 { background: rgba(243,146,0,0.1); width: 700px; height: 700px; }

.download-content {
  position: relative; z-index: 1;
  max-width: 700px; margin: 0 auto;
}

.download-glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 30px; padding: 60px 50px;
}

.app-download h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: white; margin-bottom: 16px;
}

.app-download .download-subtitle {
  color: rgba(255,255,255,0.55);
  font-size: 1.05rem; line-height: 1.7; margin-bottom: 36px;
}

.app-download .store-buttons { justify-content: center; margin-bottom: 32px; }

.download-legal {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.download-legal a {
  color: rgba(255,255,255,0.35);
  text-decoration: none; font-size: 0.8rem;
  transition: color 0.3s;
}
.download-legal a:hover { color: var(--orange); }

/* =============================================
   GLOW + LOAD ANIMATIONS
   ============================================= */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(243,146,0,0.25); }
  50% { box-shadow: 0 0 40px rgba(243,146,0,0.45), 0 0 60px rgba(243,146,0,0.15); }
}
.glow-btn { animation: glowPulse 3s infinite; }

.hero-load { opacity: 0; transform: translateY(30px); }
.hero-load.loaded {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero-load[data-load-delay="1"] { transition-delay: 0.1s; }
.hero-load[data-load-delay="2"] { transition-delay: 0.25s; }
.hero-load[data-load-delay="3"] { transition-delay: 0.4s; }
.hero-load[data-load-delay="4"] { transition-delay: 0.55s; }
.hero-load[data-load-delay="5"] { transition-delay: 0.7s; }

/* =============================================
   SECTION DIVIDERS
   ============================================= */
.section-divider {
  height: 120px;
  background: linear-gradient(180deg, var(--from) 0%, var(--to) 100%);
}

/* =============================================
   STATS RIBBON
   ============================================= */
.stats-ribbon {
  padding: 80px 6%;
  background: linear-gradient(180deg, #060e1c 0%, #0D2344 50%, #0a1a33 100%);
  position: relative; overflow: hidden;
}

.stats-ribbon-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1250px; margin: 0 auto;
  position: relative; z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,0.07);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  display: block;
}

.stat-suffix {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
}

.stat-label {
  display: block;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.stat-sublabel {
  display: block;
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
  font-weight: 400;
}

.stat-accent {
  display: block;
  width: 50px; height: 3px;
  background: var(--gradient-warm);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* =============================================
   FEATURE BLOCKS (Apple-style alternating)
   ============================================= */
.feature-block {
  padding: 100px 6%;
  position: relative; overflow: hidden;
}

.block-light {
  background: linear-gradient(180deg, #f0f4f8 0%, #e8edf4 100%);
}

.block-dark {
  background: linear-gradient(180deg, #0a1a33 0%, #0D2344 50%, #0a1a33 100%);
}

.feature-block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1250px; margin: 0 auto;
}

.feature-block-grid.reversed { direction: rtl; }
.feature-block-grid.reversed > * { direction: ltr; }

.feature-block-text { max-width: 500px; }

.feature-block-text .section-tag { margin-bottom: 12px; }

.feature-block-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 18px;
}

.block-light .feature-block-text h2 { color: var(--navy); }
.block-dark .feature-block-text h2 { color: white; }

.feature-block-text > p {
  font-size: 1rem; line-height: 1.75;
  margin-bottom: 28px;
}

.block-light .feature-block-text > p { color: var(--text-body); }
.block-dark .feature-block-text > p { color: rgba(255,255,255,0.6); }

.feature-highlights {
  list-style: none; padding: 0; margin: 0;
}

.feature-highlights li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.9rem; font-weight: 500;
}

.block-light .feature-highlights li { color: var(--text-body); }
.block-dark .feature-highlights li { color: rgba(255,255,255,0.6); }

.feature-highlights li::before {
  content: '';
  position: absolute; left: 0; top: 12px;
  width: 16px; height: 16px;
  background: var(--gradient-warm);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.feature-highlights li::after {
  content: '✓';
  position: absolute; left: 3px; top: 11px;
  font-size: 0.6rem; font-weight: 800; color: white;
}

/* Feature phone mockup */
.feature-phone-wrapper {
  display: flex; justify-content: center;
  position: relative;
  perspective: 1200px;
}

.feature-phone-wrapper::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  z-index: 0;
}

.block-light .feature-phone-wrapper::before {
  background: radial-gradient(circle, rgba(243,146,0,0.08) 0%, transparent 70%);
}

.block-dark .feature-phone-wrapper::before {
  background: radial-gradient(circle, rgba(243,146,0,0.12) 0%, transparent 70%);
}

.feature-phone {
  position: relative; z-index: 1;
  background: #111;
  border-radius: 38px; padding: 8px;
  width: 270px;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.08),
    0 30px 70px rgba(0,0,0,0.3),
    0 60px 120px rgba(0,0,0,0.15);
  animation: phoneFloat 7s ease-in-out infinite;
}

.feature-phone-screen {
  width: 100%; aspect-ratio: 9 / 19.5;
  border-radius: 30px; overflow: hidden;
  background: #000;
}

.feature-phone-screen img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.feature-floating-badge {
  position: absolute;
  bottom: -12px; right: -20px; z-index: 2;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 10px 20px;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  white-space: nowrap;
  animation: phoneFloat 8s ease-in-out infinite;
  animation-delay: -3s;
}

.block-light .feature-floating-badge {
  background: var(--navy);
  border: none;
  box-shadow: 0 8px 24px rgba(13,35,68,0.3);
}

/* =============================================
   SUBJECTS V2
   ============================================= */
.subject-card-v2 {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  background: white;
  border-radius: var(--radius-lg);
  border-left: 5px solid var(--subject-color, var(--navy));
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: var(--transition);
  position: relative; overflow: hidden;
}

.subject-card-v2::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, rgba(var(--subject-r,13),var(--subject-g,35),var(--subject-b,68),0.04) 0%, transparent 100%);
  transition: width 0.4s ease;
}

.subject-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.subject-card-v2:hover::after { width: 40%; }

.subject-icon-area {
  width: 56px; height: 56px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--subject-color), color-mix(in srgb, var(--subject-color) 70%, white));
  font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.subject-info { flex: 1; min-width: 0; position: relative; z-index: 1; }

.subject-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--navy); margin-bottom: 6px;
}

.subject-levels { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }

.level-badge {
  display: inline-flex; padding: 3px 12px;
  border-radius: 20px; font-size: 0.68rem;
  font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  background: rgba(var(--subject-r,13),var(--subject-g,35),var(--subject-b,68),0.08);
  color: var(--subject-color);
}

.subject-topics {
  color: var(--text-muted); font-size: 0.82rem;
  line-height: 1.5;
}

.subject-count {
  text-align: right; flex-shrink: 0; position: relative; z-index: 1;
}

.subject-count-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem; font-weight: 800;
  color: var(--subject-color);
  display: block; line-height: 1;
}

.subject-count-label {
  font-size: 0.75rem; color: var(--text-muted); font-weight: 600;
}

.subject-coming-badge {
  display: inline-flex; padding: 8px 18px;
  background: var(--gradient-warm);
  color: white; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(243,146,0,0.3);
}

/* Total bar */
.subjects-total-bar {
  margin-top: 48px; padding: 36px;
  text-align: center;
  background: rgba(13,35,68,0.03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(13,35,68,0.06);
}

.total-number {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
}

.total-plus {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

.total-label {
  display: block;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .subjects-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-phone .s-phone-screen { width: 170px; }
  .showcase-phone.featured .s-phone-screen { width: 195px; }
  .stats-ribbon-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.07); }
}

@media (max-width: 900px) {
  .app-hero-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .app-hero-content { max-width: 100%; }
  .app-hero-subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
  .store-buttons { justify-content: center; }

  .phones-showcase { min-height: 420px; }
  .hero-phone.center .phone-body { width: 220px; }
  .hero-phone.left, .hero-phone.right { display: none; }

  @keyframes phoneFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

  .sticky-screenshots { display: none; }
  .mobile-slider { display: block; }
  .screenshots-showcase { display: none; }

  .sticky-content { grid-template-columns: 1fr; gap: 40px; }
  .feature-block-grid, .feature-block-grid.reversed { grid-template-columns: 1fr; direction: ltr; gap: 40px; }
  .feature-block-text { max-width: 100%; text-align: center; }
  .feature-phone { width: 240px; }
}

@media (max-width: 768px) {
  .app-hero { padding: 100px 5% 60px; min-height: auto; }
  .app-hero h1 { font-size: 1.8rem; }
  .app-hero-subtitle { font-size: 0.95rem; }

  .hero-phone.center .phone-body { width: 200px; border-radius: 32px; padding: 6px; }
  .hero-phone .phone-inner { border-radius: 26px; }

  .features-grid, .subjects-grid { grid-template-columns: 1fr; }
  .app-features, .app-subjects, .app-download { padding: 80px 5%; }
  .feature-block { padding: 60px 5%; }
  .scroll-indicator { display: none; }
  .slider-phone { width: 200px; }
  .download-glass { padding: 40px 24px; border-radius: 20px; }
  .store-btn { width: 100%; justify-content: center; }
  .sticky-progress { display: none; }
  .section-divider { height: 60px; }
  .stats-ribbon-inner { grid-template-columns: 1fr; gap: 24px; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); padding-bottom: 24px; }
  .stat-item:last-child { border-bottom: none; padding-bottom: 0; }
  .subject-card-v2 { flex-wrap: wrap; }
  .subject-count { width: 100%; text-align: left; margin-top: 8px; }
  .feature-floating-badge { position: static; margin-top: 12px; display: inline-flex; }
}

@media (max-width: 480px) {
  .app-hero h1 { font-size: 1.5rem; }
  .app-hero-badge { font-size: 0.6rem; padding: 8px 16px; }
  .glass-card { padding: 28px 22px; }
  .subject-card { padding: 24px 20px; }
  .hero-phone.center .phone-body { width: 180px; border-radius: 28px; }
  .hero-phone .phone-inner { border-radius: 22px; }
  .slider-phone { width: 180px; border-radius: 30px; }
  .slider-phone-screen { border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .gradient-mesh .orb { animation: none; }
  .hero-phone.center { animation: none; }
  .scroll-indicator svg { animation: none; }
  .glow-btn { animation: none; }
  [data-aos] { opacity: 1; transform: none; transition: none; }
  .hero-load { opacity: 1; transform: none; }
  .steps-connector-line { transform: scaleX(1); }
  .sticky-text-slide, .sticky-phone-screen img { transition: none; }
}

/* Przyciski sklepów przed publikacją */
.store-btn-soon {
  cursor: default;
  opacity: 0.6;
}

.store-btn-soon:hover {
  transform: none;
}

/* CTA do lekcji próbnej na stronie aplikacji */
.app-hero-lead-cta {
  display: inline-block;
  margin-top: 22px;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid rgba(243, 146, 0, 0.4);
  padding-bottom: 2px;
}

.app-hero-lead-cta:hover {
  border-bottom-color: var(--orange);
}

.app-download-lead {
  display: flex;
  justify-content: center;
  margin: 8px 0 28px;
}
