/* ============================================================
   $UNI200 — The UNI Stock Index
   Black × Metallic Gold × Financial Brand
   ============================================================ */

:root {
  --bg: #050505;
  --bg-soft: #0a0a0a;
  --gold: #d4af37;
  --gold-bright: #f0d060;
  --gold-deep: #a67c00;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --text: #f5f0e6;
  --text-dim: #9a927f;
  --line: rgba(212, 175, 55, 0.22);
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

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

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(212, 175, 55, 0.08), transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 60%, rgba(212, 175, 55, 0.04), transparent 50%);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* ---------- NAV ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.75rem;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.95), transparent);
  backdrop-filter: blur(8px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
  text-transform: uppercase;
}

.nav-coin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 16px var(--gold-glow);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s, text-shadow 0.2s;
}

.nav-links a:hover {
  color: var(--gold-bright);
  text-shadow: 0 0 12px var(--gold-glow);
}

.btn-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: #000;
  border: 1px solid rgba(212, 175, 55, 0.55);
  padding: 0;
  transition: all 0.2s ease;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.15);
}

.btn-x:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

.btn-x-icon {
  display: block;
}

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.75rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-gold {
  background: linear-gradient(180deg, #f0d060 0%, #d4af37 45%, #a67c00 100%);
  color: #1a1200;
  border-color: var(--gold-bright);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

.btn-gold:hover {
  box-shadow: 0 0 36px rgba(212, 175, 55, 0.55), 0 0 60px rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.55);
}

.btn-outline:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 4rem;
  text-align: center;
  gap: 2.5rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  max-width: 900px;
}

.hero-logo-wrap {
  position: relative;
  width: min(280px, 58vw);
  aspect-ratio: 1;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slow rotating gold rings around logo */
.logo-ring {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: rgba(240, 208, 96, 0.85);
  border-right-color: rgba(212, 175, 55, 0.25);
  border-bottom-color: rgba(166, 124, 0, 0.15);
  border-left-color: rgba(212, 175, 55, 0.45);
  box-shadow:
    0 0 18px rgba(212, 175, 55, 0.2),
    inset 0 0 18px rgba(212, 175, 55, 0.08);
  animation: ring-spin 12s linear infinite;
  pointer-events: none;
}

.logo-ring-2 {
  inset: -14%;
  border-width: 1px;
  border-top-color: rgba(212, 175, 55, 0.35);
  border-right-color: transparent;
  border-bottom-color: rgba(240, 208, 96, 0.55);
  border-left-color: transparent;
  animation: ring-spin-rev 18s linear infinite;
  opacity: 0.85;
}

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ring-spin-rev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.hero-coin {
  position: relative;
  z-index: 1;
  width: 88%;
  height: auto;
  border-radius: 50%;
  animation: coin-float 7s ease-in-out infinite;
  filter: drop-shadow(0 0 28px rgba(212, 175, 55, 0.5));
  background: transparent;
}

@keyframes coin-float {
  0%, 100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.4));
  }
  50% {
    transform: translateY(-10px);
    filter: drop-shadow(0 0 42px rgba(240, 208, 96, 0.55));
  }
}

.hero-ca {
  font-size: clamp(0.85rem, 2.4vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  text-shadow: none;
  margin: 0.75rem 0 0.15rem;
  word-break: break-all;
  max-width: min(640px, 92vw);
}

.hero-sub {
  font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* Slogan section — Making stocks great again */
.slogan-section {
  padding: 5rem 1.5rem 6rem;
  text-align: center;
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(212, 175, 55, 0.08), transparent 65%),
    var(--bg);
  border-top: 1px solid var(--line);
}

.slogan-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.slogan-img {
  width: min(720px, 92vw);
  height: auto;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.3));
}

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

.hero-banner {
  width: min(960px, 94vw);
  margin-top: 1rem;
  opacity: 0.95;
}

.hero-banner img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.15));
}

.scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-hint span {
  width: 3px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scroll-dot 1.6s ease-in-out infinite;
  box-shadow: 0 0 8px var(--gold-glow);
}

@keyframes scroll-dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(10px); }
}

/* ---------- SECTIONS ---------- */

.section {
  position: relative;
  z-index: 1;
  padding: 8rem 1.5rem;
  border-top: 1px solid var(--line);
}

.section-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--text);
}

/* ---------- STORY ---------- */

.story {
  min-height: 85vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 50% 40% at 30% 50%, rgba(212, 175, 55, 0.05), transparent 60%),
    var(--bg);
}

.story-inner {
  max-width: 720px;
  padding: 2rem 0;
}

.story-title {
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 3.5rem;
  background: linear-gradient(180deg, #fff6d0, #d4af37 60%, #8a6a10);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.story-body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 28em;
}

.story-body p {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  line-height: 1.7;
}

.story-emphasis {
  color: var(--text) !important;
  margin-top: 1rem;
}

.story-gold {
  color: var(--gold-bright) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
  margin-top: 1.5rem;
}

/* ---------- INDEX ---------- */

.index-section {
  background: var(--bg-soft);
}

.index-panel {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.04), transparent 50%),
    rgba(10, 10, 10, 0.9);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4), inset 0 0 40px rgba(212, 175, 55, 0.03);
}

@media (min-width: 800px) {
  .index-panel {
    grid-template-columns: 1.1fr 1fr;
    padding: 2.5rem 2.75rem;
  }
}

.index-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.index-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.25em;
  padding: 0.75rem 0.5rem 1rem;
  border-bottom: 1px solid var(--line);
}

.index-table td {
  padding: 1.25rem 0.5rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.index-table .ticker {
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-bright);
  font-size: 0.75rem;
}

.status-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 10px var(--gold-bright);
  animation: pulse-live 1.6s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.index-chart {
  width: 100%;
  min-height: 180px;
}

#gold-chart {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- COIN ---------- */

.coin-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 45% 50% at 25% 50%, rgba(212, 175, 55, 0.1), transparent 65%),
    var(--bg);
}

.coin-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .coin-inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
  }
}

.coin-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.coin-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.35), transparent 70%);
  filter: blur(30px);
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.coin-img {
  position: relative;
  z-index: 1;
  width: min(420px, 85%);
  height: auto;
  border-radius: 8px;
  animation: coin-tilt 10s ease-in-out infinite;
  filter: drop-shadow(0 20px 50px rgba(212, 175, 55, 0.25));
}

@keyframes coin-tilt {
  0%, 100% { transform: rotateY(-6deg) rotateZ(-1deg); }
  50% { transform: rotateY(6deg) rotateZ(1deg); }
}

.coin-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.coin-line {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* ---------- COMMUNITY ---------- */

.community {
  text-align: center;
  padding: 10rem 1.5rem;
  background:
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(212, 175, 55, 0.07), transparent 65%),
    var(--bg);
}

.community-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.community-ticker {
  font-size: clamp(2.5rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #fff6d0, #d4af37 55%, #8a6a10);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.3));
}

.community-sub {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

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

/* ---------- FOOTER ---------- */

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  background: #030303;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.footer-ticker {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--gold-bright);
}

.footer-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-links a {
  transition: color 0.2s, text-shadow 0.2s;
}

.footer-links a:hover {
  color: var(--gold-bright);
  text-shadow: 0 0 10px var(--gold-glow);
}

.footer-links .dot {
  opacity: 0.4;
}

.footer-ca {
  margin-top: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(154, 146, 127, 0.7);
  word-break: break-all;
  max-width: 480px;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .btn-x span {
    display: none;
  }

  .section {
    padding: 5.5rem 1.25rem;
  }

  .hero {
    padding-top: 6rem;
  }

  .index-panel {
    padding: 1.25rem;
  }

  .coin-copy {
    align-items: center;
    text-align: center;
  }

  .slogan-section {
    padding: 3.5rem 1rem 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
