:root {
  --bg: #f7f3eb;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #fffdf8;
  --surface-border: rgba(24, 39, 56, 0.1);
  --text: #182738;
  --text-muted: #53606f;
  --accent: #1f5d66;
  --accent-deep: #163f47;
  --accent-soft: rgba(31, 93, 102, 0.12);
  --shadow-soft: 0 18px 40px rgba(24, 39, 56, 0.08);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --max-width: 1160px;
  --font-sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
p,
ul {
  margin: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(31, 93, 102, 0.08), transparent 32rem),
    radial-gradient(circle at top right, rgba(186, 164, 126, 0.16), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

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

button {
  color: inherit;
}

ul {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid rgba(31, 93, 102, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  transform: translateY(-200%);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fff;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1rem 0 0;
}

.site-header.is-scrolled {
  backdrop-filter: blur(18px);
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(24, 39, 56, 0.08);
  border-radius: 999px;
  background: rgba(247, 243, 235, 0.82);
  box-shadow: 0 10px 30px rgba(24, 39, 56, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-logo {
  display: block;
  width: clamp(152px, 42vw, 188px);
  height: auto;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(24, 39, 56, 0.1);
  border-radius: 999px;
  background: var(--surface-strong);
  cursor: pointer;
}

.nav-toggle span {
  width: 1.05rem;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 1rem;
  left: 1rem;
  display: grid;
  gap: 0.2rem;
  padding: 0.6rem;
  border: 1px solid var(--surface-border);
  border-radius: 1.4rem;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-menu a {
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: var(--accent-soft);
  color: var(--text);
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero-section {
  padding: 5rem 0 2rem;
}

.hero-layout,
.section-grid,
.products-grid,
.contact-layout,
.footer-layout {
  display: grid;
  gap: 1.5rem;
}

.hero-copy {
  display: grid;
  gap: 1.4rem;
}

.eyebrow,
.section-kicker,
.panel-label,
.product-tag {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(3.25rem, 8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-lede,
.section-intro,
.section-copy p,
.product-summary,
.capability-card p,
.contact-layout p,
.footer-meta,
.footer-copy,
.footer-email,
.product-card-muted p,
.not-found-card p {
  color: var(--text-muted);
}

.hero-lede {
  max-width: 38rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.button {
  min-height: 3.3rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-deep);
}

.button-secondary {
  border-color: rgba(24, 39, 56, 0.12);
  background: rgba(255, 253, 248, 0.82);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: #fff;
  border-color: rgba(24, 39, 56, 0.2);
}

.button-email {
  min-width: min(100%, 18rem);
}

.card {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.hero-panel,
.section-copy,
.product-card,
.capability-card,
.contact-layout,
.not-found-card {
  padding: 1.6rem;
}

.hero-panel {
  align-self: end;
}

.hero-panel h2,
.section-heading h2,
.product-card h3,
.capability-card h3,
.contact-layout h2,
.not-found-card h1 {
  letter-spacing: -0.04em;
}

.hero-panel h2,
.contact-layout h2,
.not-found-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin-top: 0.5rem;
}

.hero-panel p,
.section-copy p + p,
.product-card p,
.capability-card p,
.contact-layout .section-intro,
.not-found-card p {
  margin-top: 1rem;
}

.feature-list,
.product-features {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.feature-list li,
.product-features li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.feature-list li::before,
.product-features li::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: var(--accent);
}

.content-section {
  padding: 1.25rem 0 1.75rem;
}

main section[id] {
  scroll-margin-top: 7rem;
}

.section-heading {
  display: grid;
  gap: 0.5rem;
}

.section-heading h2,
.product-card h3,
.capability-card h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.section-copy {
  display: grid;
  gap: 0.2rem;
}

.product-card-featured {
  background:
    linear-gradient(180deg, rgba(31, 93, 102, 0.08), rgba(255, 253, 248, 0.9)),
    var(--surface);
}

.product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.text-link {
  color: var(--accent);
}

.product-card-muted {
  align-content: center;
}

.capabilities-grid {
  display: grid;
  gap: 1rem;
}

.capability-card {
  min-height: 100%;
}

.contact-section {
  padding-bottom: 4rem;
}

.contact-layout {
  align-items: center;
}

.site-footer {
  padding: 0 0 2.5rem;
}

.footer-layout {
  padding: 1.6rem 0 0.4rem;
  border-top: 1px solid rgba(24, 39, 56, 0.1);
}

.footer-title {
  font-weight: 700;
}

.footer-brand {
  display: grid;
  gap: 0.5rem;
}

.footer-logo {
  width: min(220px, 100%);
  height: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
}

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

.page-404 {
  display: flex;
  flex-direction: column;
}

.not-found-main {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 0;
}

.not-found-card {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}

.not-found-logo {
  width: 4.5rem;
  height: auto;
  margin: 0 auto 1rem;
}

.not-found-card .button {
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .shell {
    width: min(calc(100% - 3rem), var(--max-width));
  }

  .site-nav {
    padding-inline: 1.2rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .hero-section {
    padding: 6.75rem 0 2.4rem;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
    align-items: center;
    gap: 2rem;
  }

  .section-grid {
    grid-template-columns: minmax(16rem, 0.7fr) minmax(0, 1.3fr);
    align-items: start;
  }

  .section-heading-wide {
    max-width: 44rem;
  }

  .products-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.75fr);
    align-items: stretch;
  }

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

  .contact-layout {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: space-between;
  }

  .footer-layout {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: end;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    padding-top: 7.5rem;
  }

  .content-section {
    padding: 1.75rem 0 2.5rem;
  }

  .hero-panel,
  .section-copy,
  .product-card,
  .capability-card,
  .contact-layout,
  .not-found-card {
    padding: 2rem;
  }

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