/* landing.css — Ekran powitalny (intro) i ekran generowania planu */


#intro.hide {
  opacity: 0;
  transform: scale(1.04);
  visibility: hidden;
  pointer-events: none;
}

.flightpath svg { width: 100%; height: 100%; overflow: visible; }

.flight-arc {
  fill: none;
  stroke: rgba(255,255,255,.8);
  stroke-width: 2.4;
  stroke-dasharray: 6 9;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.4));
  animation: dash 22s linear infinite;
}

.plane {
  position: absolute;
  top: 0; left: 0;
  font-size: 30px;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
  offset-path: path('M 20 250 Q 380 20 740 150');
  offset-rotate: auto;
  animation: fly 12s ease-in-out infinite;
}

.intro-inner { position: relative; z-index: 3; max-width: 620px; }

.globe {
  width: 120px; height: 120px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), transparent 40%),
    conic-gradient(from 0deg, #1E7CC4, #14B8A6, #22C55E, #1E7CC4);
  box-shadow: inset -14px -10px 40px rgba(3,30,60,.55), 0 20px 50px rgba(3,40,80,.5);
  position: relative;
  animation: spin 18s linear infinite;
}

.globe::before {
  content: '🌍';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 76px;
  animation: spin 18s linear infinite reverse;
}

.globe::after {
  content: '';
  position: absolute; inset: -12px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.35);
  animation: spin 26s linear infinite reverse;
}

.intro-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(6px);
  margin-bottom: 22px;
  animation: rise .8s .05s both;
}

.intro-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 7vw, 52px);
  line-height: 1.05;
  letter-spacing: -.02em;
  text-shadow: 0 8px 30px rgba(0,0,0,.25);
  animation: rise .8s .12s both;
}

.intro-title .accent {
  background: linear-gradient(90deg, #FFE29A, #FFB25A);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.intro-sub {
  font-size: clamp(15px, 2.6vw, 19px);
  line-height: 1.6;
  color: rgba(255,255,255,.9);
  max-width: 540px;
  margin: 18px auto 30px;
  animation: rise .8s .2s both;
}

.intro-cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  background: linear-gradient(180deg, #fff, #EAF6FF);
  border: none;
  border-radius: 999px;
  padding: 17px 40px;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(3,40,80,.4);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: rise .8s .28s both;
}

.intro-cta i { color: var(--blue); margin-left: 6px; vertical-align: -2px; }

.intro-cta:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 22px 44px rgba(3,40,80,.5); }

.intro-cta:active { transform: translateY(-1px) scale(1); }

.intro-feats {
  display: flex; flex-wrap: wrap; gap: 10px 8px;
  justify-content: center;
  margin-top: 34px;
  animation: rise .8s .36s both;
}

.intro-feats .feat {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  color: #fff;
}

.intro-feats .feat i { font-size: 16px; color: #BDEBF7; }

#gen-overlay.show { display: flex; animation: fadein .4s ease both; }

.gen-globe {
  width: 132px; height: 132px; margin-bottom: 30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), transparent 42%),
    conic-gradient(from 0deg, #1E7CC4, #14B8A6, #22C55E, #1E7CC4);
  box-shadow: inset -16px -12px 44px rgba(3,30,60,.55), 0 22px 54px rgba(3,40,80,.5);
  position: relative;
  animation: spin 6s linear infinite;
}

.gen-globe::before {
  content: '🌍'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 82px; animation: spin 6s linear infinite reverse;
}

.gen-globe::after {
  content: ''; position: absolute; inset: -16px; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.4); animation: spin 9s linear infinite;
}

.gen-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 5vw, 30px); letter-spacing: -.01em; margin-bottom: 14px;
}

.gen-track {
  width: min(300px, 80vw); height: 6px; margin-top: 24px;
  border-radius: 999px; background: rgba(255,255,255,.2); overflow: hidden;
}

.gen-track > i {
  display: block; height: 100%; width: 40%;
  border-radius: 999px; background: linear-gradient(90deg, #FFE29A, #fff);
  animation: gload 2.6s ease-in-out infinite;
}

#intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
  color: #fff;
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(255,255,255,.20), transparent 60%),
    linear-gradient(160deg, #0B4A8F 0%, #1668B0 40%, #159AAF 78%, #14B8A6 100%);
  overflow: hidden;
  transition: opacity .7s ease, transform .7s ease, visibility .7s;
}

.flightpath {
  position: absolute;
  top: 8%; left: 50%;
  width: min(760px, 92vw); height: 300px;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: .9;
}

#gen-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; color: #fff;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(160deg, #0B4A8F 0%, #1573B8 45%, #14B8A6 100%);
  padding: 30px;
}
