:root {
  --ink: #0c2238;
  --ink-strong: #06182b;
  --muted: #60768a;
  --line: #d7e5ee;
  --paper: #ffffff;
  --mist: #eef6fb;
  --deep: #073052;
  --navy: #0b426b;
  --blue: #176f9f;
  --cyan: #35b9df;
  --aqua: #9be2f2;
  --steel: #7fa5ba;
  --section-gradient: linear-gradient(180deg, #f5fbff 0%, #eaf4fa 100%);
  --header-gradient: linear-gradient(90deg, rgba(247, 252, 255, 0.96), rgba(232, 244, 251, 0.93));
  --dark-gradient: linear-gradient(135deg, #06243f 0%, #0a4773 56%, #0d6d92 100%);
  --shadow: 0 18px 50px rgba(7, 48, 82, 0.12);
  --shadow-strong: 0 28px 76px rgba(5, 30, 55, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(53, 185, 223, 0.12), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(11, 66, 107, 0.1), transparent 32%),
    var(--section-gradient);
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

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

a {
  color: inherit;
}

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

button,
select {
  cursor: pointer;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 36px);
  padding: 0 clamp(22px, 4vw, 68px);
  background: var(--header-gradient);
  border-bottom: 1px solid rgba(157, 190, 209, 0.42);
  box-shadow: 0 10px 34px rgba(7, 48, 82, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 18px rgba(7, 48, 82, 0.16));
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: #102a42;
  font-size: clamp(15.5px, 1vw, 18px);
  font-weight: 620;
  line-height: 1.12;
}

.brand small {
  color: #64798b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a,
.lang-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: #19344c;
  font-size: clamp(13px, 0.82vw, 14px);
  font-weight: 610;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a {
  padding: 0 12px;
}

.site-nav a:hover,
.site-nav a.is-active,
.lang-toggle:hover {
  background: rgba(53, 185, 223, 0.08);
  color: #0b426b;
}

.site-nav .nav-cta {
  margin-left: 6px;
  background: linear-gradient(135deg, #0a3659, #126591);
  color: #fff;
  font-weight: 640;
  box-shadow: 0 9px 20px rgba(7, 48, 82, 0.16);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.is-active {
  background: linear-gradient(135deg, #052641, #0c5e8d);
  color: #fff;
}

.lang-toggle {
  flex: 0 0 auto;
  margin-left: 12px;
  min-width: 56px;
  padding: 0 14px;
  border: 1px solid rgba(157, 190, 209, 0.58);
  background: rgba(255, 255, 255, 0.62);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(157, 190, 209, 0.7);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 136px clamp(24px, 5.8vw, 92px) 92px;
  overflow: hidden;
  isolation: isolate;
}

body[data-active-tab="home"] .hero {
  min-height: 92vh;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.hero-image-tabs {
  display: none;
}

body[data-active-tab]:not([data-active-tab="home"]) .hero-image-home {
  display: none;
}

body[data-active-tab]:not([data-active-tab="home"]) .hero-image-tabs {
  display: block;
  object-fit: cover;
  object-position: 62% 58%;
  animation: harborDrift 24s ease-in-out infinite alternate;
}

.hero-overlay {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(4, 24, 43, 0.9), rgba(7, 48, 82, 0.64) 43%, rgba(10, 71, 115, 0.08)),
    linear-gradient(0deg, rgba(238, 246, 251, 0.98), rgba(238, 246, 251, 0) 21%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: min(700px, 54vw);
  color: #fff;
}

body[data-active-tab]:not([data-active-tab="home"]) .hero {
  min-height: clamp(230px, 28vh, 330px);
  padding-top: 92px;
  padding-bottom: 28px;
  background:
    radial-gradient(circle at 50% 45%, rgba(53, 185, 223, 0.16), transparent 40%),
    linear-gradient(90deg, #456b82, #9dbdca 48%, #8fb2c4);
}

body[data-active-tab]:not([data-active-tab="home"]) .hero-content {
  display: none;
}

body[data-active-tab]:not([data-active-tab="home"]) .hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(69, 107, 130, 0.58) 0%, rgba(69, 107, 130, 0) 26%),
    linear-gradient(270deg, rgba(143, 178, 196, 0.58) 0%, rgba(143, 178, 196, 0) 26%);
}

body[data-active-tab]:not([data-active-tab="home"]) .hero-overlay {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(5, 30, 55, 0.34), rgba(8, 55, 88, 0.12) 48%, rgba(8, 60, 100, 0.03)),
    linear-gradient(0deg, rgba(238, 246, 251, 0.68), rgba(238, 246, 251, 0) 13%);
}

body[data-active-tab]:not([data-active-tab="home"]) .section {
  padding: clamp(34px, 4vh, 48px) 0 clamp(30px, 3.6vh, 44px);
}

body[data-active-tab]:not([data-active-tab="home"]) .section-heading.wide {
  margin-bottom: clamp(18px, 2vh, 26px);
}

body[data-active-tab="services"] .why {
  display: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: clamp(12px, 0.82vw, 14px);
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(40px, 4.2vw, 62px);
  line-height: 1.06;
  font-weight: 720;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  color: var(--ink-strong);
  font-size: clamp(27px, 2.35vw, 40px);
  line-height: 1.16;
  font-weight: 680;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink-strong);
  font-size: clamp(18px, 1.18vw, 21px);
  line-height: 1.24;
  font-weight: 650;
}

.hero-copy {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 1.05vw, 19px);
  line-height: 1.58;
  text-wrap: pretty;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--cyan), var(--aqua));
  color: #052238;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.section,
.band,
.stats,
.site-footer {
  width: min(1200px, calc(100% - 44px));
  margin-inline: auto;
}

.band {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(28px, 6vw, 86px);
  padding: clamp(76px, 9vw, 112px) 0 42px;
}

.intro p {
  margin: 42px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 21px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stats article,
.service-card,
.industry-list article,
.why-grid article,
.project-timeline article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 253, 255, 0.9));
  border: 1px solid rgba(185, 211, 225, 0.78);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stats article {
  padding: clamp(20px, 2.2vw, 28px);
}

.stats strong {
  display: block;
  color: var(--deep);
  font-size: clamp(25px, 2.2vw, 32px);
  line-height: 1.05;
}

.stats span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.seo-links a {
  padding: 9px 12px;
  border: 1px solid rgba(185, 211, 225, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: #294c68;
  font-size: 14px;
  font-weight: 560;
  text-decoration: none;
}

.seo-links a:hover {
  color: #0b426b;
  border-color: rgba(53, 185, 223, 0.55);
}

.eeat-note {
  margin-bottom: clamp(74px, 8vw, 112px);
}

.eeat-note p {
  max-width: 980px;
  margin: 0;
  color: #49657c;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.72;
}

.section {
  padding: clamp(82px, 8vw, 116px) 0 clamp(72px, 7vw, 96px);
  scroll-margin-top: 108px;
}

.tab-content[hidden] {
  display: none !important;
}

.section-heading {
  max-width: 640px;
}

.section-heading.wide {
  max-width: 860px;
  margin-bottom: clamp(26px, 3vw, 38px);
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: start;
}

.split-body p {
  color: var(--muted);
  font-size: clamp(18px, 1.35vw, 20px);
}

body[data-active-tab]:not([data-active-tab="home"]) .section-heading {
  max-width: 720px;
}

body[data-active-tab]:not([data-active-tab="home"]) h2 {
  color: #173954;
  font-size: clamp(24px, 2.05vw, 34px);
  font-weight: 760;
  line-height: 1.14;
}

body[data-active-tab="projects"] .section-heading h2,
body[data-active-tab="industries"] .section-heading h2 {
  color: #294c68;
  font-size: clamp(22px, 1.75vw, 30px);
  font-weight: 700;
}

body[data-active-tab]:not([data-active-tab="home"]) h3 {
  color: #183a54;
  font-size: clamp(16px, 1.02vw, 19px);
  font-weight: 620;
  line-height: 1.28;
}

body[data-active-tab]:not([data-active-tab="home"]) .service-card h3,
body[data-active-tab]:not([data-active-tab="home"]) .industry-list h3,
body[data-active-tab]:not([data-active-tab="home"]) .project-timeline h3,
body[data-active-tab]:not([data-active-tab="home"]) .value-grid h3 {
  color: #173a55;
  font-size: clamp(15px, 0.98vw, 18px);
  font-weight: 560;
  letter-spacing: 0;
}

body[data-active-tab]:not([data-active-tab="home"]) .eyebrow {
  margin-bottom: 8px;
  font-size: clamp(12px, 0.85vw, 13px);
}

body[data-active-tab]:not([data-active-tab="home"]) .split-body p {
  margin-bottom: 14px;
  font-size: clamp(16px, 1.08vw, 18px);
  line-height: 1.55;
}

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

body[data-active-tab]:not([data-active-tab="home"]) .value-grid {
  gap: 12px;
  margin-top: 18px;
}

.value-grid article {
  padding: clamp(20px, 2vw, 26px);
  border-left: 4px solid var(--cyan);
  background:
    linear-gradient(180deg, #fff, #f7fbfe);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 12px 30px rgba(7, 48, 82, 0.06);
}

.value-grid p,
.service-card li,
.industry-list p,
.why-grid p,
.project-timeline p,
.contact-panel p {
  color: var(--muted);
  font-size: clamp(16px, 1.15vw, 18px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 360px;
  padding: clamp(22px, 2vw, 28px);
}

body[data-active-tab="services"] .service-card {
  min-height: 300px;
  padding: clamp(18px, 1.6vw, 22px);
}

.card-index {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 900;
}

.service-card ul {
  display: grid;
  gap: 9px;
  padding-left: 18px;
  margin: 0;
}

body[data-active-tab="services"] .card-index {
  margin-bottom: 14px;
}

body[data-active-tab="services"] .service-card ul {
  gap: 6px;
}

.industries {
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(420px, 1.24fr);
  gap: clamp(32px, 5vw, 76px);
}

.industry-list,
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.industry-list article,
.why-grid article {
  padding: clamp(20px, 2vw, 26px);
}

body[data-active-tab="industries"] .industry-list article,
body[data-active-tab="services"] .why-grid article {
  padding: clamp(16px, 1.45vw, 20px);
}

.why {
  width: 100%;
  max-width: none;
  padding-inline: max(22px, calc((100vw - 1200px) / 2));
  background:
    linear-gradient(180deg, #e7f4fa 0%, #dcecf5 100%);
}

.project-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

body[data-active-tab="projects"] .project-timeline {
  margin-top: 22px;
}

.project-timeline article {
  padding: clamp(24px, 2.4vw, 32px);
}

body[data-active-tab="projects"] .project-timeline article {
  padding: clamp(18px, 1.7vw, 24px);
}

.project-timeline span {
  display: block;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

body[data-active-tab="projects"] .project-timeline span {
  margin-bottom: 10px;
  font-size: 14px;
}

.contact {
  width: 100%;
  max-width: none;
  padding-inline: max(22px, calc((100vw - 1200px) / 2));
  background:
    radial-gradient(circle at 8% 12%, rgba(53, 185, 223, 0.18), transparent 34%),
    var(--dark-gradient);
}

.contact .eyebrow,
.contact h2 {
  color: #fff;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(360px, 1.14fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: start;
  color: #fff;
}

.contact-panel h2 {
  max-width: 560px;
}

.contact-panel p,
.contact-details span,
.contact-details a {
  color: rgba(255, 255, 255, 0.8);
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-details span,
.contact-details a {
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.contact-details a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.48);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(22px, 2.4vw, 30px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: var(--shadow-strong);
}

body[data-active-tab="contact"] .contact-details {
  margin-top: 18px;
}

body[data-active-tab="contact"] .contact-form {
  gap: 10px;
  padding: clamp(18px, 1.7vw, 24px);
}

body[data-active-tab="contact"] .contact-form input,
body[data-active-tab="contact"] .contact-form select,
body[data-active-tab="contact"] .contact-form textarea {
  padding: 10px 12px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #28445d;
  font-size: 15px;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: #f9fcfe;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(53, 185, 223, 0.34);
  border-color: var(--cyan);
}

.contact-form textarea {
  resize: vertical;
}

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

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--blue);
  font-weight: 900;
}

.site-footer {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  text-align: center;
}

@keyframes harborDrift {
  from {
    transform: scale(1.005) translateX(-0.8%);
  }

  to {
    transform: scale(1.025) translateX(0.8%);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-active-tab]:not([data-active-tab="home"]) .hero-image-tabs {
    animation: none;
    transform: none;
  }
}

@media (max-width: 1180px) {
  body[data-active-tab]:not([data-active-tab="home"]) .hero {
    min-height: clamp(210px, 25vh, 290px);
  }

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

  .stats,
  .industry-list,
  .why-grid,
  .project-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  .site-header {
    height: 78px;
  }

  body[data-active-tab]:not([data-active-tab="home"]) .hero {
    min-height: 220px;
    padding-top: 82px;
    padding-bottom: 22px;
  }

  body[data-active-tab]:not([data-active-tab="home"]) .section {
    padding: 38px 0 46px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(157, 190, 209, 0.56);
    border-radius: var(--radius);
    box-shadow: var(--shadow-strong);
  }

  .site-nav.is-open {
    display: grid;
    gap: 8px;
  }

  .site-nav a,
  .lang-toggle {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
  }

  .lang-toggle {
    margin-left: 0;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    justify-content: center;
  }

  .band,
  .split,
  .industries,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .intro p {
    margin-top: 0;
  }

  .hero-content {
    max-width: min(640px, 64vw);
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding-inline: 16px;
  }

  .brand {
    gap: 10px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 10.5px;
  }

  .hero {
    min-height: 86vh;
    padding: 108px 18px 64px;
  }

  body[data-active-tab]:not([data-active-tab="home"]) .hero {
    min-height: 190px;
    padding-top: 82px;
    padding-bottom: 24px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 30, 55, 0.94), rgba(8, 55, 88, 0.7)),
      linear-gradient(0deg, rgba(238, 246, 251, 1), rgba(238, 246, 251, 0) 21%);
  }

  h1 {
    font-size: clamp(34px, 11vw, 46px);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .section,
  .band,
  .stats,
  .site-footer {
    width: min(100% - 32px, 1200px);
  }

  .section {
    padding: 62px 0;
  }

  body[data-active-tab]:not([data-active-tab="home"]) .section {
    padding: 34px 0 42px;
  }

  .stats,
  .service-grid,
  .industry-list,
  .why-grid,
  .project-timeline,
  .value-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .contact,
  .why {
    padding-inline: 16px;
  }

  .full {
    grid-column: auto;
  }
}
