:root {
  --ink: #0e1518;
  --ink-soft: #1a262c;
  --steel: #2f4a55;
  --mist: #e8eef0;
  --paper: #f4f7f6;
  --accent: #5fa8ab;
  --accent-deep: #3d7a7d;
  --brand: #74b4b6;
  --line: rgba(14, 21, 24, 0.12);
  --max: 1120px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-ui: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-deep); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(244, 247, 246, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.brand img {
  display: block;
  height: 2rem;
  width: auto;
}
.brand--on-dark img {
  height: 2rem;
  width: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
}
.nav a { text-decoration: none; color: var(--steel); }
.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-ui);
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  color: #f7faf9;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(14, 21, 24, 0.92) 18%, rgba(14, 21, 24, 0.55) 58%, rgba(47, 74, 85, 0.35) 100%),
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(95, 168, 171, 0.32), transparent 55%),
    linear-gradient(160deg, #1a262c, #0e1518 45%, #243940);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 11px,
      rgba(255, 255, 255, 0.02) 11px,
      rgba(255, 255, 255, 0.02) 12px
    );
  pointer-events: none;
  animation: drift 28s linear infinite;
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-40px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 5.5rem 0 4rem;
}

.hero .brand-hero {
  margin: 0 0 1.25rem;
  line-height: 0;
  animation: rise 0.9s ease both;
}
.hero .brand-hero img {
  display: block;
  width: min(72vw, 280px);
  height: auto;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 18ch;
  margin: 0 0 1rem;
  animation: rise 0.9s ease 0.12s both;
}

.hero .lede {
  max-width: 38rem;
  margin: 0 0 1.75rem;
  color: rgba(247, 250, 249, 0.82);
  font-size: 1.08rem;
  animation: rise 0.9s ease 0.22s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s ease 0.32s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.2rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); color: inherit; }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-ink:hover { background: var(--ink-soft); color: #fff; }
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.section {
  padding: 4.5rem 0;
}
.section-muted { background: #fff; }
.section-dark {
  background: var(--ink);
  color: #eef3f2;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.section .intro {
  max-width: 40rem;
  margin: 0 0 2.5rem;
  color: var(--steel);
}
.section-dark .intro { color: rgba(238, 243, 242, 0.75); }

.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-link {
  display: block;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.product-link:hover { border-color: var(--accent); color: var(--ink); }
.product-link h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}
.product-link p {
  margin: 0;
  color: var(--steel);
  font-size: 0.98rem;
}
.product-link .more {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat span {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: rgba(238, 243, 242, 0.7);
}

.client-strip,
.client-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.client-strip li,
.client-list li {
  border: 1px solid var(--line);
  padding: 0.7rem 1.1rem;
  color: var(--ink);
  background: #fff;
}
.section-dark .client-strip li {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: #eef3f2;
}
.prose .client-list {
  margin: 1rem 0 1.5rem;
}

.page-hero {
  padding: 3.5rem 0 2rem;
  background:
    linear-gradient(180deg, #dfe8ea, var(--paper));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.75rem;
  max-width: 16ch;
}
.page-hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--steel);
}

.prose { max-width: 42rem; }
.prose h2 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  margin: 1.25rem 0 2rem;
}
.prose th,
.prose td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.prose th { color: var(--steel); font-weight: 700; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.contact-card,
.contact-block {
  padding: 0;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.contact-card h2,
.contact-block h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}
.contact-card p,
.contact-block p,
.contact-block address {
  font-style: normal;
  margin: 0 0 0.75rem;
  color: var(--steel);
}

.news-list {
  display: grid;
  gap: 0;
}
.news-list--home {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.news-card {
  display: block;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease;
}
.news-list--home .news-card {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1.25rem 1.1rem;
}
.news-card:hover { border-color: var(--accent); color: var(--ink); }
.news-card time {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.news-card h2,
.news-card h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0.45rem 0 0.55rem;
  font-size: 1.25rem;
  line-height: 1.25;
}
.news-card p {
  margin: 0;
  color: var(--steel);
  font-size: 0.98rem;
}
.news-card .more {
  display: inline-block;
  margin-top: 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.muted {
  color: var(--steel);
  font-size: 0.95rem;
}

.site-footer {
  padding: 3rem 0 2rem;
  background: var(--ink-soft);
  color: rgba(238, 243, 242, 0.78);
  font-family: var(--font-ui);
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer .brand { color: #fff; }
.site-footer a { color: rgba(238, 243, 242, 0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h3 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(238, 243, 242, 0.5);
  margin: 0 0 0.85rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-bottom: 1rem;
  }
  .nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
}
