:root {
  color-scheme: dark;
  --bg: #08111b;
  --panel: rgba(10, 22, 35, 0.78);
  --panel-strong: #0d1d2d;
  --line: rgba(150, 197, 255, 0.16);
  --text: #eef5ff;
  --muted: #9db2ca;
  --accent: #8ce2ff;
  --accent-two: #f5bc68;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  --brand-panel: rgba(11, 23, 36, 0.9);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(140, 226, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 80% 10%, rgba(245, 188, 104, 0.1), transparent 20rem),
    linear-gradient(180deg, #08111b 0%, #0c1724 100%);
  color: var(--text);
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(11, 23, 36, 0.9);
  backdrop-filter: blur(14px);
}

.nav-wrap,
.footer-layout,
.top-nav,
.hero-actions,
.tab-row,
.proof-grid,
.contact-layout,
.capabilities-layout,
.section-grid,
.tab-layout {
  display: flex;
}

.nav-wrap,
.footer-layout {
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.footer-layout {
  justify-content: center;
}

.brand {
  display: inline-flex;
  width: min(25rem, 60vw);
  text-decoration: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-logo,
.footer-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(1.08) drop-shadow(0 0 18px rgba(140, 226, 255, 0.16));
}

.footer-brand-block {
  display: grid;
  gap: 1rem;
  width: 100%;
  justify-items: center;
  text-align: center;
}

.footer-logo {
  width: min(22rem, 100%);
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(140, 226, 255, 0.16);
  border-radius: 1rem;
  background: var(--brand-panel);
}

.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.footer-badge {
  width: 5.75rem;
  min-width: 5.75rem;
  height: 5.75rem;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.footer-tagline {
  margin: 0;
  display: flex;
  align-items: center;
  min-height: 5.75rem;
  font-weight: 800;
  color: var(--text) !important;
  text-align: center;
}

.top-nav {
  gap: 1.1rem;
}

.top-nav a,
.credits a {
  color: var(--muted);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
}

.hero-background {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 17, 27, 0.88) 0%, rgba(8, 17, 27, 0.74) 38%, rgba(8, 17, 27, 0.64) 100%),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/e/ef/Yangshan-Port-Containers.jpg/1280px-Yangshan-Port-Containers.jpg")
      center/cover;
  transform: scale(1.08);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: end;
  min-height: 88vh;
  padding: 6rem 0 4rem;
}

.eyebrow,
.panel-label,
.proof-card span {
  color: var(--accent-two);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.97;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 8vw, 6rem);
}

h2 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.hero-text,
.section-copy p,
.debt-card p,
.tab-layout p,
.tab-layout li,
.contact-copy p,
.form-status,
.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-actions {
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  overflow: hidden;
  min-height: 3.25rem;
  -webkit-tap-highlight-color: transparent;
  background-clip: padding-box;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #c1f5ff 100%);
  color: #08111b;
  border: 0;
}

.button.secondary {
  border-color: var(--line);
  color: var(--text);
}

.hero-panel,
.debt-card,
.tab-panel,
.proof-card,
.contact-form,
.system-graphic,
.capability-list {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.5rem;
  border-radius: 1.7rem;
}

.hero-metrics {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-metrics article {
  padding: 1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
}

.hero-metrics span {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
}

.section {
  padding: 5rem 0;
}

#model,
#capabilities {
  scroll-margin-top: 5.75rem;
}

#contact {
  scroll-margin-top: 5.75rem;
}

.section-grid,
.capabilities-layout,
.contact-layout {
  gap: 1.5rem;
  align-items: center;
}

.section-grid,
.capabilities-layout,
.contact-layout {
  justify-content: space-between;
}

.section-grid > *,
.capabilities-layout > *,
.contact-layout > * {
  flex: 1;
}

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

.debt-card,
.proof-card,
.contact-form,
.capability-list {
  padding: 1.5rem;
  border-radius: 1.6rem;
}

.dark-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 1.4rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.section-intro .section-head {
  margin-bottom: 0;
}

.section-media {
  overflow: hidden;
  margin: 0;
  min-height: 14rem;
  border-radius: 1.7rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

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

.tab-row {
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 0.8rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tab.is-active {
  background: rgba(140, 226, 255, 0.12);
  border-color: rgba(140, 226, 255, 0.28);
}

.tab-panel {
  display: none;
  border-radius: 1.7rem;
  padding: 1.5rem;
}

.tab-panel.is-active {
  display: block;
}

.tab-layout {
  justify-content: space-between;
  gap: 2rem;
}

.tab-layout ul {
  margin: 0;
  padding-left: 1rem;
}

.system-graphic {
  overflow: hidden;
  border-radius: 1.8rem;
  min-height: 24rem;
}

.system-graphic img {
  object-fit: contain;
  padding: 2rem;
  background: #e8edf4;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.chip-grid span {
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.92rem;
}

.proof-grid {
  gap: 1rem;
}

.proof-card {
  flex: 1;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(2, 10, 17, 0.88);
  background-clip: padding-box;
  font: inherit;
  color: var(--text);
}

.contact-form .button.primary {
  width: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, #c1f5ff 100%);
  box-shadow: 0 18px 36px rgba(1, 9, 16, 0.34);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.credits {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms ease;
}

@media (max-width: 900px) {
  .nav-wrap,
  .footer-layout,
  .section-intro,
  .proof-grid,
  .contact-layout,
  .capabilities-layout,
  .section-grid,
  .tab-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-layout,
  .debt-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    width: min(15.75rem, calc(100% - 6.2rem));
  }

  .footer-layout {
    gap: 1rem;
    align-items: center;
  }

  .nav-wrap {
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .top-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    background: rgba(11, 23, 36, 0.98);
    box-shadow: var(--shadow);
  }

  .top-nav a {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.95rem;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-layout {
    min-height: auto;
    padding: 3rem 0 2.5rem;
    align-items: start;
  }

  .section {
    padding: 3rem 0;
  }

  .section-intro {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  #model {
    scroll-margin-top: 6.6rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .system-graphic {
    min-height: 18rem;
  }

  .system-graphic img {
    padding: 1.25rem;
  }

  .tab {
    flex: 1 1 10rem;
    text-align: center;
  }

  .debt-card,
  .proof-card,
  .contact-form,
  .capability-list,
  .hero-panel {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1180px, calc(100% - 1rem));
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  h2 {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .brand {
    width: min(14.75rem, calc(100% - 5.8rem));
  }

  .menu-toggle {
    padding: 0.62rem 0.9rem;
    font-size: 0.95rem;
  }

  .hero-layout {
    padding: 2.4rem 0 2rem;
  }

  .tab-row {
    width: 100%;
  }

  .tab {
    width: 100%;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .footer-brand-row {
    padding: 0.8rem;
    gap: 0.85rem;
  }

  .footer-badge {
    width: 4.75rem;
    min-width: 4.75rem;
    height: 4.75rem;
  }

  .footer-tagline {
    min-height: 4.75rem;
    font-size: 0.98rem;
    line-height: 1.5;
  }
}
