@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:wght@300;400;500&display=swap');

/* ── Variables ── */
:root {
  --bg:      #080810;
  --surface: #0f0f1a;
  --card:    #13131f;
  --border:  rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --accent:  #e8ff47;
  --accent2: #a8f561;
  --blue:    #5b8fff;
  --muted:   #6b6b80;
  --text:    #f0f0f5;
  --sub:     #9090a8;
  --radius:  16px;
  --glow:    0 0 60px rgba(232,255,71,0.12);
  --nav-h:   65px;
  --banner-h: 34px;
}

/* Domyślne padding-top body — kompensuje fixed nav */
body { padding-top: var(--nav-h); }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* ── Custom cursor ── */
#cursor {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}
#cursor-ring {
  width: 22px; height: 22px;
  border: 1px solid rgba(232,255,71,0.3);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transition: width 0.18s, height 0.18s, opacity 0.18s;
}
body:hover #cursor { opacity: 1; }

/* ── Grain overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
  opacity: 0.4;
}

/* ── Grid lines ── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none; z-index: 0;
}

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(8,8,16,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  gap: 24px;
}

/* Logo image slot — place your logo.png/svg next to index.html */
.nav-logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
}
.nav-logo-fallback {
  font-size: 24px; font-weight: 800; letter-spacing: -0.5px;
  color: var(--accent); line-height: 1;
}
.nav-logo-fallback span {
  color: var(--sub); font-weight: 400; font-size: 13px;
  font-family: 'DM Mono', monospace; margin-left: 6px;
}
.nav-logo-sig {
  display: flex; flex-direction: column; gap: 2px;
  border-left: 1px solid var(--border2);
  padding-left: 14px;
}
.nav-logo-sig-name {
  font-size: 16px; font-weight: 800; letter-spacing: -0.4px;
  color: var(--text); line-height: 1;
}
.nav-logo-sig-tag {
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: var(--accent); letter-spacing: 1px; text-transform: uppercase;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--sub); text-decoration: none; font-size: 14px; font-weight: 600;
  letter-spacing: 0.5px; transition: color 0.2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 18px; border-radius: 8px; border: none;
  background: var(--accent); color: #080810;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px;
  cursor: none; white-space: nowrap; flex-shrink: 0;
  text-decoration: none; box-sizing: border-box;
  transition: transform 0.15s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(232,255,71,0.3); }

.nav-discord {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: 8px; border: none;
  background: #5865F2; color: #fff;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px;
  text-decoration: none; cursor: none; white-space: nowrap; flex-shrink: 0;
  box-sizing: border-box; transition: transform 0.15s, box-shadow 0.2s;
}
.nav-discord:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(88,101,242,0.4); }

/* Wrapper po prawej stronie nawa */
.nav-right {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}

/* ── Hero ── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 60px 24px 80px;
  position: relative; z-index: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,255,71,0.08);
  border: 1px solid rgba(232,255,71,0.2);
  padding: 6px 16px; border-radius: 99px;
  font-family: 'DM Mono', monospace; font-size: 12px; color: var(--accent);
  letter-spacing: 1px; margin-bottom: 36px;
  animation: fadeUp 0.8s ease both;
}
.badge-dot {
  width: 6px; height: 6px; background: var(--accent2);
  border-radius: 50%; animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(56px, 9vw, 110px);
  font-weight: 800; line-height: 0.92;
  letter-spacing: -3px; margin-bottom: 28px;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero h1 em {
  font-style: normal; color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}
.hero h1 .line2 { display: block; color: var(--accent); }

.hero-sub {
  max-width: 520px; font-size: 17px; font-weight: 400;
  color: var(--sub); line-height: 1.7; margin-bottom: 48px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-btns {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  animation: fadeUp 0.8s 0.3s ease both;
}

.btn-primary {
  background: var(--accent); color: #080810;
  padding: 14px 36px; border-radius: 10px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: none;
  transition: transform 0.15s, box-shadow 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(232,255,71,0.35); }

.btn-ghost {
  background: transparent; color: var(--text);
  padding: 14px 36px; border-radius: 10px;
  border: 1px solid var(--border2);
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(232,255,71,0.05); }

/* ── Floating terminal ── */
.hero-visual {
  margin-top: 72px; width: 100%; max-width: 700px;
  animation: fadeUp 0.8s 0.4s ease both, float 4s 1s ease-in-out infinite;
  position: relative;
}
.terminal {
  background: var(--card); border: 1px solid var(--border2);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05), var(--glow);
}
.term-bar {
  padding: 12px 18px; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }
.term-title { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--muted); margin-left: auto; }
.term-body { padding: 24px 28px; font-family: 'DM Mono', monospace; font-size: 13px; line-height: 2; text-align: left; }
.term-line { display: flex; gap: 10px; opacity: 0; animation: termLine 0.4s ease forwards; }
.term-line:nth-child(1) { animation-delay: 1s; }
.term-line:nth-child(2) { animation-delay: 1.5s; }
.term-line:nth-child(3) { animation-delay: 2s; }
.term-line:nth-child(4) { animation-delay: 2.5s; }
.term-line:nth-child(5) { animation-delay: 3s; }
.term-line:nth-child(6) { animation-delay: 3.5s; }
.term-prompt { color: var(--accent); }
.term-cmd    { color: var(--text); }
.term-out    { color: var(--sub); padding-left: 20px; }
.term-green  { color: var(--accent2); }
.term-blue   { color: var(--blue); }

/* ── Stats bar ── */
.stats-bar {
  position: relative; z-index: 1;
  display: flex; justify-content: center; flex-wrap: wrap;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015); overflow: hidden;
}
.stat-item {
  flex: 1; min-width: 180px; padding: 32px 24px; text-align: center;
  border-right: 1px solid var(--border);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}
.stat-item.visible { opacity: 1; transform: none; }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 42px; font-weight: 800; color: var(--accent);
  letter-spacing: -2px; line-height: 1; font-family: 'Syne', sans-serif;
}
.stat-label { font-size: 13px; color: var(--muted); margin-top: 6px; font-family: 'DM Mono', monospace; letter-spacing: 0.5px; }

/* ── Sections ── */
section { position: relative; z-index: 1; }

.section-tag {
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: var(--accent); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 16px; display: block;
}
.section-title {
  font-size: clamp(32px, 5vw, 52px); font-weight: 800;
  letter-spacing: -1.5px; line-height: 1.05; margin-bottom: 16px;
}
.section-sub { font-size: 16px; color: var(--sub); line-height: 1.7; max-width: 500px; }

/* ── Features ── */
.features { padding: 120px 48px; max-width: 1200px; margin: 0 auto; }
.features-header { margin-bottom: 72px; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.feat-card {
  background: var(--card); padding: 40px 36px;
  position: relative; overflow: hidden;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s, transform 0.5s;
}
.feat-card.visible { opacity: 1; transform: none; }
.feat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0); transition: transform 0.4s;
}
.feat-card:hover::before { transform: scaleX(1); }
.feat-icon {
  width: 48px; height: 48px;
  background: rgba(232,255,71,0.08); border: 1px solid rgba(232,255,71,0.15);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 24px;
}
.feat-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.feat-desc  { font-size: 14px; color: var(--sub); line-height: 1.7; }
.feat-tag {
  display: inline-block; margin-top: 20px;
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: var(--accent2); background: rgba(168,245,97,0.08);
  border: 1px solid rgba(168,245,97,0.15); padding: 3px 10px; border-radius: 4px;
}

/* ── How it works ── */
.how {
  padding: 120px 48px; background: var(--surface);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.how-inner { max-width: 1100px; margin: 0 auto; }
.how-header { margin-bottom: 80px; }
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px; position: relative;
}
.steps::before {
  content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), var(--accent), var(--border2), transparent);
}
.step {
  text-align: center; position: relative;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}
.step.visible { opacity: 1; transform: none; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--border2); background: var(--card);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: var(--accent);
  margin: 0 auto 24px; position: relative; z-index: 1;
  font-family: 'DM Mono', monospace;
}
.step-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.step-desc  { font-size: 14px; color: var(--sub); line-height: 1.65; }

/* ── Pricing ── */
.pricing { padding: 120px 48px; max-width: 1100px; margin: 0 auto; }
.pricing-header { margin-bottom: 72px; }
.plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; align-items: start;
}
.plan-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 36px;
  position: relative; overflow: hidden;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s, border-color 0.3s;
}
.plan-card.visible { opacity: 1; transform: none; }
.plan-card:hover { border-color: var(--border2); }
.plan-card.featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(232,255,71,0.06), var(--card));
  box-shadow: var(--glow); transform: scale(1.03);
}
.plan-card.featured.visible { transform: scale(1.03); }
.plan-badge {
  position: absolute; top: 20px; right: 20px;
  background: var(--accent); color: #080810;
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 99px;
  font-family: 'DM Mono', monospace; letter-spacing: 0.5px;
}
.plan-name   { font-size: 14px; font-family: 'DM Mono', monospace; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.plan-price  { font-size: 52px; font-weight: 800; letter-spacing: -2px; line-height: 1; margin-bottom: 8px; }
.plan-price span { font-size: 20px; font-weight: 400; color: var(--muted); vertical-align: super; }
.plan-period { font-size: 13px; color: var(--muted); font-family: 'DM Mono', monospace; margin-bottom: 32px; }
.plan-features { list-style: none; margin-bottom: 36px; display: flex; flex-direction: column; gap: 12px; }
.plan-features li { font-size: 14px; color: var(--sub); display: flex; align-items: center; gap: 10px; }
.plan-features li::before          { content: '✓'; color: var(--accent2); font-weight: 700; flex-shrink: 0; }
.plan-features li.muted::before    { content: '—'; color: var(--muted); }
.plan-features li.muted            { color: var(--muted); }
.plan-btn {
  width: 100%; padding: 14px; border-radius: 10px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; cursor: none;
  transition: transform 0.15s, box-shadow 0.2s;
  text-align: center; text-decoration: none; display: block;
}
.plan-btn-primary { background: var(--accent); color: #080810; border: none; }
.plan-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(232,255,71,0.3); }
.plan-btn-ghost   { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.plan-btn-ghost:hover { border-color: var(--accent); background: rgba(232,255,71,0.05); }

/* ── Marquee ── */
.marquee-section {
  padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden; background: var(--surface); position: relative; z-index: 1;
}
.marquee-track {
  display: flex; gap: 56px; align-items: center;
  animation: marquee 20s linear infinite; white-space: nowrap;
}
.marquee-item {
  font-family: 'DM Mono', monospace; font-size: 13px;
  color: var(--muted); letter-spacing: 1px; text-transform: uppercase;
  display: flex; align-items: center; gap: 20px; flex-shrink: 0;
}
.marquee-item::after { content: '◆'; color: var(--accent); font-size: 8px; }

/* ── FAQ ── */
.faq { padding: 120px 48px; max-width: 800px; margin: 0 auto; }
.faq-header { margin-bottom: 64px; }
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.4s, transform 0.4s, border-color 0.2s;
}
.faq-item.visible { opacity: 1; transform: none; }
.faq-item:hover   { border-color: var(--border2); }
.faq-q {
  padding: 22px 28px; cursor: none;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; font-weight: 600; user-select: none;
}
.faq-arrow { color: var(--accent); font-size: 18px; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; font-size: 14px; color: var(--sub); line-height: 1.7; }
.faq-a-inner { padding: 0 28px 22px; }
.faq-item.open .faq-a { max-height: 200px; }

/* ── CTA ── */
.cta-section {
  padding: 120px 48px; text-align: center;
  position: relative; z-index: 1;
  background: var(--surface); border-top: 1px solid var(--border);
}
.cta-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(232,255,71,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(36px, 6vw, 68px); font-weight: 800;
  letter-spacing: -2px; line-height: 1; margin-bottom: 20px;
}
.cta-section p { font-size: 17px; color: var(--sub); margin-bottom: 40px; }

/* ── Footer ── */
footer {
  padding: 40px 48px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px; position: relative; z-index: 1;
}
.footer-logo { font-size: 18px; font-weight: 800; color: var(--accent); letter-spacing: -0.5px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--muted); }

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes termLine { to { opacity: 1; } }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .features, .how, .pricing, .faq, .cta-section, footer { padding-left: 20px; padding-right: 20px; }
  .steps::before { display: none; }
  .plan-card.featured,
  .plan-card.featured.visible { transform: none; }
}