/* CSS Reset & Variables */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f8f7;
  --text: #0f172a;
  --muted: #51606b;
  --primary: #0f766e;
  --primary-dark: #0b5a54;
  --primary-soft: #d7f0ec;
  --border: #e2e8e6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 118, 110, 0.08);
  --container: 1080px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
}
.brand-logo {
  display: block;
  height: 68px;
  width: auto;
  max-width: 50vw;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  white-space: nowrap;
  height: 100%;
}
.nav-link {
  color: var(--muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  height: 100%;
}
.nav-link:hover { color: var(--text); text-decoration: none; }

/* Language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.4;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--primary); color: #fff; }
.lang-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Hero */
.hero {
  padding: 84px 0 64px;
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--primary-soft), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--bg-alt));
}
.eyebrow {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 18px;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: .95rem; }

/* Social Proof */
.social-proof { padding: 32px 0 16px; text-align: center; }
.social-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 40px;
  margin-bottom: 20px;
}
.social-rating { display: inline-flex; align-items: center; gap: 8px; }
.social-stars { font-weight: 700; font-size: 1.1rem; color: var(--text); letter-spacing: .02em; }
.social-meta { color: var(--muted); font-size: .95rem; }
.social-users { font-weight: 600; font-size: 1.05rem; color: var(--primary); }
.social-bar {
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 10px 24px;
  margin: 0 auto;
  max-width: 560px;
}
.social-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--primary-dark);
  padding: 0;
}
.bar-dot { color: var(--primary); opacity: .5; }

/* AI Simulator */
.sim-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 680px;
  margin: 0 auto;
}
.sim-input-wrap {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.sim-input-wrap input {
  flex: 1;
  padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 1rem;
  font-family: inherit;
}
.sim-input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.sim-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.sim-prompt {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .88rem;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  font-family: inherit;
}
.sim-prompt:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: var(--primary);
}
.sim-response {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  min-height: 60px;
  font-size: .98rem;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
}
.sim-response:empty { display: none; }
.sim-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.sim-suggestions:empty { display: none; }

/* Logos strip */
.logos-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: center;
  padding: 18px 20px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .03em;
}

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 8px; letter-spacing: -0.01em; }
.section-lead { color: var(--muted); font-size: 1.1rem; margin: 0 0 36px; max-width: 620px; }

/* Viz 2D */
.viz-wrap {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}
.viz-wrap canvas { display: block; max-width: 100%; height: auto; }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Bullets */
.bullets { list-style: none; padding: 0; margin: 0; max-width: 620px; }
.bullets li {
  position: relative;
  padding: 10px 0 10px 30px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.bullets li:last-child { border-bottom: 0; }
.bullets li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 10px;
  color: var(--primary);
  font-weight: 700;
}

/* Waitlist */
.waitlist { background: linear-gradient(180deg, var(--bg-alt), #ffffff); }
.waitlist-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 24px 0 14px;
}
.waitlist-form input {
  flex: 1 1 280px;
  max-width: 360px;
  padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 1rem;
  font-family: inherit;
}
.waitlist-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.waitlist-msg { min-height: 1.4em; font-weight: 600; margin: 0; }
.waitlist-msg.ok { color: var(--primary-dark); }
.waitlist-msg.err { color: #b91c1c; }

/* Footer */
.site-footer { background: #0b1f1c; color: #cbd5d1; padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-logo { height: 32px; width: auto; opacity: .92; }
.site-footer p { margin: 0; font-size: .9rem; }
.footer-nav { display: flex; gap: 18px; }
.footer-nav a { color: #cbd5d1; font-weight: 500; }
.footer-nav a:hover { color: #fff; }
.footer-gdpr {
  color: var(--primary) !important;
  font-weight: 600;
}
.footer-gdpr:hover { color: #4dd6c9 !important; }

/* Cookie bar */
.cookie-bar {
  border-top: 2px solid rgba(15, 118, 110, 0.25);
  background: rgba(15, 118, 110, 0.06);
  padding: 10px 0;
  margin-top: 16px;
}
.cookie-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .82rem;
  color: #94a3b8;
  text-align: center;
}
.cookie-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-link:hover { color: #4dd6c9; }
.cookie-sep { color: rgba(15, 118, 110, 0.3); }
.cookie-bar .pl-only,
.cookie-bar .en-only { display: none; }
.lang-pl .cookie-bar .pl-only { display: inline; }
.lang-en .cookie-bar .en-only { display: inline; }

@media (max-width: 600px) {
  .site-nav .nav-link { display: none; }
  .hero { padding: 56px 0 44px; }
  .section { padding: 52px 0; }
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-title { margin: 0 0 8px; font-size: 1.3rem; }
.modal-text { color: var(--muted); margin: 0 0 20px; font-size: .98rem; }
.modal-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.modal-form input {
  flex: 1 1 200px;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: .95rem;
  font-family: inherit;
}
.modal-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.modal-msg { min-height: 1.4em; font-weight: 600; margin: 12px 0 0; font-size: .9rem; }
.modal-msg.ok { color: var(--primary-dark); }
.modal-msg.err { color: #b91c1c; }