/*
 * Ownership: Danpol Ltd.
 * Code designed and writen by : Daniel Nowakowski
 * File: public_html/css/app.css
 * Purpose: Light-mode design system with hero video overlays and secure, responsive layouts.
 */

:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --accent: #38bdf8;
  --card-bg: rgba(255, 255, 255, 0.9);
  --border: rgba(148, 163, 184, 0.35);
  --shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
  --gradient:
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.35), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.25), transparent 50%),
    linear-gradient(135deg, #0f172a, #1e293b);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  z-index: 2000;
}

.shell {
  width: min(1200px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero {
  min-height: 100vh;
  background-image: var(--gradient);
  position: relative;
  overflow: hidden;
  padding: 7rem 0 4rem;
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 1%; /* bias upward so logo letters remain visible */
  filter: brightness(0.7) saturate(1.1);
}

.hero__plasma,
.hero__noise {
  position: absolute;
  inset: 0;
}

.hero__plasma::after {
  content: "";
  position: absolute;
  inset: -10% 10%;
  background:
    radial-gradient(circle at 30% 20%, rgba(14, 165, 233, 0.8), transparent 40%),
    radial-gradient(circle at 65% 10%, rgba(147, 51, 234, 0.6), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(249, 115, 22, 0.5), transparent 40%);
  filter: blur(60px);
  opacity: 0.5;
}

.hero__noise::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"%3E%3Cfilter id="n" x="0" y="0" width="1" height="1"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)" opacity="0.08"/%3E%3C/svg%3E');
  mix-blend-mode: screen;
}

.mast {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 92vw);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 35px rgba(2, 6, 23, 0.35);
  z-index: 1200;
}

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

.brand strong,
.brand small {
  color: #ffffff;
}

.brand strong {
  font-size: 1.1rem;
}

.brand small {
  display: block;
  font-size: 0.8rem;
  opacity: 0.85;
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.18);
}

.nav__cta:hover,
.nav__cta:focus-visible {
  border-color: rgba(255, 255, 255, 0.8);
}

.nav__cta {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  font-weight: 700;
}


.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.nav__close {
  display: none;
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
}

.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
}

.nav-toggle__icon {
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text);
}

.nav-toggle__icon::before {
  top: -6px;
}

.nav-toggle__icon::after {
  top: 6px;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  padding-top: 1rem;
}

.hero__content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(15, 23, 42, 0.4);
}

.hero__content .lede {
  color: #e2e8f0;
  max-width: 50ch;
  text-shadow: 0 3px 10px rgba(15, 23, 42, 0.35);
}

.hero__content .lede--highlight {
  display: inline-block;
  background: rgba(239, 68, 68, 0.5);
  padding: 1rem 1.25rem;
  border-radius: 1.5rem;
  box-shadow: 0 18px 45px rgba(185, 28, 28, 0.35);
  backdrop-filter: blur(4px);
  text-align: justify;
  text-justify: inter-word;
}

.hero__content {
  color: #f8fafc;
  text-shadow: 0 3px 12px rgba(15, 23, 42, 0.35);
}

.hero__content .eyebrow {
  color: #c7d2fe;
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.4);
}

.hero__content .hero__stats dt {
  color: #cbd5f5;
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
}

.hero__content .hero__stats dd {
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(15, 23, 42, 0.35);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  color: var(--accent);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #16a34a, #4ade80);
  color: #f0fdf4;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(16, 185, 129, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(34, 197, 94, 0.35);
  filter: saturate(1.1);
}

.btn--ghost {
  background: linear-gradient(135deg, #3b82f6, #93c5fd);
  color: #eff6ff;
  border-color: rgba(59, 130, 246, 0.4);
}

.btn--accent {
  background: linear-gradient(135deg, #dc2626, #f87171);
  color: #fff5f5;
  border-color: rgba(220, 38, 38, 0.45);
  box-shadow: 0 15px 40px rgba(185, 28, 28, 0.35);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
}

.hero__stats dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero__stats dd {
  font-size: 1.1rem;
  margin: 0.25rem 0 0;
}

.hero__stats--orange {
  gap: 1.25rem;
}

.hero__stats--orange > div {
  background: rgba(249, 115, 22, 0.28);
  border: 1px solid rgba(249, 115, 22, 0.5);
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 20px 45px rgba(194, 65, 12, 0.35);
  backdrop-filter: blur(6px);
}

.hero__stats--orange dt {
  color: #ffedd5;
}

.hero__stats--orange dd {
  color: #fff7ed;
}

main {
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.section {
  padding: 4rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  scroll-margin-top: 120px;
}

.section__header h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin: 0.25rem 0 0.5rem;
}

.section__header p {
  max-width: 62ch;
  color: var(--muted);
}

.section--grid .card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.25rem;
  row-gap: 4.5rem;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .section--grid .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 4rem;
  }
}

@media (max-width: 640px) {
  .section--grid .card-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4.5rem;
  }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  min-height: 100%;
  box-shadow: var(--shadow);
}

.card--yellow,
.card--purple,
.card--lime {
  border: 1px solid transparent;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(8px);
}

.card--yellow {
  background: rgba(250, 204, 21, 0.25);
  border-color: rgba(217, 119, 6, 0.4);
}

.card--purple {
  background: rgba(147, 51, 234, 0.25);
  border-color: rgba(99, 102, 241, 0.45);
}

.card--lime {
  background: rgba(34, 197, 94, 0.25);
  border-color: rgba(16, 185, 129, 0.45);
}

.card h3 {
  margin-top: 0;
  font-size: 1.35rem;
  text-align: center;
}

.card p {
  color: var(--muted);
  text-align: justify;
  text-justify: inter-word;
}

.card ul {
  margin: 1rem 0 0;
  padding-left: 1rem;
  color: var(--text);
  text-align: left;
}

.section--os {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.05), transparent);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

@media (max-width: 1024px) {
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.timeline li {
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
}

.timeline__item {
  border: 1px solid transparent;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(6px);
}

.timeline__item--amber {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(217, 119, 6, 0.4);
}

.timeline__item--cyan {
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(6, 182, 212, 0.45);
}

.timeline__item--fuchsia {
  background: rgba(217, 70, 239, 0.18);
  border-color: rgba(168, 85, 247, 0.45);
}

.timeline__item--teal {
  background: rgba(45, 212, 191, 0.18);
  border-color: rgba(20, 184, 166, 0.45);
}

.timeline__item--rose {
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(225, 29, 72, 0.45);
}

.timeline__item--indigo {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(79, 70, 229, 0.45);
}

.timeline h3 {
  margin-top: 0;
  font-size: 1.1rem;
  text-align: center;
}

.timeline p {
  text-align: justify;
  text-justify: inter-word;
}

.section--panels .panel-grid {
  display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.25rem;
  row-gap: 4.5rem;
  margin-top: 2.25rem;
}

@media (max-width: 1024px) {
  .section--panels .panel-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 4rem;
  }
}

@media (max-width: 640px) {
  .section--panels .panel-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4.5rem;
  }
  }

  @media (min-width: 1280px) {
    .section--panels .panel-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      column-gap: 1.5rem;
      row-gap: 4rem;
    }
}

.section--panels article {
  border-radius: 1rem;
  padding: 1.5rem;
  min-height: 100%;
}

.panel {
  border: 1px solid transparent;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(6px);
}

.panel--sunset {
  background: rgba(251, 113, 133, 0.22);
  border-color: rgba(248, 113, 113, 0.55);
}

.panel--aqua {
  background: rgba(34, 197, 233, 0.22);
  border-color: rgba(14, 165, 233, 0.5);
}

.panel--sage {
  background: rgba(74, 222, 128, 0.22);
  border-color: rgba(34, 197, 94, 0.5);
}

.panel--ember {
  background: rgba(248, 180, 0, 0.22);
  border-color: rgba(234, 88, 12, 0.5);
}

.panel h3 {
  text-align: center;
}

.panel p {
  text-align: justify;
  text-justify: inter-word;
}

.section--signals .signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .section--signals .signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .section--signals .signal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.section--signals article {
  border-radius: 1rem;
  padding: 1.5rem;
}

.signal {
  border: 1px solid transparent;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(6px);
}

.signal--mint {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
}

.signal--amber {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(217, 119, 6, 0.45);
}

.signal--purple {
  background: rgba(167, 139, 250, 0.2);
  border-color: rgba(139, 92, 246, 0.45);
}

.signal h3 {
  text-align: center;
}

.signal p {
  text-align: justify;
  text-justify: inter-word;
}

.signal--teal {
  background: rgba(45, 212, 191, 0.18);
  border-color: rgba(20, 184, 166, 0.45);
}

.section--cta {
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.95));
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 220px;
}

.client-slider {
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.client-slider::before,
.client-slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}

.client-slider::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0));
}

.client-slider::after {
  right: 0;
  background: linear-gradient(270deg, #ffffff, rgba(255, 255, 255, 0));
}

.client-slider__track {
  display: flex;
  width: max-content;
  animation: client-scroll 24s linear infinite;
}

.client-slider__group {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 144px;
  height: 64px;
  padding: 0.25rem;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  text-decoration: none;
}

.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes client-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .client-slider__track {
    animation: none;
  }
}

@media (max-width: 640px) {
  .client-slider::before,
  .client-slider::after {
    width: 40px;
  }

  .client-slider__group {
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .client-logo {
    width: 120px;
    height: 56px;
  }
}


.site-footer {
  padding: 2rem 0 3rem;
  background: #0f172a;
  color: #e2e8f0;
}

.site-footer a {
  color: #bfdbfe;
  text-decoration: none;
}

.site-footer__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .mast {
    top: 0.65rem;
    width: min(100%, 94vw);
    padding: 0.5rem 0.85rem;
  }

  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    transform: translateY(-120%);
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    background: linear-gradient(140deg, rgba(248, 113, 113, 0.6), rgba(251, 191, 36, 0.6), rgba(34, 197, 94, 0.6));
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1000;
  }

  .nav.is-open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
    position: static;
    margin-left: auto;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.25);
  }

  .nav a {
    color: var(--text);
    font-weight: 600;
  }

  .nav a:hover,
  .nav a:focus-visible {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.25);
  }

  .nav__close {
    display: inline-flex;
    margin-bottom: 1rem;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.25);
    background: rgba(255, 255, 255, 0.65);
  }

  .site-body.nav-open .nav__overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 8.5rem;
  }

  .hero__panel {
    margin-top: -1rem;
  }

  .cta {
    flex-direction: column;
  }
}
