:root {
  --bg: #06070b;
  --panel: #0d111a;
  --panel-2: #151b27;
  --ink: #f5f7fb;
  --muted: #8f9bb2;
  --cyan: #4be1ff;
  --lime: #b7ff5a;
  --violet: #9b7cff;
  --orange: #ffb86b;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 30px 120px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(75, 225, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(75, 225, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 82% 12%, rgba(155, 124, 255, 0.24), transparent 28rem),
    radial-gradient(circle at 12% 28%, rgba(183, 255, 90, 0.13), transparent 25rem),
    var(--bg);
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
  color: var(--ink);
  font-family: "Space Grotesk", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 7, 11, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
}

.brand span {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(75, 225, 255, 0.48);
  border-radius: 0.4rem;
  background: linear-gradient(135deg, rgba(75, 225, 255, 0.16), rgba(183, 255, 90, 0.12));
  color: var(--cyan);
  font-family: "IBM Plex Mono", monospace;
}

nav {
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

nav a:hover {
  color: var(--cyan);
}

.language {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel-2);
  color: var(--lime);
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  padding: 0.72rem 0.95rem;
}

.vault-hero {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) minmax(18rem, 0.42fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: 78vh;
  align-items: stretch;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.hero-index {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  color: var(--cyan);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.index-lines {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0;
}

.index-lines i {
  display: block;
  width: 2px;
  height: 2.4rem;
  background: var(--lime);
}

.hero-copy {
  align-self: center;
}

.hero-copy > p:first-child,
.catalog-title p,
.data-copy p:first-child,
.license-panel p:first-child,
.loop-title p,
.contacts p:first-child {
  color: var(--cyan);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 0.85rem 0 1.2rem;
  max-width: 72rem;
  font-size: clamp(3.2rem, 8vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

h3 {
  font-size: 1.28rem;
  line-height: 1.2;
}

.hero-copy > p:last-of-type {
  max-width: 54rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-actions a {
  display: inline-flex;
  min-height: 3.3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  font-weight: 800;
  padding: 0.85rem 1.1rem;
}

.hero-actions a:first-child {
  background: var(--cyan);
  color: #031017;
  box-shadow: 0 18px 60px rgba(75, 225, 255, 0.22);
}

.hero-actions a:last-child {
  border: 1px solid var(--line);
  color: var(--lime);
}

.identity-card {
  align-self: end;
  display: grid;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(13, 17, 26, 0.84);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.identity-card span {
  color: var(--orange);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.identity-card strong {
  font-size: 1.5rem;
}

.identity-card p {
  color: var(--muted);
}

.identity-card a {
  color: var(--lime);
  font-family: "IBM Plex Mono", monospace;
}

.software-catalog,
.data-floor,
.license-desk,
.operations-loop,
.contacts {
  padding: clamp(4rem, 7vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.catalog-title {
  max-width: 66rem;
  margin-bottom: 2rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(14rem, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--line);
}

.catalog-grid article {
  min-height: 28rem;
  background:
    linear-gradient(180deg, rgba(75, 225, 255, 0.08), transparent),
    var(--panel);
  padding: 1.4rem;
}

.catalog-grid span,
.loop-track span,
.license-notes span {
  color: var(--lime);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.catalog-grid p,
.data-copy > p:last-child,
.data-racks p,
.license-panel > p:last-child,
.license-notes p,
.loop-track p,
.contacts > div > p:last-child {
  color: var(--muted);
}

.data-floor {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  gap: 3rem;
  background: linear-gradient(135deg, rgba(75, 225, 255, 0.08), rgba(155, 124, 255, 0.08));
}

.data-copy {
  align-self: center;
}

.data-racks {
  display: grid;
  gap: 1rem;
}

.data-racks article {
  border: 1px solid var(--line);
  border-left: 0.55rem solid var(--cyan);
  border-radius: 0.85rem;
  background: rgba(13, 17, 26, 0.8);
  padding: 1.25rem;
}

.data-racks b {
  color: var(--ink);
  color: var(--cyan);
  font-size: 1.22rem;
}

.license-desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.75fr);
  gap: 1rem;
}

.license-panel {
  border: 1px solid var(--line);
  border-radius: 1.3rem 0.3rem 0.3rem 1.3rem;
  background: var(--panel-2);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.license-notes {
  display: grid;
  gap: 1rem;
}

.license-notes div {
  border: 1px dashed rgba(183, 255, 90, 0.32);
  border-radius: 0.8rem;
  background: rgba(183, 255, 90, 0.06);
  padding: 1.15rem;
}

.operations-loop {
  overflow: hidden;
}

.loop-title {
  max-width: 70rem;
  margin-bottom: 2rem;
}

.loop-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(20rem, 1fr));
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.loop-track article {
  position: relative;
  min-height: 21rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 20%, rgba(75, 225, 255, 0.18), transparent 45%),
    var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.66fr);
  gap: 2rem;
  align-items: center;
  background: #f5f7fb;
  color: #0a0e16;
}

.contacts p:first-child {
  color: #355cff;
}

address {
  display: grid;
  gap: 1rem;
  margin: 0;
  border: 1px solid rgba(10, 14, 22, 0.12);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(10, 14, 22, 0.12);
  color: #0a0e16;
  font-style: normal;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  padding: 1.5rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 1100px) {
  .vault-hero,
  .data-floor,
  .license-desk,
  .contacts {
    grid-template-columns: 1fr;
  }

  .hero-index {
    display: none;
  }

  .catalog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  nav {
    display: none;
  }

  .catalog-grid,
  .loop-track {
    grid-template-columns: 1fr;
  }

  .loop-track article {
    border-radius: 1.4rem;
    min-height: auto;
    text-align: left;
  }

  h1 {
    font-size: 2.8rem;
  }

  footer {
    flex-direction: column;
  }
}
