/* =============================================
   QUALECTA — /industry  (PL)
   Industrial landing. Shares tokens with style.css,
   adds a darker, more technical register.
   ============================================= */

:root {
  --green: #8FB500;
  --green-dark: #6E8C00;
  --green-light: #F4F9E0;
  --dark: #111827;
  --gray: #6B7280;
  --gray-light: #F9FAFB;
  --border: #E5E7EB;
  --white: #ffffff;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);

  /* industrial additions */
  --ink: #0A0F1A;
  --ink-2: #111927;
  --ink-3: #1C2637;
  --ink-line: rgba(255,255,255,0.10);
  --ink-text: #A8B3C4;
  --amber: #E8A33D;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; line-height: 1.18; letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
p  { color: var(--gray); font-size: 1.05rem; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; }
.section-sm { padding: 56px 0; }
.section-tint { background: var(--gray-light); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { margin-top: 14px; font-size: 1.12rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 2px solid transparent;
  transition: all 0.2s ease; white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-outline { border-color: var(--border); color: var(--dark); background: transparent; }
.btn-outline:hover { border-color: var(--green); color: var(--green-dark); }
.btn-ghost-light { border-color: rgba(255,255,255,0.28); color: #fff; background: transparent; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.07); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.btn-lg { padding: 15px 25px; font-size: 1rem; }

/* ---- NAVBAR ---- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,15,26,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-line);
  transition: background 0.25s ease, border-color 0.25s ease;
}
#navbar.scrolled { background: rgba(255,255,255,0.94); border-bottom-color: var(--border); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.navbar-logo { display: flex; align-items: center; color: #fff; transition: color 0.25s ease; }
.navbar-logo .ql-logo { height: 26px; width: auto; display: block; }
#navbar.scrolled .navbar-logo { color: var(--dark); }
.navbar-actions { display: flex; align-items: center; gap: 12px; }
#navbar.scrolled .btn-ghost-light { border-color: var(--border); color: var(--dark); }
#navbar.scrolled .btn-ghost-light:hover { border-color: var(--green); color: var(--green-dark); }

/* ---- HERO ---- */
#hero {
  background: var(--ink);
  color: #fff;
  padding: 156px 0 96px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 70% 15%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 70% 15%, #000 20%, transparent 75%);
  opacity: 0.7;
  pointer-events: none;
}
#hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-label {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--ink-line);
  background: rgba(143,181,0,0.10);
  color: #C6DC63;
  font-size: 0.82rem; font-weight: 600;
  margin-bottom: 22px;
}
.hero-label .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(143,181,0,0.7);
  animation: pulse-dot 2.4s infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(143,181,0,0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(143,181,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(143,181,0,0); }
}
#hero h1 { color: #fff; }
#hero h1 em { font-style: normal; color: var(--green); }
.hero-sub { color: var(--ink-text); font-size: 1.14rem; margin-top: 20px; max-width: 540px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: #6E7A8C; }

/* ---- PRODUCT FRAME (screenshot placeholder / real shot wrapper) ---- */
.frame {
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}
.frame-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: var(--ink-3);
  border-bottom: 1px solid var(--ink-line);
}
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #33405a; display: block; }
.frame-bar span {
  margin-left: 10px; font-size: 0.74rem; color: #64748B;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.frame-body { padding: 18px; }
.frame img { width: 100%; display: block; }
.frame--light { background: #fff; border-color: var(--border); box-shadow: var(--shadow-lg); }
.frame--light .frame-bar { background: var(--gray-light); border-bottom-color: var(--border); }
.frame--light .frame-bar i { background: #D7DCE3; }

/* placeholder ribbon — removed once real screenshots land */
.frame[data-placeholder]::after {
  content: 'PODGLĄD — makieta, docelowo zrzut z instancji';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-align: center; padding: 5px;
  background: rgba(232,163,61,0.16); color: var(--amber);
  border-top: 1px solid rgba(232,163,61,0.3);
}
.frame[data-placeholder] { position: relative; }
.frame[data-placeholder] .frame-body { padding-bottom: 40px; }

/* ---- PROOF STRIP ---- */
#proof { background: var(--ink-2); color: #fff; padding: 0; }
.proof-inner {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--ink-line);
  border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line);
}
.proof-cell { background: var(--ink-2); padding: 30px 26px; }
.proof-cell strong {
  display: block; font-size: 1.9rem; font-weight: 800;
  letter-spacing: -0.02em; color: #fff; line-height: 1.1;
}
.proof-cell span { display: block; margin-top: 7px; font-size: 0.94rem; color: var(--ink-text); }
.proof-foot {
  padding: 20px 0 30px; text-align: center;
  font-size: 0.84rem; color: #5C6879;
}
.tech-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 34px; flex-wrap: wrap; padding: 26px 0 4px;
}
.tech-strip span {
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em;
  color: #55617A;
}

/* ---- FLOW DIAGRAM ---- */
.flow-wrap { margin: 0 auto 52px; max-width: 980px; }
.flow-svg { width: 100%; height: auto; overflow: visible; }
.flow-node rect { fill: #fff; stroke: var(--border); stroke-width: 1.5; }
.flow-node text { font-family: var(--font); font-size: 13px; font-weight: 600; fill: var(--dark); }
.flow-node .flow-sub { font-size: 11px; font-weight: 500; fill: var(--gray); }
.flow-path { stroke: var(--border); stroke-width: 2; fill: none; }
.flow-pulse {
  fill: var(--green);
  opacity: 0;
}
.flow-live .flow-pulse { animation: flow-run 2.6s ease-in-out forwards; }
.flow-live .flow-pulse:nth-of-type(2) { animation-delay: 0.35s; }
.flow-live .flow-pulse:nth-of-type(3) { animation-delay: 0.7s; }
@keyframes flow-run {
  0%   { opacity: 0; offset-distance: 0%; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { opacity: 0; offset-distance: 100%; }
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step-num {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--green-light); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; margin-bottom: 14px;
}
.step h3 { margin-bottom: 7px; }
.step p { font-size: 0.97rem; }

.integrations {
  margin-top: 48px; padding: 26px 28px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff;
}
.integrations h4 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); margin-bottom: 14px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 13px; border-radius: 999px;
  background: var(--gray-light); border: 1px solid var(--border);
  font-size: 0.88rem; font-weight: 500; color: #374151;
}
.readonly-note {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 0.95rem; color: var(--dark); font-weight: 500;
  display: flex; gap: 10px; align-items: flex-start;
}
.readonly-note svg { flex: none; margin-top: 2px; }

/* ---- USE CASES ---- */
.uc { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.uc + .uc { margin-top: 104px; }
.uc.reverse .uc-media { order: -1; }
.uc h2 { margin-bottom: 18px; }
.uc p + p { margin-top: 14px; }
.uc-list { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.uc-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; color: #374151; }
.uc-list li::before {
  content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); margin-top: 9px;
}

/* ---- ROLES ---- */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.role {
  padding: 28px 24px; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.role:hover { border-color: var(--green); transform: translateY(-3px); }
.role-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.role h3 { font-size: 1rem; margin-bottom: 6px; }
.role p { font-size: 0.95rem; }

/* ---- CHAT DEMO ---- */
#chat { background: var(--ink); color: #fff; }
#chat h2 { color: #fff; }
#chat .section-head p { color: var(--ink-text); }
.chat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.chat-box {
  background: var(--ink-2); border: 1px solid var(--ink-line);
  border-radius: 14px; padding: 22px; min-height: 320px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
}
.chat-msg { display: flex; gap: 12px; margin-bottom: 18px; }
.chat-avatar {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700;
}
.chat-avatar.user { background: var(--ink-3); color: #94A3B8; }
.chat-avatar.bot  { background: var(--green); color: #10240A; }
.chat-body { flex: 1; padding-top: 3px; }
.chat-body .q { color: #fff; font-size: 1rem; font-weight: 500; }
.chat-body .a { color: var(--ink-text); font-size: 0.97rem; }
.chat-answer { opacity: 0; transform: translateY(6px); transition: all 0.45s ease; }
.chat-answer.show { opacity: 1; transform: none; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--green); vertical-align: -0.16em; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: 0 } }
.chat-chart { margin-top: 14px; border-radius: 10px; background: var(--ink-3); padding: 14px; }
.chat-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 0.82rem; color: #94A3B8; }
.chat-bar b { flex: none; width: 74px; font-weight: 500; }
.chat-bar .track { flex: 1; height: 8px; border-radius: 4px; background: #26324A; overflow: hidden; }
.chat-bar .fill { height: 100%; width: 0; border-radius: 4px; background: var(--green); transition: width 0.9s cubic-bezier(.22,1,.36,1); }
.chat-bar em { flex: none; font-style: normal; color: #CBD5E1; font-variant-numeric: tabular-nums; }
.chat-source { margin-top: 14px; font-size: 0.8rem; color: #64748B; }
.chat-points { list-style: none; display: grid; gap: 20px; margin-top: 26px; }
.chat-points li { display: flex; gap: 13px; }
.chat-points strong { color: #fff; display: block; margin-bottom: 3px; font-size: 1rem; }
.chat-points span { color: var(--ink-text); font-size: 0.97rem; }
.chat-points .num {
  flex: none; width: 26px; height: 26px; border-radius: 7px;
  background: rgba(143,181,0,0.14); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
}

/* ---- COMPARISON / PRICE ---- */
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.compare-col {
  padding: 30px 26px; border-radius: var(--radius);
  border: 1px solid var(--border); background: #fff;
}
.compare-col.us { border-color: var(--green); box-shadow: 0 12px 40px rgba(143,181,0,0.14); position: relative; }
.compare-col.us::before {
  content: 'Qualecta';
  position: absolute; top: -11px; left: 26px;
  background: var(--green); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 11px; border-radius: 999px;
}
.compare-col h3 { margin-bottom: 6px; }
.compare-price { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 4px; }
.compare-price small { display: block; font-size: 0.84rem; font-weight: 500; color: var(--gray); letter-spacing: 0; }
.compare-col ul { list-style: none; margin-top: 18px; display: grid; gap: 9px; }
.compare-col li { font-size: 0.95rem; color: #4B5563; padding-left: 20px; position: relative; }
.compare-col li::before { content: '—'; position: absolute; left: 0; color: #9CA3AF; }
.compare-col.us li::before { content: '✓'; color: var(--green-dark); font-weight: 700; }
.price-note {
  margin-top: 34px; text-align: center;
  font-size: 0.92rem; color: var(--gray);
}

/* ---- SECURITY ---- */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 8px; }
.sec-item h3 { margin-bottom: 8px; }
.sec-item p { font-size: 0.97rem; }
.sec-icon { margin-bottom: 15px; }

/* ---- CTA ---- */
#cta {
  background: var(--ink); color: #fff;
  padding: 104px 0; text-align: center;
  position: relative; overflow: hidden;
}
#cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(143,181,0,0.14), transparent 70%);
}
#cta .container { position: relative; z-index: 1; }
#cta h2 { color: #fff; max-width: 680px; margin: 0 auto 18px; }
#cta p { color: var(--ink-text); font-size: 1.12rem; max-width: 600px; margin: 0 auto 32px; }
.cta-pilot {
  margin-top: 34px; display: inline-block;
  padding: 16px 26px; border-radius: var(--radius);
  border: 1px solid var(--ink-line); background: rgba(255,255,255,0.03);
  font-size: 0.98rem; color: var(--ink-text); max-width: 620px;
}
.cta-pilot b { color: #fff; }

/* ---- FOOTER ---- */
footer { background: var(--ink-2); color: var(--ink-text); padding: 44px 0; border-top: 1px solid var(--ink-line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo { color: #fff; display: flex; align-items: center; }
.footer-logo .ql-logo { height: 24px; width: auto; display: block; }
.footer-links { display: flex; gap: 24px; font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.86rem; color: #5C6879; width: 100%; margin-top: 8px; }

/* ---- STICKY CTA ---- */
#sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 12px 0;
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
#sticky-cta.show { transform: none; }
.sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.sticky-inner p { font-size: 0.97rem; color: var(--dark); font-weight: 500; }

/* ---- REVEAL ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .flow-live .flow-pulse { animation: none; opacity: 0; }
  .hero-label .dot { animation: none; }
  .caret { animation: none; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 980px) {
  .hero-grid, .uc, .chat-grid { grid-template-columns: 1fr; gap: 42px; }
  .uc.reverse .uc-media { order: 0; }
  .steps, .roles, .compare, .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-inner { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  #hero { padding: 132px 0 76px; }
}
@media (max-width: 620px) {
  .steps, .roles, .compare, .sec-grid { grid-template-columns: 1fr; }
  .navbar-actions .btn-ghost-light { display: none; }
  .sticky-inner p { display: none; }
  .sticky-inner { justify-content: center; }
  .sticky-inner .btn { width: 100%; justify-content: center; }
}
