/* Welcome System — landing page
   Tonal palette matches the admin panel (deep slate/navy #020617). */

:root {
  --bg:        #020617;
  --bg-2:      #0b1220;
  --bg-3:      #0f172a;
  --panel:     #111c34;
  --panel-2:   #152040;
  --border:    #1f2a44;
  --border-2:  #253352;
  --text:      #e2e8f0;
  --text-2:    #cbd5e1;
  --muted:     #94a3b8;
  --accent:    #38bdf8;
  --accent-2:  #0ea5e9;
  --accent-hi: #bae6fd;
  --success:   #10b981;
  --danger:    #ef4444;
  --warning:   #f59e0b;
  --radius:    14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
img { max-width: 100%; height: auto; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(2,6,23,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #0a1628;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a {
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
}
.site-nav a:hover { color: var(--text); }
.site-nav .nav-login {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  color: var(--text);
  font-size: 0.88rem;
}
.site-nav .nav-login:hover {
  background: rgba(56,189,248,0.08);
  border-color: var(--accent);
  color: var(--accent-hi);
}

/* Hero */
.hero {
  padding: 72px 0 80px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56,189,248,0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(14,165,233,0.10), transparent 70%);
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 820px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--accent-hi);
  background: rgba(56,189,248,0.10);
  border: 1px solid rgba(56,189,248,0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero h1 .accent {
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hi) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--text-2);
  margin: 0 0 28px;
  max-width: 720px;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 28px;
}
.hero-proof {
  font-size: 0.88rem;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  max-width: 720px;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  color: #0a1628;
  border: none;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(56,189,248,0.25);
  color: #06121f;
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-hi);
  background: rgba(56,189,248,0.06);
}

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  text-align: center;
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-lead {
  text-align: center;
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: all 0.2s ease;
}
.feature:hover {
  transform: translateY(-2px);
  border-color: var(--border-2);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}
.feature-icon { font-size: 1.9rem; margin-bottom: 12px; }
.feature h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 600; }
.feature p  { margin: 0; color: var(--text-2); font-size: 0.95rem; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
}
.step-num {
  position: absolute;
  top: -18px; left: 22px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  color: #0a1628;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 8px 22px rgba(56,189,248,0.25);
}
.step h3 { margin: 16px 0 8px; font-size: 1.1rem; font-weight: 600; }
.step p  { margin: 0; color: var(--text-2); font-size: 0.95rem; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.plan {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-highlighted {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  box-shadow: 0 20px 50px rgba(56,189,248,0.12);
}
.plan-badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  color: #0a1628;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan-tier {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.plan-price {
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}
.plan-price .amount {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.plan-price .currency { font-size: 1.2rem; color: var(--text-2); font-weight: 600; }
.plan-price .period { font-size: 0.88rem; color: var(--muted); margin-left: 6px; }
.plan-price-custom .amount { font-size: 1.8rem; font-weight: 700; }

.plan-desc {
  color: var(--text-2);
  margin: 0 0 18px;
  font-size: 0.94rem;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex-grow: 1;
}
.plan-features li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-2);
  position: relative;
  padding-left: 26px;
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 9px;
  color: var(--success);
  font-weight: 700;
}
.plan-features li.feature-off { color: var(--muted); }
.plan-features li.feature-off::before { content: "—"; color: var(--muted); }
.plan-features li.feature-note { color: var(--warning); font-style: italic; }
.plan-features li.feature-note::before { content: "!"; color: var(--warning); }

.btn-plan {
  display: inline-block;
  text-align: center;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}
.btn-plan:hover {
  border-color: var(--accent);
  color: var(--accent-hi);
  background: rgba(56,189,248,0.08);
}
.btn-plan-primary {
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  color: #0a1628;
  border: none;
}
.btn-plan-primary:hover {
  color: #06121f;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(56,189,248,0.25);
}

/* Contact */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-text .section-title { text-align: left; }
.contact-text .section-lead  { text-align: left; margin-left: 0; }

.contact-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form .field-full { grid-column: 1 / -1; }

.contact-form .field { display: flex; flex-direction: column; gap: 6px; }
.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
}
.contact-form label .optional { font-weight: 400; color: var(--muted); }
.contact-form input,
.contact-form textarea,
.contact-form select {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.15);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

.hp-field {
  position: absolute; left: -9999px; top: -9999px;
  visibility: hidden;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form-feedback { font-size: 0.9rem; }
.form-feedback-ok  { color: var(--success); }
.form-feedback-err { color: var(--danger); }

/* Footer */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 36px 0 28px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-brand { display: flex; gap: 10px; align-items: center; color: var(--text-2); font-weight: 600; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-2); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-hi); }
.footer-note { font-size: 0.82rem; color: var(--muted); }

/* Responsive */
@media (max-width: 760px) {
  .hero { padding: 48px 0 56px; }
  .section { padding: 56px 0; }
  .contact-container { grid-template-columns: 1fr; gap: 24px; }
  .contact-form { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; font-size: 0.9rem; }
  .site-nav a:not(.nav-login) { display: none; }
  .site-nav .nav-login { display: inline-block; }
}

/* =========================================================================
   Coming soon banner — centered, animated hero badge
   ========================================================================= */
.coming-soon-banner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 20px 18px;
  background: transparent;
  z-index: 5;
  /* Entrance animation */
  animation: cs-fade-in 600ms ease-out both;
}

.coming-soon-banner .cs-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 26px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0b0f1e;
  background: linear-gradient(
    110deg,
    #fde68a 0%,
    #fbbf24 30%,
    #f59e0b 50%,
    #fbbf24 70%,
    #fde68a 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  border-radius: 999px;
  /* Glow + subtle border */
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.35),
    0 8px 28px rgba(251, 191, 36, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  /* Shimmer across the pill */
  animation:
    cs-shimmer 4.5s ease-in-out infinite,
    cs-pulse 2.6s ease-in-out infinite;
  cursor: default;
  white-space: nowrap;
  max-width: 100%;
}

.coming-soon-banner .cs-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #dc2626;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
  animation: cs-blink 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes cs-fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cs-shimmer {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}
@keyframes cs-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(251, 191, 36, 0.35),
      0 8px 28px rgba(251, 191, 36, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(251, 191, 36, 0.55),
      0 10px 36px rgba(251, 191, 36, 0.40),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
}
@keyframes cs-blink {
  0%, 100% { box-shadow: 0 0 0 0    rgba(220, 38, 38, 0.0); transform: scale(1); }
  50%      { box-shadow: 0 0 0 6px  rgba(220, 38, 38, 0.0); transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .coming-soon-banner,
  .coming-soon-banner .cs-pill,
  .coming-soon-banner .cs-dot {
    animation: none !important;
  }
}

/* =========================================================================
   Language switcher — bigger, clearly visible
   ========================================================================= */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: 10px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.lang-btn {
  background: transparent;
  border: none;
  padding: 5px 10px;
  min-width: 52px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
}
.lang-btn:hover {
  background: rgba(56, 189, 248, 0.08);
  color: var(--text);
}
.lang-btn.active {
  background: linear-gradient(135deg, rgba(56,189,248,0.25) 0%, rgba(14,165,233,0.25) 100%);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.55);
}

.flag {
  display: inline-block;
  width: 22px;
  height: 16px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.3);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

/* Real Union Jack as inline SVG data-URI — pixel-perfect and small */
.flag-gb {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'><clipPath id='s'><path d='M0,0 v30 h60 v-30 z'/></clipPath><clipPath id='t'><path d='M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z'/></clipPath><g clip-path='url(%23s)'><path d='M0,0 v30 h60 v-30 z' fill='%23012169'/><path d='M0,0 L60,30 M60,0 L0,30' stroke='%23fff' stroke-width='6'/><path d='M0,0 L60,30 M60,0 L0,30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/><path d='M30,0 v30 M0,15 h60' stroke='%23fff' stroke-width='10'/><path d='M30,0 v30 M0,15 h60' stroke='%23C8102E' stroke-width='6'/></g></svg>");
}

/* Poland flag — white over red */
.flag-pl {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'><rect width='8' height='5' fill='%23fff'/><rect width='8' height='2.5' y='2.5' fill='%23dc143c'/></svg>");
}

@media (max-width: 760px) {
  .lang-switch { margin-left: 6px; }
  .lang-btn { min-width: 44px; padding: 5px 8px; font-size: 0.78rem; }
  .coming-soon-banner { padding: 12px 14px 14px; }
  .coming-soon-banner .cs-pill { font-size: 0.86rem; padding: 9px 18px; }
}
