:root {
  --bg: #0C1117;
  --surface: #161D27;
  --surface-sec: #212B36;
  --obsidian: #0F1722;
  --mid-sapphire: #183B63;
  --royal-indigo: #324B8F;
  --diamond-silver: #DCE5F2;
  --platinum: #B8C3CF;
  --crystal-blue: #82D9F7;
  --ice-white: #EEF5FC;
  --text-pri: #F5F8FC;
  --text-sec: #C9D3DE;
  --muted: #8B96A5;
  --grad-accent: linear-gradient(135deg, #82D9F7, #DCE5F2);
  --grad-sec: linear-gradient(135deg, #324B8F, #183B63);
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

a {
  color: var(--crystal-blue);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--diamond-silver);
}

h1, h2, h3, h4, h5 {
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--ice-white);
}

/* Typography */
.text-grad {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-small {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Top Disclaimer */
.top-disclaimer {
  background: var(--bg);
  color: var(--muted);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(184, 195, 207, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  letter-spacing: 0.05em;
}

/* Status Bar */
.status-bar {
  background: var(--obsidian);
  color: var(--text-sec);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(184, 195, 207, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

/* Navigation */
.nav-header {
  position: sticky;
  top: 1rem;
  z-index: 100;
  margin: 0 auto;
  max-width: 1200px;
  width: 95%;
  background: rgba(22, 29, 39, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(184, 195, 207, 0.2);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  transition: all 0.25s ease;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ice-white);
}

.nav-logo::before {
  content: '◈';
  color: var(--crystal-blue);
  font-size: 1.5rem;
}

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

.nav-links a {
  color: var(--text-sec);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links a:hover {
  color: var(--ice-white);
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-pri);
}

.btn-primary {
  background: var(--grad-accent);
  color: var(--obsidian);
  font-weight: 500;
}

.btn-primary:hover {
  box-shadow: 0 4px 15px rgba(130, 217, 247, 0.3);
  color: var(--obsidian);
}

.btn-secondary {
  border-color: var(--platinum);
  color: var(--ice-white);
}

.btn-secondary:hover {
  background: rgba(184, 195, 207, 0.1);
}

.btn-text {
  color: var(--crystal-blue);
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-text:hover {
  color: var(--ice-white);
}

/* Sections */
section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Entrance */
.entrance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 75vh;
}

.entrance-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.entrance-content p {
  color: var(--text-sec);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.entrance-actions {
  display: flex;
  gap: 1.5rem;
}

.entrance-visual {
  position: relative;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(184, 195, 207, 0.1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.floating-panel {
  position: absolute;
  background: rgba(22, 29, 39, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(184, 195, 207, 0.2);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  color: var(--text-sec);
  font-size: 0.85rem;
}

.panel-1 {
  bottom: -20px;
  left: -20px;
  width: 220px;
}

.panel-2 {
  top: 40px;
  right: -30px;
  width: 200px;
}

/* Spectrum */
.spectrum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 4rem 2rem;
  margin: 2rem auto;
  max-width: 1000px;
}

.spectrum::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--royal-indigo), transparent);
  z-index: 1;
}

.spectrum-pillar {
  position: relative;
  z-index: 2;
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--surface-sec);
  text-align: center;
  width: 20%;
  transition: all 0.25s ease;
}

.spectrum-pillar:hover {
  transform: translateY(-5px);
  border-color: var(--mid-sapphire);
  box-shadow: 0 5px 15px rgba(24, 59, 99, 0.3);
}

.pillar-dot {
  width: 12px;
  height: 12px;
  background: var(--crystal-blue);
  border-radius: 50%;
  margin: 0 auto 1rem;
  box-shadow: 0 0 10px var(--crystal-blue);
}

.spectrum-pillar h4 {
  font-size: 0.9rem;
  margin: 0;
  color: var(--ice-white);
}

/* Vault (Game) */
.vault {
  text-align: center;
}

.vault-container {
  background: var(--obsidian);
  border: 2px solid var(--diamond-silver);
  border-radius: 30px;
  padding: 10px;
  max-width: 1020px;
  margin: 0 auto 2rem;
  box-shadow: 0 15px 50px rgba(130, 217, 247, 0.1), inset 0 0 20px rgba(0,0,0,0.8);
  position: relative;
}

.vault-container::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: var(--grad-accent);
  z-index: -1;
  border-radius: 32px;
  opacity: 0.3;
}

.vault-iframe-wrapper {
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  height: 600px;
  width: 100%;
}

.vault-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.vault-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Collection */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.collection-item {
  background: var(--surface);
  border: 1px solid var(--surface-sec);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.collection-item:hover {
  transform: translateY(-5px);
  border-color: var(--platinum);
}

.collection-img-wrapper {
  height: 250px;
  background: var(--obsidian);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.collection-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.abstract-gem {
  width: 100px;
  height: 100px;
  background: var(--grad-sec);
  transform: rotate(45deg);
  border: 2px solid var(--diamond-silver);
}

.abstract-gem.blue {
  background: linear-gradient(135deg, #183B63, #82D9F7);
}

.collection-content {
  padding: 2rem;
}

.collection-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.collection-content p {
  color: var(--text-sec);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Craftsmanship */
.craftsmanship {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: var(--surface);
  padding: 4rem;
  border-radius: 12px;
  border: 1px solid var(--surface-sec);
}

.craftsmanship-img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(184, 195, 207, 0.2);
}

.craftsmanship-article h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.craftsmanship-article p {
  color: var(--text-sec);
  margin-bottom: 1rem;
}

.craftsmanship-topics {
  margin-top: 2rem;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.craftsmanship-topics li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--platinum);
  font-size: 0.9rem;
}

.craftsmanship-topics li::before {
  content: '◇';
  color: var(--crystal-blue);
}

/* Gem Exchange (Contact) */
.exchange {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  border-top: 1px solid var(--surface-sec);
  padding-top: 5rem;
}

.exchange-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.support-email {
  display: block;
  font-size: 1.5rem;
  color: var(--crystal-blue);
  margin: 2rem 0;
  letter-spacing: 0.05em;
}

.mini-faq {
  margin-top: 2rem;
}

.mini-faq-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--surface-sec);
  padding-bottom: 1rem;
}

.mini-faq-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.mini-faq-item p {
  color: var(--text-sec);
  font-size: 0.9rem;
}

.contact-form {
  background: var(--surface);
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid var(--surface-sec);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--platinum);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--surface-sec);
  border-radius: 4px;
  color: var(--text-pri);
  font-family: var(--font-main);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--royal-indigo);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

/* Footer */
.luxury-footer {
  background: var(--obsidian);
  border-top: 1px solid var(--platinum);
  padding: 5rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.footer-col h4 {
  color: var(--ice-white);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul a {
  color: var(--text-sec);
  font-size: 0.9rem;
}

.footer-col ul a:hover {
  color: var(--crystal-blue);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid rgba(184, 195, 207, 0.1);
  padding-top: 2rem;
}

.footer-emblem {
  color: var(--crystal-blue);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 800px;
  margin: 0.5rem auto;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: rgba(15, 23, 34, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--diamond-silver);
  border-radius: 22px;
  padding: 2rem;
  width: 350px;
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  display: none;
}

.cookie-popup h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.cookie-popup p {
  color: var(--text-sec);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
}

/* Subpage Styles */
.subpage-header {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--surface-sec);
}

.subpage-content {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.subpage-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--crystal-blue);
}

.subpage-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.subpage-content p {
  color: var(--text-sec);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

@media (max-width: 992px) {
  .entrance, .craftsmanship, .exchange {
    grid-template-columns: 1fr;
  }
  .nav-links { display: none; }
  .collection-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .spectrum { flex-direction: column; gap: 2rem; }
  .spectrum::before { display: none; }
  .spectrum-pillar { width: 80%; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .entrance-actions { flex-direction: column; }
}