:root {
  --ink: #122131;
  --muted: #5d6b7a;
  --muted-strong: #35475a;
  --navy: #07182b;
  --blue: #0f5d7f;
  --teal: #12a7a2;
  --cyan: #55c7df;
  --green: #5fad68;
  --amber: #f3a536;
  --coral: #e56d55;
  --surface: #ffffff;
  --surface-alt: #f4f7fb;
  --line: #dce5ef;
  --line-dark: rgba(255, 255, 255, 0.18);
  --shadow: 0 18px 45px rgba(13, 31, 52, 0.12);
  --shadow-soft: 0 10px 30px rgba(13, 31, 52, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.wrapper {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(220, 229, 239, 0.85);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(13, 31, 52, 0.09);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--ink);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 93, 127, 0.24);
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--muted-strong);
  font-weight: 650;
  border-radius: 8px;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue);
  background: #edf7fa;
}

.site-nav .nav-cta {
  color: #ffffff;
  background: var(--ink);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: #ffffff;
  background: var(--blue);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-line {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

.hero-section {
  position: relative;
  min-height: calc(88svh - 72px);
  overflow: hidden;
  color: #ffffff;
  background: var(--navy);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 16, 29, 0.98) 0%, rgba(5, 16, 29, 0.88) 38%, rgba(5, 16, 29, 0.36) 70%, rgba(5, 16, 29, 0.18) 100%),
    linear-gradient(180deg, rgba(5, 16, 29, 0.18), rgba(5, 16, 29, 0.82));
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 72px 0 46px;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-section .hero-kicker {
  color: #7be8df;
}

.hero-content h1 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-headline {
  max-width: 720px;
  margin: 0;
  font-size: 3.25rem;
  line-height: 1.03;
  font-weight: 850;
}

.hero-copy {
  max-width: 650px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--navy);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #eafcff;
}

.button-secondary {
  color: #ffffff;
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin: 28px 0 0;
}

.hero-facts div {
  min-height: 72px;
  padding: 12px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-facts dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-facts dd {
  margin: 5px 0 0;
  color: #ffffff;
  font-weight: 800;
}

.section {
  padding: 88px 0;
}

.intro-band {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: center;
}

.intro-grid h2,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2.45rem;
  line-height: 1.12;
}

.intro-grid p:last-child,
.section-heading p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

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

.section-heading h2 {
  margin-bottom: 16px;
}

.section-heading.compact {
  max-width: 760px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.skill-card {
  min-height: 255px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 167, 162, 0.42);
  box-shadow: var(--shadow);
}

.skill-icon {
  width: 58px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
}

.skill-icon-blue {
  background: linear-gradient(135deg, #0f5d7f, #2b8fb4);
}

.skill-icon-teal {
  background: linear-gradient(135deg, #0d7d78, #12a7a2);
}

.skill-icon-green {
  background: linear-gradient(135deg, #357f4a, #5fad68);
}

.skill-icon-amber {
  background: linear-gradient(135deg, #b97311, #f3a536);
}

.skill-icon-coral {
  background: linear-gradient(135deg, #b94d39, #e56d55);
}

.skill-icon-slate {
  background: linear-gradient(135deg, #293849, #596b7d);
}

.skill-card h3,
.service-item h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.25;
}

.skill-card p,
.service-item p,
.why-grid p {
  margin: 0;
  color: var(--muted);
}

.section-muted {
  background:
    linear-gradient(180deg, rgba(244, 247, 251, 0.96), rgba(244, 247, 251, 1)),
    radial-gradient(circle at 12% 12%, rgba(18, 167, 162, 0.12), transparent 30%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}

.section-heading-sticky {
  position: sticky;
  top: 112px;
}

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.service-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(13, 31, 52, 0.06);
}

.service-item > span {
  width: 42px;
  height: 42px;
  position: relative;
  border-radius: 8px;
  background: #e7f7f6;
}

.service-item > span::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 11px;
  width: 15px;
  height: 10px;
  border-left: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: rotate(-45deg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.why-grid article {
  min-height: 190px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.why-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.05rem;
}

.contact-section {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(7, 24, 43, 0.98), rgba(8, 56, 70, 0.98)),
    radial-gradient(circle at 85% 20%, rgba(243, 165, 54, 0.24), transparent 32%);
}

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

.contact-copy {
  padding-top: 10px;
}

.contact-copy h2 {
  color: #ffffff;
  margin-bottom: 20px;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.78);
}

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

.contact-points li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.84);
}

.contact-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(243, 165, 54, 0.15);
}

.contact-form {
  padding: 30px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.22);
}

.form-heading {
  margin-bottom: 22px;
}

.form-heading h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.25;
}

.form-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.field-group {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field-group label {
  color: var(--muted-strong);
  font-weight: 750;
}

.field-group input,
.field-group textarea {
  width: 100%;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field-group input {
  min-height: 50px;
  padding: 0 14px;
}

.field-group textarea {
  min-height: 170px;
  resize: vertical;
  padding: 13px 14px;
}

.field-group input:focus,
.field-group textarea:focus {
  border-color: var(--teal);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(18, 167, 162, 0.14);
}

.field-validation,
.validation-summary {
  color: #b23223;
  font-size: 0.92rem;
  font-weight: 650;
}

.validation-summary ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.form-alert {
  margin-bottom: 18px;
  padding: 13px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.form-alert-success {
  color: #0f5132;
  background: #dff6e7;
  border: 1px solid #a7dfb9;
}

.form-alert-error {
  color: #842029;
  background: #f8d7da;
  border: 1px solid #f1aeb5;
}

.button-form {
  width: 100%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 16px 30px rgba(15, 93, 127, 0.24);
}

.button-form:hover,
.button-form:focus-visible {
  box-shadow: 0 20px 35px rgba(15, 93, 127, 0.3);
}

.button-form:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #06111f;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-inner strong {
  color: #ffffff;
}

.footer-inner a {
  color: #8cebe3;
  font-weight: 750;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1040px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .why-grid article {
    min-height: 160px;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 82px;
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav a {
    min-height: 48px;
  }

  .hero-headline {
    font-size: 2.75rem;
  }

  .intro-grid,
  .services-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-heading-sticky {
    position: static;
  }

  .contact-copy {
    padding-top: 0;
  }
}

@media (max-width: 700px) {
  .wrapper,
  .header-inner {
    width: min(100% - 32px, 1120px);
  }

  .brand-text {
    font-size: 1rem;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-section::after {
    background:
      linear-gradient(90deg, rgba(5, 16, 29, 0.97), rgba(5, 16, 29, 0.78)),
      linear-gradient(180deg, rgba(5, 16, 29, 0.2), rgba(5, 16, 29, 0.86));
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-content {
    padding: 54px 0 42px;
  }

  .hero-content h1 {
    font-size: 1.18rem;
  }

  .hero-headline {
    font-size: 2.18rem;
    line-height: 1.08;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-facts,
  .cards-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    display: none;
  }

  .hero-facts div {
    min-height: auto;
  }

  .section {
    padding: 64px 0;
  }

  .intro-grid {
    gap: 22px;
  }

  .intro-grid h2,
  .section-heading h2,
  .contact-copy h2 {
    font-size: 2rem;
  }

  .skill-card {
    min-height: 0;
  }

  .service-item {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
