:root {
  --ink: #102333;
  --muted: #5d6c76;
  --line: #d9e4e8;
  --paper: #f7fbfc;
  --white: #ffffff;
  --blue: #043d63;
  --teal: #028a98;
  --cyan: #31c9da;
  --coral: #f0745c;
  --green: #4c9b75;
  --shadow: 0 18px 50px rgba(10, 42, 60, 0.14);
}

* {
  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.55;
  background: var(--paper);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(247, 251, 252, 0.9);
  border-bottom: 1px solid rgba(217, 228, 232, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.brand img {
  width: 168px;
  height: 48px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.2vw, 28px);
  font-size: 0.94rem;
  font-weight: 700;
  color: #244253;
}

.nav a {
  position: relative;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
  content: "";
}

.nav a:hover::after {
  transform: scaleX(1);
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #eaf3f5;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-switch button {
  min-width: 42px;
  height: 32px;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.language-switch button.is-active {
  color: var(--white);
  background: var(--blue);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(760px, calc(100vh - 74px));
  padding: clamp(72px, 9vw, 132px) clamp(18px, 4vw, 56px) 64px;
  overflow: hidden;
  color: var(--white);
  background: #12384e;
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 24, 36, 0.78) 0%, rgba(4, 24, 36, 0.54) 36%, rgba(4, 24, 36, 0.08) 72%),
    url("../images/hydrosuite-hero.png") center / cover no-repeat;
  content: "";
}

.hero::after {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: 0;
  left: clamp(18px, 4vw, 56px);
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  content: "";
}

.hero-content {
  position: relative;
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #9eeaf0;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 38px;
  height: 2px;
  background: var(--cyan);
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 700px;
  font-size: clamp(3rem, 8vw, 7.8rem);
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  color: var(--white);
  font-weight: 850;
  background: var(--teal);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(2, 138, 152, 0.24);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 4vw, 56px);
}

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

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto 30px;
}

.section-header h2 {
  max-width: 680px;
  font-size: clamp(2rem, 4vw, 4rem);
}

.section-header p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.app-grid,
.content-grid,
.stats-grid {
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
  gap: 18px;
}

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

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

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

.app-card,
.content-card,
.stat-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(16, 35, 51, 0.06);
}

.app-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #dbe9ed;
}

.app-card .card-media {
  width: min(68%, 260px);
  height: 150px;
  margin: 24px auto 0;
  aspect-ratio: auto;
  border-radius: 6px;
  object-fit: contain;
}

.card-body {
  padding: 22px;
}

.card-body h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.card-body p,
.article-body p,
.article-body li {
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 900;
}

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

.band .section-header p,
.band .card-body p {
  color: rgba(255, 255, 255, 0.76);
}

.band .stat-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.stat-card {
  padding: 26px;
}

.stat-value {
  margin-bottom: 8px;
  color: #9eeaf0;
  font-size: 2rem;
  font-weight: 900;
}

.page-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(54px, 8vw, 94px) clamp(18px, 4vw, 56px);
  background: var(--white);
}

.page-hero-content {
  max-width: 720px;
  justify-self: end;
}

.page-hero h1 {
  color: var(--ink);
  font-size: clamp(2.6rem, 5.5vw, 6rem);
}

.page-hero p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.page-hero img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-body {
  max-width: 980px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.article-body h2 {
  margin-top: 46px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.article-body h3 {
  margin-top: 28px;
  font-size: 1.35rem;
}

.article-body ul {
  padding-left: 1.2rem;
}

.article-figure {
  margin: 34px 0;
  overflow: hidden;
  background: #eef6f7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.article-figure figcaption {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.figure-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 360px;
  aspect-ratio: 16 / 7;
  color: #7f919a;
  font-weight: 800;
  background:
    linear-gradient(135deg, rgba(2, 138, 152, 0.08) 25%, transparent 25%) 0 0 / 24px 24px,
    linear-gradient(315deg, rgba(2, 138, 152, 0.08) 25%, transparent 25%) 0 0 / 24px 24px,
    #f6fafb;
}

.info-panel {
  margin: 34px 0;
  padding: 24px;
  background: #f1f8f9;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
}

.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}

.article-nav a {
  padding: 10px 14px;
  color: var(--blue);
  font-weight: 850;
  background: #eaf3f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 38px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.78);
  background: #092536;
}

.footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1.15rem;
}

.footer span {
  display: block;
  max-width: 760px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .app-grid,
  .content-grid,
  .stats-grid,
  .page-hero,
  .two-column {
    grid-template-columns: 1fr;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero-content {
    justify-self: start;
  }

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

@media (max-width: 560px) {
  .brand img {
    width: 148px;
  }

  .hero {
    min-height: 680px;
  }

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

  .button {
    width: 100%;
  }
}
