:root {
  color-scheme: dark;
  --text: #ebf5f2;
  --muted: #9db0ba;
  --line: rgba(159, 209, 194, 0.16);
  --accent: #49cfa7;
  --accent-strong: #79efd0;
  --surface: rgba(17, 27, 33, 0.74);
  --surface-hover-line: rgba(136, 211, 189, 0.38);
  --image-border: rgba(128, 182, 197, 0.28);
  --image-text: #99aeb9;
  --image-grad-1: #152028;
  --image-grad-2: #1e2f39;
  --tag: #95b6c3;
  --paragraph: #bbcad1;
  --footer-line: rgba(135, 173, 186, 0.2);
  --bg-grad-1: #070d13;
  --bg-grad-2: #0e171f;
  --bg-grad-3: #13232a;
  --bg-grad-4: #152d32;
  --glow-1: rgba(84, 164, 210, 0.2);
  --glow-2: rgba(62, 205, 162, 0.22);
  --glow-3: rgba(84, 114, 210, 0.14);
  --shadow: 0 22px 56px rgba(3, 7, 10, 0.52);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg-grad-1) 0%, var(--bg-grad-2) 40%, var(--bg-grad-3) 70%, var(--bg-grad-4) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 14% 12%, var(--glow-1), transparent 34%),
    radial-gradient(circle at 82% 24%, var(--glow-3), transparent 36%),
    radial-gradient(circle at 86% 80%, var(--glow-2), transparent 42%);
  z-index: -1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, 94vw);
  margin: 0 auto;
  padding: 1.1rem 0 0.75rem;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.04em;
  font-size: clamp(1.03rem, 2vw, 1.16rem);
  transition: color 180ms ease;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent-strong);
}

nav {
  display: flex;
  gap: 0.42rem;
  align-items: center;
  background: rgba(16, 26, 34, 0.58);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.26rem;
  box-shadow: inset 0 1px 0 rgba(186, 230, 217, 0.08);
  backdrop-filter: blur(10px);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  transition: background 180ms ease, color 180ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text);
  background: rgba(130, 198, 220, 0.12);
}

nav a[aria-current="page"] {
  color: var(--text);
  background: linear-gradient(130deg, rgba(89, 196, 224, 0.24), rgba(73, 207, 167, 0.24));
}

main {
  width: min(1120px, 94vw);
  margin: 0 auto;
  padding: clamp(0.8rem, 1.7vw, 1.65rem) 0 3rem;
}

.hero {
  margin-top: clamp(1rem, 2vw, 2rem);
  margin-bottom: clamp(1.7rem, 3vw, 3rem);
  animation: fade-up 0.55s ease both;
}

.hero-with-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 28vw, 320px);
  align-items: start;
  gap: clamp(1.15rem, 3vw, 2.3rem);
  padding: clamp(1rem, 2vw, 1.5rem);
  background: linear-gradient(145deg, rgba(18, 29, 37, 0.74), rgba(15, 24, 30, 0.6));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-copy {
  min-width: 0;
  max-width: 68ch;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: start;
  justify-self: end;
  gap: 0.75rem;
}

.profile-image {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  align-self: flex-end;
  margin-left: auto;
  display: block;
}

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

h1 {
  margin: 0.15rem 0 0.72rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.05rem, 6.1vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  max-width: 11.5ch;
  text-wrap: balance;
}

.lead {
  margin: 0;
  font-size: clamp(1.01rem, 1.85vw, 1.15rem);
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.7;
  text-wrap: pretty;
}

.hero-stack {
  margin: clamp(2.9rem, 5.3vw, 4.6rem) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  max-width: 100%;
  justify-content: flex-end;
}

.hero-stack li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.24rem 0.56rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tag);
  line-height: 1.2;
  letter-spacing: 0.02em;
  background: rgba(14, 23, 29, 0.66);
}

.about {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: clamp(1rem, 2.2vw, 1.5rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: fade-up 0.6s ease both;
}

.about h2 {
  margin-top: 0.2rem;
  margin-bottom: 0.6rem;
}

.about p {
  margin: 0.5rem 0 0;
  color: var(--paragraph);
  max-width: 75ch;
}

.about a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
}

.about a:hover,
.about a:focus-visible {
  text-decoration: underline;
}

.about-page {
  max-width: 760px;
}

.centered-card {
  margin-left: auto;
  margin-right: auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.7vw, 1.2rem);
  max-width: 960px;
  margin: 0.6rem auto 0;
}

.projects {
  margin-top: clamp(0.7rem, 2vw, 1.6rem);
}

.projects-head {
  max-width: 960px;
  margin: 0 auto;
}

.projects-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.73rem;
  font-weight: 800;
  color: var(--tag);
}

.projects-title {
  margin: 0.36rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.24rem, 2.3vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 26ch;
  color: var(--text);
  text-wrap: balance;
}

.card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(0.8rem, 1.5vw, 1.05rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  animation: fade-up 0.65s ease both;
  isolation: isolate;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(121, 239, 208, 0.13), rgba(89, 196, 224, 0.05) 45%, transparent 72%);
  opacity: 0;
  transition: opacity 180ms ease;
  z-index: -1;
}

.card-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: stretch;
  gap: 0.8rem;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--surface-hover-line);
  box-shadow: 0 24px 60px rgba(1, 7, 12, 0.58);
  background: rgba(20, 32, 40, 0.88);
}

.card:hover::before,
.card:focus-visible::before {
  opacity: 1;
}

.card-image {
  border: 1px dashed var(--image-border);
  border-radius: 14px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: var(--image-text);
  font-weight: 700;
  background: linear-gradient(140deg, var(--image-grad-1), var(--image-grad-2));
  overflow: hidden;
  flex-shrink: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image {
  border: 1px dashed var(--image-border);
  border-radius: 14px;
  min-height: 240px;
  display: grid;
  place-items: center;
  color: var(--image-text);
  font-weight: 700;
  background: linear-gradient(140deg, var(--image-grad-1), var(--image-grad-2));
  overflow: hidden;
}

.hero-image {
  margin: 1rem 0 1.5rem;
}

.hero-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.envguard-single-shot {
  margin: 2.2rem auto 1.1rem;
  width: min(860px, 100%);
}

.envguard-single-shot img {
  height: auto;
  max-height: none;
  aspect-ratio: 16 / 10;
}

.envguard-page {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.product-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: clamp(1.1rem, 2.5vw, 2rem);
  padding: clamp(1.1rem, 2.4vw, 1.9rem);
}

.product-hero-copy {
  display: flex;
  flex-direction: column;
  align-self: center;
}

.product-hero-copy p:not(.eyebrow):not(.lead) {
  margin: 0.95rem 0 0;
  color: var(--paragraph);
  max-width: 62ch;
}

.product-pills,
.compare-points {
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
}

.product-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.product-pills li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  background: rgba(13, 22, 28, 0.7);
  color: var(--tag);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.envguard-hero-shot {
  margin: 0;
  min-height: clamp(280px, 42vw, 520px);
  align-self: stretch;
}

.envguard-hero-shot img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-tag {
  margin: 0 0 0.2rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tag);
  font-weight: 800;
}

.card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  line-height: 1.1;
}

.card-description {
  margin-top: 0.3rem;
  margin-bottom: 0.7rem;
  color: var(--paragraph);
  font-size: 0.92rem;
  line-height: 1.58;
  max-width: 40ch;
}

.card-foot {
  margin: 0;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.9rem;
}

.card-foot span {
  padding-left: 0.24rem;
}

.card:nth-child(2) {
  animation-delay: 70ms;
}

.subpage,
.legal {
  animation: fade-up 0.55s ease both;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.45rem;
}

.actions-center {
  justify-content: center;
}

.button {
  display: inline-block;
  border-radius: 999px;
  padding: 0.66rem 1.15rem;
  background: linear-gradient(135deg, #44c9a1, #4fbfdb);
  border: 1px solid rgba(132, 236, 208, 0.55);
  color: #031115;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(41, 173, 165, 0.28);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 16px 28px rgba(33, 156, 166, 0.34);
}

.button-ghost {
  background: rgba(18, 30, 38, 0.66);
  border-color: var(--line);
  box-shadow: none;
  color: var(--accent-strong);
}

.button-disabled {
  pointer-events: none;
  opacity: 0.64;
}

.legal h2 {
  margin-top: 2rem;
}

.legal p {
  color: var(--paragraph);
  max-width: 75ch;
}

.site-footer {
  width: min(1120px, 94vw);
  margin: 0 auto;
  padding: 0.25rem 0 1.8rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  border-top: 1px solid var(--footer-line);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding-top: 0.9rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent-strong);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 840px) {
  .site-header {
    width: min(1120px, 92vw);
  }

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

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-with-profile {
    grid-template-columns: 1fr;
  }

  .hero-aside {
    align-items: flex-end;
    justify-self: stretch;
  }

  .profile-image {
    max-width: 170px;
  }

  .hero-stack {
    justify-content: flex-end;
    margin-top: 0.9rem;
  }

  .site-footer {
    flex-wrap: wrap;
    width: min(1120px, 92vw);
  }

  .product-hero {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  nav {
    padding: 0.22rem;
  }

  nav a {
    padding: 0.42rem 0.66rem;
    font-size: 0.92rem;
  }

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

  .hero-with-profile {
    border-radius: 20px;
  }

  .envguard-single-shot {
    width: 100%;
  }

  .product-hero {
    padding: 1rem;
  }
}
