/* tokeni.lv — kosmisks fantasy: tumšs zvaigžņots fons, mirdzums, gredzeni */
:root {
  --bg: #07061a;
  --bg-deep: #030210;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f2efff;
  --dim: #a8a3c7;
  --faint: #6c678f;
  --accent: #b98cff;
  --dust: #ffe08a;
  --fire: #ff9a3c;
  --water: #3ce0d0;
  --cosmos: #ff5bd8;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background: radial-gradient(ellipse at 20% 0%, #1d1450 0%, transparent 55%),
    radial-gradient(ellipse at 90% 100%, #0c2a55 0%, transparent 50%), var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

/* Zvaigznes: divi lēni mirgojoši slāņi */
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 72%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 57% 31%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 64%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 88%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 94%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 8%, #fff 50%, transparent 51%);
  opacity: 0.7;
  animation: twinkle 7s ease-in-out infinite alternate;
}
body::after {
  transform: translate(13vw, 21vh) rotate(37deg);
  opacity: 0.4;
  animation-delay: -3s;
}
@keyframes twinkle { from { opacity: 0.25; } to { opacity: 0.75; } }

main {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 16px 64px;
}

h1 { font-size: 2.6rem; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 1.4rem; margin: 40px 0 8px; }
h3 { font-size: 1.1rem; margin: 24px 0 4px; }
p, li { color: var(--dim); }
strong { color: var(--text); }
a { color: var(--accent); }

.lead { font-size: 1.2rem; color: var(--text); }

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  padding: 20px;
  margin: 20px 0;
}

.button {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #160b38;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(185, 140, 255, 0.55);
}
.button.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); box-shadow: none; }

.code {
  font: 800 1.6rem/1 ui-monospace, "SF Mono", Consolas, monospace;
  letter-spacing: 0.12em;
  color: var(--dust);
  text-shadow: 0 0 14px rgba(255, 224, 138, 0.6);
}

/* Tokens: kodols + trīs gredzeni, kas lēni griežas */
.token {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 8px auto 32px;
}
.token .core {
  position: absolute;
  inset: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #e6d9ff 0%, #ff5bd8 35%, #8f5bff 75%, #1a0a3a 100%);
  box-shadow: 0 0 40px 10px rgba(143, 91, 255, 0.55);
  animation: breathe 4s ease-in-out infinite;
}
.token .ring {
  position: absolute;
  border-radius: 50%;
  border: 2px dotted;
  animation: spin 40s linear infinite;
}
.token .r1 { inset: 52px; border-color: var(--water); }
.token .r2 { inset: 30px; border-color: var(--fire); animation-direction: reverse; animation-duration: 55s; border-style: dashed; }
.token .r3 { inset: 8px; border-color: var(--dust); animation-duration: 70s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.03); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

.center { text-align: center; }
.left { text-align: left; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }

footer {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  color: var(--faint);
  font-size: 0.9rem;
  border-top: 1px solid var(--panel-border);
}
footer a { color: var(--dim); }

.draft {
  border: 1px dashed var(--dust);
  color: var(--dust);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
}
