/* =========================================================
   KRUTO — Variant Selection Cover
   Premium dark experience. Restraint over complexity.
   ========================================================= */

:root {
  /* Surfaces — rich blacks and charcoal */
  --bg-0: #060607;
  --bg-1: #0b0b0d;
  --char: #141417;
  --char-edge: #26262b;

  /* Ink */
  --ink: #f4f1ea;            /* warm white */
  --ink-soft: rgba(244, 241, 234, 0.62);
  --ink-faint: rgba(244, 241, 234, 0.34);

  /* Kruto brand colors */
  --red: #de3831;
  --blue: #16479e;

  /* Neutral accent for shared chrome (brand rule, CTA idle hairlines). */
  --accent: #d7d7da;
  --accent-soft: rgba(215, 215, 218, 0.42);
  --accent-faint: rgba(215, 215, 218, 0.12);

  /* Glass (used sparingly) */
  --glass: rgba(255, 255, 255, 0.022);
  --glass-edge: rgba(255, 255, 255, 0.07);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shell: min(960px, 92vw);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: "Jost", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------------------------------------------------------
   Ambient atmosphere — layered gradients, slow glow, grain
   --------------------------------------------------------- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, #15151a 0%, rgba(21, 21, 26, 0) 55%),
    radial-gradient(100% 120% at 50% 120%, #101013 0%, rgba(16, 16, 19, 0) 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform;
}

.glow--one {
  width: 46vmax;
  height: 46vmax;
  left: -8vmax;
  top: -10vmax;
  background: radial-gradient(circle, rgba(222, 56, 49, 0.10), rgba(222, 56, 49, 0) 70%);
  animation: drift-a 26s var(--ease) infinite alternate;
}

.glow--two {
  width: 40vmax;
  height: 40vmax;
  right: -10vmax;
  bottom: -12vmax;
  background: radial-gradient(circle, rgba(22, 71, 158, 0.13), rgba(22, 71, 158, 0) 70%);
  animation: drift-b 32s var(--ease) infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(-5vmax, -3vmax, 0) scale(1); }
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.04;
  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)'/%3E%3C/svg%3E");
  animation: grain-shift 8s steps(6) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-6%, 4%); }
}

/* ---------------------------------------------------------
   Stage
   --------------------------------------------------------- */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4.2vw, 52px);
  padding: clamp(48px, 8vh, 96px) 24px;
  text-align: center;
}

/* Staged fade-in on load */
.brand,
.headline,
variant-selector,
.legal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1.1s var(--ease-out) forwards;
}
.brand     { animation-delay: 0.15s; }
.headline  { animation-delay: 0.45s; }
variant-selector { animation-delay: 0.65s; }
.legal     { animation-delay: 1.0s; }

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

/* ---------------------------------------------------------
   Brand
   --------------------------------------------------------- */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.brand__mark {
  font-family: "Jost", sans-serif;
  font-weight: 200;
  font-size: clamp(38px, 7vw, 76px);
  letter-spacing: clamp(0.32em, 1.4vw, 0.5em);
  /* optical centering for the wide tracking */
  text-indent: clamp(0.32em, 1.4vw, 0.5em);
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #d4d4d8 58%, #a6a6ad 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand__rule {
  width: 84px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(222, 56, 49, 0.6) 35%,
    rgba(22, 71, 158, 0.6) 65%,
    transparent
  );
}

.brand__sub {
  max-width: 92vw;
  font-size: clamp(9px, 1.4vw, 12px);
  letter-spacing: clamp(0.18em, 1vw, 0.42em);
  text-indent: clamp(0.18em, 1vw, 0.42em);
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------------------------------------------------------
   Headline
   --------------------------------------------------------- */
.headline {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 4.4vw, 40px);
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* ---------------------------------------------------------
   Legal line
   --------------------------------------------------------- */
.legal {
  margin: 0;
  max-width: 38ch;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .glow, .grain { animation: none; }
  .brand, .headline, variant-selector, .legal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
