:root {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #071112;
  color: #eef7f4;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(7, 17, 18, 0.12), #071112 74vh),
    radial-gradient(
      circle at 82% 8%,
      rgba(49, 105, 141, 0.22),
      transparent 26rem
    ),
    #071112;
}

.demo-gate-page {
  min-height: 100vh;
  background: #071112;
}

.demo-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.demo-gate-form {
  width: min(360px, 100%);
}

.demo-gate-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(203, 230, 223, 0.28);
  border-radius: 6px;
  background: rgba(16, 32, 34, 0.88);
  color: #eef7f4;
  font: inherit;
  font-size: 18px;
  outline: none;
  padding: 0 16px;
}

.sandcastle-account-page .demo-gate {
  padding-top: 96px;
}

.demo-unavailable {
  width: min(620px, 100%);
  border: 1px solid rgba(203, 230, 223, 0.28);
  border-radius: 14px;
  background: rgba(16, 32, 34, 0.88);
  padding: clamp(28px, 6vw, 56px);
}

.demo-unavailable h1 {
  margin: 8px 0 16px;
  font-size: clamp(32px, 7vw, 52px);
  line-height: 1.05;
}

.demo-unavailable > p:not(.eyebrow) {
  max-width: 52ch;
  color: #b9cbc6;
  font-size: 18px;
  line-height: 1.65;
}

.demo-unavailable-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.demo-gate-form input:focus {
  border-color: #80e2ca;
  box-shadow: 0 0 0 3px rgba(128, 226, 202, 0.16);
}

.demo-gate-form input::placeholder {
  color: #8ea8a2;
  opacity: 1;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(7, 17, 18, 0.82);
  border-bottom: 1px solid rgba(203, 230, 223, 0.18);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 2px solid #80e2ca;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(128, 226, 202, 0.12);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px 16px;
  color: #cbe6df;
  font-size: 14px;
}

.site-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.surface-item a:hover {
  color: #ffd166;
}

.nav-cta {
  padding: 0 12px;
  border: 1px solid rgba(255, 209, 102, 0.46);
  border-radius: 6px;
  color: #ffe4a3;
}

.site-wallet:empty {
  display: none;
}

.site-wallet .sdn-wallet-button {
  min-width: 82px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(128, 226, 202, 0.6);
  border-radius: 999px;
  color: #eef7f4;
  background: rgba(16, 32, 34, 0.9);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-wallet .sdn-wallet-button:enabled:hover,
.site-wallet .sdn-wallet-button:enabled:focus-visible {
  border-color: #80e2ca;
  background: rgba(41, 76, 74, 0.94);
}

.site-wallet .sdn-wallet-button:disabled {
  cursor: progress;
  opacity: 0.78;
}

.hero {
  min-height: 74vh;
  display: flex;
  align-items: flex-end;
  padding: 118px clamp(20px, 5vw, 72px) 72px;
  background:
    linear-gradient(90deg, rgba(7, 17, 18, 0.88), rgba(7, 17, 18, 0.36)),
    linear-gradient(0deg, rgba(7, 17, 18, 0.94), rgba(7, 17, 18, 0.02) 52%),
    url("../assets/module-previews/maneuver-sequencing.jpg") center / cover;
}

.hero-content {
  width: min(760px, 100%);
}

.eyebrow,
.kicker {
  margin: 0 0 10px;
  color: #80e2ca;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(54px, 9vw, 112px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 20px 0 0;
  color: #d8e9e5;
  font-size: 20px;
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(203, 230, 223, 0.32);
  border-radius: 6px;
  color: #eef7f4;
  background: rgba(7, 17, 18, 0.42);
  text-decoration: none;
  font-weight: 650;
}

.button.primary {
  border-color: #80e2ca;
  color: #071112;
  background: #80e2ca;
}

.button.quiet {
  border-color: rgba(255, 209, 102, 0.48);
  color: #ffe4a3;
}

.section-block {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0 28px;
}

.section-heading {
  max-width: 780px;
}

.section-heading h2,
.contact-panel h2 {
  font-size: clamp(30px, 4vw, 52px);
}

.section-heading p {
  color: #d8e9e5;
  font-size: 18px;
  line-height: 1.6;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.capability-item,
.proof-strip div {
  border: 1px solid rgba(203, 230, 223, 0.16);
  border-radius: 8px;
  background: rgba(16, 32, 34, 0.82);
}

.capability-item {
  min-height: 190px;
  padding: 18px;
}

.capability-item strong,
.proof-strip strong {
  display: block;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.25;
}

.capability-item span,
.proof-strip span {
  display: block;
  margin-top: 10px;
  color: #cbe6df;
  line-height: 1.55;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 12px 0 34px;
}

.proof-strip div {
  padding: 16px 18px;
}

.surface-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 30px clamp(20px, 5vw, 72px) 42px;
}

.surface-item {
  overflow: hidden;
  border: 1px solid rgba(203, 230, 223, 0.16);
  border-radius: 8px;
  background: #102022;
}

.surface-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid rgba(203, 230, 223, 0.14);
}

.surface-item div {
  padding: 20px;
}

.surface-item p {
  margin: 0 0 16px;
  color: #cbe6df;
  line-height: 1.55;
}

.surface-item a {
  color: #80e2ca;
  font-weight: 700;
  text-decoration: none;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 72px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.12), transparent 52%), #102022;
}

.contact-panel p {
  max-width: 760px;
  margin: 14px 0 0;
  color: #d8e9e5;
  line-height: 1.6;
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0 72px;
}

.doc-hero {
  padding: 36px 0 16px;
  border-bottom: 1px solid rgba(203, 230, 223, 0.16);
}

.doc-hero h1 {
  font-size: clamp(40px, 7vw, 76px);
}

.doc-hero p,
.doc-section p,
.doc-section li {
  color: #d8e9e5;
  line-height: 1.6;
}

.doc-section {
  padding: 24px 0;
  border-bottom: 1px solid rgba(203, 230, 223, 0.12);
}

.doc-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

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

.module-card {
  display: grid;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid rgba(203, 230, 223, 0.16);
  border-radius: 8px;
  background: #102022;
  color: #eef7f4;
  text-decoration: none;
}

.module-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid rgba(203, 230, 223, 0.12);
}

.module-card strong,
.module-card span {
  display: block;
  padding: 0 16px;
}

.module-card strong {
  padding-top: 16px;
  color: #80e2ca;
  font-size: 17px;
}

.module-card span {
  padding-bottom: 18px;
  color: #cbe6df;
  line-height: 1.5;
}

.module-card:hover {
  border-color: rgba(128, 226, 202, 0.52);
  transform: translateY(-1px);
}

.module-detail {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0 72px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: #80e2ca;
  font-weight: 700;
  text-decoration: none;
}

.back-link::before {
  content: "<";
  margin-right: 8px;
}

.module-hero-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(203, 230, 223, 0.16);
  border-radius: 8px;
  background: #102022;
}

.module-hero-detail img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.module-hero-detail div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
}

.module-hero-detail h1 {
  font-size: clamp(38px, 6vw, 76px);
}

.module-hero-detail p:last-child {
  margin: 20px 0 0;
  color: #d8e9e5;
  font-size: 18px;
  line-height: 1.6;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: block;
  min-height: 100%;
  padding: 16px;
  border: 1px solid rgba(203, 230, 223, 0.16);
  border-radius: 6px;
  background: #102022;
  color: #eef7f4;
  text-decoration: none;
}

.link-list strong {
  display: block;
  margin-bottom: 5px;
  color: #80e2ca;
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(203, 230, 223, 0.12);
  color: #ffffff;
}

@media (max-width: 820px) {
  .site-header {
    position: sticky;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px;
  }

  .site-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .site-nav a {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(203, 230, 223, 0.14);
    border-radius: 6px;
    background: rgba(7, 17, 18, 0.42);
  }

  .hero {
    min-height: 72vh;
    padding-top: 72px;
    padding-bottom: 50px;
  }

  .capability-grid,
  .module-grid,
  .surface-grid,
  .proof-strip,
  .link-list {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

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