*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --bg-secondary: #f7f7f5;
  --text-primary: #1a1a18;
  --text-secondary: #6b6b66;
  --text-muted: #9a9a94;
  --border: rgba(0,0,0,0.09);
  --border-med: rgba(0,0,0,0.15);
  --radius-md: 8px;
  --radius-lg: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

/* LANGUAGE SWITCHER */
.lang-switcher {
  display: inline-flex;
  border: 0.5px solid var(--border-med);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.lang-btn {
  padding: 5px 12px;
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  transition: background 0.12s, color 0.12s;
}
.lang-btn.active { background: var(--accent-mid); color: #fff; }
.lang-btn:not(.active):hover { background: var(--bg-secondary); color: var(--text-primary); }
.lang-divider { width: 0.5px; background: var(--border-med); }

/* NAV */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 3rem;
}
.nav-left { display: flex; align-items: center; gap: 16px; }
.logo {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }
.nav-link { font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.nav-link:hover { color: var(--text-primary); }

/* TAG */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

/* HERO */
h1 { font-size: 38px; font-weight: 500; line-height: 1.2; margin-bottom: 1rem; color: var(--text-primary); }
h1 span { color: var(--accent-strong); }
.hero-sub { font-size: 17px; color: var(--text-secondary); line-height: 1.7; max-width: 620px; margin-bottom: 2rem; }

/* BUTTONS */
.cta-row { display: flex; gap: 12px; align-items: center; margin-bottom: 3.5rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent-mid);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 0.5px solid var(--border-med);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s, color 0.15s;
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-secondary); }

.divider { border: none; border-top: 0.5px solid var(--border); margin: 3rem 0; }

/* STATS */
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 3.5rem; }
.stat-card { background: var(--bg-secondary); border-radius: var(--radius-md); padding: 1.25rem 1rem; }
.stat-num { font-size: 30px; font-weight: 500; color: var(--accent-mid); margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* SECTIONS */
.section-label { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
h2 { font-size: 24px; font-weight: 500; margin-bottom: 0.75rem; color: var(--text-primary); }
.section-sub { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 2rem; max-width: 600px; }

/* PROBLEM CARDS */
.problem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 2rem; }
.problem-card { background: var(--bg); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.problem-icon { width: 32px; height: 32px; border-radius: 6px; background: var(--accent-light); display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.problem-card h3 { font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text-primary); }
.problem-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* VISUAL BLOCK */
.visual-block { margin: 0 0 3.5rem; border: 0.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); }
.visual-caption-top { font-size: 12px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.04em; padding: 0.75rem 1.25rem 0.5rem; border-bottom: 0.5px solid var(--border); }
.visual-block svg { display: block; padding: 0.5rem 0.25rem 0.25rem; }

/* HOW IT WORKS */
.how-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 3.5rem; }
.how-item { display: flex; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 0.5px solid var(--border); }
.how-item:first-child { padding-top: 0; }
.how-num { font-size: 22px; font-weight: 500; color: var(--accent-lighter); min-width: 28px; line-height: 1.3; }
.how-content h3 { font-size: 15px; font-weight: 500; margin-bottom: 5px; color: var(--text-primary); }
.how-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* SEGMENTS (eshop, triagequant) */
.segments-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 3.5rem; }
.segment-card { background: var(--bg); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.segment-label { font-size: 11px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-mid); margin-bottom: 0.5rem; }
.segment-card h3 { font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text-primary); }
.segment-card p { font-size: 12px; color: var(--text-secondary); line-height: 1.55; }
.segment-example { font-size: 11px; font-style: italic; color: var(--accent-strong); margin-top: 6px; background: var(--accent-light); padding: 4px 8px; border-radius: 4px; display: inline-block; }

/* ROLES (logistics, nt-matchmaking, retail, sla) */
.roles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 3.5rem; }
.role-card { background: var(--bg); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.role-label { font-size: 11px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-mid); margin-bottom: 0.5rem; }
.role-card h3 { font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text-primary); }
.role-card p { font-size: 12px; color: var(--text-secondary); line-height: 1.55; }

/* QUOTE */
.quote-block { background: var(--bg-secondary); border-left: 3px solid var(--accent-mid); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 1.25rem 1.5rem; margin-bottom: 3.5rem; }
.quote-text { font-size: 16px; color: var(--text-primary); line-height: 1.7; font-style: italic; margin-bottom: 0.5rem; }
.quote-src { font-size: 12px; color: var(--text-muted); }

/* CTA BLOCK */
.cta-block { background: var(--accent-light); border-radius: var(--radius-lg); padding: 2.5rem 2rem; text-align: center; }
.cta-block h2 { font-size: 22px; font-weight: 500; margin-bottom: 0.75rem; color: var(--accent-dark); }
.cta-block p { font-size: 15px; color: var(--accent-mid); margin-bottom: 1.5rem; line-height: 1.6; }

/* FOOTER */
footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 0.5px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
footer p, footer a { font-size: 12px; color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text-primary); }

/* LANGUAGE VISIBILITY — driven by html[data-page-lang] set in <head> before render */
[data-lang] { display: none; }
html[data-page-lang="lt"] [data-lang="lt"],
html:not([data-page-lang]) [data-lang="lt"] { display: block; }
html[data-page-lang="en"] [data-lang="en"] { display: block; }
.inline-lang { display: none; }
html[data-page-lang="lt"] .inline-lang[data-lang="lt"],
html:not([data-page-lang]) .inline-lang[data-lang="lt"] { display: inline; }
html[data-page-lang="en"] .inline-lang[data-lang="en"] { display: inline; }

/* RESPONSIVE */
@media (max-width: 600px) {
  h1 { font-size: 26px; }
  .stat-row, .segments-grid, .roles-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: flex-start; }
  .page { padding: 1.5rem 1rem 4rem; }
}
