:root {
  --orange: #f05a12;
  --orange-dark: #d94806;
  --ink: #101820;
  --muted: #536170;
  --line: #e7ecf1;
  --panel: #ffffff;
  --soft: #f6f8fb;
  --night: #172331;
  --blue: #dfeaf4;
  --green: #0f8f74;
  --shadow: 0 18px 48px rgba(16, 24, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(231, 236, 241, 0.9);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(1450px, calc(100% - 48px));
  min-height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 200px;
}

.brand img {
  width: 185px;
  height: auto;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  color: var(--ink);
}

.nav-toggle svg,
.btn svg,
.icon svg,
.service-icon svg,
.metric svg,
.contact-method svg {
  width: 22px;
  height: 22px;
}

.primary-nav {
  flex: 1;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-nav a,
.dropdown-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: #182230;
  border-bottom: 3px solid transparent;
  background: transparent;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  cursor: pointer;
  font-family: inherit;
}

.primary-nav a:hover,
.dropdown-button:hover,
.primary-nav a.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 270px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.18s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.expanded .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  font-weight: 650;
}

.dropdown-menu a:hover {
  background: #fff3ed;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  box-shadow: 0 10px 24px rgba(240, 90, 18, 0.28);
}

.btn-secondary {
  color: var(--ink);
  background: #fff;
  border-color: #aeb8c3;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.98) 35%, rgba(255,255,255,0.76) 54%, rgba(255,255,255,0.18) 100%),
    linear-gradient(135deg, #ffffff 0%, #edf4fa 58%, #dce9f3 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/hero-reference-panel.png") right center / clamp(760px, 62vw, 1050px) auto no-repeat;
  opacity: 0.98;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 34%, rgba(0,0,0,0.5) 46%, #000 58%, #000 100%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 34%, rgba(0,0,0,0.5) 46%, #000 58%, #000 100%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 118px;
  background: linear-gradient(0deg, rgba(255,255,255,0.84), rgba(255,255,255,0));
  pointer-events: none;
}

.hero-inner,
.section-inner,
.footer-inner {
  width: min(1450px, calc(100% - 48px));
  margin: 0 auto;
}

.hero-inner {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 680px) 1fr;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 48px 0 82px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 900;
}

.accent {
  color: var(--orange);
}

.hero-copy {
  max-width: 650px;
  color: #293645;
  font-size: clamp(18px, 2vw, 23px);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 16px;
  margin: 28px 0 28px;
}

.trust-item {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #1f2b38;
  font-size: 13px;
  line-height: 1.35;
}

.icon {
  color: var(--orange);
  flex: 0 0 auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.services-strip {
  position: relative;
  z-index: 2;
  margin-top: -54px;
}

.service-grid {
  width: min(1450px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}

.service-card,
.content-card,
.case-card,
.role-card,
.insight-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(16, 24, 32, 0.08);
}

.service-card {
  min-height: 180px;
  padding: 22px 18px;
  text-align: center;
}

.service-icon {
  margin: 0 auto 10px;
  color: var(--orange);
}

.service-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.2;
}

.service-card p {
  min-height: 45px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  color: var(--orange);
  font-weight: 850;
}

.metrics {
  margin: 24px auto 0;
  width: min(1450px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(135deg, #172331, #202b3a);
  color: #fff;
  border-radius: 6px;
  overflow: hidden;
}

.metric {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px;
  border-right: 1px solid rgba(255,255,255,0.25);
}

.metric:last-child {
  border-right: 0;
}

.metric svg {
  color: var(--orange);
  width: 42px;
  height: 42px;
}

.metric strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.metric span {
  display: block;
  color: #d8e0e8;
  font-size: 13px;
}

section {
  padding: 70px 0;
}

.section-soft {
  background: var(--soft);
}

.section-dark {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(23,35,49,0.96), rgba(23,35,49,0.9)),
    url("../images/reference-layout.png") center / cover no-repeat;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 30px;
}

.section-head h2,
.intro h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 900;
}

.section-head p,
.intro p {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
}

.section-dark .section-head p,
.section-dark .intro p {
  color: #d8e0e8;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: center;
}

.content-card {
  padding: 28px;
}

.feature-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.feature-list svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--orange);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tile {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
}

.tile h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.25;
}

.tile p {
  color: var(--muted);
}

.tile .tag,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 16px;
  color: var(--orange);
  background: #fff3ed;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.page-hero {
  background: linear-gradient(135deg, #f9fbfd 0%, #eaf1f8 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero .hero-inner {
  min-height: 360px;
  grid-template-columns: 1fr 0.7fr;
  padding: 48px 0;
}

.page-hero h1 {
  font-size: clamp(42px, 5vw, 64px);
}

.page-hero aside {
  justify-self: end;
  width: min(420px, 100%);
  padding: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--night), #27384a);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.breadcrumb {
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 850;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 38px;
}

.sidebar {
  position: sticky;
  top: 118px;
  align-self: start;
  display: grid;
  gap: 18px;
}

.sidebar-box {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.sidebar-box h3 {
  margin-bottom: 12px;
  font-size: 19px;
}

.sidebar-box ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: process;
}

.process-step {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  counter-increment: process;
}

.process-step::before {
  content: counter(process, decimal-leading-zero);
  display: block;
  margin-bottom: 22px;
  color: var(--orange);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.case-grid,
.role-grid,
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case-card,
.role-card,
.insight-card {
  padding: 26px;
}

.case-card h3,
.role-card h3,
.insight-card h3 {
  font-size: 22px;
  line-height: 1.25;
}

.case-card p,
.role-card p,
.insight-card p,
.sidebar-box p {
  color: var(--muted);
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 26px;
}

.contact-methods {
  display: grid;
  gap: 16px;
}

.contact-method {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.contact-method svg {
  color: var(--orange);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 850;
  color: #263342;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cfd7df;
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.full {
  grid-column: 1 / -1;
}

.site-footer {
  color: #d8e0e8;
  background: #111a24;
}

.footer-inner {
  padding: 54px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
}

.site-footer ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  color: #aab6c2;
  font-size: 13px;
}

@media (max-width: 1180px) {
  .nav-shell {
    min-height: 82px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .primary-nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    padding: 16px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav.open {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    justify-content: stretch;
  }

  .primary-nav a,
  .dropdown-button {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    display: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    margin-bottom: 8px;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu,
  .dropdown.expanded .dropdown-menu {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .service-grid,
  .metrics,
  .tile-grid,
  .case-grid,
  .role-grid,
  .insight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics .metric {
    border-bottom: 1px solid rgba(255,255,255,0.18);
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1080px) {
  .nav-shell {
    min-height: 82px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .primary-nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    padding: 16px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav.open {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    justify-content: stretch;
  }

  .primary-nav a,
  .dropdown-button {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    display: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    margin-bottom: 8px;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu,
  .dropdown.expanded .dropdown-menu {
    display: block;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 820px) {
  .nav-shell,
  .hero-inner,
  .section-inner,
  .footer-inner,
  .service-grid,
  .metrics {
    width: min(100% - 28px, 1450px);
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: min(185px, 58vw);
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(255,255,255,0.92) 44%, rgba(255,255,255,0.7) 100%),
      linear-gradient(135deg, #ffffff 0%, #edf4fa 58%, #dce9f3 100%);
  }

  .hero::before {
    background-image: url("../images/hero-reference-panel.png");
    background-size: 560px auto;
    background-position: center 60%;
    opacity: 0.64;
  }

  .hero-inner,
  .page-hero .hero-inner,
  .split,
  .page-layout,
  .contact-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: 590px;
    padding-top: 38px;
  }

  .trust-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-strip {
    margin-top: -42px;
  }

  .service-grid,
  .metrics,
  .tile-grid,
  .case-grid,
  .role-grid,
  .insight-grid,
  .process,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    justify-content: flex-start;
    border-right: 0;
  }

  section {
    padding: 52px 0;
  }

  .section-head {
    display: grid;
  }

  .page-hero aside {
    justify-self: stretch;
  }

  .sidebar {
    position: static;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 520px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(255,255,255,0.94) 48%, rgba(255,255,255,0.72) 100%),
      linear-gradient(135deg, #ffffff 0%, #edf4fa 58%, #dce9f3 100%);
  }

  .hero::before {
    background-image: url("../images/hero-reference-panel.png");
    background-size: 480px auto;
    background-position: center 60%;
    opacity: 0.58;
  }

  h1 {
    font-size: 42px;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .brand img {
    width: min(170px, 64vw);
  }
}
