:root {
  --bg: #070808;
  --panel: rgba(16, 18, 18, 0.78);
  --panel-solid: #111313;
  --text: #f7f7f2;
  --muted: #979a98;
  --red: #e32835;
  --green: #00844b;
  --gold: #d7a51c;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 30px 120px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, var(--red) 0 33.3%, var(--gold) 33.3% 66.6%, var(--green) 66.6%) top / 100% 5px no-repeat,
    radial-gradient(circle at 68% 12%, rgba(0, 132, 75, 0.2), transparent 26rem),
    radial-gradient(circle at 12% 22%, rgba(227, 40, 53, 0.15), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, Segoe UI, Arial, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

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

#future-scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.58;
  pointer-events: none;
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  background: rgba(7, 8, 8, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand img {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(227, 40, 53, 0.58);
  border-radius: 50%;
}

nav {
  gap: 6px;
}

nav a {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

nav a:hover {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  align-items: center;
  gap: 48px;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 84px);
  margin: 0 auto;
  padding: 36px 0 62px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.94;
  font-weight: 900;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.7vw, 4.7rem);
  line-height: 1;
}

.lead {
  max-width: 690px;
  margin: 26px 0 0;
  color: #d6d8d3;
  font-size: clamp(1.05rem, 1.8vw, 1.34rem);
  line-height: 1.74;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.button.primary {
  background: linear-gradient(135deg, var(--red), #8c111a);
  border-color: rgba(227, 40, 53, 0.85);
  color: white;
  box-shadow: 0 18px 45px rgba(227, 40, 53, 0.18);
}

.button.secondary {
  background: rgba(0, 132, 75, 0.16);
  border-color: rgba(0, 132, 75, 0.84);
}

.holo-stage {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.holo-stage::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 132, 75, 0.22), transparent 62%);
  filter: blur(10px);
}

.orbit {
  position: absolute;
  width: 86%;
  height: 86%;
  border: 1px solid rgba(215, 165, 28, 0.45);
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: spin 12s linear infinite;
}

.orbit-two {
  width: 70%;
  height: 70%;
  border-color: rgba(227, 40, 53, 0.48);
  animation-duration: 9s;
  animation-direction: reverse;
  transform: rotateX(68deg) rotateZ(24deg);
}

.orbit-one {
  transform: rotateX(64deg) rotateZ(-18deg);
}

.core-card {
  position: absolute;
  bottom: 5%;
  left: 50%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(86%, 360px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(12, 14, 14, 0.78);
  box-shadow: var(--shadow);
  transform: translateX(-50%) rotateX(8deg);
}

.core-card img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
}

.core-card span,
.core-card strong {
  font-family: Consolas, "Courier New", monospace;
  text-align: center;
}

.core-card span {
  color: var(--muted);
  letter-spacing: 0.32em;
  font-size: 0.72rem;
}

.core-card strong {
  color: var(--gold);
  font-size: 0.82rem;
}

.cube {
  position: relative;
  width: 132px;
  height: 132px;
  transform-style: preserve-3d;
  animation: cube-rotate 10s linear infinite;
}

.face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 132, 75, 0.12);
  color: var(--text);
  font-family: Consolas, "Courier New", monospace;
  font-weight: 900;
  box-shadow: inset 0 0 32px rgba(0, 132, 75, 0.16);
}

.front { transform: translateZ(66px); }
.back { transform: rotateY(180deg) translateZ(66px); }
.right { transform: rotateY(90deg) translateZ(66px); }
.left { transform: rotateY(-90deg) translateZ(66px); }
.top { transform: rotateX(90deg) translateZ(66px); }
.bottom { transform: rotateX(-90deg) translateZ(66px); }

.signal-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 34px;
  padding: 18px 24px;
  border: 1px solid rgba(227, 40, 53, 0.34);
  border-radius: 8px;
  background: rgba(43, 12, 13, 0.72);
  color: var(--muted);
}

.signal-strip strong {
  color: var(--red);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(1.05rem, 3vw, 1.65rem);
  letter-spacing: 0.14em;
  text-align: center;
}

.signal-strip span:last-child {
  color: var(--gold);
  text-align: right;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-head {
  max-width: 840px;
  margin-bottom: 30px;
}

.proof-grid,
.solution-board,
.work-list {
  display: grid;
  gap: 16px;
}

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

.proof-grid article,
.solution,
.work,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.proof-grid article {
  min-height: 230px;
  padding: 26px;
}

.proof-grid span {
  color: var(--gold);
  font-family: Consolas, "Courier New", monospace;
  font-weight: 900;
}

h3 {
  margin: 18px 0 14px;
  font-size: 1.22rem;
}

.proof-grid p,
.solution p,
.contact p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.solutions {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.012));
  border-block: 1px solid var(--line);
}

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

.solution {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  padding: 28px;
  transform-style: preserve-3d;
  transition: transform 180ms ease, border-color 180ms ease;
}

.solution:hover {
  transform: translateY(-5px) rotateX(2deg) rotateY(-2deg);
}

.solution.red { border-color: rgba(227, 40, 53, 0.72); }
.solution.green { border-color: rgba(0, 132, 75, 0.72); }
.solution.gold { border-color: rgba(215, 165, 28, 0.72); }
.solution.red h3 { color: var(--red); }
.solution.green h3 { color: var(--green); }
.solution.gold h3 { color: var(--gold); }

.panel-lines {
  height: 86px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 18%, transparent 18% 26%, rgba(255, 255, 255, 0.12) 26% 48%, transparent 48% 100%),
    repeating-linear-gradient(0deg, transparent 0 13px, rgba(255, 255, 255, 0.08) 13px 15px);
}

.dark-band {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
}

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

.work {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 24px;
  transition: transform 160ms ease;
}

.work:hover {
  transform: translateY(-3px);
}

.work span {
  font-size: 1.22rem;
  font-weight: 900;
}

.work small {
  color: var(--muted);
}

.work.red { border-color: var(--red); }
.work.green { border-color: var(--green); }
.work.gold { border-color: var(--gold); }
.work.red span { color: var(--red); }
.work.green span { color: var(--green); }
.work.gold span { color: var(--gold); }

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.65fr);
  gap: 28px;
  align-items: start;
}

.contact-card {
  display: grid;
  padding: 10px;
  background: rgba(17, 19, 19, 0.9);
}

.contact-card a {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.contact-card a:last-child {
  border-bottom: 0;
}

.contact-card span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.contact-card strong {
  color: var(--text);
  font-size: 1.08rem;
}

@keyframes cube-rotate {
  from { transform: rotateX(-18deg) rotateY(0deg) rotateZ(4deg); }
  to { transform: rotateX(-18deg) rotateY(360deg) rotateZ(4deg); }
}

@keyframes spin {
  from { transform: rotateX(64deg) rotateZ(0deg); }
  to { transform: rotateX(64deg) rotateZ(360deg); }
}

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

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

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

  .hero {
    min-height: auto;
  }

  .holo-stage {
    width: min(88vw, 460px);
  }

  .proof-grid,
  .solution-board,
  .work-list,
  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal-strip,
  .signal-strip span:last-child {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .section,
  .signal-strip {
    width: min(100% - 20px, 1180px);
  }

  .brand span {
    display: none;
  }

  nav a {
    padding: 8px 7px;
    font-size: 0.78rem;
  }

  .button {
    width: 100%;
  }

  .cube {
    width: 104px;
    height: 104px;
  }

  .front { transform: translateZ(52px); }
  .back { transform: rotateY(180deg) translateZ(52px); }
  .right { transform: rotateY(90deg) translateZ(52px); }
  .left { transform: rotateY(-90deg) translateZ(52px); }
  .top { transform: rotateX(90deg) translateZ(52px); }
  .bottom { transform: rotateX(-90deg) translateZ(52px); }
}
