:root {
  --ink: #12161C;
  --muted: #6B7280;
  --paper: #F2F0EB;
  --white: #FBFAF8;
  --line: #E4E2DD;
  --accent: #1F5F5B;
  --accent-soft: #E1F5EE;
  --night: #12161C;
  --lime: #5DCAA5;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
button, input, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: min(calc(100% - 32px), var(--max));
  margin: 16px auto 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  background: rgba(255, 253, 248, .88);
  border: 1px solid rgba(16, 24, 32, .12);
  border-radius: 18px;
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  color: white; background: var(--ink); border-radius: 12px; font-weight: 900; letter-spacing: -.05em;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 2px; }
nav { display: flex; gap: 28px; }
nav a { position: relative; padding: 6px 2px; color: var(--muted); font-size: 14px; text-decoration: none; transition: color .15s ease; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent, #1F5F5B); transition: right .2s ease; }
nav a:hover { color: var(--ink); }
nav a.active { color: var(--ink); font-weight: 600; }
nav a.active::after { right: 0; }
.site-header > .button { justify-self: end; }

.section { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 112px 0; }
.hero { min-height: 760px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { width: 32px; height: 2px; background: var(--accent); }
.eyebrow.light { color: rgba(255,255,255,.7); }
.eyebrow.light span { background: var(--lime); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 1020px; margin: 28px 0 30px; font-size: clamp(44px, 6vw, 84px); line-height: 1.08; letter-spacing: -.045em; font-weight: 800; }
h1 em { padding-right: .06em; }
h1 em { color: var(--accent); font-family: Georgia, serif; font-weight: 400; }
.hero-copy { max-width: 760px; color: var(--muted); font-size: clamp(18px, 2vw, 23px); line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 12px; font-weight: 800; text-decoration: none; cursor: pointer;
}
.button-primary { background: var(--accent); color: white; }
.button-primary:hover { background: #1746dd; }
.button-secondary { background: var(--ink); color: white; }
.button-ghost { border-color: var(--line); background: transparent; }
.button-compact { min-height: 42px; padding: 0 16px; font-size: 13px; }
.trust-line { margin-top: 70px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; color: var(--muted); font-size: 13px; }
.trust-line span::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 900; }

.signal-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--night); color: white; }
.signal-strip > div { min-height: 230px; padding: 38px; border-right: 1px solid rgba(255,255,255,.12); }
.signal-strip b { display: block; color: var(--lime); font-size: 12px; }
.signal-strip span { display: block; margin-top: 46px; font-size: 25px; font-weight: 800; }
.signal-strip p { margin-top: 8px; color: rgba(255,255,255,.58); line-height: 1.55; }

.section-heading { display: grid; grid-template-columns: 1.5fr .7fr; gap: 70px; align-items: end; margin-bottom: 55px; }
.section-heading h2, .control-copy h2, .contact-section h2 { margin: 18px 0 0; font-size: clamp(34px, 4vw, 56px); line-height: 1.08; letter-spacing: -.04em; }
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.7; }
.solution-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 14px; }
.solution-card { min-height: 320px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.solution-card.feature { grid-row: span 2; min-height: 654px; background: var(--accent); color: white; display: flex; flex-direction: column; }
.card-index { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.feature .card-index { color: rgba(255,255,255,.64); }
.solution-card h3 { margin: auto 0 14px; font-size: 28px; letter-spacing: -.035em; }
.solution-card p { color: var(--muted); line-height: 1.7; }
.feature p { color: rgba(255,255,255,.75); }
.solution-card ul { margin: 25px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid rgba(255,255,255,.3); }
.solution-card li { padding: 8px 0; }
.solution-card li::before { content: "→"; margin-right: 10px; color: var(--lime); }

.process-section { width: 100%; max-width: none; padding: 112px max(20px, calc((100% - var(--max))/2)); background: var(--night); color: white; }
.process-section .section-heading > p { color: rgba(255,255,255,.6); }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.2); }
.process-list li { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 25px; padding: 32px 0; border-bottom: 1px solid rgba(255,255,255,.14); counter-increment: process; }
.process-list li::before { content: "0" counter(process); color: var(--lime); font-weight: 800; }
.process-list b { font-size: 22px; }
.process-list span { color: rgba(255,255,255,.62); line-height: 1.6; }

.control-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.control-copy p { margin-top: 24px; color: var(--muted); line-height: 1.7; font-size: 18px; }
.control-panel { padding: 22px; color: white; background: #0b121a; border-radius: 20px; box-shadow: 0 30px 80px rgba(16,24,32,.2); }
.panel-top { display: flex; justify-content: space-between; color: rgba(255,255,255,.55); font-size: 11px; letter-spacing: .08em; }
.status-dot { color: var(--lime); }
.decision, .approval { margin-top: 18px; padding: 25px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; }
.decision small, .approval span { display: block; color: rgba(255,255,255,.55); margin-bottom: 10px; }
.decision strong { display: block; font-size: 23px; }
.decision p { margin: 12px 0 0; color: var(--lime); font-size: 13px; }
.approval b { display: block; margin-bottom: 20px; }
.approval button { width: 100%; padding: 13px; color: white; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; }

.contact-section { width: 100%; max-width: none; padding: 112px max(20px, calc((100% - var(--max))/2)); display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; color: white; background: var(--accent); }
.contact-section p { margin: 26px 0 0; color: rgba(255,255,255,.72); line-height: 1.75; font-size: 17px; }
.contact-section .plain-link { display: inline-block; margin-top: 30px; }
.plain-link { color: white; font-weight: 800; }
#contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
#contact-form label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; }
#contact-form label:nth-child(4) { grid-column: 1 / -1; }
input, textarea { width: 100%; padding: 14px; color: white; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.34); border-radius: 10px; outline: none; }
input:focus, textarea:focus { border-color: white; box-shadow: 0 0 0 3px rgba(255,255,255,.16); }
textarea { resize: vertical; }
#contact-form .button { width: fit-content; color: var(--ink); background: var(--lime); }
.form-status { align-self: center; margin: 0; font-size: 13px; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px max(20px, calc((100% - var(--max))/2)); color: rgba(255,255,255,.58); background: var(--night); font-size: 12px; }
.chat-trigger { position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; color: white; background: var(--ink); box-shadow: 0 12px 34px rgba(16,24,32,.3); cursor: pointer; transition: transform .15s ease, background .15s ease; }
.chat-trigger:hover { transform: scale(1.06); background: var(--accent); }
.chat-trigger svg { width: 26px; height: 26px; }
.chat-message.bot.typing { display: inline-flex; gap: 5px; align-items: center; }
.chat-message.bot.typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.65); animation: typing-bounce 1.2s infinite ease-in-out; }
.chat-message.bot.typing i:nth-child(2) { animation-delay: .18s; }
.chat-message.bot.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-panel { position: fixed; right: 22px; bottom: 92px; z-index: 60; width: min(390px, calc(100vw - 28px)); color: white; background: var(--night); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.32); overflow: hidden; }
.chat-header { display: flex; justify-content: space-between; padding: 17px; border-bottom: 1px solid rgba(255,255,255,.12); }
.chat-header small { display: block; margin-top: 3px; color: rgba(255,255,255,.55); }
.chat-header button { color: white; background: transparent; border: 0; font-size: 25px; cursor: pointer; }
.chat-messages { height: 270px; padding: 16px; overflow: auto; }
.chat-message { max-width: 88%; margin-bottom: 10px; padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,.09); line-height: 1.5; font-size: 13px; }
.chat-message.user { margin-left: auto; color: var(--ink); background: var(--lime); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.chat-form input { min-width: 0; }
.chat-form button { padding: 0 13px; border: 0; border-radius: 9px; color: var(--ink); background: var(--lime); font-weight: 800; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .section { padding: 80px 0; }
  .hero { min-height: 650px; }
  .trust-line, .signal-strip { grid-template-columns: 1fr 1fr; }
  .section-heading, .control-section, .contact-section { grid-template-columns: 1fr; gap: 40px; }
  .solution-grid { grid-template-columns: 1fr 1fr; }
  .solution-card.feature { grid-row: auto; min-height: 450px; grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .site-header { width: calc(100% - 20px); margin-top: 10px; }
  .site-header > .button { display: none; }
  h1 { font-size: 42px; }
  .hero { min-height: 560px; }
  .hero-copy { font-size: 17px; }
  .section-heading h2, .control-copy h2, .contact-section h2 { font-size: 30px; }
  .contact-section { padding: 70px 20px; gap: 46px; }
  .chat-panel { right: 10px; left: 10px; bottom: 88px; width: auto; max-height: 70vh; }
  .chat-messages { max-height: 44vh; }
  .chat-trigger { right: 14px; bottom: 14px; }
  .hero-actions .button { width: 100%; }
  .trust-line, .signal-strip, .solution-grid { grid-template-columns: 1fr; }
  .signal-strip > div { min-height: 180px; }
  .process-list li { grid-template-columns: 45px 1fr; }
  .process-list span { grid-column: 2; }
  #contact-form { grid-template-columns: 1fr; }
  #contact-form label:nth-child(4) { grid-column: auto; }
  footer { flex-direction: column; }
}


/* Norvik Systems — marque */
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 26px; height: 26px; flex: 0 0 auto; color: var(--ink); }
.brand-mark-accent { fill: var(--accent); }
.brand strong { font-weight: 600; letter-spacing: -.02em; }
.brand strong span { font-weight: 400; color: var(--muted); }
