:root {
  --ink: #0b1214;
  --ink-soft: #152126;
  --panel: #101a1e;
  --foam: #edf4f2;
  --foam-dim: #c5d5d0;
  --teal: #2f8f88;
  --teal-deep: #1c5c58;
  --brand: #0081c5;
  --brand-deep: #00639a;
  --accent: #0081c5;
  --accent-soft: #3aa0d8;
  --brand-rgb: 0, 129, 197;
  --on-brand: #ffffff;
  --line: rgba(237, 244, 242, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max: 1120px;
  --font-display: "Syne", "Avenir Next", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--foam);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(47, 143, 136, 0.22), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(var(--brand-rgb), 0.16), transparent 50%),
    linear-gradient(180deg, #081014 0%, var(--ink) 40%, #0d171b 100%);
  font-family: var(--font-body);
  line-height: 1.55;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(8, 16, 20, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--foam-dim);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--foam);
  background: rgba(237, 244, 242, 0.08);
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--foam);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: end;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 16, 20, 0.88) 0%, rgba(8, 16, 20, 0.55) 48%, rgba(8, 16, 20, 0.25) 100%),
    linear-gradient(0deg, rgba(8, 16, 20, 0.92) 0%, transparent 42%);
}

.hero-content {
  padding: 7rem 0 4.5rem;
  max-width: 38rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.4rem);
  font-weight: 800;
  line-height: 0.95;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero-brand span {
  color: var(--accent);
}

.hero-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--foam-dim);
  font-size: 1.05rem;
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: var(--on-brand);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(237, 244, 242, 0.04);
  color: var(--foam);
}

.hero-dots {
  display: flex;
  gap: 0.45rem;
  margin-top: 2rem;
}

.hero-dots button {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  border: 0;
  background: rgba(237, 244, 242, 0.35);
  cursor: pointer;
  padding: 0;
}

.hero-dots button.is-active {
  background: var(--accent);
  width: 1.5rem;
  border-radius: 999px;
}

.section {
  padding: 5rem 0;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-kicker {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  color: var(--foam-dim);
}

.products-layout {
  display: grid;
  gap: 2.5rem;
}

.category-block h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(var(--brand-rgb), 0.1), transparent 40%),
    rgba(16, 26, 30, 0.9);
  box-shadow: var(--shadow);
  animation: rise 0.55s ease both;
}

.product-card h4 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.product-card p {
  margin: 0;
  color: var(--foam-dim);
  font-size: 0.95rem;
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.2rem 0 1rem;
}

.product-meta .label {
  color: var(--foam-dim);
  font-size: 0.85rem;
}

.product-meta .price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.projects-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.projects-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  animation: kenburns 18s ease-in-out infinite alternate;
}

.projects-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 16, 20, 0.35), rgba(8, 16, 20, 0.92));
}

.projects-hero .hero-content {
  padding: 6rem 0 3rem;
}

.project-grid {
  display: grid;
  gap: 1.25rem;
}

.project-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 26, 30, 0.92);
  box-shadow: var(--shadow);
  animation: rise 0.5s ease both;
}

.project-mark {
  display: grid;
  place-items: center;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(var(--brand-rgb), 0.4), rgba(var(--brand-rgb), 0.12)),
    var(--ink-soft);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
  min-height: 140px;
}

.project-card h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}

.project-tags span {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.18);
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.project-card p {
  margin: 0 0 0.65rem;
  color: var(--foam-dim);
}

.project-card p:last-child {
  margin-bottom: 0;
}

.status-box {
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(16, 26, 30, 0.85);
  color: var(--foam-dim);
}

.status-box.error {
  border-color: rgba(var(--brand-rgb), 0.45);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--foam-dim);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kenburns {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-1.5%);
  }
}

@media (max-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1.25rem;
    left: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(10, 18, 22, 0.96);
  }

  .nav.is-open {
    display: flex;
  }

  .product-grid,
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-mark {
    min-height: 96px;
  }

  .hero-content {
    padding-top: 5.5rem;
  }
}
