:root {
  --bg: #0b1110;
  --ink: #f7f5ef;
  --muted: #9ba8a1;
  --accent: #d9a654;
  --accent-dark: #7cd7b0;
  --card: #121a18;
  --stroke: rgba(247, 245, 239, 0.12);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --radius: 24px;
  --max-width: 1120px;
}

@property --rot-x {
  syntax: "<angle>";
  inherits: false;
  initial-value: -15deg;
}

@property --rot-y {
  syntax: "<angle>";
  inherits: false;
  initial-value: 30deg;
}

@property --rot-z {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

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

body {
  min-height: 100vh;
  font-family: "Newsreader", serif;
  background: linear-gradient(135deg, #0b1110 0%, #101b18 48%, #0b1110 100%);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

img {
  display: block;
  max-width: 100%;
}

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

.container {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  perspective: 800px;
  perspective-origin: center;
  transform-style: preserve-3d;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  transform-style: preserve-3d;
}

.brand-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 12px;
}

.logo-d {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  flex-shrink: 0;
}

.logo-cube {
  --cube: 40px;
  --rot-x: -15deg;
  --rot-y: 30deg;
  --rot-z: 0deg;
  position: relative;
  width: var(--cube);
  height: var(--cube);
  transform-origin: center;
  transform-style: preserve-3d;
  transform: rotateX(var(--rot-x)) rotateY(var(--rot-y)) rotateZ(var(--rot-z));
  transition:
    transform 0.9s ease,
    --rot-x 0.9s ease,
    --rot-y 0.9s ease,
    --rot-z 0.9s ease;
  flex-shrink: 0;
}

.cube-rotator {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.logo-cube .face {
  position: absolute;
  inset: 0;
  border: 2.5px dashed rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.08);
  backface-visibility: visible;
  outline: 1px solid rgba(255, 255, 255, 0.2);
  outline-offset: -1px;
}

.logo-cube .front {
  transform: translateZ(calc(var(--cube) / 2));
}

.logo-cube .back {
  transform: rotateY(180deg) translateZ(calc(var(--cube) / 2));
  border-color: rgba(255, 255, 255, 0.35);
}

.logo-cube .right {
  transform: rotateY(90deg) translateZ(calc(var(--cube) / 2));
}

.logo-cube .left {
  transform: rotateY(-90deg) translateZ(calc(var(--cube) / 2));
  border-color: rgba(255, 255, 255, 0.45);
}

.logo-cube .top {
  transform: rotateX(90deg) translateZ(calc(var(--cube) / 2));
  border-color: rgba(255, 255, 255, 0.6);
}

.logo-cube .bottom {
  transform: rotateX(-90deg) translateZ(calc(var(--cube) / 2));
  border-color: rgba(255, 255, 255, 0.3);
}

.logo-cube .node {
  --node: 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--node);
  height: var(--node);
  transform-style: preserve-3d;
  transform: translate3d(
    calc(var(--x) - (var(--node) / 2)),
    calc(var(--y) - (var(--node) / 2)),
    var(--z)
  );
}

.logo-cube .node-face {
  position: absolute;
  inset: 0;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
  backface-visibility: hidden;
}

.logo-cube .node-face.front {
  transform: translateZ(calc(var(--node) / 2));
}

.logo-cube .node-face.back {
  background: rgba(255, 255, 255, 0.35);
  transform: rotateY(180deg) translateZ(calc(var(--node) / 2));
}

.logo-cube .node-face.top {
  background: rgba(255, 255, 255, 0.85);
  transform: rotateX(90deg) translateZ(calc(var(--node) / 2));
}

.logo-cube .node-face.right {
  background: rgba(255, 255, 255, 0.7);
  transform: rotateY(90deg) translateZ(calc(var(--node) / 2));
}

.logo-cube .node-face.left {
  background: rgba(255, 255, 255, 0.55);
  transform: rotateY(-90deg) translateZ(calc(var(--node) / 2));
}

.logo-cube .node-face.bottom {
  background: rgba(255, 255, 255, 0.45);
  transform: rotateX(-90deg) translateZ(calc(var(--node) / 2));
}

.brand:hover .logo-cube,
.brand:focus-within .logo-cube {
  animation:
    cube-spin-y 5s linear infinite,
    cube-spin-z 45s linear infinite;
  animation-fill-mode: both;
}

@keyframes cube-spin-y {
  from {
    --rot-y: 30deg;
  }
  to {
    --rot-y: 390deg;
  }
}

@keyframes cube-spin-z {
  from {
    --rot-z: 0deg;
  }
  to {
    --rot-z: 360deg;
  }
}

.site-nav {
  display: flex;
  gap: 20px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.site-nav a {
  position: relative;
  padding-bottom: 6px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a:focus::after {
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
  padding: 40px 0 80px;
}

.trusted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.trusted-card {
  display: flex;
  align-items: center;
  gap: 18px;
}

.trusted-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: inherit;
}

.trusted-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 12px;
}

.trusted-card img {
  height: 36px;
  width: auto;
}


.trusted-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-dark);
  font-size: 0.75rem;
  margin-bottom: 18px;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.6rem, 3.2vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
  margin-bottom: 12px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
}


.section {
  padding: 44px 0;
}

.section-header {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-header p {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.team-roster-label {
  margin-top: 28px;
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 18px;
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(247, 245, 239, 0.16);
  background: rgba(12, 18, 17, 0.7);
}

.team-card h3 {
  margin: 0;
}

.team-role {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 4px;
}

.team-bio {
  color: var(--muted);
}

.card,
.panel {
  background: rgba(18, 26, 24, 0.9);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.card p,
.panel p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 32px 0 48px;
  border-top: 1px solid var(--stroke);
}

.footer-top {
  color: var(--ink);
  letter-spacing: 0.12em;
}

.footer-card {
  width: 100%;
  max-width: 680px;
  margin-top: 10px;
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(12, 18, 17, 0.9);
  border: 1px solid rgba(247, 245, 239, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) 1.6fr;
  gap: 10px 20px;
}

.footer-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid rgba(247, 245, 239, 0.08);
}

.footer-value {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-bottom: 1px solid rgba(247, 245, 239, 0.08);
}

.footer-grid .footer-label:nth-last-child(-n + 2),
.footer-grid .footer-value:nth-last-child(-n + 2) {
  border-bottom: 0;
  padding-bottom: 0;
}

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

  .footer-value {
    padding-top: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .card-grid,
  .split,
  .kyb-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .site-nav a::after {
    transition: none;
  }

  .brand:hover .logo-cube,
  .brand:focus-within .logo-cube {
    animation: none;
  }

  .logo-cube {
    transition: none;
  }
}
