:root {
  --green: #a0ce4e;
  --green-dark: #6f9a2a;
  --green-deep: #54770f;
  --blue: #318cc8;
  --blue-dark: #1f6ea3;
  --blue-light: #5fb6e6;
  --ink: #1f2933;
  --body: #3e4c59;
  --muted: #6b7a89;
  --line: #e3e8ee;
  --surface: #f5f8f2;
  --bg: #ffffff;
  --max: 1100px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(31, 41, 51, 0.08);
  --font: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff;
  padding: 8px 12px; border-radius: 6px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { width: 190px; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--ink); font-weight: 700; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue-dark); text-decoration: none; }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--blue); padding-bottom: 2px; }
.nav .btn { padding: 10px 18px; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; display: block; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: var(--green); color: #fff; font-weight: 700; font-size: 0.95rem;
  border: 2px solid var(--green); cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
  text-align: center;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn.outline { background: transparent; color: var(--green-deep); border-color: var(--green); }
.btn.outline:hover { background: var(--green); color: #fff; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--surface); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-block; color: var(--blue-dark); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: .78rem; margin-bottom: 10px;
}

/* Hero */
.hero {
  position: relative; color: #fff; padding: 110px 0 120px; overflow: hidden;
  background: #163049 url("../img/hero.jpg") center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 28, 46, 0.88) 0%, rgba(10, 28, 46, 0.65) 55%, rgba(10, 28, 46, 0.35) 100%);
}
.hero .container { position: relative; }
.hero h1 { color: #fff; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--blue-light); }
.hero p { max-width: 620px; font-size: 1.2rem; color: rgba(255, 255, 255, 0.88); margin-bottom: 32px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero { background: var(--surface); padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 640px; margin: 0; }

/* Stats */
.stats { margin-top: -56px; position: relative; padding: 0 0 72px; }
.stats .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px 26px; text-align: center;
}
.stat .num { font-size: 3.2rem; font-weight: 300; color: var(--ink); line-height: 1; }
.stat .num sup { font-size: 1.4rem; color: var(--blue-dark); font-weight: 700; }
.stat h3 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin: 10px 0 8px; }
.stat p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Quote */
.quote { padding: 56px 0; background: var(--ink); color: #fff; }
.quote blockquote { margin: 0 auto; max-width: 820px; text-align: center; }
.quote blockquote p { font-size: clamp(1.15rem, 2.4vw, 1.55rem); font-weight: 300; line-height: 1.45; color: #fff; margin: 0 0 14px; }
.quote cite { font-style: normal; color: var(--blue-light); font-weight: 700; font-size: .95rem; }

/* Cards / offer */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
section.alt .card { border-color: transparent; box-shadow: var(--shadow); }
.card h3 { color: var(--blue-dark); font-size: 1.45rem; }
.card p { color: var(--muted); }
.checklist { list-style: none; margin: 16px 0 0; padding: 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 9px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/12px no-repeat;
}
.checklist strong { color: var(--ink); }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.industry .icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--surface);
  display: grid; place-items: center; color: var(--blue-dark);
}
.industry .icon svg { width: 30px; height: 30px; }
.industry p { color: var(--muted); }

/* Clients */
.clients { text-align: center; padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients img { margin: 20px auto 0; max-width: 705px; width: 100%; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.member h3 { margin-bottom: 2px; }
.member .role { color: var(--blue-dark); font-weight: 700; font-size: .9rem; margin-bottom: 14px; }
.member p { font-size: .97rem; color: var(--muted); }

/* Feature rows (solutions) */
.feature { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.feature.flip .media { order: -1; }
.feature .media img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 auto; }
.feature .lead { font-size: 1.1rem; color: var(--body); }
.feature h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-dark); margin: 24px 0 8px; }
.feature .btn { margin-top: 24px; }

.counter { text-align: center; padding: 56px 0; background: var(--surface); }
.counter .num { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 300; color: var(--blue-dark); line-height: 1; }
.counter p { color: var(--muted); margin: 8px 0 0; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }

/* CTA band */
.cta-band { background: var(--blue-dark); color: #fff; padding: 56px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 4px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.9); }
.cta-band .btn { background: var(--green); color: #fff; border-color: var(--green); }
.cta-band .btn:hover { background: #fff; color: var(--blue-dark); border-color: #fff; }

/* Contact */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info p { color: var(--muted); }
.contact-info .mail { font-weight: 700; font-size: 1.05rem; }
form.demo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfd6de; border-radius: 8px; font: inherit; color: var(--ink);
  background: #fff;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field textarea { min-height: 130px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-weight: 700; min-height: 1.4em; }
.form-status.ok { color: var(--green-deep); }
.form-status.err { color: #b42318; }

/* Legal prose */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--body); }
.prose ol, .prose ul { padding-left: 1.4em; }
.prose .updated { color: var(--muted); font-size: .95rem; }

/* Footer */
.site-footer { background: var(--ink); color: #aab4bf; padding: 48px 0 28px; font-size: .95rem; }
.site-footer .top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.site-footer .brand-text { color: #fff; font-weight: 700; font-size: 1.2rem; }
.site-footer .brand-text span { color: var(--blue-light); }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: #dde3ea; }
.site-footer a:hover { color: var(--blue-light); }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 32px; padding-top: 20px; font-size: .88rem; }

/* Responsive */
@media (max-width: 900px) {
  .cards, .industries, .team, .stats .grid { grid-template-columns: 1fr 1fr; }
  .feature, .contact { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .media { order: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .container { padding: 0 16px; }
  .cards, .industries, .team, .stats .grid, .row { grid-template-columns: 1fr; }
  .brand img { width: 160px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 76px; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
  .hero { padding: 72px 0 96px; }
  .stats { margin-top: -48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
