/* Odin — one-page product site. Self-contained marketing page (not part of the
   shell design system). Dark, cinematic, a single fold. */

:root {
  --bg:        #06070b;
  --ink:       #eef0f6;
  --ink-soft:  #9aa0b4;
  --ink-faint: #565d72;
  --indigo:    #6d78ff;
  --cyan:      #38e0ff;
  --violet:    #a78bfa;
  --edge:      rgba(255, 255, 255, 0.10);
  --font-display: "Space Grotesk", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  position: relative;
}

/* ---------- ambient layers ---------- */
#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  filter: blur(70px) saturate(135%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}
.blob-1 {
  width: 52vmax; height: 52vmax;
  left: -14vmax; top: -18vmax;
  background: radial-gradient(circle at 50% 50%, var(--indigo), transparent 62%);
  animation: drift1 26s ease-in-out infinite;
}
.blob-2 {
  width: 46vmax; height: 46vmax;
  right: -16vmax; top: -10vmax;
  background: radial-gradient(circle at 50% 50%, var(--cyan), transparent 60%);
  opacity: 0.4;
  animation: drift2 32s ease-in-out infinite;
}
.blob-3 {
  width: 40vmax; height: 40vmax;
  left: 30%; bottom: -22vmax;
  background: radial-gradient(circle at 50% 50%, var(--violet), transparent 64%);
  opacity: 0.42;
  animation: drift3 38s ease-in-out infinite;
}

@keyframes drift1 { 50% { transform: translate3d(8vmax, 6vmax, 0) scale(1.08); } }
@keyframes drift2 { 50% { transform: translate3d(-7vmax, 9vmax, 0) scale(1.12); } }
@keyframes drift3 { 50% { transform: translate3d(4vmax, -8vmax, 0) scale(1.06); } }

/* grain + vignette */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 30%, transparent 45%, rgba(0,0,0,0.55) 100%);
}

/* ---------- stage ---------- */
.stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(36px, 7vh, 84px) 24px clamp(32px, 6vh, 64px);
  text-align: center;
}

.hero {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* ---------- spinning mark ---------- */
.mark {
  position: relative;
  width: clamp(132px, 22vmin, 196px);
  height: clamp(132px, 22vmin, 196px);
  display: grid;
  place-items: center;
  margin-bottom: clamp(28px, 5vh, 52px);
}
.mark-halo {
  position: absolute;
  inset: -38%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(109,120,255,0.55), rgba(56,224,255,0.18) 45%, transparent 70%);
  filter: blur(14px);
  animation: breathe 6s ease-in-out infinite;
}
.mark-logo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  filter: drop-shadow(0 0 26px rgba(109,120,255,0.55)) drop-shadow(0 8px 24px rgba(0,0,0,0.45));
  animation: spin 16s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe {
  0%, 100% { transform: scale(1);    opacity: 0.85; }
  50%      { transform: scale(1.12); opacity: 1; }
}

/* ---------- type ---------- */
.kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-left: 0.42em; /* optical: balance the trailing tracking */
}
.wordmark {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.2rem, 17vw, 9rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #ffffff 0%, #c8ccde 58%, #8f95b4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(109,120,255,0.25);
}
.tagline {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  letter-spacing: 0.01em;
  color: var(--ink);
}
.verses {
  margin: clamp(26px, 5vh, 44px) auto 0;
  max-width: 33rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.verses p {
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.06rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- download dock ---------- */
.dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.download {
  --glow: 0 0 0 1px var(--edge), 0 10px 40px rgba(109,120,255,0.0);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  box-shadow: var(--glow);
  backdrop-filter: blur(8px);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, background 0.35s ease;
  overflow: hidden;
}
.download::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, var(--indigo), var(--cyan), var(--violet));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  transition: opacity 0.35s ease;
}
.download:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05));
  box-shadow: 0 0 0 1px var(--edge), 0 16px 50px rgba(109,120,255,0.35);
}
.download:hover::before { opacity: 1; }
.download:active { transform: translateY(0); }
.dl-glyph {
  width: 19px;
  height: 19px;
  color: var(--cyan);
}
.dock-note {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- entrance ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 1s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .mark-logo, .mark-halo, .blob-1, .blob-2, .blob-3 { animation: none; }
  .reveal { animation: none; opacity: 1; transform: none; }
}
