:root {
  color-scheme: dark;
  --background: #000000;
  --ink: #f0f0f0;
  --secondary: #a1a4a5;
  --muted: #8a8a8a;
  --divider: #1a1a1a;
  --border: #1f1f1f;
  --control: #2a2a2a;
  --hover: #5a5a5a;
  --surface: #0a0a0a;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--secondary); font: 400 16px/1.68 Inter, sans-serif; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid white; outline-offset: 5px; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 32px; }
.top, section { border-bottom: 1px solid var(--divider); }
.navigation { display: flex; justify-content: center; align-items: center; gap: 16px 24px; padding-block: 20px; animation: fade-in 2.4s var(--ease) both; }
.brand { color: var(--ink); font: 400 36px/1 var(--serif); }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px clamp(12px, 3vw, 36px); font-size: 14px; }
.nav-links a { padding: 4px 6px; border-radius: 6px; transition: background-color .4s var(--ease); }
.nav-links a {
  animation: blur-in 1.1s var(--ease) both;
  animation-delay: calc(.22s + var(--nav-order, 0) * .09s);
}
.nav-links a:nth-child(2) { --nav-order: 1; }
.nav-links a:nth-child(3) { --nav-order: 2; }
.nav-links a:hover { background: var(--surface); }
section { padding-block: 150px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.hero { position: relative; isolation: isolate; overflow: clip; }
.hero-grid { align-items: center; gap: 48px; }
.hero .dots { animation: fade-in 2.4s var(--ease) both; }
h1, h2, h3 { margin: 0; color: var(--ink); font: 400 1em/1 var(--serif); letter-spacing: -.01em; }
h1 { font-size: clamp(64px, 10vw, 148px); line-height: .95; }
h1 span { display: inline-block; animation: blur-in 1.2s var(--ease) both; animation-delay: calc(.35s + var(--letter, 0) * .07s); }
h1 span:nth-child(2) { --letter: 1; }
h1 span:nth-child(3) { --letter: 2; }
h1 span:nth-child(4) { --letter: 3; }
h2 { font-size: clamp(48px, 6vw, 84px); overflow-wrap: anywhere; background: linear-gradient(to right bottom, #fff 30%, rgba(255,255,255,.45)); background-clip: text; color: transparent; }
h3 { font-size: 36px; }
.center { text-align: center; margin-bottom: 48px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 13px 24px; font: 500 15px/1.35 Inter, sans-serif; transition: background-color .4s var(--ease), border-color .4s var(--ease); }
.primary { color: #000; background: #fff; }
.primary:hover { background: #d4d4d4; }
.card { border: 1px solid var(--border); border-radius: 16px; padding: 36px; transition: border-color .6s var(--ease), background-color .6s var(--ease); }
.card:hover { border-color: var(--hover); background: var(--surface); }
.card p { margin: 12px 0 24px; }
.card .mono { margin: 0 0 24px; }
.mono { color: var(--muted); font: 400 12px/1.65 var(--mono); text-transform: uppercase; letter-spacing: .18em; }
.rows { border-bottom: 1px solid var(--divider); }
.faq { max-width: 720px; margin-inline: auto; }
summary { border-top: 1px solid var(--divider); transition: background-color .4s var(--ease); padding-block: 18px; color: var(--ink); cursor: pointer; }
summary:hover { background: var(--surface); }
details p { margin: 0 0 20px; }
details[open] p { animation: blur-in .6s var(--ease) both; }
footer { padding-block: 28px; }
.dots, .beam { position: absolute; z-index: -1; pointer-events: none; }
.dots { inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); }
.beam { top: 38%; left: -40%; width: 180%; height: 110px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); animation: sweep 9s linear infinite; }
.beam-second { top: 62%; height: 140px; animation-duration: 13s; animation-delay: -4s; }
.sphere-stage { width: min(100%, 340px); aspect-ratio: 1; justify-self: center; perspective: 1100px; animation: fade-in 2.4s var(--ease) both; }
.sphere-sway, .sphere { width: 100%; height: 100%; transform-style: preserve-3d; }
.sphere-sway { animation: sway 14s ease-in-out infinite; }
.sphere { animation: spin 28s linear infinite; }
.sphere i { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; transform: rotateY(var(--angle)); }
.sphere i:nth-child(3n + 1) { border-color: rgba(255,255,255,.55); }
.sphere .equator { transform: rotateX(90deg); }
.sphere .inner { transform: rotateX(90deg) scale(.72); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes blur-in { from { opacity: 0; filter: blur(12px); transform: translateY(14px); } to { opacity: 1; filter: none; transform: none; } }
@keyframes sweep { 0% { opacity: 0; transform: translateX(-40%) rotate(-28deg); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateX(60%) rotate(-28deg); } }
@keyframes spin { from { transform: rotateX(18deg) rotateY(0deg); } to { transform: rotateX(18deg) rotateY(360deg); } }
@keyframes sway { 0%, 100% { transform: rotateZ(-8deg); } 50% { transform: rotateZ(8deg); } }
@supports (animation-timeline: view()) {
  .reveal { animation: blur-in var(--ease) both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  .card:nth-child(2) { animation-range: entry 6% cover 34%; }
  .reveal:focus-within { animation: none; }
}
@media (max-width: 720px) {
  .nav-links { column-gap: 8px; }
  .hero-grid { gap: 36px; }
  .sphere-stage { width: min(80%, 340px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .beam { display: none; }
  .sphere { transform: rotateX(18deg) rotateY(25deg); }
}

.cube-feature {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(380px, 65vw, 650px);
  overflow: clip;
  border-bottom: 1px solid var(--divider);
}
.cube-feature .dots {
  mask-image: radial-gradient(ellipse at center, #000 5%, transparent 68%);
}
.cube-stage {
  width: min(52vw, 276px);
  aspect-ratio: 1;
}
.cube-perspective {
  position: relative;
  width: 100%;
  height: 100%;
  container-type: inline-size;
  perspective: 1000px;
}
.cube-orbit, .rubik-cube, .cube-layer, .cubie {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.cube-orbit {
  animation: cube-orbit 32s linear infinite;
  animation-play-state: paused;
}
.cube-feature.is-visible .cube-orbit { animation-play-state: running; }
.cubie {
  --step: calc(100cqw / 3);
  --edge: calc(var(--step) - 2px);
  width: var(--edge);
  height: var(--edge);
  margin: auto;
  transform: translate3d(calc(var(--x) * var(--step)), calc(var(--y) * var(--step)), calc(var(--z) * var(--step)));
}
.cubie-face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 9%;
  background: linear-gradient(145deg, rgba(255,255,255,.11), transparent 55%, rgba(255,255,255,.02)), #080808;
  backface-visibility: hidden;
  transform: var(--face-turn) translateZ(calc(var(--edge) / 2));
}
.cubie-face::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 7%;
  border: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(160deg, rgba(255,255,255,.04), transparent 66%), #080808;
}
@keyframes cube-orbit {
  from { transform: rotateX(-24deg) rotateY(32deg) rotateZ(-6deg); }
  to { transform: rotateX(-24deg) rotateY(392deg) rotateZ(-6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cube-orbit { transform: rotateX(-24deg) rotateY(32deg) rotateZ(-6deg); }
}
