/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ── Paleta z Colors.kt ──────────────────────────── */
  --forest-green:  #3C6000;   /* ForestGreen   – primary */
  --olive-green:   #97B64A;   /* OliveGreen    – secondary */
  --pale-sage:     #F7FFE2;   /* PaleSage      – light bg */
  --light-sage:    #F0F7DD;   /* LightSageGray – surface */
  --soft-silver:   #F3F3F3;   /* SoftSilverGray */
  --deep-moss:     #3C5B08;   /* DeepMossGreen */
  --golden:        #C9A227;   /* GoldenMustard – accent */
  --dark-green:    #2C3E10;   /* DarkGreen     – dark bg */
  --charcoal:      #1A1C1E;   /* CharcoalGray  – phone shell */
  --gunmetal:      #252729;   /* DeepGunmetal */
  --off-white:     #E2E3DE;   /* OffWhite */
  --creamy:        #FEFFFA;   /* CreamyWhite   – body bg */
  --crimson:       #B23A3A;   /* MutedCrimson  – error */
  --black:         #000000;   /* Black */
  --white:         #FFFFFF;   /* White */

  /* ── Neutralne szarości (UI) ─────────────────────── */
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* ── Kolory kartek funkcji ───────────────────────── */
  --blue-500:    #3b82f6;
  --blue-100:    #dbeafe;
  --orange-500:  #f97316;
  --orange-100:  #ffedd5;
  --purple-500:  #a855f7;
  --purple-100:  #f3e8ff;

  /* ── Shadows & misc ──────────────────────────────── */
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 10px 40px rgba(0,0,0,.14);
  --shadow-green: 0 8px 32px rgba(60,96,0,.22);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--creamy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254,255,250,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--light-sage);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gray-900);
  text-decoration: none;
}

.logo-icon { font-size: 1.3rem; }
.logo-text  { color: var(--forest-green); }

.logo-img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover { color: var(--forest-green); }

.nav-links a.nav-cta {
  background: var(--forest-green);
  color: var(--white);
  padding: 7px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: background .2s, transform .2s;
}

.nav-links a.nav-cta:hover {
  background: var(--deep-moss);
  color: var(--white);
  transform: translateY(-1px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 60px;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 60% at 70% 40%, rgba(60,96,0,.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(60,91,8,.04) 0%, transparent 60%);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-block;
  background: var(--light-sage);
  color: var(--deep-moss);
  font-size: .8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--forest-green), var(--olive-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hero-free-note {
  font-size: .85rem;
  color: var(--olive-green);
  opacity: .85;
  margin-bottom: 36px;
  letter-spacing: .03em;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--forest-green);
  color: var(--white);
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  background: var(--deep-moss);
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(60,96,0,.30);
}

.btn-secondary {
  background: var(--light-sage);
  color: var(--deep-moss);
  border: 1px solid var(--olive-green);
}

.btn-secondary:hover {
  background: var(--pale-sage);
  transform: translateY(-1px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--forest-green);
}

.stat-label {
  font-size: .75rem;
  color: var(--gray-400);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--gray-200);
}

/* ===== PHONE SHOWCASE ===== */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.screens-showcase {
  position: relative;
  width: 340px;
  height: 520px;
}

.app-phone {
  position: absolute;
  width: 220px;
  height: 440px;
  background: var(--charcoal);
  border-radius: 32px;
  padding: 10px;
  box-shadow:
    0 24px 64px rgba(0,0,0,.45),
    0 0 0 1.5px rgba(255,255,255,.07),
    inset 0 0 0 1px rgba(255,255,255,.04);
}

.phone-front {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 236px;
  height: 460px;
  box-shadow:
    0 32px 80px rgba(0,0,0,.55),
    0 0 0 2px rgba(255,255,255,.10),
    inset 0 0 0 1px rgba(255,255,255,.06);
  animation: floatMain 5s ease-in-out infinite;
}

.phone-back {
  z-index: 1;
  opacity: .82;
  animation: floatSide 5s ease-in-out infinite;
}

.phone-back:not(.phone-right) {
  left: -8px;
  top: 40px;
  transform: rotate(-6deg);
}

.phone-right {
  right: -8px;
  top: 40px;
  transform: rotate(6deg);
  animation-delay: .6s;
}

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

@keyframes floatSide {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50%       { transform: rotate(-6deg) translateY(-8px); }
}

.phone-right { animation-name: floatRight; }

@keyframes floatRight {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50%       { transform: rotate(6deg) translateY(-8px); }
}

.app-screen {
  width: 100%;
  height: 100%;
  border-radius: 23px;
  overflow: hidden;
  background: var(--dark-green);
}

.screen-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 23px;
}

/* ===== SECTION SHARED ===== */
section { padding: 96px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  background: var(--light-sage);
  color: var(--deep-moss);
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ===== FEATURES ===== */
.features { background: var(--pale-sage); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
  transition: transform .25s, box-shadow .25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-highlight {
  border-color: var(--olive-green);
  background: linear-gradient(135deg, var(--pale-sage), var(--white));
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon-wrap svg { width: 24px; height: 24px; }

.feature-icon-wrap.green  { background: var(--light-sage);  color: var(--forest-green); }
.feature-icon-wrap.blue   { background: var(--blue-100);    color: var(--blue-500);     }
.feature-icon-wrap.orange { background: var(--orange-100);  color: var(--orange-500);   }
.feature-icon-wrap.purple { background: var(--purple-100);  color: var(--purple-500);   }

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gray-900);
}

.feature-card > p {
  color: var(--gray-500);
  font-size: .9rem;
  margin-bottom: 20px;
  line-height: 1.65;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.feature-list li {
  font-size: .85rem;
  color: var(--gray-600);
  padding-left: 18px;
  position: relative;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--olive-green);
  font-weight: 700;
}

/* ===== GALLERY ===== */
.gallery { background: var(--creamy); padding: 96px 0; }

.gallery-scroll-wrap {
  padding: 0 24px 8px;
  max-width: 1148px;
  margin: 0 auto;
}

.gallery-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--olive-green) var(--light-sage);
}

.gallery-scroll::-webkit-scrollbar { height: 5px; }
.gallery-scroll::-webkit-scrollbar-track { background: var(--light-sage); border-radius: 3px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--olive-green); border-radius: 3px; }

.gallery-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--deep-moss);
  opacity: .55;
  margin-bottom: 14px;
  font-weight: 500;
  letter-spacing: .03em;
}

.gallery-hint svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.gallery-item {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gallery-frame {
  width: 155px;
  height: 310px;
  background: var(--charcoal);
  border-radius: 26px;
  padding: 7px;
  box-shadow:
    0 16px 48px rgba(0,0,0,.30),
    0 0 0 1.5px rgba(255,255,255,.07);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}

.gallery-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,.38);
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 20px;
  display: block;
}

.gallery-caption {
  font-size: .78rem;
  color: var(--deep-moss);
  font-weight: 600;
  text-align: center;
  letter-spacing: .02em;
}

/* ===== HOW IT WORKS ===== */
.how-it-works { background: var(--white); }

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--forest-green);
  color: var(--white);
  font-weight: 800;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .04em;
  box-shadow: var(--shadow-green);
}

.step-content {
  padding-top: 10px;
  padding-bottom: 8px;
}

.step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gray-900);
}

.step-content p {
  color: var(--gray-500);
  font-size: .9rem;
  line-height: 1.65;
}

.step-connector {
  width: 2px;
  height: 36px;
  background: linear-gradient(to bottom, var(--olive-green), var(--light-sage));
  margin-left: 25px;
}

/* ===== PLATFORMS + POBIERZ ===== */
.platforms {
  background: var(--dark-green);
  position: relative;
  overflow: hidden;
}

.platforms-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 5% 95%,  rgba(151,182,74,.10) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 95% 5%,  rgba(60,96,0,.25)    0%, transparent 55%);
  pointer-events: none;
}

.platforms .container { position: relative; z-index: 1; }

.platforms .section-tag {
  background: rgba(151,182,74,.18);
  color: var(--olive-green);
}

.platforms .section-title { color: var(--white); }
.platforms .section-desc  { color: var(--off-white); opacity: .65; }

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.platform-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform .25s, background .25s, border-color .25s;
}

.platform-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,.09);
  border-color: rgba(151,182,74,.45);
}

/* ── Card header (icon + title) ── */
.pc-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.pc-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-card.android .pc-icon {
  background: rgba(61,220,132,.14);
}

.platform-card.desktop .pc-icon {
  background: rgba(151,182,74,.14);
}

.pc-icon svg { width: 30px; height: 30px; }
.platform-card.android .pc-icon svg { fill: #3DDC84; }
.platform-card.desktop .pc-icon svg { color: var(--olive-green); stroke: var(--olive-green); }

.pc-title-block h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 3px;
  line-height: 1.1;
}

.pc-sub {
  font-size: .8rem;
  color: var(--olive-green);
  font-weight: 500;
}

/* ── Feature list ── */
.platform-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  margin-bottom: 32px;
}

.platform-features li {
  font-size: .9rem;
  color: var(--off-white);
  opacity: .82;
  padding-left: 24px;
  position: relative;
  line-height: 1.4;
}

.platform-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--olive-green);
  font-weight: 700;
  font-size: .95rem;
}

/* ── Download button ── */
.platform-dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 24px;
  border-radius: var(--radius-md);
  background: var(--forest-green);
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid rgba(151,182,74,.3);
  transition: all .2s;
  width: 100%;
}

.platform-dl-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.platform-dl-btn:hover {
  background: var(--deep-moss);
  border-color: var(--olive-green);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}

.platform-dl-soon {
  font-size: .68rem;
  font-weight: 600;
  background: rgba(201,162,39,.28);
  color: var(--golden);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .88);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 24px;
  animation: lbFadeIn .18s ease;
}

.lightbox.active { display: flex; }

@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox img {
  max-height: 88vh;
  max-width: min(400px, 90vw);
  width: auto;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .7);
  cursor: default;
  animation: lbSlideUp .2s ease;
}

@keyframes lbSlideUp {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, .12);
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  line-height: 1;
}

.lightbox-close:hover { background: rgba(255, 255, 255, .24); }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-green);
  color: var(--off-white);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer .logo-text { color: var(--olive-green); }
.footer .nav-logo  { color: var(--white); }

.footer-tagline {
  font-size: .9rem;
  color: var(--off-white);
  opacity: .6;
  font-style: italic;
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: .88rem;
  color: var(--off-white);
  opacity: .65;
}

.footer-contact a {
  color: var(--olive-green);
  text-decoration: none;
  font-weight: 500;
  transition: opacity .2s;
}

.footer-contact a:hover { opacity: .8; }

.footer-contact-sep { opacity: .4; }

.footer-bottom {
  border-top: 1px solid rgba(151,182,74,.2);
  padding-top: 20px;
  font-size: .8rem;
  color: var(--off-white);
  opacity: .45;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 60px 24px 40px;
    min-height: auto;
    gap: 40px;
    text-align: center;
  }

  .hero-content { max-width: 100%; }
  .hero-cta     { justify-content: center; }
  .hero-stats   { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }

  .nav-links { display: none; }

  .screens-showcase {
    width: 236px;
    height: 460px;
  }

  .phone-back { display: none; }

  .gallery-frame {
    width: 130px;
    height: 260px;
  }

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

@media (max-width: 480px) {
  .features-grid,
  .platforms-grid { grid-template-columns: 1fr; }

  section { padding: 64px 0; }
}
