/* Lokalno gostovana fonta (Google Fonts, SIL OFL; variabilna) – zaradi CSP ni zunanjih virov. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #07090d;
  --night-2: #0d1420;
  --text: #e9e4da;
  --muted: #8a93a0;
  --candle: #e8a33d;
  --candle-hi: #ffd08a;
  --brand: #2f6db5;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wait: 20s;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(ellipse 80% 60% at 50% 42%, #142033 0%, transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 120%, #1a1408 0%, transparent 60%),
    var(--night);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  text-align: center;
}

/* — supertočka: utripajoča točka, kot lokacija na zemljevidu ali sveča v temi — */
.point {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 28px;
  animation: fade 1.6s .2s ease-out both;
}
.core {
  position: absolute;
  inset: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff6e3, var(--candle-hi) 40%, var(--candle) 100%);
  box-shadow:
    0 0 12px 2px rgba(255, 208, 138, .9),
    0 0 40px 10px rgba(232, 163, 61, .45),
    0 0 120px 40px rgba(232, 163, 61, .15);
  animation: flicker 3.2s ease-in-out infinite;
}
.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 208, 138, .55);
  transform: scale(.12);
  animation: ping 4.5s cubic-bezier(.2, .6, .3, 1) infinite;
}
.ring:nth-child(2) { animation-delay: 1.5s; }
.ring:nth-child(3) { animation-delay: 3s; }

.mark {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 11vw, 112px);
  line-height: 1;
  letter-spacing: -.035em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  animation: rise 1.4s .5s cubic-bezier(.2, .7, .2, 1) both;
}
.mark em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg, var(--candle-hi) 0%, var(--candle) 45%, #f6e1b8 55%, var(--candle) 70%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
  animation: shimmer 7s 2s ease-in-out infinite;
}

.lead {
  max-width: 30ch;
  margin: 22px 0 40px;
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  animation: rise 1.4s .85s cubic-bezier(.2, .7, .2, 1) both;
}
.lead strong { color: var(--text); font-weight: 500; }

/* — edina povezava; obroba se v --wait sekundah zapolni, nato preusmeritev — */
.go {
  --p: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px 15px 30px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .03);
  box-shadow: inset 0 0 0 1px rgba(233, 228, 218, .14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .4s, box-shadow .4s, color .4s, transform .4s;
  animation: rise 1.4s 1.15s cubic-bezier(.2, .7, .2, 1) both;
}
.go::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(var(--candle) calc(var(--p) * 1turn), transparent 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: calc(var(--p) * 40);
  pointer-events: none;
}
.go svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.go:hover, .go:focus-visible {
  color: #fff;
  background: rgba(232, 163, 61, .12);
  box-shadow: inset 0 0 0 1px rgba(232, 163, 61, .5), 0 0 40px -6px rgba(232, 163, 61, .5);
  outline: none;
}
.go:hover svg, .go:focus-visible svg { transform: translateX(4px); }

.note {
  margin: 22px 0 0;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(138, 147, 160, .7);
  font-variant-numeric: tabular-nums;
  animation: fade 1.4s 1.6s ease-out both;
}

@keyframes fade { from { opacity: 0; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes ping {
  0%   { transform: scale(.12); opacity: 0; }
  10%  { opacity: .9; }
  100% { transform: scale(1); opacity: 0; }
}
@keyframes flicker {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  30% { transform: scale(1.08); filter: brightness(1.15); }
  55% { transform: scale(.96); filter: brightness(.92); }
  75% { transform: scale(1.04); filter: brightness(1.06); }
}
@keyframes shimmer {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
  .ring { display: none; }
}
