/* ===========================
   GLOBAL
   =========================== */

html {
  scroll-behavior: auto;
}

body.body-2 {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  color: #f9fafb;
  background: radial-gradient(circle at top, #020617 0, #020617 55%, #020617 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: underline;
}


/* ===========================
   HERO
   =========================== */

.hero-stack {
  border: none;
  border-radius: 0;
  margin: 0 0 72px;
  padding: 32px 24px 64px;
  background: #050714;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
  overflow: hidden;
}

/* animated gradient like the app background */
.hero-stack::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(135deg, #1d4ed8, #0f172a, #0ea5e9);
  background-size: 500% 500%;
  opacity: 0.28; /* was 0.45 – much calmer */
  animation: hero-gradient-shift 26s ease infinite;
  z-index: 0;
}

/* vignette and readable center */
.hero-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(15, 23, 42, 0.2) 0, rgba(5, 7, 20, 0.95) 55%, rgba(3, 4, 12, 1) 100%);
  z-index: 0;
}

@keyframes hero-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* make content sit above overlays */
.hero-stack > * {
  position: relative;
  z-index: 1;
}

/* top bar – logo + name in a pill */

.hero-topbar {
  max-width: 1040px;
  margin: 0 auto 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.35), rgba(15, 23, 42, 0.98));
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.95),
    0 0 0 1px rgba(129, 140, 248, 0.7);
}

.hero-logo {
  width: 40px;
  height: auto;
  display: block;
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-brand-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-brand-title {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-brand-tagline {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cbd5f5;
}

/* container + hero text */

.container-2 {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.hero-wrapper-two {
  color: #e5e7eb;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.heading-2,
.heading-3,
.hero-stack:first-of-type h1 {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
}

.heading-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4px 0 0;
  padding: 0;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
  color: #f9fafb;
}

.heading-3 {
  margin: 12px 0 0;
  font-size: 22px;
  line-height: 1.3;
  text-align: center;
  color: #c7d2fe;
}

.margin-bottom-24px {
  margin: 24px 0 16px;
  font-size: 16px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
}

.paragraph-2 {
  margin: 0 0 4px;
  max-width: 640px;
  font-size: 15px;
  opacity: 0.9;
  display: flex;
  justify-content: center;
  text-align: center;
  color: #d1d5db;
}

.button-primary-2 {
  margin-top: 28px;
  padding: 14px 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0b1120;
  background: linear-gradient(135deg, #e5f0ff, #bfdbfe);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.65);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease,
    border-color 0.12s ease;
  cursor: pointer;
}

.button-primary-2:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-color: rgba(191, 219, 254, 0.9);
  box-shadow:
    0 20px 48px rgba(15, 23, 42, 0.9);
}

.button-primary-2:active {
  transform: translateY(0) scale(0.97);
  box-shadow:
    0 10px 26px rgba(15, 23, 42, 0.85);
}


.button-primary-2:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.1);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(251, 207, 232, 0.9);
}

.button-primary-2:active {
  transform: translateY(0) scale(0.97);
  box-shadow:
    0 10px 26px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(148, 163, 184, 0.7);
}

.image-2 {
  width: 100%;
  max-width: 980px;
  margin: 40px auto 0;
  display: block;
  border-radius: 32px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.75);
}


/* ===========================
   PHONE CAROUSEL – PREMIUM FLAT
   =========================== */

.horizontal-scroll-wrap {
  padding: 56px 0 56px;
  margin: 0;
  border: none;
  background:
    radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%),
    radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(168, 85, 247, 0.26), transparent 60%);
}

.feature-carousel {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.carousel-track {
  position: relative;
  width: 100%;
}

/* SLIDE: flattened, no extra card */

.feature-slide {
  position: relative;
  margin: 0 auto;
  padding: 0;
  max-width: 100%;
  min-height: auto;

  display: none; /* only active slide visible */
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  column-gap: 40px;

  align-items: center;
  justify-items: flex-start;

  color: #f9fafb;
  text-align: left;

  opacity: 0;
  pointer-events: none;
  transform: translateX(40px);
  filter: blur(6px);
}

/* animation keyframes */

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(60px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-60px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

/* active slide */

.feature-slide.is-active {
  display: grid;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  filter: blur(0);
  animation: slideInRight 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.feature-slide.slide-in-right {
  animation: slideInRight 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.feature-slide.slide-in-left {
  animation: slideInLeft 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Phone image = single "card" */

.feature-phone-img {
  grid-column: 1;
  grid-row: 1;

  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;

  object-fit: contain;
  object-position: center;

  background: none;
  padding: 0;
  border-radius: 26px;
  box-shadow:
    0 26px 90px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(148, 163, 255, 0.4);
}

/* Caption under / next to phone */

.feature-caption {
  grid-column: 2;
  grid-row: 1;

  margin: 0;
  max-width: 420px;
  width: 100%;
  padding: 0 0 0 32px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;

  background: transparent;
  border: none;
  box-shadow: none;

  font-size: 14px;
  line-height: 1.8;
  color: #e5e7eb;
}

.feature-caption-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-weight: 600;
  color: #a5b4fc;
  opacity: 0.95;
}

.feature-caption-title {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #e5ecff;
  margin-top: 6px;
}

.feature-caption-body {
  font-size: 13px;
  line-height: 1.9;
  color: #cbd5f5;
  margin-top: 6px;
}


/* ARROWS */

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at 30% 0%, rgba(59, 130, 246, 0.9), rgba(30, 64, 175, 0.98));
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(16px);
  box-shadow:
    0 18px 46px rgba(15, 23, 42, 0.98),
    0 0 0 1px rgba(191, 219, 254, 0.55);
  transition:
    background 0.18s ease,
    transform 0.16s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
  z-index: 40;
}

.carousel-arrow--prev {
  left: 10px;
}

.carousel-arrow--next {
  right: 10px;
}

.carousel-arrow:hover {
  background: radial-gradient(circle at 30% 0%, rgba(96, 165, 250, 1), rgba(37, 99, 235, 1));
  transform: translateY(-50%) translateY(-1px) scale(1.06);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.98),
    0 0 0 1px rgba(219, 234, 254, 0.7);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.96);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
}

.carousel-arrow:disabled {
  opacity: 0.16;
  cursor: default;
  box-shadow: none;
}


/* DOTS */

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.55);
  cursor: pointer;
  padding: 0;
  transition:
    background 0.2s ease,
    transform 0.14s ease,
    width 0.2s ease,
    box-shadow 0.2s ease;
}

.carousel-dot.is-active {
  width: 26px;
  background: linear-gradient(90deg, #60a5fa, #a855f7);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(191, 219, 254, 0.8);
}


/* ===========================
   FOOTER
   =========================== */

.footer-light {
  border: none;
  margin: 64px 0 40px;
  padding: 40px 24px 30px;
  background: #020617;
  position: relative;
}

.container-4 {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-top: 0;
}

/* logo + name row */

.footer-brand-2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.96));
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(31, 41, 55, 1);
  text-decoration: none;
}

.image-5 {
  width: 32px;
  height: auto;
  display: block;
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.footer-brand-name {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* subtitle under logo – dimmer */

.text-block {
  text-align: left;
  font-size: 14px;
  color: #9ca3af;
  margin: 14px 0 0;
}

/* contact */

.footer-wrapper-two {
  margin-top: 28px;
  margin-bottom: 8px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
}

.footer-contact {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.footer-contact-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7280;
}

.footer-contact-email,
.footer-contact-phone {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #bfdbfe;
  text-decoration: none;
}

.footer-contact-email:hover,
.footer-contact-phone:hover {
  color: #e0f2fe;
  text-decoration: underline;
}

.footer-divider-two {
  margin-top: 28px;
  margin-bottom: 24px;
  background-color: #111827;
  height: 1px;
  width: 100%;
}

/* bottom row */

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-copyright {
  color: #6b7280;
  font-size: 13px;
}

/* socials – make icons visible & clickable */

.footer-social-block-two {
  display: flex;
  align-items: center;
  margin-top: 0;
  margin-left: -12px;
}

.footer-social-link-2 {
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social-block-two img {
  opacity: 0.95;
  display: block;
  width: 24px;
  height: 24px;
  filter: invert(1) brightness(1.25) contrast(1.1);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    filter 0.15s ease;
}

.footer-social-block-two img:hover {
  opacity: 1;
  transform: translateY(-1px) scale(1.05);
  filter: invert(1) brightness(1.5) contrast(1.15);
}


/* ===========================
   RESPONSIVE
   =========================== */

/* Tablet */

@media screen and (max-width: 991px) {
  body.body-2 {
    font-size: 17px;
  }

  .hero-stack {
    padding: 28px 16px 48px;
    margin-bottom: 48px;
  }

  .hero-topbar {
    margin-bottom: 24px;
  }

  .heading-2 {
    font-size: 48px;
  }

  .container-2,
  .container-4 {
    max-width: 728px;
  }

  .feature-carousel {
    padding: 0 16px;
  }

  .feature-slide {
    max-width: 820px;
    padding: 0;
    column-gap: 28px;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  }

  .feature-caption {
    padding-left: 24px;
  }
}

/* Mobile */

@media screen and (max-width: 767px) {
  body.body-2 {
    font-size: 16px;
  }

  .hero-stack {
    padding: 20px 16px 32px;
    margin-bottom: 40px;
  }

  .hero-topbar {
    max-width: 100%;
    justify-content: center;
    margin-bottom: 16px;
  }

  .hero-brand {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 6px 10px;
  }

  .hero-logo {
    width: 30px;
  }

  .hero-brand-title {
    font-size: 15px;
  }

  .hero-brand-tagline {
    font-size: 9px;
  }

  .heading-2 {
    font-size: 28px;
    margin-top: 8px;
  }

  .heading-3 {
    font-size: 16px;
  }

  .margin-bottom-24px {
    font-size: 14px;
    margin-top: 14px;
  }

  .paragraph-2 {
    font-size: 14px;
  }

  .image-2 {
    margin-top: 24px;
    border-radius: 20px;
    max-width: 100%;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  }

  /* carousel mobile */

  .horizontal-scroll-wrap {
    padding: 40px 0 32px;
  }

  .feature-carousel {
    padding: 0 12px;
  }

  .carousel-viewport {
    padding: 0;
    border-radius: 20px;
    touch-action: pan-y;
  }

  .feature-slide {
    max-width: none;
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 16px;
  }

  .feature-phone-img {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0 auto;
  }

  .feature-caption {
    grid-column: 1;
    grid-row: 2;
    margin-top: 10px;
    max-width: 100%;
    width: 100%;
    padding: 10px 4px 0;
    align-self: center;
  }

  .carousel-dots {
    margin-top: 16px;
  }

  /* strzałki – zawsze widoczne i klikalne na mobile */
  .carousel-arrow {
    display: inline-flex !important;
    z-index: 100 !important;
  }

  .footer-light {
    padding: 28px 16px 24px;
    margin-top: 32px;
  }

  /* pill: left-aligned on mobile */
  .footer-brand-2 {
    width: auto;               /* shrink to content */
    max-width: 100%;
    justify-content: flex-start;
    padding: 6px 10px;
    margin-left: 0;            /* align with container left */
    margin-right: 0;
  }

  .image-5 {
    width: 28px;
  }

  /* subtitle: same left start as pill */
  .text-block {
    margin-top: 12px;
    text-align: left;
    margin-left: 0;            /* align with pill */
    margin-right: 0;
    max-width: 100%;
  }


  .footer-wrapper-two {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
  }

  .footer-contact {
    margin-top: 4px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }
}
