:root {
  --bg: #050816;
  --bg-soft: #0b1220;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --accent-strong: #0ea5e9;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --radius-lg: 18px;
  --radius-full: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85);
  --shadow-glow: 0 0 60px rgba(56, 189, 248, 0.22);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 60%, #020617 100%);
  color: var(--text-main);
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at top, #0b1120 0, #020617 48%, #020617 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  padding: 0 20px;
  margin: 0 auto;
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.92),
    rgba(15, 23, 42, 0.8),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.9), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(129, 140, 248, 0.9), transparent 55%),
    #020617;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.3),
              0 0 24px rgba(56, 189, 248, 0.4);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.85);
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: #e5e7eb;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-link {
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), var(--accent-strong));
  transition: width 0.2s ease-out;
}

.nav-link:hover::after {
  width: 24px;
}

.nav-cta {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e5e7eb;
}

.nav-cta-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.8);
}

/* Hero */
.hero {
  padding: 56px 0 72px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 16px;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: #e5e7eb;
  background: linear-gradient(
    to right,
    rgba(56, 189, 248, 0.18),
    rgba(129, 140, 248, 0.18)
  );
  border: 1px solid rgba(148, 163, 184, 0.4);
  margin-bottom: 14px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.9);
}

.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.19em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.hero-title span {
  background: linear-gradient(to right, #e5e7eb, #bae6fd);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 22px;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-tag {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text-muted);
}

.hero-tag strong {
  color: #e5e7eb;
  font-weight: 500;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.btn-primary {
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 0 0, #38bdf8, #0ea5e9);
  color: #0b1120;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow-glow), var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 60px rgba(8, 47, 73, 0.8);
}

.btn-secondary {
  border-radius: var(--radius-full);
  padding: 9px 16px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.9);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hero visual */
.hero-card {
  position: relative;
  border-radius: 28px;
  padding: 18px 18px 20px;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.1), transparent 45%),
              radial-gradient(circle at 100% 0, rgba(129, 140, 248, 0.22), transparent 50%),
              #020617;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.45);
  overflow: hidden;
}

.hero-card-inner {
  border-radius: 22px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.95);
  background:
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 1));
}

.dock-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.dock-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dock-pill {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--text-muted);
}

.dock-main {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: center;
}

@media (max-width: 600px) {
  .dock-main {
    grid-template-columns: 1fr;
  }
}

.dock-device {
  border-radius: 22px;
  padding: 14px;
  background:
    linear-gradient(135deg, #020617, #020617),
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.3), transparent 55%);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  position: relative;
  overflow: hidden;
}

.dock-glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 15% 0%, rgba(56, 189, 248, 0.22), transparent 60%),
    radial-gradient(circle at 85% 0%, rgba(251, 113, 133, 0.18), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

.dock-body {
  position: relative;
  z-index: 1;
  height: 164px;
  border-radius: 18px;
  background: linear-gradient(to right, #0f172a, #020617);
  border: 1px solid rgba(31, 41, 55, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px;
}

.dock-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.dock-screen {
  flex: 1;
  height: 68px;
  border-radius: 12px;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.45), transparent 65%),
              radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.4), transparent 65%);
  border: 1px solid rgba(148, 163, 184, 0.8);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 5px;
}

.dock-screen-cell {
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #9ca3af;
}

.dock-knob {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #38bdf8, #0ea5e9);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 1),
              0 16px 28px rgba(8, 47, 73, 0.9);
  position: relative;
}

.dock-knob::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: inherit;
  border: 2px solid rgba(8, 47, 73, 0.9);
}

.dock-row-bottom {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.dock-modules {
  display: flex;
  gap: 6px;
}

.dock-module {
  width: 44px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(to bottom right, #020617, #020617);
  border: 1px solid rgba(55, 65, 81, 0.9);
  position: relative;
  overflow: hidden;
}

.dock-module::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(56, 189, 248, 0.1),
    transparent,
    rgba(96, 165, 250, 0.2)
  );
  opacity: 0.85;
}

.dock-ports {
  display: flex;
  gap: 4px;
  align-items: center;
}

.dock-port {
  width: 18px;
  height: 10px;
  border-radius: 4px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: #020617;
}

.dock-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.hero-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 520px) {
  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.meta-pill {
  padding: 7px 9px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
}

.meta-pill-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.meta-pill-main {
  font-size: 0.8rem;
}

/* Sections */
.section {
  padding: 0 0 68px;
}

.section-header {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 640px;
}

.section-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-title {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  border-radius: var(--radius-lg);
  padding: 14px 14px 16px;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.06), transparent 55%),
              rgba(15, 23, 42, 0.95);
}

.feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 1);
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.feature-title {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.feature-text {
  font-size: 0.87rem;
  color: var(--text-muted);
}

/* Newsletter / CTA */
.newsletter {
  padding: 48px 0 72px;
}

.newsletter-card {
  border-radius: 24px;
  padding: 22px 22px 24px;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.25), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.32), transparent 60%),
              #020617;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

@media (max-width: 800px) {
  .newsletter-card {
    grid-template-columns: 1fr;
  }
}

.newsletter-title {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.newsletter-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 28rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 600px) {
  .newsletter-form-row {
    display: flex;
    gap: 8px;
  }
}

.newsletter-input {
  flex: 1;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 9px 12px;
  font-size: 0.9rem;
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  outline: none;
}

.newsletter-input::placeholder {
  color: #6b7280;
}

.newsletter-btn {
  border-radius: var(--radius-full);
  border: none;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: radial-gradient(circle at 0 0, #38bdf8, #0ea5e9);
  color: #020617;
  box-shadow: var(--shadow-glow);
  white-space: nowrap;
}

.newsletter-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 16px 0 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
}

.badge-soon {
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* Simple toast */
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.7);
  color: #e5e7eb;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.toast.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.9);
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding-top: 28px;
  }
}

.hero-card-image {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-card-image-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-image-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.18), transparent 60%);
  box-shadow: var(--shadow-soft);
}

.hero-image-frame img {
  display: block;
  width: 100%;
  /* width: 200px; */
  height: auto;
}

/* Karty „Grupa docelowa / Kierunki rozwoju” */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 800px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }
}

.audience-card {
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.96);
}

.audience-title {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--text-main);
}

.audience-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
