/* ============ Noviquo — style.css ============ */

/* --- Fonty (variable, self-hosted) --- */
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF;
}

/* --- Zmienne --- */
:root {
  --indigo: #4F46E5;
  --cyan: #06B6D4;
  --cyan-light: #22D3EE;
  --ink: #0B1220;
  --ink-soft: #1B2437;
  --text: #212A3D;
  --text-2: #5B6478;
  --bg: #F7F8FB;
  --card: #FFFFFF;
  --line: #E6E9F2;
  --grad: linear-gradient(135deg, var(--indigo), var(--cyan));
  --radius: 16px;
  --shadow: 0 6px 24px rgba(11, 18, 32, 0.07);
  --shadow-lg: 0 16px 48px rgba(11, 18, 32, 0.12);
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* --- Reset / baza --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.9em;
}
.eyebrow-light { background: linear-gradient(135deg, #A5B4FC, #67E8F9); -webkit-background-clip: text; background-clip: text; }

.section { padding: 96px 0; }
.section-alt { background: #FFFFFF; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { color: var(--text-2); max-width: 640px; margin-bottom: 2.6em; font-size: 1.06rem; }

/* --- Przyciski --- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.32);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(79, 70, 229, 0.42); }
.btn-ghost {
  color: var(--ink);
  border: 1.5px solid var(--line);
  background: #fff;
}
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }

/* --- Nagłówek --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 251, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(11,18,32,0.06); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand-mark { flex: 0 0 auto; display: block; }

/* logotyp: dotless ı + cyjanowa kropka */
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-name-light { color: #fff; }
.i-dot { position: relative; }
.i-dot::before {
  content: "";
  position: absolute;
  top: 0.06em;
  left: 50%;
  transform: translateX(-50%);
  width: 0.16em;
  height: 0.16em;
  border-radius: 50%;
  background: var(--cyan);
}

.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a {
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--text);
}
.site-nav a:hover { color: var(--indigo); text-decoration: none; }
.header-cta { padding: 10px 22px; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s 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;
  overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(720px 420px at 12% -10%, rgba(79, 70, 229, 0.10), transparent 65%),
    radial-gradient(640px 400px at 95% 15%, rgba(6, 182, 212, 0.12), transparent 60%),
    var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.lead { font-size: 1.13rem; color: var(--text-2); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.8em 0 1.4em; }
.hero-note { font-size: 0.88rem; color: var(--text-2); }
.hero-visual svg { display: block; filter: drop-shadow(0 24px 40px rgba(11, 18, 32, 0.10)); }

/* --- Karty usług --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.35);
}
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--grad);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card p { color: var(--text-2); font-size: 0.97rem; margin: 0; }

/* --- Proces --- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 20px;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 16px;
}
.step p { color: var(--text-2); font-size: 0.95rem; margin: 0; }

/* --- O nas --- */
.about {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}
.about h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-copy p { color: var(--text-2); max-width: 560px; }
.checklist {
  list-style: none;
  padding: 0;
  margin: 1.6em 0 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding-left: 34px;
  font-weight: 500;
  color: var(--text);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--grad);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round" d="M4 12.5l5 5L20 6.5"/></svg>') center / contain no-repeat;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round" d="M4 12.5l5 5L20 6.5"/></svg>') center / contain no-repeat;
}
.about-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 32px;
  text-align: left;
}
.about-card h3 { font-size: 1.3rem; margin: 18px 0 8px; }
.about-card p { color: var(--text-2); margin-bottom: 0.7em; }
.map-link { font-weight: 600; font-size: 0.95rem; }

/* --- Kontakt (ciemna sekcja) --- */
.section-dark {
  background:
    radial-gradient(700px 380px at 85% 0%, rgba(79, 70, 229, 0.25), transparent 60%),
    radial-gradient(560px 340px at 8% 100%, rgba(6, 182, 212, 0.16), transparent 60%),
    var(--ink);
}
.section-dark h2 { color: #fff; }
.section-dark .section-lead { color: #A8B0C2; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--ink-soft);
  border: 1px solid #2A3349;
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.contact-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: var(--cyan);
  background: #202A41;
}
.contact-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8B94A9;
  font-weight: 600;
}
.contact-value {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
  color: #fff;
  overflow-wrap: anywhere;
}
a.contact-card .contact-value { color: var(--cyan-light); }
.contact-card-static { cursor: default; }

/* --- Stopka --- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid #1E2537;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand p { color: #8B94A9; font-size: 0.88rem; margin: 6px 0 0; }
.footer-meta { text-align: right; }
.footer-meta p { color: #8B94A9; font-size: 0.88rem; margin: 0 0 4px; }
.footer-meta a { color: #A5B4FC; }

/* --- Animacje reveal --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .contact-card { transition: none; }
}

/* --- Responsywność --- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .about { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}
@media (max-width: 820px) {
  .section { padding: 72px 0; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 28px; font-size: 1.05rem; }
}
