:root {
  --bg: #f3eee5;
  --surface: #fffaf3;
  --surface-dark: #15202a;
  --surface-tint: #f1e4d3;
  --text: #161616;
  --text-soft: #615b53;
  --accent: #b98650;
  --accent-deep: #6b4a2c;
  --accent-soft: rgba(185, 134, 80, 0.14);
  --steel-soft: rgba(71, 94, 110, 0.1);
  --border: rgba(44, 31, 18, 0.12);
  --shadow: 0 16px 42px rgba(38, 28, 18, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(185, 134, 80, 0.16), transparent 26%),
    radial-gradient(circle at top right, rgba(71, 94, 110, 0.12), transparent 24%),
    linear-gradient(180deg, #fcf8f2 0%, var(--bg) 100%);
}

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

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

button {
  font: inherit;
}

.site-shell {
  width: min(calc(100% - 32px), calc(var(--max-width) + 32px));
  margin: 0 auto;
  padding-bottom: 32px;
}

.section {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 36px 0;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100%, var(--max-width));
  margin: 12px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 250, 243, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-mark {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  flex: 0 0 auto;
}

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

.brand-text strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.05;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav > a,
.nav-group-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: 999px;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
}

.site-nav > a:hover,
.site-nav > a:focus-visible,
.nav-group-toggle:hover,
.nav-group-toggle:focus-visible,
.nav-group.is-open .nav-group-toggle {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(44, 31, 18, 0.08);
}

.nav-group {
  position: relative;
}

.nav-group-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 25;
  display: none;
  width: min(620px, calc(100vw - 40px));
  padding: 18px;
  border: 1px solid rgba(107, 74, 44, 0.16);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fffdf8 0%, #f5ebdf 100%);
  box-shadow: 0 28px 64px rgba(38, 28, 18, 0.14);
}

.nav-group.is-open .nav-group-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.menu-section {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(107, 74, 44, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.menu-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menu-section p {
  margin: 0;
  color: var(--accent-deep);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.menu-section-header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
}

.menu-section a {
  display: block;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(71, 94, 110, 0.06);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.menu-section a:hover,
.menu-section a:focus-visible {
  color: var(--text);
  background: rgba(185, 134, 80, 0.14);
  border-color: rgba(107, 74, 44, 0.14);
  transform: translateX(2px);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 10px 14px;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.hero {
  display: grid;
  gap: 20px;
  padding-top: 44px;
}

.hero-copy,
.card,
.footer-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.98) 0%, rgba(247, 239, 227, 0.96) 100%);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border-color: rgba(44, 31, 18, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.96) 0%, rgba(247, 239, 227, 0.94) 100%),
    url("assets/structova-logo-crane.png") right 6% center / min(42vw, 520px) auto no-repeat;
  box-shadow: var(--shadow);
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent-deep);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: var(--accent-deep);
}

.hero h1,
.section-head h2,
.card h3,
.site-footer h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  max-width: 20ch;
  color: var(--text);
  text-shadow: none;
}

.hero-lead,
.card p,
.workflow-card p,
.contact-block p {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.72;
}

.hero-lead {
  max-width: 72ch;
  color: var(--text-soft);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--text);
  font-size: 0.94rem;
  font-weight: 700;
}

.button-dark {
  background: linear-gradient(135deg, #17212a 0%, #2b3943 100%);
  border-color: #17212a;
  color: var(--surface);
}

.button-light {
  background: var(--accent-soft);
  border-color: rgba(107, 74, 44, 0.18);
  color: var(--accent-deep);
}

.hero-copy .button-dark {
  background: linear-gradient(135deg, #17212a 0%, #2b3943 100%);
  border-color: #17212a;
  color: var(--surface);
}

.hero-copy .button-light {
  background: var(--accent-soft);
  border-color: rgba(107, 74, 44, 0.18);
  color: var(--accent-deep);
  backdrop-filter: none;
}

.hero-points,
.stack-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li,
.stack-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-points li {
  color: var(--text-soft);
}

.hero-points li + li,
.stack-list li + li {
  margin-top: 10px;
}

.hero-points li::before,
.stack-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto 22px 18px 22px;
  height: 1px;
  background: linear-gradient(90deg, rgba(107, 74, 44, 0.18), rgba(107, 74, 44, 0));
}

@media (max-width: 940px) {
  .hero-copy {
    background:
      linear-gradient(180deg, rgba(255, 250, 243, 0.96) 0%, rgba(247, 239, 227, 0.94) 100%),
      url("assets/structova-logo-crane.png") right -10px top 28px / min(44vw, 220px) auto no-repeat;
  }
}

.section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head > div {
  min-width: 0;
}

.section-head h2 {
  font-size: clamp(2rem, 3.7vw, 3.3rem);
  max-width: 20ch;
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a242d 0%, #6b4a2c 100%);
  color: var(--surface);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.two-column,
.service-grid,
.product-grid,
.workflow-grid {
  display: grid;
  gap: 20px;
}

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

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

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

.card {
  padding: 26px;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(38, 28, 18, 0.12);
}

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

.card-dark {
  background: linear-gradient(160deg, #16212b 0%, #233646 100%);
  color: #ffffff;
}

.card-dark p,
.card-dark .section-kicker,
.stack-list-light li {
  color: rgba(255, 255, 255, 0.76);
}

.stack-list-light li::before {
  background: #ffffff;
}

.service-card {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  padding: 0;
}

.product-card {
  overflow: hidden;
  padding: 0;
}

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid rgba(44, 31, 18, 0.1);
  background: linear-gradient(135deg, rgba(185, 134, 80, 0.18), rgba(71, 94, 110, 0.1));
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media-diagram {
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(236, 225, 208, 0.95));
}

.card-media-diagram img {
  object-fit: contain;
  padding: 18px;
}

.card-copy {
  padding: 22px 24px 24px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(22, 22, 22, 0.92);
  color: var(--surface);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 0;
}

.card-type {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-card .stack-list,
.product-card p {
  margin-top: 16px;
}

.product-card p {
  margin-bottom: 0;
}

.tool-group + .tool-group {
  margin-top: 18px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pill-row span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(185, 134, 80, 0.1);
  font-size: 0.92rem;
  font-weight: 600;
}

.workflow-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a242d 0%, #6b4a2c 100%);
  color: var(--surface);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
}

.workflow-card h3 {
  margin-top: 16px;
}

.site-footer {
  padding-bottom: 20px;
}

.footer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 20px;
  padding: 28px;
}

.site-footer h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  max-width: 18ch;
}

.image-credits {
  display: none;
  flex-wrap: wrap;
  gap: 10px 16px;
  width: min(100%, var(--max-width));
  margin: 16px auto 0;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.image-credits p {
  margin: 0;
  font-weight: 700;
}

.image-credits a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-block {
  display: grid;
  align-content: start;
  gap: 18px;
}

.contact-block a {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-block a + a {
  margin-top: -8px;
}

.contact-block p {
  margin: 10px 0 0;
}

@media (max-width: 940px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-group {
    width: 100%;
  }

  .nav-group-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
    grid-template-columns: 1fr;
  }

  .hero,
  .two-column,
  .service-grid,
  .product-grid,
  .workflow-grid,
  .footer-panel {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 680px) {
  .site-shell {
    width: min(calc(100% - 20px), calc(var(--max-width) + 20px));
  }

  .site-header {
    padding: 12px 14px;
  }

  .brand {
    gap: 12px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .brand-text strong {
    font-size: 1.05rem;
  }

  .hero-copy,
  .card,
  .footer-panel {
    padding: 20px;
  }

  .section-head {
    gap: 12px;
  }

  .section-number {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .hero h1,
  .section-head h2,
  .site-footer h2 {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .site-nav > a,
  .nav-group-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  .card-copy {
    padding: 20px;
  }

}
