/* pl.hauptsoft.com — HS-serwis product landing (shared design with hauptsoft.com) */

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

:root {
  --bg: #070b12;
  --bg-elevated: #0d1320;
  --bg-card: rgba(17, 24, 39, 0.72);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --accent-border: rgba(59, 130, 246, 0.35);
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.22);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1080px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Background */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 20%, transparent 75%);
}

.bg-glow {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.bg-glow--top {
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 420px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, transparent 70%);
}

.bg-glow--bottom {
  bottom: -180px;
  right: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 18, 0.78);
  backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark { color: var(--accent); }

.logo-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-by {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-subtle);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-lang {
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 13px !important;
  font-weight: 600 !important;
}

.nav-lang:hover {
  border-color: var(--accent-border);
  color: var(--accent) !important;
}

/* Hero */
.hero { padding: 88px 0 72px; }

.hero-inner { max-width: 760px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(13, 19, 32, 0.8);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.55);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.92); }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

.hero-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #818cf8 55%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  max-width: 640px;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-lead strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stats strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.hero-stats span {
  font-size: 13px;
  color: var(--text-subtle);
}

/* Sections */
.section { padding: 88px 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}

/* Features grid */
.features { padding-top: 24px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-item {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pricing compare */
.compare {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.compare-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(7, 11, 18, 0.55);
}

.compare-card--us {
  border-color: var(--accent-border);
  background: var(--bg-card);
}

.compare-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.compare-price {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text);
}

.compare-price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-subtle);
}

.compare-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.compare-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.compare-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-subtle);
}

.compare-note {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(59, 130, 246, 0.06);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Interview + chat */
.interview {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.chat-widget {
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 19, 32, 0.9);
}

.chat-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.chat-header strong {
  display: block;
  font-size: 14px;
}

.chat-header small {
  color: var(--text-subtle);
  font-size: 12px;
}

.chat-messages {
  padding: 20px;
  min-height: 220px;
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-line;
}

.message.bot {
  align-self: flex-start;
  background: rgba(13, 19, 32, 0.85);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text);
}

.message.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.message.typing {
  align-self: flex-start;
  background: rgba(13, 19, 32, 0.85);
  border: 1px solid var(--border);
  color: var(--text-subtle);
  font-style: italic;
}

.chat-input {
  display: flex;
  border-top: 1px solid var(--border);
}

.chat-input input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
}

.chat-input input::placeholder { color: var(--text-subtle); }

.chat-input input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-input button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.chat-input button:hover { background: var(--accent-hover); }

.chat-input button:disabled {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-subtle);
  cursor: not-allowed;
}

.interview-fallback {
  max-width: 560px;
  margin: 24px auto 0;
  padding: 16px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.interview-fallback a {
  color: var(--accent);
  text-decoration: none;
}

.interview-fallback a:hover { text-decoration: underline; }

/* Email capture */
.email-capture { padding-top: 48px; }

.email-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 36px 32px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.email-card h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  text-align: center;
}

.email-card > p {
  color: var(--text-muted);
  font-size: 15px;
  text-align: center;
  margin-bottom: 20px;
}

.email-perks {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.email-perks li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.5;
}

.email-perks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

#email-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#email-input {
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 18, 0.6);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
}

#email-input:focus { border-color: var(--accent); }

#email-input::placeholder { color: var(--text-subtle); }

.rodo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text-subtle);
  line-height: 1.45;
  cursor: pointer;
}

.rodo input {
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.rodo a {
  color: var(--accent);
  text-decoration: none;
}

.rodo a:hover { text-decoration: underline; }

#email-form button[type="submit"] {
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

#email-form button[type="submit"]:hover { background: var(--accent-hover); }

#email-form button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.email-success-note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  line-height: 1.6;
}

/* Footer */
.footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px 32px;
}

.footer-brand p {
  margin-top: 6px;
  color: var(--text-subtle);
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-nav a:hover { color: var(--text); }

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-subtle);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 64px 0 56px; }

  .hero-stats { grid-template-columns: 1fr; gap: 14px; }

  .features-grid,
  .compare-grid,
  .steps-grid { grid-template-columns: 1fr; }

  .section { padding: 64px 0; }

  .footer-inner { grid-template-columns: 1fr; }

  .footer-nav { align-items: flex-start; }
}

@media (max-width: 520px) {
  .nav-links { gap: 16px; }

  .nav-links a:not(.nav-lang) { display: none; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn { width: 100%; }

  .features-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status-dot { animation: none; }
  .btn { transition: none; }
}
