:root {
  --navy-950: #0b1d33;
  --navy-900: #0f2948;
  --navy-700: #194376;
  --blue-500: #3994ef;
  --blue-600: #127ae3;
  --green-500: #1fa855;
  --green-600: #178a45;
  --ink: #12263f;
  --muted: #5b6b7f;
  --line: #e2e8ef;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(15, 41, 72, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy-950); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; margin-top: 2rem; }
.small { font-size: .85rem; color: var(--muted); }

.setup-banner {
  background: #fff4cc; color: #6b4b00; text-align: center; padding: 10px 16px;
  font-size: .92rem; border-bottom: 1px solid #f0d878;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .75em 1.25em; border-radius: 999px; font-weight: 650; font-size: .98rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid var(--blue-500); outline-offset: 2px;
}
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 22px rgba(18, 122, 227, .32); }
.btn-primary:hover { background: #0e6bc8; }
.btn-green { background: var(--green-500); color: #fff; }
.btn-green:hover { background: var(--green-600); }
.btn-outline { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn-outline:hover { background: var(--navy-900); color: #fff; }
.btn-ghost { color: var(--navy-900); background: var(--bg-alt); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand img { height: 56px; width: auto; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; }
.nav-links a:hover { color: var(--blue-600); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; }
.nav-cta .btn { padding: .55em 1.05em; font-size: .92rem; }

/* hero */
.hero { padding: 56px 0 40px; background: linear-gradient(180deg, #eef5fd 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--blue-600); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0; }
.proof { margin: 0 0 1.2em; color: var(--navy-700); font-size: .98rem; }
.proof strong { color: var(--navy-950); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .5em; }
.ticks li { padding-left: 1.8em; position: relative; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.1em; height: 1.1em; border-radius: 50%;
  background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* screenshot frames */
.shot { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.shot-bar { display: flex; gap: 6px; padding: 10px 12px; background: #eef2f7; border-bottom: 1px solid var(--line); }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: #c9d3df; }
.shot figcaption { padding: 12px 16px; font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); }

/* band */
.band { background: var(--navy-950); color: #dbe6f3; }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; }
.band-grid strong { display: block; color: #fff; margin-bottom: .2em; }
.band-grid span { font-size: .92rem; color: #b6c6da; }

/* sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); max-width: 40em; font-size: 1.05rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: box-shadow .15s ease, transform .15s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 2rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 2rem; }
.step { background: var(--bg-alt); border-radius: var(--radius); padding: 26px; }
.step p { color: var(--muted); margin: 0; }
.num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue-600); color: #fff; font-weight: 700; margin-bottom: 12px; }

/* demo */
.section-dark { background: var(--navy-900); color: #e6eef8; }
.section-dark h2 { color: #fff; }
.section-dark .section-lead { color: #b6c6da; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: baseline; border-bottom: 1px solid rgba(255, 255, 255, .15); padding-bottom: 12px; }
.contact-list span { width: 84px; color: #9db3cc; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.contact-list a { color: #fff; font-size: 1.15rem; font-weight: 650; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea {
  font: inherit; padding: .65em .8em; border: 1px solid #c9d3df; border-radius: 10px; background: #fff; color: var(--ink);
}
.form .btn { width: 100%; }
.form .btn-ghost-light { color: var(--navy-900); border-color: var(--navy-900); }
.form .btn-ghost-light:hover { background: var(--bg-alt); }
.form-note { margin: 0; min-height: 1.3em; font-size: .9rem; }
.form-note.error { color: #b42318; }
.form-note.ok { color: var(--green-600); }

/* footer */
.footer { background: var(--navy-950); color: #b6c6da; padding: 36px 0; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.footer img { height: 84px; width: auto; background: #fff; border-radius: 10px; padding: 6px; }
.footer p { margin: 0; }
.footer strong { color: #fff; }

/* tablet / phone */
@media (max-width: 980px) {
  .hero-grid, .demo-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards, .shots, .steps { grid-template-columns: 1fr 1fr; }
  .band-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .cards, .shots, .steps, .band-grid { grid-template-columns: 1fr; }
  .nav-inner { gap: 10px; }
  .brand img { height: 46px; }
  .nav-cta .btn { padding: .5em .85em; font-size: .85rem; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}

/* Nerge Pro Suite products */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 2rem; }
.product { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.product p { color: var(--muted); font-size: .95rem; margin: 0 0 .6em; }
.product .product-for { color: var(--blue-600); font-weight: 650; font-size: .9rem; margin-bottom: .5em; }
.product h3 { margin: 12px 0 2px; }
.product .btn { margin-top: auto; align-self: flex-start; }
.product-current { border: 2px solid var(--blue-600); box-shadow: var(--shadow); }
.product-tag { position: absolute; top: -12px; left: 20px; background: var(--blue-600); color: #fff; font-size: .75rem; font-weight: 700; padding: .2em .8em; border-radius: 999px; letter-spacing: .03em; }
.product-icon { width: 48px; height: 48px; border-radius: 12px; background: #e8f1fc; display: grid; place-items: center; }
.product-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--blue-600); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 980px) { .products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .products { grid-template-columns: 1fr; } }
.product-logo { width: 100%; max-width: 210px; height: auto; margin: 6px auto 10px; display: block; }
.product h3 { margin-top: 4px; }

/* language switcher */
.lang { position: relative; }
.lang-btn { gap: .4em; padding: .55em .9em; font-size: .92rem; }
.lang-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px;
  display: grid; gap: 2px;
}
.lang-menu[hidden] { display: none; }
.lang-item {
  font: inherit; text-align: left; padding: .6em .8em; border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.lang-item:hover, .lang-item:focus-visible { background: var(--bg-alt); }
.lang-item[aria-checked="true"] { font-weight: 700; color: var(--blue-600); }
.lang-item[aria-checked="true"]::after { content: "✓"; }
@media (max-width: 640px) {
  .nav-cta { gap: 6px; }
  .nav-cta .btn { padding: .5em .7em; font-size: .82rem; }
  .lang-btn svg { width: 16px; height: 16px; }
}
