/* Mellifer Main – Landing Page */

/* ── Hero ── */
.lp-hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 80px 5% 60px;
  position: relative; overflow: hidden;
  background: var(--bg-page);
}
.lp-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(245,194,0,.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
  pointer-events: none;
}
.lp-hero-glow {
  position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 360px;
  background: radial-gradient(ellipse, rgba(245,194,0,.07), transparent 68%);
  pointer-events: none;
}
.lp-hero-logo {
  width: 72px; height: 72px; margin-bottom: 20px;
  filter: drop-shadow(0 6px 22px rgba(245,194,0,.25));
  animation: lLogoIn .9s cubic-bezier(.25,.46,.45,.94) both,
             lLogoFl 7s 1s ease-in-out infinite;
  position: relative; z-index: 1;
}
@keyframes lLogoIn { from{opacity:0;transform:scale(.8) translateY(10px)}to{opacity:1;transform:none} }
@keyframes lLogoFl { 0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)} }

.hero-eyebrow { animation: fuA .7s .1s both; position: relative; z-index: 1 }
.lp-hero h1   { animation: fuA .7s .18s both; position: relative; z-index: 1; margin-bottom: 20px }
.lp-hero-sub  {
  font-size: 1rem; font-weight: 300; color: var(--text-secondary); line-height: 1.68;
  max-width: 450px; margin-bottom: 36px;
  animation: fuA .7s .26s both; position: relative; z-index: 1;
}
.lp-hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  animation: fuA .7s .34s both; position: relative; z-index: 1;
}
.lp-hero-note {
  font-size: .72rem; color: var(--text-muted); margin-top: 12px;
  animation: fuA .7s .42s both; position: relative; z-index: 1;
}

/* Stats */
.lp-stats {
  display: flex; gap: 40px; justify-content: center;
  margin-top: 52px; padding-top: 28px;
  border-top: 1px solid var(--border);
  animation: fuA .7s .5s both; position: relative; z-index: 1;
  flex-wrap: wrap;
}
.lp-stat-n { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); letter-spacing: -.03em; text-align: center }
.lp-stat-l { font-size: .68rem; color: var(--text-muted); margin-top: 3px; text-align: center }

@keyframes fuA { from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none} }

/* ── Marquee strip ── */
.lp-strip { background: #000; padding: .8rem 0; overflow: hidden; white-space: nowrap; border-top: 1px solid var(--border) }
.lp-strip-track { display: inline-flex; animation: lStrip 30s linear infinite }
.lp-strip-item { display: inline-flex; align-items: center; gap: .8rem; padding: 0 2rem; font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(245,245,247,.3) }
.lp-sdot { width: 3px; height: 3px; background: var(--gold); border-radius: 50% }
@keyframes lStrip { from{transform:translateX(0)}to{transform:translateX(-50%)} }

/* ── Tiles section ── */
.tiles-section { padding: 90px 5%; background: var(--bg-page) }
.tiles-intro { text-align: center; max-width: 540px; margin: 0 auto 48px }

.tiles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; max-width: 960px; margin: 0 auto;
}
.tile {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border-card);
  padding: 32px 28px 28px;
  display: flex; flex-direction: column;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .25s cubic-bezier(.25,.46,.45,.94), box-shadow .25s, border-color .25s;
  text-decoration: none; color: inherit;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(255,255,255,.12) }
.tile.soon { opacity: .55; cursor: default; border: 1px dashed rgba(255,255,255,.1) }
.tile.soon:hover { transform: none; box-shadow: none }

.tile::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.tile:hover::before { transform: scaleX(1) }
.tile.soon::before { display: none }

.tile-icon { font-size: 2.2rem; margin-bottom: 14px; display: block }
.tile-tag { font-size: .6rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px }
.tile h3 { font-size: 1.05rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; line-height: 1.2 }
.tile p { font-size: .82rem; font-weight: 300; color: var(--text-secondary); line-height: 1.6; flex: 1 }
.tile-arrow { margin-top: 18px; font-size: .78rem; font-weight: 500; color: var(--text-primary); display: flex; align-items: center; gap: 4px; transition: gap .2s }
.tile:hover .tile-arrow { gap: 8px }
.tile.soon .tile-arrow { color: var(--text-muted) }
.tile-soon-badge { position: absolute; top: 14px; right: 14px }

/* ── Mission strip ── */
.mission-strip {
  background: #0d0d0d; padding: 80px 5%; text-align: center;
  position: relative; overflow: hidden;
}
.mission-strip::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(245,194,0,.07), transparent 65%);
  pointer-events: none;
}
.mission-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto }

/* ── Foundation ── */
.foundation-sec { padding: 90px 5%; background: var(--bg-page) }
.foundation-grid { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center }
.found-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg-card2); color: var(--text-muted);
  font-size: .72rem; font-weight: 500; padding: .38rem 1rem;
  border-radius: var(--radius-pill); margin-bottom: 18px;
  border: 1px solid var(--border);
}
.found-items { display: flex; flex-direction: column; gap: 10px }
.fi {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--border-card);
}
.fi-dot { width: 7px; height: 7px; background: rgba(255,255,255,.15); border-radius: 50%; flex-shrink: 0; margin-top: 4px }
.fi-dot.on { background: var(--gold) }
.fi h4 { font-size: .85rem; font-weight: 600; color: var(--text-primary); margin-bottom: 2px }
.fi p { font-size: .76rem; font-weight: 300; color: var(--text-secondary); line-height: 1.5 }

/* ── CTA ── */
.cta-sec {
  background: #0a0a0a; padding: 110px 5%; text-align: center;
  position: relative; overflow: hidden;
}
.cta-sec::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 700px; height: 360px;
  background: radial-gradient(ellipse, rgba(245,194,0,.08), transparent 65%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 520px; margin: 0 auto }
.cta-inner h2 { margin-bottom: 14px }
.cta-inner p { margin-bottom: 28px }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap }

/* ── Responsive ── */
@media (max-width: 860px) {
  .tiles-grid { grid-template-columns: 1fr 1fr }
  .foundation-grid { grid-template-columns: 1fr; gap: 36px }
}
@media (max-width: 560px) {
  .tiles-grid { grid-template-columns: 1fr }
  .lp-hero { padding: 80px 16px 50px }
  .lp-stats { gap: 24px }
  .tiles-section, .foundation-sec { padding: 70px 16px }
}


/* ── Language Switcher ── */
.lang-switcher { display: flex; align-items: center; gap: 2px }
.lang-switcher .lang-item,
.lang-switcher-fallback .lang-item {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .72rem; font-weight: 500;
    padding: .28rem .55rem; border-radius: 6px;
    text-decoration: none; color: var(--text-muted);
    transition: background .18s, color .18s;
    cursor: pointer;
}
.lang-switcher .lang-item:hover,
.lang-switcher-fallback .lang-item:hover { background: var(--bg-card2); color: var(--text-primary) }
.lang-switcher .current-lang,
.lang-switcher-fallback .lang-item.active {
    background: var(--gold-dim); color: var(--text-primary); font-weight: 600;
}
.lang-switcher .lang-item img { width: 16px; height: 11px; border-radius: 2px }

/* ── Wariant jasny (sekcje z twardymi kolorami) ── */
html.mel-site-light .lp-strip {
  background: #e8e8ed;
  border-top-color: var(--border);
}
html.mel-site-light .lp-strip-item { color: rgba(0,0,0,.35) }
html.mel-site-light .mission-strip { background: #ffffff }
html.mel-site-light .mission-strip::before {
  background: radial-gradient(ellipse, rgba(245,194,0,.12), transparent 65%);
}
html.mel-site-light .fi-dot { background: rgba(0,0,0,.12) }
html.mel-site-light .cta-sec { background: #f5f5f7 }
html.mel-site-light .cta-sec::before {
  background: radial-gradient(ellipse, rgba(245,194,0,.14), transparent 65%);
}
html.mel-site-light .tile:hover { border-color: rgba(0,0,0,.12) }
html.mel-site-light .tile.soon { border-color: rgba(0,0,0,.12) }
