/* =============================================
   SKANELO — Landing Page Styles
   Dark tech aesthetic, green accent
   ============================================= */

:root {
  --green: #00ff88;
  --green-dim: #00cc6a;
  --green-glow: rgba(0, 255, 136, 0.15);
  --bg: #080c0a;
  --bg-2: #0d1210;
  --bg-card: #111816;
  --bg-card-hover: #161e1a;
  --border: rgba(0, 255, 136, 0.12);
  --border-subtle: rgba(255,255,255,0.06);
  --text: #e8f0ec;
  --text-muted: #7a9188;
  --text-dim: #4a6158;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 { font-family: var(--font-mono); line-height: 1.2; }
a { color: inherit; text-decoration: none; }

/* ---- LAYOUT ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 780px; }

/* ---- NAV ---- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: all 0.3s;
}
#nav.nav--scrolled {
  background: rgba(8, 12, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--font-mono);
  font-size: 1.3rem; font-weight: 700;
  color: var(--green); letter-spacing: 2px;
}
.logo-dot { color: var(--text-muted); }
.nav-links {
  list-style: none; display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--green) !important;
  border: 1px solid var(--border) !important;
  padding: 8px 18px; border-radius: 8px;
  transition: all 0.2s !important;
}
.nav-cta:hover {
  background: var(--green-glow) !important;
  border-color: var(--green) !important;
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 99;
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  font-family: var(--font-mono); font-size: 1.4rem; color: var(--text-muted);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--green); }
.mobile-cta { color: var(--green) !important; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 60px;
  padding: 120px 80px 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.hero-grid-bg {
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(0,255,136,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-glow); border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 14px;
  font-size: 0.8rem; color: var(--green); margin-bottom: 28px;
  font-family: var(--font-mono);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text);
}
.hero-accent {
  color: var(--green);
  text-shadow: 0 0 40px rgba(0,255,136,0.3);
}
.hero-sub {
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 520px; margin-bottom: 40px; line-height: 1.7;
}
.hero-actions {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex; align-items: center; gap: 24px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: var(--font-mono); font-size: 1.5rem;
  color: var(--green); font-weight: 700;
}
.stat-label { font-size: 0.75rem; color: var(--text-dim); }
.stat-divider {
  width: 1px; height: 36px; background: var(--border-subtle);
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--green); color: #000;
  font-family: var(--font-mono); font-weight: 700;
  font-size: 0.9rem; padding: 14px 28px;
  border-radius: var(--radius); border: none; cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 30px rgba(0,255,136,0.2);
}
.btn-primary:hover {
  background: #00ff99;
  box-shadow: 0 0 50px rgba(0,255,136,0.4);
  transform: translateY(-1px);
}
.btn-primary.btn-large { font-size: 1rem; padding: 16px 36px; }
.btn-ghost {
  display: inline-flex; align-items: center;
  color: var(--text-muted); font-size: 0.9rem;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--text); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); color: var(--green);
  font-family: var(--font-mono); font-size: 0.85rem;
  padding: 12px 24px; border-radius: var(--radius);
  transition: all 0.2s; width: 100%;
}
.btn-outline:hover {
  background: var(--green-glow); border-color: var(--green);
}

/* ---- TELEGRAM MOCKUP ---- */
.hero-mockup { position: relative; }
.tg-phone {
  background: #1a1f1c;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 60px rgba(0,255,136,0.08);
  width: 320px;
}
.tg-header {
  background: #1f2620;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.tg-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem;
}
.tg-name { display: block; font-weight: 600; font-size: 0.9rem; }
.tg-status { display: block; font-size: 0.75rem; color: var(--green); }
.tg-messages { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.tg-msg {
  background: #1f2a24;
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
  padding: 12px 14px;
  display: flex; gap: 10px;
  opacity: 0; transform: translateX(-20px);
}
.tg-msg.animate-msg { animation: slideIn 0.5s ease forwards; }
@keyframes slideIn {
  to { opacity: 1; transform: translateX(0); }
}
.tg-msg-icon { font-size: 1.2rem; }
.tg-msg-body { flex: 1; }
.tg-msg-title { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 4px; }
.tg-msg-text { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.tg-msg-price {
  font-family: var(--font-mono); font-size: 1rem;
  color: var(--green); font-weight: 700; margin: 4px 0;
}
.tg-msg-link {
  font-size: 0.75rem; color: var(--green);
  text-decoration: underline; cursor: pointer;
}
.tg-msg-time { font-size: 0.65rem; color: var(--text-dim); margin-top: 6px; text-align: right; }

/* ---- SECTIONS ---- */
.section { padding: 100px 0; }
.section--dark { background: var(--bg-2); }

.section-label {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--green); letter-spacing: 3px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 20px; color: var(--text);
}
.section-sub {
  color: var(--text-muted); font-size: 1.05rem;
  margin-bottom: 56px; max-width: 560px;
}

/* ---- STEPS ---- */
.steps {
  display: flex; align-items: flex-start; gap: 0;
  margin-top: 56px;
}
.step {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: border-color 0.3s;
}
.step:hover { border-color: var(--border); }
.step-num {
  font-family: var(--font-mono); font-size: 2.5rem;
  color: var(--green); opacity: 0.3; font-weight: 700;
  margin-bottom: 16px; line-height: 1;
}
.step h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--text); }
.step p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.step-arrow {
  padding: 0 16px; margin-top: 60px;
  color: var(--text-dim); font-size: 1.2rem;
  flex-shrink: 0;
}

/* ---- FEATURES ---- */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 56px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.feature-icon { font-size: 1.8rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1rem; margin-bottom: 10px; color: var(--text); }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ---- PRICING (Wersja Finalna - Idealne Wyrównanie) ---- */
.pricing {
  display: grid; 
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; 
  margin-top: 56px; 
  align-items: stretch; /* Wymusza taką samą wysokość wszystkich kart */
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all 0.3s;
  /* Układ Flexbox dla zawartości karty */
  display: flex;
  flex-direction: column;
  align-items: center;    /* Centruje elementy w poziomie */
  text-align: center;
}

.price-card:hover { border-color: var(--green); }

.price-card--featured {
  border-color: var(--green) !important;
  background: var(--bg-card-hover);
  box-shadow: 0 0 40px rgba(0,255,136,0.1);
  transform: scale(1.03);
}

.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #000;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  padding: 4px 14px; border-radius: 100px; white-space: nowrap;
}

.price-label {
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--text-muted); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 20px;
}

.price-amount {
  font-family: var(--font-mono); font-size: 3rem; font-weight: 700;
  color: var(--text); line-height: 1;
  /* Poprawka wyrównania: stała wysokość dla kwoty[cite: 1] */
  height: 4rem;      
  display: flex;
  align-items: center;
  justify-content: center;
}

.price-amount--custom { font-size: 1.4rem; color: var(--green); }
.price-decimal { font-size: 1.5rem; }
.price-currency { font-size: 1.2rem; color: var(--text-muted); }

.price-period {
  font-size: 0.85rem; color: var(--text-dim);
  font-family: var(--font-mono);
  /* Poprawka wyrównania: stała wysokość dla opisu okresu[cite: 1] */
  margin: 8px 0 0 0;
  height: 3rem;       
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.price-features {
  list-style: none; 
  display: flex; 
  flex-direction: column;
  gap: 10px; 
  margin-top: 30px;   /* Stały odstęp od sekcji ceny[cite: 1] */
  margin-bottom: 32px;
  text-align: left;   /* Tekst cech wyrównany do lewej dla czytelności[cite: 1] */
  flex-grow: 1;       /* Spycha przycisk na sam dół[cite: 1] */
  width: 100%;
}

.price-features li { font-size: 0.9rem; color: var(--text-muted); }

/* Wyrównanie przycisków na dole kart[cite: 1] */
.price-card .btn-primary,
.price-card .btn-outline {
  margin-top: auto;   /* Zawsze na dole dzięki flex-grow wyżej[cite: 1] */
  width: 100%;       
  max-width: 240px;   /* Stała szerokość dla wszystkich przycisków[cite: 1] */
  justify-content: center;
}

.pricing-note {
  text-align: center; margin-top: 40px;
  color: var(--text-muted); font-size: 0.95rem;
  background: var(--green-glow); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 24px;
}

/* ---- FAQ ---- */
.faq-list { margin-top: 56px; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--border); }
.faq-q {
  width: 100%; background: var(--bg-card);
  border: none; color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; text-align: left;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--bg-card-hover); }
.faq-icon {
  font-family: var(--font-mono); font-size: 1.2rem;
  color: var(--green); flex-shrink: 0; margin-left: 16px;
  transition: transform 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  background: var(--bg-card);
  color: var(--text-muted); font-size: 0.9rem; line-height: 1.7;
  padding: 0 24px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 24px 20px; }

/* ---- CTA SECTION ---- */
.cta-section { position: relative; overflow: hidden; }
.cta-inner { text-align: center; position: relative; z-index: 1; }
.cta-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,255,136,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner .section-sub { margin: 0 auto 40px; }

/* ---- FOOTER ---- */
.footer {
  background: var(--bg-2); border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo {
  font-family: var(--font-mono); font-size: 1.1rem;
  color: var(--green); font-weight: 700; letter-spacing: 2px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.85rem; color: var(--text-dim);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-muted); }
.footer-copy { font-size: 0.8rem; color: var(--text-dim); width: 100%; text-align: center; }

/* ---- SCROLL REVEAL ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 100px 24px 60px;
    text-align: center;
  }
  .hero-badge { margin: 0 auto 28px; }
  .hero-sub { margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-mockup { display: flex; justify-content: center; }
  .tg-phone { width: 100%; max-width: 340px; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: column; }
  .step-arrow { display: none; }
  .pricing { grid-template-columns: 1fr; max-width: 400px; margin: 56px auto 0; }
  .price-card--featured { transform: scale(1); }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
