/* Fonty serwowane lokalnie (Inter, Space Grotesk: SIL Open Font License 1.1), bez połączeń z serwerami zewnętrznymi */

@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Syntropia — site v2 ("AI uczy się Twojej firmy")
   Palette: ink navy + warm off-white + teal accent
   Type: Space Grotesk (display) + Inter (text)
   ============================================================ */

:root {
  --ink: #0e1b2c;
  --ink-deep: #0b1524;
  --ink-soft: #24344a;
  --slate: #5a6b7e;
  --paper: #f7f8f6;
  --paper-2: #eef1ee;
  --card: #ffffff;
  --line: #e3e7e2;
  --accent: #12a594;
  --accent-deep: #0c7a70;
  --accent-bright: #2ad4be;
  --dark-text: #e9eef4;
  --dark-muted: #9fb0c3;
  --radius: 14px;
  --maxw: 1120px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-text: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.3; text-wrap: balance; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- top nav ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(233, 238, 244, 0.1);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand span {
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  letter-spacing: 0.14em; color: #fff; text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 26px; flex-wrap: nowrap; white-space: nowrap; }
.nav a { color: var(--dark-muted); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--accent-bright); text-decoration: none; }
.nav .lang-switch {
  border: 1px solid rgba(233, 238, 244, 0.28); border-radius: 999px;
  padding: 5px 13px; font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--dark-text);
}
.nav .lang-switch:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
@media (max-width: 760px) { .nav a:not(.lang-switch) { display: none; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-block; font-family: var(--font-display);
  font-weight: 600; font-size: 17px; padding: 16px 34px; border-radius: 999px;
  background: var(--accent); color: #04211d; transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-bright); text-decoration: none; }
.btn.ghost {
  background: transparent; color: var(--dark-text);
  border: 1px solid rgba(233, 238, 244, 0.35);
}
.btn.ghost:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.microcopy { font-size: 14px; color: var(--dark-muted); margin-top: 14px; }
.microcopy.on-light { color: var(--slate); }

/* ---------- hero ---------- */

.hero {
  position: relative; color: var(--dark-text);
  min-height: min(92vh, 860px);
  display: flex; align-items: center;
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(11, 21, 36, 0.94) 0%, rgba(11, 21, 36, 0.78) 48%, rgba(11, 21, 36, 0.42) 100%),
    linear-gradient(180deg, rgba(11, 21, 36, 0.35) 0%, rgba(11, 21, 36, 0) 40%, rgba(11, 21, 36, 0.85) 100%),
    url("img/hero-office-dusk.jpg");
  background-size: cover; background-position: center;
  padding: 120px 0 110px;
}
.hero .wrap { max-width: 960px; margin-left: max(0px, calc((100% - var(--maxw)) / 2)); }
.hero h1 {
  font-size: clamp(36px, 5.6vw, 66px); font-weight: 700; color: #fff;
  margin-bottom: 26px; max-width: 18ch;
}
.hero h1 em { font-style: normal; color: var(--accent-bright); }
.hero .lead {
  font-size: clamp(18px, 2vw, 22px); line-height: 1.55; color: var(--dark-muted);
  max-width: 600px; margin-bottom: 40px;
}
.hero .trust {
  margin-top: 56px; padding-top: 22px;
  border-top: 1px solid rgba(233, 238, 244, 0.18);
  display: flex; flex-wrap: wrap; gap: 10px 34px;
  font-size: 14px; color: var(--dark-muted);
}
.hero .trust b { color: var(--dark-text); font-weight: 600; font-family: var(--font-display); }

/* ---------- generic sections ---------- */

section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; margin-bottom: 18px; }
.section-head p { color: var(--slate); font-size: 19px; line-height: 1.55; }
.dark { background: var(--ink); color: var(--dark-text); }
.dark h2, .dark h3 { color: #fff; }
.dark p { color: var(--dark-muted); }

/* ---------- problem statement ---------- */

.problem .statement {
  font-family: var(--font-display); font-weight: 700; line-height: 1.3;
  font-size: clamp(28px, 4.2vw, 50px); max-width: 20ch;
  color: var(--ink);
}
.problem .statement em { font-style: normal; color: var(--accent-deep); }
.problem .after {
  margin-top: 28px; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; color: var(--slate); max-width: 34ch;
}

/* ---------- manifest (scrollytelling) ---------- */

.manifest { padding: 96px 0; background: var(--ink-deep); }
.manifest .stanza { max-width: 720px; margin-bottom: 26px; }
.manifest .line {
  font-family: var(--font-display); font-weight: 500;
  line-height: 1.45; font-size: clamp(18px, 1.9vw, 23px); color: var(--dark-text);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.manifest .line.key { font-weight: 600; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; margin: 4px 0; }
.js .manifest .line { opacity: 0.16; transform: translateY(10px); }
.js .manifest .line.in { opacity: 1; transform: none; }
.manifest .line.key { color: var(--accent-bright); }
.manifest .line.soft { color: var(--dark-muted); font-weight: 500; }
@media (prefers-reduced-motion: reduce) {
  .manifest .line { opacity: 1; transform: none; transition: none; }
}

/* ---------- program: 4 phases ---------- */

.program { background: var(--paper); }
.program-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .program-grid { grid-template-columns: 1fr; } }
.phases { display: grid; gap: 18px; }
.phase {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 22px; display: grid; grid-template-columns: 44px 1fr; gap: 18px;
}
.phase .no {
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink);
  color: var(--accent-bright); font-family: var(--font-display); font-weight: 700;
  font-size: 19px; display: flex; align-items: center; justify-content: center;
}
.phase h3 { font-size: 21px; font-weight: 600; margin-bottom: 6px; }
.phase p { color: var(--ink-soft); font-size: 16px; }
.phase .stays {
  margin-top: 12px; font-size: 14.5px; color: var(--accent-deep); font-weight: 600;
}
.phase .stays span { color: var(--slate); font-weight: 400; }
.loop { position: sticky; top: 100px; }
.loop svg { width: 100%; max-width: 460px; height: auto; display: block; margin: 0 auto; }
.loop .caption { text-align: center; color: var(--slate); font-size: 15px; margin-top: 12px; max-width: 420px; margin-left: auto; margin-right: auto; }

/* ---------- comparison table ---------- */

.compare { background: var(--paper-2); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); padding: 10px 14px; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 16px; }
table.cmp th, table.cmp td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.cmp thead th { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.04em; }
table.cmp thead th.us { color: var(--accent-deep); }
table.cmp tbody th { font-weight: 600; color: var(--ink); width: 26%; }
table.cmp td.them { color: var(--slate); }
table.cmp td.us { color: var(--ink); font-weight: 500; background: rgba(18, 165, 148, 0.06); }
table.cmp tr:last-child th, table.cmp tr:last-child td { border-bottom: none; }

/* ---------- CTA band ---------- */

.cta-band { padding: 64px 0; background: var(--ink); color: var(--dark-text); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h3 { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.35; font-weight: 600; color: #fff; }
.cta-band .microcopy { margin-top: 8px; }

/* ---------- proof (industries) ---------- */

.proof { background: var(--paper); }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr; } }
.case {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.case img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.case .body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.case .tag { font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent-deep); }
.case h3 { font-size: 21px; font-weight: 600; }
.case .metric { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--ink); line-height: 1.3; }
.case .metric small { display: block; font-family: var(--font-text); font-weight: 500; font-size: 14px; color: var(--slate); margin-top: 4px; }
.case p { color: var(--ink-soft); font-size: 15.5px; }
.case .deliv { list-style: none; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.case .deliv li { position: relative; padding-left: 16px; font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.case .deliv li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- founder ---------- */

.founder { background: var(--paper-2); }
.founder-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .founder-grid { grid-template-columns: 1fr; } }
.portrait {
  aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--ink);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait .initials {
  font-family: var(--font-display); font-weight: 700; font-size: 72px;
  color: var(--accent-bright); letter-spacing: 0.06em;
}
.founder h2 { font-size: clamp(26px, 3.2vw, 36px); }
.founder .name { font-family: var(--font-display); font-size: 22px; line-height: 1.4; font-weight: 600; margin-bottom: 14px; }
.founder p { color: var(--ink-soft); }
.founder p + p { margin-top: 14px; }
.founder .facts { list-style: none; margin: 18px 0; display: grid; gap: 10px; }
.founder .facts li { position: relative; padding-left: 18px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }
.founder .facts li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.founder .facts strong { color: var(--ink); }
.founder .links { margin-top: 22px; display: flex; gap: 18px; flex-wrap: wrap; font-weight: 500; }

/* ---------- final CTA ---------- */

.final { padding: 120px 0; background: var(--ink); color: var(--dark-text); }
.final h2 { font-size: clamp(32px, 4.6vw, 56px); max-width: 16ch; }
.final .contact { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 28px; }
@media (max-width: 640px) { .final .contact { grid-template-columns: 1fr; } }
.final .contact .lbl { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dark-muted); margin-bottom: 6px; }
.final .contact a { font-family: var(--font-display); font-size: clamp(19px, 2.4vw, 24px); line-height: 1.4; font-weight: 600; color: #fff; word-break: break-all; }
.final .contact a:hover { color: var(--accent-bright); text-decoration: none; }

/* ---------- footer ---------- */

footer { background: #0a1420; color: var(--dark-muted); padding: 52px 0 44px; font-size: 13.5px; line-height: 1.75; }
footer .legal, footer .legal-data { max-width: 820px; }
footer .co-name { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em; color: var(--dark-text); margin-bottom: 10px; }
footer .meta { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(233, 238, 244, 0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12.5px; }

/* ---------- reveal on scroll (generic) ---------- */

.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- footer links + legal pages ---------- */

footer a { color: var(--dark-text); text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--accent-bright); }
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 660px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; margin-bottom: 10px; }
.legal .updated { color: var(--slate); font-size: 15px; margin-bottom: 36px; }
.legal h2 { font-size: 22px; font-weight: 600; margin: 34px 0 10px; }
.legal p { color: var(--ink-soft); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0 20px; color: var(--ink-soft); }
.legal li { margin-top: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
