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

:root {
  --ink: #071421;
  --navy: #013a73;
  --green: #97d700;
  --page: #f7f8f5;
  --paper: #ffffff;
  --line: #d9dfdf;
  --muted: #4b5560;
  --soft: #e6e9e7;
  --dark: #060d14;
  --dark-panel: #0b1824;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--page) 56%, var(--soft) 100%);
  color: var(--ink);
  font-family: Raleway, Inter, Arial, sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.45'/%3E%3C/svg%3E");
}

a {
  color: var(--navy);
  text-decoration-color: rgba(1, 58, 115, 0.25);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #5c8400;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}

.brand-main {
  color: var(--navy);
  font-family: Orbitron, Raleway, Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.brand-sub {
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  padding-left: 12px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--navy);
}

.hero {
  min-height: 72vh;
  display: grid;
  align-items: end;
  padding: clamp(96px, 14vw, 160px) clamp(20px, 5vw, 80px) clamp(48px, 8vw, 96px);
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(6, 13, 20, 0.94) 0%, rgba(6, 13, 20, 0.78) 44%, rgba(6, 13, 20, 0.24) 100%),
    url("images/M3-CRETE_render.jpg") center right / cover no-repeat,
    var(--dark);
}

.eyebrow {
  color: var(--green);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-bottom: 22px;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: Orbitron, Raleway, Arial, sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.04;
  margin: 0;
}

h1 {
  font-size: 7rem;
  max-width: 900px;
}

.legal-title {
  font-size: 5.8rem;
  max-width: 1160px;
}

.nowrap {
  white-space: nowrap;
}

h1 span {
  color: var(--green);
}

.lede {
  color: #d5e2eb;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  max-width: 760px;
  margin: 28px 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border: 1px solid var(--navy);
  border-radius: 6px;
  display: inline-flex;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.12em;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
  text-transform: uppercase;
}

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff;
}

.band {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 80px);
}

.band.dark {
  background: var(--dark);
  color: #ffffff;
}

.band.dark p,
.band.dark li {
  color: #c2d4e0;
}

.section-head {
  max-width: 900px;
  margin-bottom: 34px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 14px 0 0;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.dark .card {
  background: var(--dark-panel);
  border-color: #1a3350;
}

.card h3 {
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.dark .card h3 {
  color: var(--green);
}

.card p,
.card li {
  color: var(--muted);
  margin: 0;
}

.card ul,
.card ol {
  margin: 10px 0 0;
  padding-left: 20px;
}

.notice {
  border-left: 5px solid var(--green);
  background: rgba(151, 215, 0, 0.08);
  padding: 22px 24px;
}

.feature-image {
  display: block;
  max-width: min(100%, 1120px);
  margin: 32px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--dark);
}

.full-loop-section {
  background: #060d14;
  color: #ffffff;
  padding: 54px clamp(20px, 5vw, 80px);
}

.full-loop-card {
  position: relative;
  min-height: 420px;
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid #1a3350;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(42, 77, 110, 0.45), rgba(6, 13, 20, 0.96) 68%),
    linear-gradient(135deg, rgba(151, 215, 0, 0.08), rgba(57, 199, 232, 0.06));
  overflow: hidden;
}

.full-loop-card::before {
  content: "";
  position: absolute;
  inset: 66px 112px;
  border: 9px solid transparent;
  border-top-color: #97d700;
  border-right-color: #39c7e8;
  border-bottom-color: #97d700;
  border-left-color: #39c7e8;
  border-radius: 50%;
  opacity: 0.9;
  filter: drop-shadow(0 0 16px rgba(151, 215, 0, 0.42));
}

.full-loop-card::after {
  content: "";
  position: absolute;
  inset: 50px 96px;
  border: 24px solid rgba(26, 51, 80, 0.36);
  border-radius: 50%;
}

.loop-center,
.loop-logo {
  position: absolute;
  z-index: 2;
}

.loop-center {
  left: 50%;
  top: 50%;
  width: 330px;
  min-height: 142px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid #97d700;
  border-radius: 8px;
  background: rgba(11, 24, 36, 0.92);
  text-decoration: none;
}

.loop-center img {
  width: 225px;
  max-height: 36px;
  object-fit: contain;
}

.loop-center span {
  color: #ffffff;
  font-family: Orbitron, Raleway, Arial, sans-serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0;
}

.loop-logo {
  width: 180px;
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #1a3350;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.loop-logo:hover {
  transform: translateY(-3px);
  border-color: #97d700;
}

.loop-logo img {
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
}

.loop-logo.dark {
  background: rgba(11, 24, 36, 0.96);
}

.loop-logo.open3dcp {
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
}

.loop-logo.open3dcp:hover {
  transform: translateX(-50%) translateY(-3px);
}

.loop-logo.cemforge {
  right: 88px;
  top: 152px;
}

.loop-logo.m3 {
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
}

.loop-logo.m3:hover {
  transform: translateX(-50%) translateY(-3px);
}

.loop-logo.cadclaw {
  left: 88px;
  top: 152px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 80px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.76rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 68vh;
    background:
      linear-gradient(180deg, rgba(6, 13, 20, 0.96) 0%, rgba(6, 13, 20, 0.78) 60%, rgba(6, 13, 20, 0.55) 100%),
      url("images/M3-CRETE_render.jpg") center / cover no-repeat,
      var(--dark);
  }
}

@media (max-width: 640px) {
  .brand-sub {
    display: none;
  }

  .nav {
    gap: 11px;
  }

  .button {
    width: 100%;
  }

  h1,
  .legal-title {
    font-size: 3.4rem;
  }

  .nowrap {
    white-space: normal;
  }

  .full-loop-card {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .full-loop-card::before,
  .full-loop-card::after {
    display: none;
  }

  .loop-center,
  .loop-logo,
  .loop-logo.open3dcp,
  .loop-logo.cemforge,
  .loop-logo.m3,
  .loop-logo.cadclaw {
    position: static;
    transform: none;
    width: 100%;
    height: 112px;
  }

  .loop-logo.open3dcp:hover {
    transform: none;
  }

  .loop-logo.m3:hover {
    transform: none;
  }
}
