:root {
  --bg: #111217;
  --bg-soft: #17181c;
  --surface: #1d1f26;
  --border: #2b2e37;
  --border-strong: #3a3f4c;
  --text: #e8ebf1;
  --text-muted: #b2b8c7;
  --sky: #71e5ff;
  --sky-soft: rgba(113, 229, 255, 0.35);
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: "Instrument Sans", Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top right, #1a1d25 0%, var(--bg) 50%);
  color: var(--text);
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.hero-copy,
.mat-stage {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.is-ready .hero-copy,
.is-ready .mat-stage {
  opacity: 1;
  transform: translateY(0);
}

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

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.75rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(17, 18, 23, 0.85);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  color: var(--text-muted);
}

.nav-list a:hover,
.nav-list a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--sky);
}

.hero {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  max-width: 44ch;
}

.eyebrow {
  color: var(--sky);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
}

h1 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
  max-width: 18ch;
  margin-bottom: 1rem;
}

h2 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.lead {
  color: var(--text-muted);
  max-width: 52ch;
  font-size: 1.03rem;
  margin-bottom: 1.4rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.1rem;
  border: 1px solid var(--sky);
  border-radius: 0.5rem;
  color: #0f141b;
  background: linear-gradient(180deg, #8ff0ff 0%, #63d8f3 100%);
  font-weight: 600;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(113, 229, 255, 0.25);
}

.section {
  padding: 3rem 0;
}

.section p {
  color: var(--text-muted);
  max-width: 70ch;
}

.section-alt {
  background:
    radial-gradient(circle at 15% 15%, rgba(113, 229, 255, 0.08), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(93, 114, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pillars {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  perspective: 1000px;
}

.pillar {
  --shine-x: 50%;
  --shine-y: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(27, 30, 40, 0.95), rgba(17, 20, 30, 0.93));
  border: 1px solid #000;
  border-radius: 0.15rem;
  padding: 1.15rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(113, 229, 255, 0.1),
    0 14px 36px rgba(0, 0, 0, 0.28);
  transform: rotateX(0deg) rotateY(0deg);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 180ms ease;
}

.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(78, 156, 178, 0.16), rgba(78, 156, 178, 0) 56.25%),
    linear-gradient(120deg, rgba(78, 156, 178, 0.1), rgba(78, 156, 178, 0) 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}

.pillar h3 {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: #f6f9ff;
  margin-bottom: 0.35rem;
}

.pillar p {
  color: #bec6d9;
  line-height: 1.58;
}

.site-footer {
  padding: 1.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
}

.mat-stage {
  width: 100%;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wire-box {
  width: 300px;
  height: 300px;
  perspective: 650px;
  cursor: grab;
  touch-action: none;
}

.wire-box.is-dragging {
  cursor: grabbing;
}

.wire-orbit {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateY(0deg);
}

.wire {
  width: 300px;
  height: 300px;
  transform-style: preserve-3d;
  transform: rotateX(18deg) rotateY(-28deg);
  animation: wire-rotate 14s linear infinite;
  position: relative;
}

.wire-top {
  transform: rotateX(90deg) translateZ(150px);
}

.wire-front {
  transform: translateZ(150px);
}

.wire-right {
  transform: rotateY(90deg) translateZ(150px);
}

.wire-left {
  transform: rotateY(-90deg) translateZ(150px);
}

.wire-back {
  transform: rotateY(180deg) translateZ(150px);
}

.wire-bottom {
  transform: rotateX(-90deg) translateZ(150px);
}

.wire-face {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 2px solid transparent;
  border-image: conic-gradient(
      from 18deg,
      rgba(113, 229, 255, 0.88) 0deg,
      rgba(113, 229, 255, 1) 24deg,
      rgba(255, 255, 255, 0.95) 38deg,
      rgba(113, 229, 255, 0.84) 72deg,
      rgba(113, 229, 255, 0.62) 148deg,
      rgba(169, 244, 255, 0.9) 196deg,
      rgba(113, 229, 255, 0.64) 236deg,
      rgba(113, 229, 255, 0.9) 320deg,
      rgba(255, 255, 255, 0.88) 348deg,
      rgba(113, 229, 255, 0.88) 360deg
    )
    1;
  background: transparent;
  box-shadow:
    0 0 10px rgba(113, 229, 255, 0.55),
    0 0 24px rgba(113, 229, 255, 0.38),
    0 0 46px rgba(113, 229, 255, 0.22),
    inset 0 0 10px rgba(113, 229, 255, 0.1);
}

.wire-face::before,
.wire-face::after {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
}

.wire-face::before {
  border: 2px solid rgba(182, 245, 255, 0.75);
  filter: blur(2px);
  opacity: 0.8;
}

.wire-face::after {
  padding: 2px;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 89% 13%, rgba(149, 237, 255, 0.9), rgba(149, 237, 255, 0) 38%),
    radial-gradient(circle at 85% 86%, rgba(123, 231, 255, 0.85), rgba(123, 231, 255, 0) 44%),
    radial-gradient(circle at 12% 89%, rgba(177, 245, 255, 0.82), rgba(177, 245, 255, 0) 39%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0) 82%, rgba(255, 255, 255, 0.42)),
    linear-gradient(0deg, rgba(160, 240, 255, 0.48), rgba(160, 240, 255, 0) 18%, rgba(160, 240, 255, 0) 82%, rgba(160, 240, 255, 0.38));
  opacity: 0.78;
  animation: wire-highlight 5.8s ease-in-out infinite alternate;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

@keyframes wire-rotate {
  from {
    transform: rotateX(18deg) rotateY(0turn);
  }

  to {
    transform: rotateX(18deg) rotateY(1turn);
  }
}

@keyframes wire-highlight {
  0% {
    opacity: 0.66;
    filter: saturate(100%) brightness(95%);
  }

  50% {
    opacity: 0.86;
    filter: saturate(120%) brightness(113%);
  }

  100% {
    opacity: 0.74;
    filter: saturate(105%) brightness(102%);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .mat-stage {
    order: -1;
    min-height: 260px;
  }

  .wire-box,
  .wire,
  .wire-face {
    width: 170px;
    height: 170px;
  }

  .wire-top {
    transform: rotateX(90deg) translateZ(85px);
  }

  .wire-front {
    transform: translateZ(85px);
  }

  .wire-right {
    transform: rotateY(90deg) translateZ(85px);
  }

  .wire-left {
    transform: rotateY(-90deg) translateZ(85px);
  }

  .wire-back {
    transform: rotateY(180deg) translateZ(85px);
  }

  .wire-bottom {
    transform: rotateX(-90deg) translateZ(85px);
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 0;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wire {
    animation: none;
    transform: rotateX(18deg) rotateY(24deg);
  }

  .btn-primary {
    transition: none;
  }

  .hero-copy,
  .mat-stage {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pillar {
    transition: none;
    transform: none;
  }
}
