:root {
  --bg: #070b11;
  --bg-soft: #0d141d;
  --card: #111a24;
  --card-2: #162232;
  --text: #f5f7fb;
  --muted: #a0acbf;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #f59e0b;
  --accent-2: #ffd166;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 25%),
    radial-gradient(circle at left center, rgba(59, 130, 246, 0.10), transparent 20%),
    linear-gradient(180deg, #060b11 0%, #0b1118 48%, #101926 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
pre { white-space: pre-wrap; }
input, textarea, button { font: inherit; }

.container { width: min(1180px, calc(100vw - 32px)); margin: 0 auto; }
.narrow { max-width: 840px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 17, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.menu { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: flex-end; }
.menu a { color: var(--muted); }
.menu a:hover { color: var(--text); }
.section { padding: 88px 0; }
.section:first-of-type { padding-top: 112px; }
.section-alt {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.01)),
    rgba(255,255,255,0.01);
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.hero-section { padding: 108px 0 68px; }
.hero-grid, .dashboard-grid, .footer-grid, .voice-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-grid { align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 800;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}
h1, h2, h3 { margin: 0 0 14px; line-height: 1.02; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.9rem, 6vw, 5.4rem); max-width: 11ch; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 16ch; }
h3 { font-size: 1.14rem; }
.hero-copy, p, li { color: var(--muted); line-height: 1.72; }
.hero-copy { max-width: 58ch; font-size: 1.05rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #111;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(245, 158, 11, 0.16);
}
.secondary-button, .ghost-button {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}
.button:hover, button:hover {
  transform: translateY(-1px);
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.hero-point {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}
.hero-point strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}
.hero-point span {
  display: block;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}
.card-grid, .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.pricing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.info-card, .chat-mockup, .demo-conversation, .flash, .code-block, .voice-panel {
  background: linear-gradient(180deg, rgba(20, 29, 40, 0.98), rgba(12, 18, 28, 0.98));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.info-card {
  position: relative;
  overflow: hidden;
}
.info-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.10), transparent 70%);
}
.chat-mockup {
  position: relative;
  padding: 28px;
}
.chat-mockup {
  isolation: isolate;
}
.widget-preview {
  position: relative;
  min-height: 430px;
  padding: 28px;
  display: grid;
  align-content: end;
  gap: 16px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 14%, rgba(245, 158, 11, 0.16), transparent 24%),
    radial-gradient(circle at 96% 10%, rgba(59, 130, 246, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(20, 29, 40, 0.98), rgba(11, 18, 27, 0.98));
  box-shadow: var(--shadow);
}
.widget-preview::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.05);
}
.widget-launcher {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #111;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.22);
  animation: pulse-soft 2.8s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
.widget-card {
  margin-left: auto;
  width: min(100%, 320px);
  border-radius: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 32, 0.90);
  box-shadow: 0 18px 40px rgba(0,0,0,0.24);
  position: relative;
  z-index: 1;
}
.widget-card .chat-bubble {
  max-width: 100%;
  margin-bottom: 10px;
  animation: float-in 0.7s ease both;
}
.widget-card .chat-bubble:last-child { margin-bottom: 0; }
.chat-mockup::before {
  content: "Widget MotoBot";
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chat-mockup::after {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 110px;
  height: 110px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 30% 30%, rgba(245,158,11,0.28), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  transform: rotate(8deg);
  z-index: -1;
}
.chat-bubble {
  padding: 15px 17px;
  border-radius: 18px;
  margin-bottom: 12px;
  max-width: 92%;
  animation: float-in 0.7s ease both;
}
.chat-bubble.user {
  margin-left: auto;
  background: rgba(245, 158, 11, 0.16);
  color: #fff2c2;
}
.chat-bubble.bot {
  background: rgba(255, 255, 255, 0.05);
}
.chat-hint {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.chat-hint::before {
  content: "Tryb głosowy";
  display: inline-flex;
  margin-right: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-2);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.section-head { max-width: 780px; margin-bottom: 28px; }
.feature-list, .plain-list {
  display: grid;
  gap: 12px;
  list-style: none;
  padding-left: 0;
}
.feature-list li,
.plain-list li {
  position: relative;
  padding-left: 28px;
}
.feature-list li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.08);
}
.demo-line { padding: 14px 0; border-bottom: 1px solid var(--line); }
.voice-panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}
.voice-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.voice-badge {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.92rem;
}
.panel-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
}
.panel-intro p { margin: 0; max-width: 62ch; }
.panel-intro h1 { max-width: none; margin-bottom: 8px; }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
}
.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}
.form-status {
  min-height: 24px;
  margin: 4px 0 0;
}
.form-status.is-success {
  color: #8ee6b5;
}
.form-status.is-error {
  color: #ffb4b4;
}
.stats-grid .info-card strong,
.dashboard-grid .info-card h2 {
  letter-spacing: -0.04em;
}
.stats-grid .info-card {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stats-grid .info-card strong {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  color: #fff;
}
.stats-grid .info-card span {
  color: var(--muted);
}
.dashboard-grid .info-card h2 {
  font-size: 1.4rem;
}
.dashboard-grid .info-card p,
.dashboard-grid .info-card li {
  font-size: 0.96rem;
}
.dashboard-grid .info-card .muted-text {
  font-size: 0.92rem;
}
.dashboard-grid .info-card .code-block {
  font-size: 0.92rem;
}
.form-grid { display: grid; gap: 14px; }
label { display: grid; gap: 8px; color: var(--text); }
input, textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--text);
}
input:focus, textarea:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.08);
}
.flash-success { border-color: rgba(34, 197, 94, 0.35); }
.flash-error { border-color: rgba(239, 68, 68, 0.35); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.simple-list { display: grid; gap: 10px; padding-left: 18px; }
.code-block { color: #f6ead0; }
.muted-text { color: var(--muted); }
.site-footer { padding: 42px 0; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid a { display: block; color: var(--muted); margin-bottom: 8px; }
.inline-form { margin: 0; }

@keyframes float-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.18); }
  50% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
}

@media (max-width: 980px) {
  .hero-grid, .dashboard-grid, .footer-grid, .card-grid, .stats-grid, .pricing-grid, .voice-grid, .contact-layout {
    grid-template-columns: 1fr 1fr;
  }
  .panel-intro { flex-direction: column; align-items: start; }
}

@media (max-width: 720px) {
  .menu { display: none; }
  .hero-grid, .dashboard-grid, .footer-grid, .card-grid, .stats-grid, .pricing-grid, .voice-grid, .hero-points, .contact-layout {
    grid-template-columns: 1fr;
  }
  .section { padding: 60px 0; }
  .hero-section { padding-top: 84px; }
  h1 { font-size: clamp(2.45rem, 12vw, 3.7rem); max-width: none; }
  .chat-mockup::after { width: 92px; height: 92px; }
  .widget-preview { min-height: 380px; }
  .panel-intro { padding: 20px; }
}
