:root {
  --brand: #5952B2;
  --brand-dark: #3F3A8C;
  --brand-light: #7A73D1;
  --brand-soft: #EFEDFB;
  --ink: #1B1B1F;
  --ink-2: #4A4A55;
  --muted: #6E6E78;
  --line: #E5E5EA;
  --bg: #FFFFFF;
  --bg-alt: #F7F7FB;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 6px 24px rgba(31,28,79,.08);
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Segoe, Tahoma, Geneva, Verdana, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 8px 12px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--ink); text-decoration: none;
}
.brand-text { font-size: 1.05rem; letter-spacing: .1px; }
.brand--footer { color: #fff; }
.brand--footer .brand-text { color: #fff; }

.primary-nav { display: flex; align-items: center; }
.nav-list {
  display: flex; gap: 8px; list-style: none; margin: 0; padding: 0;
}
.nav-list a {
  display: inline-block; padding: 10px 14px; border-radius: 6px;
  color: var(--ink-2); font-weight: 500;
}
.nav-list a:hover { background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }
.nav-cta {
  background: var(--brand); color: #fff !important;
}
.nav-cta:hover { background: var(--brand-dark) !important; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-bars {
  display: block; width: 22px; height: 2px; background: var(--ink);
  position: relative;
}
.nav-bars::before, .nav-bars::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink);
}
.nav-bars::before { top: -7px; }
.nav-bars::after { top: 7px; }

/* HERO */
.hero {
  background: linear-gradient(135deg, #ffffff 0%, var(--brand-soft) 60%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px;
  align-items: center; padding: 80px 0;
}
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600;
  color: var(--brand-dark); background: #fff; border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1; margin: 0 0 16px; letter-spacing: -.02em;
}
.hero p.lead {
  font-size: 1.12rem; color: var(--ink-2); margin: 0 0 28px; max-width: 56ch;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; font-weight: 600; border-radius: 6px;
  border: 1px solid transparent; cursor: pointer; transition: .15s ease;
  font-size: 1rem;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-dark); text-decoration: none; }

.hero-visual {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 18px;
}
.hero-visual .mockup {
  border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
}
.mockup-header {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px; background: var(--bg-alt); border-bottom: 1px solid var(--line);
}
.mockup-header span { width: 10px; height: 10px; border-radius: 50%; background: #d6d6dd; display: inline-block; }
.mockup-body { padding: 18px; display: grid; gap: 10px; }
.mockup-row { height: 10px; background: var(--brand-soft); border-radius: 4px; }
.mockup-row.short { width: 50%; }
.mockup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.mockup-card { height: 64px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%); border-radius: 6px; }
.mockup-card:nth-child(2) { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); }
.mockup-card:nth-child(3) { background: linear-gradient(135deg, var(--brand-light), #c4bff0); }

/* SECTIONS */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -.01em; margin: 0 0 12px;
}
.section-head p { color: var(--ink-2); margin: 0; font-size: 1.05rem; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: .2s ease; box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--brand-light); }
.card .icon {
  width: 44px; height: 44px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-dark); margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--ink-2); }

/* TESTIMONIALS */
.testimonial {
  background: #fff; border: 1px solid var(--line);
  padding: 28px; border-radius: var(--radius);
}
.testimonial blockquote {
  margin: 0 0 16px; font-size: 1.05rem; color: var(--ink);
  line-height: 1.6;
}
.testimonial cite {
  font-style: normal; color: var(--muted); font-size: .92rem;
}

/* STATS */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; padding: 40px; background: var(--brand);
  border-radius: 12px; color: #fff;
}
.stat { text-align: center; }
.stat .num { font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; }
.stat .label { color: rgba(255,255,255,.85); font-size: .95rem; }

/* CAPABILITIES - split layout */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.split ul { padding-left: 20px; color: var(--ink-2); }
.split ul li { margin-bottom: 10px; }
.split-visual {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  border-radius: 12px; padding: 36px; color: #fff; min-height: 300px;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: var(--shadow-md);
}
.split-visual h3 { margin: 0 0 12px; font-size: 1.4rem; }
.split-visual ul { color: rgba(255,255,255,.95); }

/* FORMS */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .92rem; color: var(--ink); }
input, select, textarea {
  font-family: inherit; font-size: 1rem;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(89,82,178,.18);
}
textarea { min-height: 140px; resize: vertical; }

.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 36px; box-shadow: var(--shadow-sm);
}

/* OFFICES */
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.office {
  background: #fff; border: 1px solid var(--line); padding: 22px; border-radius: var(--radius);
}
.office h4 { margin: 0 0 6px; color: var(--brand-dark); }
.office p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* PAGE HEADER */
.page-head {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: #fff; padding: 80px 0 60px;
}
.page-head h1 { margin: 0 0 12px; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.page-head p { margin: 0; max-width: 680px; color: rgba(255,255,255,.9); font-size: 1.1rem; }

/* TIERS */
.tier {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 32px; display: flex; flex-direction: column;
}
.tier.featured { border-color: var(--brand); box-shadow: var(--shadow-md); position: relative; }
.tier.featured::before {
  content: "Most popular"; position: absolute; top: -12px; left: 24px;
  background: var(--brand); color: #fff; font-size: .78rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.tier h3 { margin: 0 0 6px; }
.tier .price { font-size: 1.6rem; font-weight: 700; color: var(--brand-dark); margin: 8px 0 16px; }
.tier ul { padding-left: 18px; margin: 0 0 24px; color: var(--ink-2); flex-grow: 1; }
.tier ul li { margin-bottom: 8px; }

/* FOOTER */
.site-footer {
  background: #1B1B22; color: #cfcfd6; margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding: 64px 24px 40px;
}
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #cfcfd6; }
.footer-links a:hover { color: #fff; }
.muted { color: #9a9aa6; font-size: .95rem; }
.newsletter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.newsletter input {
  flex: 1 1 160px; background: #2A2A33; border-color: #3A3A45; color: #fff;
}
.newsletter button {
  background: var(--brand); color: #fff; border: 0; padding: 11px 16px; border-radius: 6px;
  font-weight: 600; cursor: pointer;
}
.newsletter button:hover { background: var(--brand-light); }
.newsletter-msg { width: 100%; font-size: .9rem; color: #9ad59a; margin: 6px 0 0; }
.footer-bottom {
  border-top: 1px solid #2A2A33; padding: 18px 0; font-size: .9rem; color: #9a9aa6;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0; }
  .grid-3, .grid-4, .offices { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    display: none; position: absolute; top: 68px; right: 0; left: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 12px 16px;
  }
  .nav-list.open { display: flex; }
  .grid-3, .grid-4, .grid-2, .offices, .form-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats { grid-template-columns: 1fr 1fr; padding: 28px; }
  .section { padding: 56px 0; }
}