
:root {
  --bg-body: #f3f4f6;
  --bg-elevated: #ffffff;
  --bg-alt: #e5f0ff;
  --bg-alt-soft: #f5f7fb;
  --text-main: #111827;
  --text-soft: #4b5563;
  --text-softer: #6b7280;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-strong: #1d4ed8;
  --border-soft: #e5e7eb;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius-l: 24px;
  --radius-m: 16px;
  --radius-pill: 999px;
  --container-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 60%),
    radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.16), transparent 55%),
    var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
}

/* Layout helpers */

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

.section {
  padding: 4.5rem 0;
}

.section-alt {
  padding: 4.5rem 0;
  background: var(--bg-alt-soft);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.section-header h2 {
  font-size: 1.9rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.section-header p {
  margin: 0;
  color: var(--text-soft);
}

.section-cta {
  margin-top: 2.5rem;
  text-align: center;
}

.section-cta-main {
  padding: 4rem 0 4.5rem;
}

.section-cta-inner {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #f9fafb;
  padding: 2.5rem 2.25rem;
  border-radius: var(--radius-l);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 1.75rem;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.section-cta-inner h2 {
  margin: 0 0 0.75rem;
  font-size: 1.8rem;
}

.section-cta-inner p {
  margin: 0;
  color: #e5e7eb;
}

.cta-footnote {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  color: #e5e7eb;
}

/* Grid system */

.grid {
  display: grid;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gap-m {
  gap: 1.5rem;
}

.gap-l {
  gap: 2rem;
}

.gap-xl {
  gap: 2.75rem;
}

.align-center {
  align-items: center;
}

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

/* Header & nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid rgba(209, 213, 219, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-mark {
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
}




.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-main {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--text-softer);
}

.nav {
  display: flex;
}

.nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-soft);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  transition: width 0.2s ease-out;
}

.nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
}

.nav-cta::after {
  display: none;
}

/* Mobile nav */

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at left, rgba(59, 130, 246, 0.15), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-visual {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-illustration {
  width: 100%;
  max-width: 360px;
  border-radius: 1.5rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
  background: radial-gradient(circle at top, #eff6ff, #e0f2fe);
  padding: 0.75rem;
  animation: float-soft 8s ease-in-out infinite alternate;
}

@keyframes float-soft {
  from {
    transform: translateY(0px) translateX(0px);
  }
  to {
    transform: translateY(-6px) translateX(4px);
  }
}

.hero-orbit {
  position: absolute;
  inset: 12% 4% auto auto;
  width: 165px;
  height: 165px;
  border-radius: 999px;
  background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.95), rgba(191, 219, 254, 0.9));
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.hero-orbit-layer {
  position: absolute;
  inset: 10%;
  border-radius: inherit;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  transform-origin: center;
}

.hero-orbit .layer-1 {
  animation: orbit-spin 20s linear infinite;
}

.hero-orbit .layer-2 {
  inset: 22%;
  animation: orbit-spin 28s linear infinite reverse;
}

.hero-orbit .layer-3 {
  inset: 35%;
  animation: orbit-spin 36s linear infinite;
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-orbit-core {
  position: absolute;
  inset: 32%;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.core-1 {
  background: #2563eb;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.core-2 {
  background: #22c55e;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.core-3 {
  background: #f97316;
  bottom: 10px;
  left: 16px;
}

.hero-caption {
  font-size: 0.85rem;
  color: var(--text-softer);
  max-width: 280px;
  text-align: center;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  margin: 0 0 1.1rem;
}

.hero-lead {
  font-size: 1.04rem;
  margin: 0 0 0.9rem;
  color: var(--text-soft);
}

.hero-sub {
  margin: 0 0 1.5rem;
  color: var(--text-softer);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-softer);
}

.hero-meta span {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(209, 213, 219, 0.8);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #f9fafb;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(148, 163, 184, 0.3);
}

.btn-large {
  padding: 0.8rem 1.5rem;
}

/* Cards & pills */

.card {
  background: var(--bg-elevated);
  border-radius: var(--radius-m);
  padding: 1.5rem 1.4rem;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(209, 213, 219, 0.7);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--text-soft);
}

.offer-grid {
  margin-top: 1rem;
}

.offer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  text-decoration: none;
  font-size: 0.9rem;
  color: #1d4ed8;
  border: 1px solid rgba(191, 219, 254, 0.8);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.08);
}

.offer-pill:hover {
  background: rgba(59, 130, 246, 0.12);
}

.section-footnote {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--text-softer);
}

/* Timeline */

.timeline {
  border-left: 2px solid rgba(209, 213, 219, 0.9);
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-item {
  position: relative;
  padding-left: 0.3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.67rem;
  top: 0.25rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 6px rgba(191, 219, 254, 0.9);
}

.timeline-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.timeline-item p {
  margin: 0;
  color: var(--text-soft);
}

/* Design questions / illustrations */

.design-questions {
  background: var(--bg-elevated);
  border-radius: var(--radius-l);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(209, 213, 219, 0.9);
}

.design-questions h3 {
  margin-top: 0.25rem;
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
}

.design-questions ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
}

.design-questions li + li {
  margin-top: 0.35rem;
}

.block-illustration {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 1rem;
}

/* Process illustration */

.process-illustration p {
  margin-top: 0.25rem;
  color: var(--text-soft);
}

/* Page hero */

.page-hero {
  padding: 3.2rem 0 1.5rem;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 2.5rem;
}

.page-hero-text h1 {
  font-size: 2rem;
  margin: 0 0 0.8rem;
  letter-spacing: -0.03em;
}

.page-lead {
  margin: 0;
  color: var(--text-soft);
}

.page-hero-art img {
  width: 100%;
  max-width: 360px;
  display: block;
  margin-left: auto;
  border-radius: 1.5rem;
  background: radial-gradient(circle at top, #eff6ff, #e0f2fe);
  padding: 0.75rem;
  box-shadow: var(--shadow-soft);
}

/* Steps list */

.steps-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}

.steps-list li {
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.1rem;
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(209, 213, 219, 0.8);
}

.steps-list h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.steps-list p {
  margin: 0;
  color: var(--text-soft);
}

/* FAQ */

.faq details {
  border-radius: 14px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
  margin-bottom: 0.8rem;
  padding: 0.75rem 1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--text-main);
}

.faq p {
  margin-top: 0.5rem;
  color: var(--text-soft);
}

/* Cases / realizacje */

.case {
  margin-bottom: 2.5rem;
}

.case h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.case h3 {
  margin-bottom: 0.35rem;
  margin-top: 0.9rem;
  font-size: 1rem;
}

.case ul {
  margin-top: 0.4rem;
  padding-left: 1.2rem;
  color: var(--text-soft);
}

.case-teaser {
  background: #ffffff;
  border-radius: var(--radius-m);
  border: 1px solid rgba(209, 213, 219, 0.8);
  padding: 1.3rem 1.2rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.case-teaser h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.case-teaser p {
  margin: 0 0 0.85rem;
  color: var(--text-soft);
}

.case-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: #2563eb;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
}

.contact-list {
  list-style: none;
  padding-left: 0;
  color: var(--text-soft);
}

.contact-list li {
  margin-bottom: 0.6rem;
}

.contact-form {
  background: #ffffff;
  border-radius: var(--radius-l);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(209, 213, 219, 0.9);
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.8rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.2rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  font-family: inherit;
  font-size: 0.92rem;
  background: #f9fafb;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
  background: #ffffff;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-softer);
  margin-top: 0.6rem;
}

/* Teasers */

#teasers {
  padding-top: 4rem;
}

/* Footer */

.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(209, 213, 219, 0.8);
  background: rgba(248, 250, 252, 0.85);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: flex-start;
}

.footer-logo .logo-mark {
  box-shadow: none;
}

.footer-copy {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  max-width: 28rem;
}

.footer-col h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-softer);
}

.footer-col li + li {
  margin-top: 0.35rem;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-softer);
}

.footer-col a:hover {
  color: #2563eb;
}

.footer-contact span:first-child {
  display: inline-block;
  width: 3.2rem;
  color: var(--text-soft);
}

.footer-bottom {
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(209, 213, 219, 0.8);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-softer);
}

.footer-meta span {
  font-weight: 500;
}

/* Scroll reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility for reduced motion */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive */

@media (max-width: 960px) {
  .hero-inner,
  .page-hero-inner,
  .section-cta-inner,
  .grid-3,
  .grid-4,
  .contact-grid,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-inner {
    gap: 2.5rem;
  }

  .hero-visual {
    order: 0;
  }

  .hero-illustration {
    max-width: 320px;
  }

  .section-cta-inner {
    text-align: left;
  }

  .footer-inner {
    gap: 1.75rem;
  }

  .contact-grid {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 1.25rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    inset: 100% 0 auto;
    background: rgba(248, 250, 252, 0.98);
    border-bottom: 1px solid rgba(209, 213, 219, 0.85);
    transform-origin: top;
    transform: scaleY(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav.is-open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.3rem 1.5rem 1.1rem;
  }

  .nav li {
    padding: 0.35rem 0;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-alt {
    padding: 3.2rem 0;
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-cta-inner {
    padding-inline: 1.5rem;
  }

  .hero-meta span {
    font-size: 0.78rem;
  }

  .timeline {
    padding-left: 1.05rem;
  }

  .timeline-item::before {
    left: -1.4rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* Utility */

.align-right {
  text-align: right;
}

.logo-mark img {
  height: 40px;
  width: auto;
  display: block;
}

