/* N1TECH — lekki, nowoczesny styl bez zależności zewnętrznych */
:root {
  --bg: #ffffff;
  --bg-2: #f6f7fb;
  --bg-3: #000000;
  --text: #181818;
  --muted: #5c6270;
  --text-footer: #ffffff;
  --brand: #7dd4fc31;
  --brand-2: #60a5fa26;
  --accent: #22d3ee;
  --border: #e8eaf0;
  --card: #ffffff;
  --shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

/* @media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f13;
    --bg-2: #13151b;
    --text: #e8e9ef;
    --muted: #a7adbb;
    --border: #232631;
    --card: #13151b;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  } */

* {
  box-sizing: border-box
}

a[href^="tel"] {
  color: inherit;
  text-decoration: none;
}

.img-muted {
  filter: saturate(40%) contrast(95%) brightness(80%) !important;
  transition: filter 0.3s ease !important;
}

.img-muted:hover {
  filter: saturate(100%) contrast(100%) brightness(100%) !important;
}

.center {
  text-align: center;
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -10%, rgba(96, 165, 250, .15), transparent 60%),
    radial-gradient(900px 700px at 10% -10%, rgba(34, 211, 238, .12), transparent 55%),
    var(--bg);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto
}

.muted {
  color: var(--muted)
}

.small {
  font-size: .9rem
}

.eyebrow {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600
}

.display {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 6px 0 14px
}

.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--muted);
  max-width: 65ch
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.2) blur(10px);
  background: color-mix(in oklab, var(--bg) 75%, transparent)
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font: 13px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}

.brand {
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}

.site-header nav {
  display: flex;
  gap: 18px;
  align-items: center
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px
}

.site-header nav a:hover {
  color: var(--text);
  background: var(--bg-2)
}

.site-header nav .cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0b1020;
  font-weight: 700
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 82vh;
  display: grid;
  align-items: end
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05)
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(6, 11, 22, .25), rgba(6, 11, 22, .65) 60%, var(--bg));
}

.hero-content {
  padding: clamp(40px, 6vw, 80px) 0 56px
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 14px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: transform .18s ease, background .18s ease
}

.btn:hover {
  transform: translateY(-1px)
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0a0d16;
  border-color: transparent;
  font-weight: 700
}

.btn.ghost {
  background: transparent;
  color: var(--text)
}

/* Sections */
.section {
  padding: clamp(48px, 7vw, 88px) 0
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .25s ease
}

.card:hover {
  transform: translateY(-4px)
}

.card h3 {
  margin: 4px 0 6px
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px
}

.kpi {
  background: linear-gradient(180deg, var(--bg-2), transparent);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  justify-items: center
}

.kpi-number {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.kpi-label {
  color: var(--muted)
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.feature {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow)
}

.feature img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block
}

.feature figcaption {
  padding: 12px;
  color: var(--muted)
}

.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px
}

.case {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow)
}

.case>img {
  width: 100%;
  height: 260px;
  object-fit: cover
}

.case-body {
  padding: 16px
}

.tags {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 10px 0 0
}

.tags li {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted)
}

.highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px
}

.highlight {
  background: radial-gradient(400px 250px at 20% 0%, rgba(96, 165, 250, .12), transparent 60%), var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow)
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px
}

.contact-info {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: var(--card)
}

.contact-info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  margin: 0
}

.contact-info dt {
  color: var(--muted)
}

.contact-info a {
  color: inherit
}

.contact-form {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: var(--card)
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  font: inherit
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid color-mix(in oklab, var(--brand) 60%, transparent)
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap
}

.form-status {
  margin: 0
}

.site-footer {
  display: grid;
  gap: 6px;
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid var(--border)
}

/* Animacje wejścia */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease
}

.reveal.in-view {
  opacity: 1;
  transform: none
}

/* Responsywność */
@media (max-width: 1000px) {

  .cards,
  .feature-grid,
  .cases,
  .highlights {
    grid-template-columns: 1fr 1fr
  }

  .contact {
    grid-template-columns: 1fr
  }
}

@media (max-width: 680px) {
  .nav {
    font-size: 12px;
  }

  .site-header nav {
    gap: 4px;
  }

  .site-header nav a {
    padding: 6px 4px;
  }

  .brand {
    font-size: 14px;
  }

  .brand-logo {
    height: 24px;
  }

  .cards,
  .feature-grid,
  .cases,
  .highlights {
    grid-template-columns: 1fr
  }

  .hero {
    min-height: 72vh
  }

  .hero-content {
    padding: 40px 0
  }
}

#footer {
  background-color: var(--bg-3);
  color: var(--text-footer);
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  font-size: 0.8rem;
  text-align: left;
  align-items: flex-start;
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.footer-col {
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Preferencje ruchu */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto
  }

  .reveal {
    transition: none
  }
}
