:root {
  --bg: #06070a;
  --bg-soft: #0d1016;
  --bg-band: #111620;
  --panel: #151a24;
  --panel-strong: #1b2230;
  --text: #f7f7f2;
  --muted: #c6cbd4;
  --subtle: #8e96a5;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --accent: #f0146c;
  --accent-2: #2ba4ff;
  --gold: #d9a340;
  --radius: 8px;
  --max: 1180px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.2;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 7, 10, 0.1), rgba(6, 7, 10, 0.74));
  z-index: -1;
}

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

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

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.section-pad {
  padding: 96px 0;
}

.hidden {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 7, 10, 0.88);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

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

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

.primary-nav {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: 24px;
}

.primary-nav a,
.header-cta,
.nav-toggle {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.primary-nav a {
  padding: 26px 0;
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

.header-cta {
  justify-self: end;
  border: 1px solid rgba(240, 20, 108, 0.7);
  border-radius: var(--radius);
  padding: 11px 16px;
  background: rgba(240, 20, 108, 0.1);
}

.header-cta:hover {
  background: rgba(240, 20, 108, 0.18);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 7, 10, 0.98), rgba(6, 7, 10, 0.78) 46%, rgba(6, 7, 10, 0.4)),
    linear-gradient(180deg, rgba(6, 7, 10, 0.08), rgba(6, 7, 10, 0.96)),
    url("/assets/img/chakhead-logo-wide.webp") right 7% center / min(54rem, 64vw) auto no-repeat,
    #06070a;
}

.home-hero .hero-backdrop {
  background:
    linear-gradient(90deg, rgba(6, 7, 10, 0.98), rgba(6, 7, 10, 0.72) 46%, rgba(6, 7, 10, 0.36)),
    linear-gradient(180deg, rgba(6, 7, 10, 0.05), rgba(6, 7, 10, 0.98)),
    url("/assets/img/og-image.jpg") center / cover no-repeat,
    #06070a;
}

.hero-inner {
  padding: 150px 0 86px;
}

.page-hero {
  min-height: 520px;
}

.page-hero .hero-inner {
  max-width: 860px;
  margin: 0;
  padding: 130px 0 74px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 850;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1 {
  max-width: 960px;
  font-size: 5rem;
  line-height: 0.96;
  font-weight: 900;
  text-transform: uppercase;
}

.page-hero h1 {
  font-size: 4rem;
}

.hero-text {
  max-width: 720px;
  color: #e1e4ea;
  margin-top: 24px;
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  border-color: rgba(240, 20, 108, 0.7);
  background: #c70d59;
}

.btn-primary:hover {
  background: #e41268;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
}

.btn-small {
  min-height: 42px;
  padding-inline: 14px;
}

.identity-band {
  border-block: 1px solid var(--line);
  background: rgba(15, 18, 26, 0.86);
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.identity-grid article {
  min-height: 118px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.identity-grid article:last-child {
  border-right: 0;
}

.identity-grid span,
.metric-card span,
.service-body span,
.lane-card span,
.solution-card span,
.contact-card span,
.contact-card small,
.footer-grid p {
  display: block;
  color: var(--subtle);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.identity-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.18rem;
}

.split-layout,
.contact-grid,
.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: start;
}

.section-copy h2,
.section-heading h2,
.policy-panel h2 {
  font-size: 3rem;
  line-height: 1.04;
  font-weight: 900;
}

.section-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.rich-copy p,
.policy-panel p {
  color: var(--muted);
  font-size: 1.08rem;
}

.rich-copy p + p {
  margin-top: 18px;
}

.muted-section {
  border-block: 1px solid var(--line);
  background: rgba(17, 22, 32, 0.82);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 34px;
}

.section-heading.with-rule {
  max-width: none;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

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

.lane-card,
.metric-card,
.solution-card,
.notice-card,
.contact-form,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 26, 36, 0.82);
  box-shadow: var(--shadow);
}

.lane-card {
  min-height: 360px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(21, 26, 36, 0.76), rgba(12, 15, 22, 0.95)),
    url("/assets/img/chakhead-brand-icon.webp") right -80px top -70px / 260px auto no-repeat;
}

.lane-card.accent-blue {
  background:
    linear-gradient(180deg, rgba(21, 26, 36, 0.76), rgba(12, 15, 22, 0.95)),
    url("/assets/img/chakhead-logo-square.webp") right -70px top -80px / 260px auto no-repeat;
}

.lane-card h3 {
  margin-top: 12px;
  font-size: 2rem;
  line-height: 1.1;
}

.lane-card p,
.solution-card p,
.notice-card p,
.service-body p {
  color: var(--muted);
}

.lane-card p {
  margin-top: 16px;
}

.text-link {
  margin-top: 24px;
  color: #fff;
  font-weight: 850;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.text-link::after {
  content: " ->";
  color: var(--accent);
}

.service-stack {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.service-row {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(21, 26, 36, 0.84);
  box-shadow: var(--shadow);
}

.service-row:nth-child(even) {
  grid-template-columns: 1.22fr 0.78fr;
}

.service-row:nth-child(even) .service-image {
  order: 2;
}

.service-image {
  min-height: 320px;
  background: #050608;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-body h3 {
  margin-top: 10px;
  font-size: 2.9rem;
  line-height: 1;
}

.service-kicker {
  margin-top: 8px;
  color: #fff !important;
  font-weight: 850;
}

.service-body p:not(.service-kicker) {
  margin: 18px 0 26px;
  font-size: 1rem;
}

.policy-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: center;
  border: 1px solid rgba(240, 20, 108, 0.28);
  border-radius: var(--radius);
  background: rgba(21, 26, 36, 0.86);
  padding: 34px;
}

.contact-section {
  background: linear-gradient(180deg, rgba(6, 7, 10, 0.2), rgba(6, 7, 10, 0.95)), var(--bg-soft);
}

.contact-card {
  box-shadow: none;
  padding: 18px;
  margin-top: 26px;
}

.contact-card a {
  display: block;
  margin: 4px 0;
  font-size: 1.5rem;
  font-weight: 900;
}

.contact-form {
  padding: 28px;
}

.contact-form label {
  display: block;
  color: #f2f4f8;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  gap: 16px;
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  display: block;
  margin-top: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: var(--radius);
  padding: 13px 14px;
  outline: none;
}

.contact-form select option {
  color: #06070a;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(240, 20, 108, 0.78);
  box-shadow: 0 0 0 3px rgba(240, 20, 108, 0.14);
}

.checkline {
  display: grid !important;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  text-transform: none !important;
  color: var(--muted) !important;
  font-size: 0.84rem !important;
  line-height: 1.45;
  font-weight: 650 !important;
}

.checkline input {
  width: 18px !important;
  margin: 3px 0 0 !important;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.metric-grid,
.solution-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.metric-card,
.solution-card,
.notice-card {
  padding: 24px;
  box-shadow: none;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
}

.metric-card p,
.solution-card p,
.notice-card p {
  margin-top: 12px;
}

.solution-card h3,
.notice-card h3 {
  margin-top: 10px;
  font-size: 1.45rem;
  line-height: 1.16;
}

.solution-card ul,
.notice-card ul,
.rich-copy ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.solution-card li + li,
.notice-card li + li,
.rich-copy li + li {
  margin-top: 8px;
}

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  cursor: pointer;
}

.filter.active,
.filter:hover {
  color: #fff;
  border-color: rgba(240, 20, 108, 0.68);
  background: rgba(240, 20, 108, 0.12);
}

.solution-card.is-hidden {
  display: none;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #030406;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

.footer-brand img {
  width: 230px;
  height: auto;
}

.site-footer nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.site-footer nav a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.site-footer nav a:hover {
  color: #fff;
}

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

@media (max-width: 1080px) {
  .primary-nav {
    gap: 16px;
  }

  h1 {
    font-size: 4.1rem;
  }

  .page-hero h1 {
    font-size: 3.35rem;
  }

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

@media (max-width: 900px) {
  .nav-shell {
    grid-template-columns: auto auto;
  }

  .brand img {
    width: 206px;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 12px;
    cursor: pointer;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(6, 7, 10, 0.98);
    box-shadow: var(--shadow);
  }

  .primary-nav.open {
    display: grid;
    gap: 4px;
  }

  .primary-nav a {
    padding: 12px;
    border-bottom: 0;
  }

  .hero,
  .page-hero {
    min-height: auto;
  }

  .hero-backdrop,
  .home-hero .hero-backdrop {
    background:
      linear-gradient(180deg, rgba(6, 7, 10, 0.62), rgba(6, 7, 10, 0.98)),
      url("/assets/img/og-image.jpg") center / cover no-repeat,
      #06070a;
  }

  .hero-inner,
  .page-hero .hero-inner {
    padding: 118px 0 64px;
  }

  .identity-grid,
  .split-layout,
  .contact-grid,
  .two-column,
  .lane-grid,
  .policy-panel,
  .service-row,
  .service-row:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .identity-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .identity-grid article:last-child {
    border-bottom: 0;
  }

  .service-row:nth-child(even) .service-image {
    order: 0;
  }

  .service-image {
    min-height: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .section-pad {
    padding: 70px 0;
  }

  h1,
  .page-hero h1 {
    font-size: 3rem;
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .section-copy h2,
  .section-heading h2,
  .policy-panel h2 {
    font-size: 2.2rem;
  }

  .service-body h3 {
    font-size: 2.25rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .form-row.two,
  .metric-grid,
  .solution-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .filter-row {
    flex-wrap: wrap;
  }
}
