/* ============================================================
   IQSystem - style.css
   Paleta: granat + szarości + akcent cyjan
   ============================================================ */

:root {
  --navy-900: #0a1d2e;
  --navy-800: #0f2a43;
  --navy-700: #163a5c;
  --navy-600: #1e4a73;
  --cyan-500: #00b8d4;
  --cyan-400: #1fc8e3;
  --cyan-300: #5dd9ec;

  --gray-50:  #f5f7fa;
  --gray-100: #eaeef3;
  --gray-200: #d6dde6;
  --gray-300: #b3becd;
  --gray-500: #6b7689;
  --gray-700: #3a4654;
  --gray-900: #14202b;

  --white: #ffffff;
  --black: #0a1118;

  --bg: var(--gray-50);
  --text: var(--gray-900);
  --text-muted: var(--gray-500);
  --heading: var(--navy-800);

  --shadow-sm: 0 1px 2px rgba(15, 42, 67, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 42, 67, 0.08);
  --shadow-lg: 0 18px 50px rgba(10, 29, 46, 0.14);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --container: 1160px;
  --nav-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 2px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--navy-800);
}
.brand__logo {
  height: 34px;
  width: auto;
}
.brand__fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy-700), var(--cyan-500));
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0;
}
.brand__name { line-height: 1; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  position: relative;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link:hover { color: var(--navy-800); background: var(--gray-100); }
.nav__cta {
  margin-left: 8px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  background: var(--navy-800);
  border-radius: var(--radius-sm);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav__cta:hover { background: var(--navy-700); transform: translateY(-1px); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0, 184, 212, 0.25), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(30, 74, 115, 0.45), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
}
/* Obrazek tła hero (warstwa nad gradientem, pod overlay) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-bg.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(10, 29, 46, 0.72);
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: 96px;
  max-width: 820px;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-300);
  padding: 6px 14px;
  border: 1px solid rgba(93, 217, 236, 0.35);
  border-radius: 999px;
  background: rgba(0, 184, 212, 0.08);
  margin-bottom: 24px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero__title span {
  background: linear-gradient(90deg, var(--cyan-300), var(--cyan-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--cyan-300);
  border-radius: 2px;
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--cyan-500);
  color: var(--navy-900);
  box-shadow: 0 8px 24px rgba(0, 184, 212, 0.35);
}
.btn--primary:hover { background: var(--cyan-400); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 184, 212, 0.45); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); transform: translateY(-2px); }
.btn--block { display: flex; width: 100%; }

/* ============ SECTION ============ */
.section { padding-block: 96px; }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-500);
  margin-bottom: 12px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin-bottom: 16px;
}
.section__lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 620px;
}

/* ============ ABOUT ============ */
.about { background: var(--white); }
.about__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.about__text {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--gray-700);
}
.about__list {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.about__list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.98rem;
  color: var(--gray-700);
  line-height: 1.5;
}
.about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--cyan-500), var(--navy-600));
}
.about__list strong {
  display: block;
  color: var(--navy-800);
  font-weight: 600;
  margin-bottom: 2px;
}

/* ============ SERVICES ============ */
.services { background: var(--gray-50); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,184,212,0.12), rgba(30,74,115,0.12));
  color: var(--navy-700);
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}
.card__text {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============ BRANDS ============ */
.brands { background: var(--white); }
.brands__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.brand {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.brand:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
  background: var(--white);
}
.brand--featured {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  border-color: var(--navy-700);
  color: var(--white);
}
.brand--featured:hover {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-600));
  border-color: var(--navy-600);
  box-shadow: 0 18px 50px rgba(15, 42, 67, 0.25);
}
.brand__tag {
  align-self: flex-start;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-500);
  padding: 5px 11px;
  border: 1px solid rgba(0, 184, 212, 0.3);
  border-radius: 999px;
  background: rgba(0, 184, 212, 0.06);
  margin-bottom: 18px;
}
.brand--featured .brand__tag {
  color: var(--cyan-300);
  border-color: rgba(93, 217, 236, 0.4);
  background: rgba(93, 217, 236, 0.1);
}
.brand__tag--accent { color: var(--cyan-300); }
.brand__title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--heading);
  margin-bottom: 12px;
}
.brand--featured .brand__title { color: var(--white); }
.brand__text {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}
.brand--featured .brand__text { color: rgba(255, 255, 255, 0.82); }
.brand__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cyan-500);
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.brand__link:hover { gap: 11px; color: var(--cyan-400); }
.brand--featured .brand__link { color: var(--cyan-300); }
.brand--featured .brand__link:hover { color: var(--white); }
.brand__link--soon {
  color: var(--gray-500);
  font-weight: 500;
  cursor: default;
}
.brand__sublinks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.brand__sublinks a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--cyan-300);
  transition: color .2s var(--ease);
}
.brand__sublinks a::before {
  content: "\2192";
  font-weight: 700;
}
.brand__sublinks a:hover { color: var(--white); }

/* ============ CONTACT ============ */
.contact {
  background:
    radial-gradient(800px 400px at 90% 10%, rgba(0, 184, 212, 0.08), transparent 60%),
    var(--gray-50);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.contact__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 36px;
}
.contact__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
}
.contact__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-700), var(--cyan-500));
  color: var(--white);
}
.contact__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact__list a,
.contact__list span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
  word-break: break-word;
}
.contact__list a:hover { color: var(--cyan-500); }
.contact__card {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.contact__card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.contact__card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.96rem;
  margin-bottom: 22px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 48px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}
.footer__logo {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 4px;
}
.footer__brand p { font-size: 0.9rem; }
.footer__links {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color .2s var(--ease);
}
.footer__links a:hover { color: var(--cyan-300); }
.footer__meta {
  text-align: right;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer__meta p { line-height: 1.5; }

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .brands__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .contact__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__meta { text-align: center; }
}

@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .section { padding-block: 64px; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 14px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__link {
    padding: 14px 18px;
    font-size: 1.02rem;
    border-radius: 0;
  }
  .nav__link:hover { background: var(--gray-100); }
  .nav__cta {
    margin: 14px 18px 0;
    text-align: center;
  }
  .nav__toggle { display: flex; }

  .hero__inner { padding-block: 72px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .services__grid,
  .brands__grid { grid-template-columns: 1fr; }
  .contact__list { grid-template-columns: 1fr; }
  .footer__inner { gap: 18px; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .hero__eyebrow { font-size: 0.78rem; }
  .card, .brand { padding: 24px 20px; }
  .contact__card { padding: 32px 24px; }
}

/* ============ PRINT ============ */
@media print {
  .nav, .hero__scroll, .nav__toggle { display: none; }
  .hero { color: var(--black); background: var(--white); min-height: auto; padding-block: 32px; }
  .hero__title span { color: var(--navy-800); -webkit-text-fill-color: initial; }
  .reveal { opacity: 1; transform: none; }
}
