﻿@import url('https://fonts.googleapis.com/css2?family=UnifrakturCook:wght@700&family=Cinzel:wght@400;600;700&family=Rajdhani:wght@400;600&family=Orbitron:wght@400;600;700&family=Playfair+Display:wght@400;600;700&family=Syncopate:wght@400;700&family=Space+Grotesk:wght@400;600&family=DM+Serif+Display&display=swap');

:root {
  --bg: #07060a;
  --ink: #f7f2ff;
  --muted: rgba(246, 241, 255, 0.72);
  --accent: #ff5a8c;
  --accent-2: #6cf6ff;
  --silver: rgba(240, 240, 255, 0.85);
  --glow: rgba(200, 160, 255, 0.8);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Rajdhani', system-ui, sans-serif;
  background: radial-gradient(120% 120% at 50% 10%, #1b1625, var(--bg) 60%);
  color: var(--ink);
  min-height: 100vh;
  overflow: hidden;
  cursor: none;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 6vw 8vw;
  gap: 0.6rem;
}

.badge {
  font-size: 0.85rem;
  letter-spacing: 0.35rem;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(255, 90, 140, 0.14), rgba(108, 246, 255, 0.1));
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08), 0 0 22px rgba(255, 90, 140, 0.15);
}

.badge::after {
  content: "";
  position: absolute;
  inset: -50% -50%;
  background: conic-gradient(from 90deg, transparent 10%, rgba(255, 90, 140, 0.25), transparent 35%, rgba(108, 246, 255, 0.25), transparent 60%);
  animation: badgeSpin 10s linear infinite;
  opacity: 0.5;
}

.badge > span {
  position: relative;
  z-index: 1;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 90, 140, 0.4));
  box-shadow: 0 0 10px rgba(255, 90, 140, 0.6);
}

.badge-sep {
  opacity: 0.5;
  letter-spacing: 0;
}

.title {
  font-family: 'UnifrakturCook', 'Cinzel', serif;
  font-size: clamp(3.9rem, 13.0vw, 9.1rem) !important;
  line-height: 0.88;
  letter-spacing: 0.22rem;
  text-shadow: none;
  display: inline-block;
  margin: 1.6rem 0 0.1rem;
}

.subtitle {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4.2rem) !important;
  color: var(--silver);
  letter-spacing: 0.35rem;
  text-transform: uppercase;
  text-shadow: none;
  display: inline-block;
  margin: 0 0 1.4rem;
}

.tagline {
  font-size: 1rem;
  letter-spacing: 0.4rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}

.cta {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

a {
  text-decoration: none;
  color: inherit;
}

.cta a {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 60%);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.85rem 2.4rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border 0.25s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.12), 0 0 24px rgba(255, 90, 140, 0.18);
}

.cta a.primary {
  background: linear-gradient(120deg, rgba(255, 90, 140, 0.8), rgba(108, 246, 255, 0.4));
  border: none;
  box-shadow: 0 0 28px rgba(255, 90, 140, 0.45), 0 0 60px rgba(108, 246, 255, 0.25);
}

.cta a.ghost:hover,
.cta a.primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.35), 0 0 80px rgba(255, 90, 140, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
}

.cta a::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.cta a:hover::after {
  transform: translateX(120%);
}

.chips {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.2rem;
}

.chips span {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
}

.side-notes {
  position: absolute;
  inset: auto 4vw 10vh auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stack {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 1rem 1.1rem 1.2rem;
  background: rgba(15, 12, 20, 0.6);
  backdrop-filter: blur(14px);
  min-width: 220px;
  box-shadow: 0 0 30px rgba(255, 90, 140, 0.15);
  position: relative;
  overflow: hidden;
}

.stack::before {
  content: "";
  position: absolute;
  inset: -40% -40%;
  background: conic-gradient(from 120deg, rgba(255, 90, 140, 0.15), transparent 40%, rgba(108, 246, 255, 0.2), transparent 70%, rgba(255, 90, 140, 0.15));
  animation: spinGlow 12s linear infinite;
  opacity: 0.7;
}

.stack-title {
  font-size: 0.75rem;
  letter-spacing: 0.4rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.9rem;
  text-align: center;
}

.stack-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  position: relative;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(15, 12, 20, 0.5);
  backdrop-filter: blur(12px);
  font-size: 0.85rem;
  color: var(--muted);
  animation: floatIn 8s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  --chip: rgba(255, 90, 140, 0.6);
}

.stack-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 90, 140, 0.18), transparent);
  transform: translateX(-120%);
  animation: sheen 6s ease-in-out infinite;
}

.stack-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 50%, color-mix(in srgb, var(--chip) 28%, transparent), transparent 55%),
    linear-gradient(120deg, color-mix(in srgb, var(--chip) 22%, transparent), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.stack-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.stack-item:nth-child(2) { animation-delay: 0.4s; }
.stack-item:nth-child(3) { animation-delay: 0.8s; }
.stack-item:nth-child(4) { animation-delay: 1.2s; }
.stack-item:nth-child(5) { animation-delay: 1.6s; }
.stack-item:nth-child(6) { animation-delay: 2s; }
.stack-item:nth-child(7) { animation-delay: 2.4s; }

.stack-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--ink);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.2), 0 0 20px color-mix(in srgb, var(--chip) 65%, transparent);
  position: relative;
  background: rgba(10, 10, 16, 0.7);
  overflow: hidden;
}

.stack-icon svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--chip) 70%, rgba(255,255,255,0.6)));
}

.grain,
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.cursor-core,
.cursor-ring {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: transform 0.08s ease, opacity 0.2s ease;
  mix-blend-mode: screen;
}

.cursor-core {
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 90, 140, 0.8));
  box-shadow: 0 0 18px rgba(255, 90, 140, 0.8), 0 0 28px rgba(108, 246, 255, 0.6);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 22px rgba(108, 246, 255, 0.5), inset 0 0 12px rgba(255, 90, 140, 0.35);
  background: radial-gradient(circle, rgba(255, 90, 140, 0.08), transparent 60%);
}

.cursor.is-hidden .cursor-core,
.cursor.is-hidden .cursor-ring {
  opacity: 0;
}

.cursor.is-down .cursor-core {
  transform: translate(-50%, -50%) scale(1.4);
}

.cursor.is-down .cursor-ring {
  transform: translate(-50%, -50%) scale(0.85);
}

.grain {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" stitchTiles="stitch"/></filter><rect width="120" height="120" filter="url(%23n)" opacity="0.15"/></svg>');
  opacity: 0.35;
  mix-blend-mode: screen;
  animation: grain 6s steps(6) infinite;
}

.vignette {
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55) 80%);
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-4%, 2%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-2%, -3%); }
  100% { transform: translate(0, 0); }
}

@keyframes floatIn {
  0% { transform: translateY(0); box-shadow: 0 0 10px rgba(255, 255, 255, 0.05); }
  50% { transform: translateY(-6px); box-shadow: 0 0 20px rgba(255, 255, 255, 0.12); }
  100% { transform: translateY(0); box-shadow: 0 0 10px rgba(255, 255, 255, 0.05); }
}

@keyframes sheen {
  0% { transform: translateX(-120%); }
  45% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

@keyframes spinGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes badgeSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fontShift {
  0% { font-family: 'UnifrakturCook', 'Cinzel', serif; letter-spacing: 0.08rem; }
  12.5% { font-family: 'DM Serif Display', 'Cinzel', serif; letter-spacing: 0.18rem; }
  25% { font-family: 'Playfair Display', 'Cinzel', serif; letter-spacing: 0.1rem; }
  37.5% { font-family: 'Orbitron', 'Rajdhani', sans-serif; letter-spacing: 0.32rem; }
  50% { font-family: 'Syncopate', 'Rajdhani', sans-serif; letter-spacing: 0.42rem; }
  62.5% { font-family: 'Space Grotesk', 'Rajdhani', sans-serif; letter-spacing: 0.2rem; }
  75% { font-family: 'Cinzel', serif; letter-spacing: 0.28rem; }
  87.5% { font-family: 'Rajdhani', system-ui, sans-serif; letter-spacing: 0.22rem; }
  100% { font-family: 'UnifrakturCook', 'Cinzel', serif; letter-spacing: 0.08rem; }
}

@keyframes glowPulse {
  0% { text-shadow: 0 0 16px rgba(255, 255, 255, 0.4), 0 0 40px rgba(173, 119, 255, 0.45); }
  50% { text-shadow: 0 0 24px rgba(255, 255, 255, 0.7), 0 0 64px rgba(173, 119, 255, 0.75); }
  100% { text-shadow: 0 0 16px rgba(255, 255, 255, 0.4), 0 0 40px rgba(173, 119, 255, 0.45); }
}

.typing-text {
  display: inline-block;
  vertical-align: bottom;
}

.typing-text.typing {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  animation: typing 0.6s steps(22) 1 both, caret 0.7s steps(1) infinite;
  width: var(--type-width, auto);
}

.left-panel {
  position: absolute;
  left: 4vw;
  top: 14vh;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  pointer-events: none;
}

.left-card {
  width: min(300px, 80vw);
  padding: 1.2rem 1.4rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(140deg, rgba(12, 10, 18, 0.8), rgba(30, 18, 42, 0.5));
  box-shadow: 0 0 30px rgba(108, 246, 255, 0.15);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  animation: leftFloat 6s ease-in-out infinite, leftGlow 8s ease-in-out infinite;
}

.left-card::after {
  content: "";
  position: absolute;
  inset: -40% -40%;
  background: conic-gradient(from 180deg, transparent 10%, rgba(255, 90, 140, 0.18), transparent 40%, rgba(108, 246, 255, 0.18), transparent 70%);
  animation: leftSheen 10s linear infinite;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.left-card > * {
  position: relative;
  z-index: 1;
}

.left-label {
  font-size: 0.7rem;
  letter-spacing: 0.4rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.5rem;
}

.left-title {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  letter-spacing: 0.2rem;
  margin-bottom: 0.6rem;
}

.left-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin-bottom: 0.9rem;
}

.left-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.left-tags span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

@keyframes leftFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes leftGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(108, 246, 255, 0.15); }
  50% { box-shadow: 0 0 36px rgba(255, 90, 140, 0.25); }
}

@keyframes leftSheen {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes typing {
  from { width: 0; }
  to { width: var(--type-width, 100%); }
}

@keyframes caret {
  0%, 100% { border-color: rgba(255, 255, 255, 0.8); }
  50% { border-color: transparent; }
}

@media (max-width: 720px) {
  .badge {
    letter-spacing: 0.2rem;
  }

  .side-notes {
    position: static;
    margin: 1.5rem auto 0;
    flex-direction: row;
    justify-content: center;
  }

  .left-panel {
    position: static;
    margin: 1rem auto 0;
    justify-content: center;
  }

  .stack {
    min-width: auto;
    width: 100%;
  }

  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

