:root {
  color-scheme: dark;
  --bg: #050508;
  --ink: #ecedf3;
  --ink-2: #b2b5c4;
  --ink-3: #8e91a3;
  --ink-4: #5c5e70;
  --line: rgba(255, 255, 255, 0.11);
  --line-hi: rgba(255, 255, 255, 0.24);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}



/* ================= HERO ================= */
.hero {
  --bg: #050508;
  --ink: #ecedf3;
  --ink-2: #b2b5c4;
  --ink-3: #8e91a3;
  --ink-4: #5c5e70;
  --line: rgba(255, 255, 255, 0.11);
  --line-hi: rgba(255, 255, 255, 0.24);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  isolation: isolate;
  height: calc(100svh - 64px);
  min-height: 620px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 56px 24px 80px;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

/* Smooth bottom black overlay so the hero melts seamlessly into the dark page below */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 4, 10, 0) 0%, rgba(4, 4, 10, 0.58) 54%, rgba(4, 4, 10, 0.94) 86%, #04040a 100%);
}

/* Tactile touch/click ripple ring under the pointer */
.hero-tap {
  position: absolute;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 1.5px solid rgba(165, 184, 255, 0.65);
  box-shadow: 0 0 18px rgba(122, 162, 255, 0.35);
  pointer-events: none;
  transform: scale(0.4);
  opacity: 0.95;
  animation: heroTapRing 0.52s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes heroTapRing {
  to { transform: scale(4.8); opacity: 0; }
}

.hero-field {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-field canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero.is-live .hero-field canvas { opacity: 1; }

/* Clean edge framing — no dark contrast blotch in the middle */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 30% at 50% 0%, rgba(255, 255, 255, 0.024) 0%, transparent 72%),
    linear-gradient(180deg, rgba(5, 5, 8, 0.55) 0%, rgba(5, 5, 8, 0) 14%, rgba(5, 5, 8, 0) 76%, #04040a 100%);
}

/* ================= COPY (Kapyari /login/ editorial aesthetic) ================= */
.copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 980px;
  margin-top: -3vh;
  pointer-events: none;
}
.copy a, .copy button {
  pointer-events: auto;
  cursor: pointer;
}

.h1 {
  margin: 0;
  font-size: clamp(44px, 5.6vw, 76px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: #ffffff;
  text-shadow: 0 4px 36px rgba(0, 0, 0, 0.82);
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.8s 0.08s var(--ease) forwards;
}
.h1-rot-wrap {
  display: block;
  perspective: 800px;
  padding-bottom: 0.08em;
}
.h1-rot {
  display: inline-block;
  color: #ffffff;
  font-weight: 600;
  transform-origin: 50% 50% -0.42em;
  backface-visibility: hidden;
  transition: transform 0.44s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}
.h1-word {
  font-weight: 600;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.72);
}
.h1-rot.is-out {
  opacity: 0;
  transform: rotateX(78deg);
}
.h1-rot.is-in {
  opacity: 0;
  transform: rotateX(-78deg);
  transition: none;
}

.hero-sub {
  margin: 20px 0 0;
  max-width: 520px;
  font-size: clamp(15.5px, 1.3vw, 17.5px);
  font-weight: 400;
  line-height: 1.58;
  letter-spacing: -0.008em;
  text-transform: none !important;
  color: #b4b8ca;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.88);
  opacity: 0;
  transform: translateY(12px);
  animation: reveal 0.8s 0.18s var(--ease) forwards;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
  opacity: 0;
  transform: translateY(12px);
  animation: reveal 0.8s 0.28s var(--ease) forwards;
}

/* Signature Kapyari glossy beveled metallic-white primary CTA (from /login/) */
.kl-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.014em;
  color: #0b0c11;
  background: linear-gradient(180deg, #ffffff 0%, #eef0f4 52%, #dfe2e9 100%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -2px 0 rgba(20, 24, 40, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 14px 32px -14px rgba(255, 255, 255, 0.28);
  transition: transform 0.22s var(--ease), box-shadow 0.25s ease, filter 0.2s ease;
  white-space: nowrap;
}
.kl-btn::before {
  content: '';
  position: absolute;
  inset: 0 0 50% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.15));
  pointer-events: none;
}
.kl-btn::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -60%;
  width: 48%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: skewX(-18deg);
  transition: left 0.65s var(--ease);
  pointer-events: none;
}
.kl-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -2px 0 rgba(20, 24, 40, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.36),
    0 2px 4px rgba(0, 0, 0, 0.55),
    0 18px 40px -12px rgba(255, 255, 255, 0.42);
}
.kl-btn:hover::after { left: 130%; }
.kl-btn:active { transform: translateY(0) scale(0.985); }
.kl-btn svg {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.24s var(--ease);
}
.kl-btn span { position: relative; z-index: 1; }
.kl-btn:hover svg { transform: translateX(3px); }

/* Signature Kapyari dark-glass secondary CTA (matching /login/ OAuth buttons) */
.kl-sbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: rgba(10, 10, 14, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.22s var(--ease);
  white-space: nowrap;
}
.kl-sbtn:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}
.kl-sbtn:active { transform: translateY(0) scale(0.985); }
.kl-sbtn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #93c5fd;
  transition: transform 0.24s var(--ease);
}
.kl-sbtn:hover svg { transform: scale(1.06); }

/* ================= QUIET FOOTER STRIP ================= */
.hero-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  pointer-events: none;
  opacity: 0;
  animation: reveal 0.9s 0.48s var(--ease) forwards;
}

.metrics {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--ink-4);
}
.metrics li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.metrics b {
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-4);
  transition: opacity 0.8s ease, transform 0.8s var(--ease);
}
.hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
  animation: ping 2.6s ease-out infinite;
}
.hint.done {
  opacity: 0;
  transform: translateY(4px);
}

@keyframes reveal {
  to { opacity: 1; transform: none; }
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.38); }
  75%, 100% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
}

.hero :focus-visible {
  outline: 2px solid rgba(92, 132, 255, 0.8);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .hero { padding: 80px 20px 88px; }
  .copy { margin-top: -2vh; }
  .ctas { flex-direction: column; width: 100%; max-width: 310px; }
  .kl-btn, .kl-sbtn { width: 100%; }
  .hero-foot { flex-direction: column; gap: 10px; bottom: 18px; padding: 0 18px; }
  .metrics { gap: 14px; flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .h1, .sub, .ctas, .hero-foot { opacity: 1; transform: none; animation: none; }
  .hint-dot { animation: none; }
}
