*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --purple: #7C3AED;
  --purple-dark: #5B21B6;
  --purple-light: #A78BFA;
  --purple-glow: rgba(124, 58, 237, 0.15);
  --bg: #FAFAFA;
  --bg-alt: #F3F4F6;
  --text: #111827;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --green: #059669;
  --green-bg: #D1FAE5;
  --red: #DC2626;
  --red-bg: #FEE2E2;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(124, 58, 237, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--purple);
}

.nav-soon {
  font-size: 14px;
  font-weight: 500;
  color: #9CA3AF;
  cursor: not-allowed;
}

.nav-cta {
  background: var(--purple) !important;
  color: white !important;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background 0.15s !important;
}

.nav-cta:hover {
  background: var(--purple-dark) !important;
  color: white !important;
}

/* Hero - 2 kolumny */
.hero {
  position: relative;
  padding: 64px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, var(--purple-glow), transparent),
    radial-gradient(ellipse 40% 40% at 90% 80%, rgba(167, 139, 250, 0.1), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-lead em {
  color: var(--purple);
  font-style: normal;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--purple);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-demo-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-primary {
  background: var(--purple);
  color: white;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-ghost {
  background: white;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--purple-light);
  color: var(--purple);
}

.btn-disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

/* Demo window */
.demo-window {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #FF5F57; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #28CA41; }

.demo-titlebar-text {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.demo-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  padding: 20px;
  align-items: start;
}

.demo-panel {
  padding: 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
}

.demo-panel-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.demo-original {
  background: #FAFAFA;
}

.demo-improved {
  background: #F5F3FF;
  border-color: var(--purple-light);
}

.demo-text {
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 10px;
}

.demo-text.muted {
  color: var(--text-muted);
  font-style: italic;
}

.demo-score {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.demo-score.bad {
  background: var(--red-bg);
  color: var(--red);
}

.demo-score.good {
  background: var(--green-bg);
  color: var(--green);
}

.demo-arrow {
  font-size: 20px;
  color: var(--purple);
  align-self: center;
  font-weight: 700;
}

.demo-changes {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.change-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.change-icon {
  color: var(--purple);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.change-item strong {
  font-size: 13px;
  display: block;
  margin-bottom: 2px;
}

.change-item p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: white;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-title-left {
  text-align: left;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
  padding: 28px 20px;
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--purple);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.features-grid-compact {
  grid-template-columns: repeat(2, 1fr);
  max-width: 820px;
  margin: 0 auto;
}

.feature-card {
  padding: 28px 24px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-card em {
  color: var(--purple);
  font-style: normal;
  font-weight: 600;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-card {
  padding: 32px 28px;
  background: white;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-section {
  background: var(--bg-alt);
}

.pricing-card-featured {
  border-color: var(--purple-light);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  background: var(--green-bg);
  color: var(--green);
}

.pricing-badge-soon {
  background: var(--purple-glow);
  color: var(--purple);
}

.pricing-card h3 {
  font-size: 1.25rem;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--purple);
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: 700;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 20px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '▼';
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-item a {
  color: var(--purple);
  font-weight: 600;
}

/* Logo carousel */
.trust-section {
  padding-bottom: 56px;
}

.logo-carousel {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.logo-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.logo-pill {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple-glow);
  color: var(--purple);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.testimonial-card p {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 12px;
}

.testimonial-card footer {
  font-size: 13px;
  color: var(--text-muted);
  font-style: normal;
}

/* B2B */
.b2b-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 40px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.b2b-banner p {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 8px;
  max-width: 520px;
}

/* Store download */
.store-cta {
  text-align: center;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 8px;
}

.store-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-legal a {
  font-size: 14px;
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 12px;
  color: #9CA3AF;
}

/* Legal pages */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-page .legal-updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin: 28px 0 10px;
}

.legal-page p,
.legal-page li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 24px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
}

.legal-back:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .b2b-banner {
    flex-direction: column;
    text-align: center;
  }

  .section-title-left {
    text-align: center;
  }

  .b2b-banner p {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .nav-soon {
    display: none;
  }

  .demo-body {
    grid-template-columns: 1fr;
  }

  .demo-arrow {
    text-align: center;
    transform: rotate(90deg);
  }

  .steps,
  .features-grid,
  .features-grid-compact,
  .testimonials-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .section {
    padding: 56px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }
}
