:root {
  --bg: #0b0b0d;
  --bg-deep: #07070a;
  --fg: #f7f3ee;
  --muted: #b9b3ab;
  --dim: #8a857e;
  --orange: #ff7a00;
  --orange-bright: #ffa31a;
  --orange-deep: #f05000;
  --cream: #f7f3ee;
  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg-deep);
  color: var(--fg);
}

body {
  font-family: var(--font-display);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: color-mix(in srgb, var(--orange) 45%, transparent);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 540px at 8% -8%, rgba(255, 122, 0, 0.16), transparent 58%),
    radial-gradient(820px 520px at 100% 108%, rgba(255, 122, 0, 0.14), transparent 55%),
    radial-gradient(640px 400px at 50% 50%, rgba(255, 140, 20, 0.05), transparent 62%),
    linear-gradient(180deg, #0c0b10 0%, #0b0b0d 42%, #08080b 100%);
}

.streaks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.streak-tl {
  transform-origin: 20% 10%;
  animation: glowShift 10s ease-in-out infinite;
}

.streak-br {
  transform-origin: 80% 90%;
  animation: glowShift 12s ease-in-out infinite reverse;
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 700px at 50% 45%, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 0 1.5rem;
}

.lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(90vw, 1000px);
  max-width: 100%;
  animation: floatIn 1.1s ease both;
}

.cube-stage {
  position: relative;
  flex: 0 0 auto;
  width: calc(100% * 320 / 1030);
  aspect-ratio: 320 / 288;
  overflow: visible;
  isolation: isolate;
}

.cube {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(153 / 320 * 100%);
  height: auto;
  transform-origin: 50% 51.21%;
  z-index: 2;
  will-change: transform;
  pointer-events: none;
  backface-visibility: hidden;
  filter: drop-shadow(0 10px 16px rgba(255, 90, 0, 0.18));
}

.cube picture,
.cube img {
  display: block;
  width: 100%;
  height: auto;
}

.wordmark {
  flex: 1 1 auto;
  min-width: 0;
  width: calc(100% * 710 / 1030);
  display: block;
}

.wordmark-img {
  width: 100%;
  height: auto;
  display: block;
}

.kicker {
  margin: clamp(2rem, 5.5vh, 3.1rem) 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange-bright);
  text-shadow: 0 0 18px rgba(255, 122, 0, 0.35);
  animation: floatIn 1.2s ease 0.12s both;
}

h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 5.4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #fbf8f4;
  text-wrap: balance;
  animation: floatIn 1.25s ease 0.18s both;
}

.typewriter {
  display: block;
  min-height: 2.4em;
}

.type-text {
  white-space: pre-wrap;
}

.caret {
  display: inline-block;
  width: 0.085em;
  height: 0.82em;
  margin-left: 0.07em;
  background: linear-gradient(180deg, #ffd27a, #ff7a00);
  border-radius: 1px;
  vertical-align: -0.04em;
  box-shadow: 0 0 10px rgba(255, 122, 0, 0.7);
  animation: caretBlink 0.72s steps(1) infinite;
}

.lede {
  margin: 0.95rem 0 0;
  max-width: 34rem;
  font-size: clamp(0.98rem, 2.05vw, 1.18rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
  animation: floatIn 1.3s ease 0.24s both;
}

.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  padding-top: 1.25rem;
  text-align: center;
}

.powered,
.copy {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--dim);
}

.powered {
  font-weight: 500;
  color: #9a958e;
}

@keyframes glowShift {
  0%, 100% { opacity: 1; transform: scale(1) translateY(0); }
  50% { opacity: 0.82; transform: scale(1.03) translate3d(8px, -6px, 0); }
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes caretBlink {
  0%, 46% { opacity: 1; }
  47%, 100% { opacity: 0; }
}

@media (max-width: 620px) {
  .page {
    padding-inline: 5vw;
  }

  .lockup {
    width: 100%;
    max-width: none;
  }

  h1 {
    max-width: 13ch;
  }

  .typewriter {
    min-height: 3.4em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .streak-tl,
  .streak-br,
  .lockup,
  .kicker,
  h1,
  .lede {
    animation: none;
  }

  .caret {
    animation: none;
    display: none;
  }
}
