:root {
  --ink: #16202a;
  --muted: #5a6877;
  --line: #d9e1e8;
  --paper: #f7f9fb;
  --white: #ffffff;
  --teal: #0c8b8f;
  --green: #36a269;
  --blue: #2f65b8;
  --coral: #e46e54;
  --gold: #d7a23a;
  --shadow: 0 18px 45px rgba(22, 32, 42, 0.12);
  --deep-shadow: 0 28px 70px rgba(22, 32, 42, 0.18);
}

body[data-theme="dark"] {
  --ink: #edf3f7;
  --muted: #a9b6c3;
  --line: #31404f;
  --paper: #111820;
  --white: #17212b;
  --teal: #37c7c8;
  --green: #55c783;
  --blue: #76a7ff;
  --coral: #ff9278;
  --gold: #f1c96b;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
  --deep-shadow: 0 28px 70px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--paper);
  line-height: 1.55;
}

body[data-theme="dark"] img {
  filter: saturate(0.92) brightness(0.9);
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 225, 232, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

body[data-theme="dark"] .topbar {
  background: rgba(17, 24, 32, 0.92);
}

.nav {
  max-width: 1180px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue) 68%, var(--gold));
  box-shadow: 0 10px 24px rgba(12, 139, 143, 0.24);
}

.nav-links {
  order: 2;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-actions {
  order: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: #edf3f7;
}

body[data-theme="dark"] .nav-links a:hover,
body[data-theme="dark"] .nav-links a.active {
  background: #22303d;
}

.theme-toggle {
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

.theme-toggle::before {
  content: "☾";
  font-size: 20px;
  line-height: 1;
}

body[data-theme="dark"] .theme-toggle::before {
  content: "☀";
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.section {
  padding: 72px 22px;
}

.section.tight {
  padding-top: 42px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.hero {
  padding: 54px 22px 72px;
  background:
    radial-gradient(circle at 85% 12%, rgba(54, 162, 105, 0.18), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #eef5f7 100%);
}

body[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 85% 12%, rgba(55, 199, 200, 0.16), transparent 28%),
    linear-gradient(180deg, #121b24 0%, #0f151d 100%);
}

.hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 46px;
  align-items: center;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(40px, 6vw, 74px);
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
}

h3 {
  font-size: 23px;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(22, 32, 42, 0.14);
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.btn.secondary {
  border-color: var(--line);
  background: var(--white);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--deep-shadow);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 12;
  object-fit: cover;
}

.hero-visual::after,
.image-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, rgba(5, 14, 22, 0.5));
}

.photo-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(12, 20, 28, 0.62);
  backdrop-filter: blur(12px);
}

.photo-caption strong {
  display: block;
  font-size: 18px;
}

.photo-caption span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

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

.metric span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(12, 139, 143, 0.34);
  box-shadow: var(--shadow);
}

.card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.icon {
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--teal);
  font-weight: 900;
}

.icon.green {
  background: var(--green);
}

.icon.blue {
  background: var(--blue);
}

.icon.coral {
  background: var(--coral);
}

.band {
  background: var(--ink);
  color: var(--white);
}

.band .section-head p,
.band .card p,
.band .muted {
  color: #c8d3dc;
}

.band .card {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 34px;
  align-items: start;
}

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

.list li {
  padding: 14px 16px;
  border-left: 4px solid var(--teal);
  background: var(--white);
}

.process {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.step {
  position: relative;
  padding: 22px 22px 22px 68px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 22px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  background: #eef3f6;
  font-size: 13px;
  font-weight: 700;
}

body[data-theme="dark"] .tag {
  background: #22303d;
}

.image-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--deep-shadow);
}

.image-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-image {
  margin: 24px 0;
}

.visual-split {
  align-items: center;
}

.photo-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-top: 30px;
}

.photo-strip .image-panel img {
  aspect-ratio: 16 / 13;
}

.cta-panel {
  padding: 34px;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(12, 139, 143, 0.94), rgba(47, 101, 184, 0.9)),
    url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1400&q=80") center / cover;
  box-shadow: var(--deep-shadow);
}

.cta-panel p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
}

.quote {
  padding: 30px;
  border-left: 6px solid var(--green);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.quote p {
  margin: 0;
  font-size: 22px;
}

.quote cite {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-style: normal;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 26px;
}

.contact-card a {
  color: var(--teal);
  font-weight: 800;
}

.form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

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

.footer {
  padding: 32px 22px;
  color: #c8d3dc;
  background: #111820;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer a {
  color: var(--white);
}

.page-hero {
  padding: 64px 22px 42px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

body[data-theme="dark"] .page-hero {
  background: #151f29;
}

.page-hero .wrap {
  display: grid;
  gap: 18px;
}

@media (max-width: 920px) {
  .menu-btn {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-links.open {
    display: grid;
  }

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

  .hero {
    padding-top: 36px;
  }

  .grid.three,
  .grid.two,
  .photo-strip,
  .metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 52px 18px;
  }

  .hero,
  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav {
    padding: 0 18px;
  }

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

  .btn {
    width: 100%;
  }
}
