/* KLAR landing — shared styles for all marketing pages */
:root {
  --navy: #0f1a2e;
  --navy-light: #162035;
  --graphite: #1e293b;
  --graphite-light: #253347;
  --white: #ffffff;
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --accent-glow: rgba(59,130,246,0.12);
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --purple: #a855f7;
  --border: rgba(148,163,184,0.12);
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif; color: var(--text); background: var(--navy); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navigation ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(15,26,46,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-size: 20px; font-weight: 800; letter-spacing: 4px; color: var(--white); text-decoration: none; }
.nav-logo:hover { text-decoration: none; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-links a.active { color: var(--accent); }
.nav-login { padding: 6px 18px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; color: var(--text-secondary) !important; transition: all 0.2s; }
.nav-login:hover { border-color: var(--accent); color: var(--accent) !important; }

/* ── Section base ── */
.section { padding: 96px 24px; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-dark { background: var(--navy-light); }
.section h2 { font-size: 32px; font-weight: 700; color: var(--white); margin-bottom: 14px; line-height: 1.3; }
.section .section-sub { font-size: 17px; color: var(--text-secondary); max-width: 640px; margin-bottom: 48px; line-height: 1.7; }
.section-center { text-align: center; }
.section-center .section-sub { margin-left: auto; margin-right: auto; }

/* ── Page header (for sub-pages) ── */
.page-header { padding: 120px 24px 60px; text-align: center; }
.page-header h1 { font-size: 40px; font-weight: 700; color: var(--white); margin-bottom: 16px; line-height: 1.2; letter-spacing: -0.5px; }
.page-header p { font-size: 17px; color: var(--text-secondary); max-width: 640px; margin: 0 auto; line-height: 1.7; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none; transition: all 0.2s; border: none; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 4px 20px var(--accent-glow); }
.btn-outline { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── Cards ── */
.card { background: var(--graphite); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all 0.2s; }
.card:hover { border-color: rgba(59,130,246,0.2); }
.card h3 { font-size: 18px; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ── Icon boxes ── */
.icon-box { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-bottom: 14px; }
.icon-box svg { width: 20px; height: 20px; stroke-width: 2; fill: none; }
.icon-blue { background: var(--accent-glow); }
.icon-blue svg { stroke: var(--accent); }
.icon-green { background: rgba(34,197,94,0.12); }
.icon-green svg { stroke: var(--green); }
.icon-yellow { background: rgba(234,179,8,0.12); }
.icon-yellow svg { stroke: var(--yellow); }
.icon-red { background: rgba(239,68,68,0.12); }
.icon-red svg { stroke: var(--red); }
.icon-purple { background: rgba(168,85,247,0.12); }
.icon-purple svg { stroke: var(--purple); }

/* ── Grid layouts ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── Feature list ── */
.feature-list { list-style: none; }
.feature-list li { font-size: 14px; color: var(--text); padding: 8px 0; display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; }
.feature-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 8px; }

/* ── Diagram / flow ── */
.flow-chain { max-width: 600px; margin: 0 auto; }
.flow-item { background: var(--graphite); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: center; gap: 14px; }
.flow-arrow { text-align: center; padding: 8px 0; color: var(--text-secondary); font-size: 20px; }
.flow-item-accent { border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }

/* ── Code block ── */
.code-block { background: var(--navy); border: 1px solid var(--border); color: #93c5fd; padding: 16px; border-radius: 10px; font-size: 13px; overflow-x: auto; font-family: 'SF Mono', Monaco, Consolas, monospace; line-height: 1.7; }

/* ── Tables ── */
.data-table { width: 100%; border-collapse: collapse; background: var(--graphite); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.data-table th { background: var(--graphite-light); color: var(--text-secondary); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table td { padding: 14px 16px; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }

/* ── Status badges ── */
.badge { display: inline-block; padding: 4px 12px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-blue { background: var(--accent-glow); color: var(--accent); }
.badge-green { background: rgba(34,197,94,0.12); color: var(--green); }
.badge-yellow { background: rgba(234,179,8,0.12); color: var(--yellow); }
.badge-red { background: rgba(239,68,68,0.12); color: var(--red); }
.badge-purple { background: rgba(168,85,247,0.12); color: var(--purple); }

/* ── CTA banner ── */
.cta-banner { background: var(--graphite); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; text-align: center; margin-top: 48px; }
.cta-banner h3 { font-size: 22px; font-weight: 600; color: var(--white); margin-bottom: 12px; }
.cta-banner p { font-size: 15px; color: var(--text-secondary); margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ── Footer ── */
.footer { padding: 32px 24px; text-align: center; font-size: 13px; color: var(--text-secondary); border-top: 1px solid var(--border); background: var(--navy); }
.footer a { color: var(--accent); }
.footer-contact { font-size: 14px; margin-bottom: 10px; }

/* ── Kavenant tooltip ── */
.kavenant-term { border-bottom: 1px dashed var(--text-secondary); cursor: help; position: relative; }
.kavenant-term:hover::after { content: 'Формализованные требования, ограничения, условия и запреты, извлечённые из нормативных и корпоративных документов'; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--graphite-light); color: var(--text); padding: 10px 14px; border-radius: 8px; font-size: 12px; white-space: normal; width: 280px; line-height: 1.5; border: 1px solid var(--border); z-index: 10; margin-bottom: 6px; }

/* ── Scroll animation ── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .nav-links .nav-hide-mobile { display: none; }
}
@media (max-width: 640px) {
  .nav-inner { padding: 0 16px; }
  .nav-links { gap: 16px; }
  .page-header { padding: 80px 16px 40px; }
  .page-header h1 { font-size: 28px; }
  .section { padding: 56px 16px; }
  .section h2 { font-size: 24px; }
  .section .section-sub { font-size: 15px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .btn { min-height: 48px; justify-content: center; }
  .card { padding: 20px; }
  .code-block { font-size: 12px; }
}
