:root {
  --bg-primary: #07090e;
  --bg-card: rgba(14, 20, 31, 0.65);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-card-hover: rgba(56, 189, 248, 0.35);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-cyan: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Canvas */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Ambient Background Lights */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: pulseAmbient 12s ease-in-out infinite alternate;
}

.ambient-glow.cyan {
  width: 50vw;
  height: 50vw;
  top: 10%;
  left: 15%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, transparent 70%);
}

.ambient-glow.purple {
  width: 55vw;
  height: 55vw;
  bottom: 5%;
  right: 10%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.18) 0%, transparent 70%);
  animation-duration: 16s;
  animation-delay: -6s;
}

@keyframes pulseAmbient {
  0% { transform: scale(1) translate(0, 0); opacity: 0.35; }
  50% { transform: scale(1.15) translate(30px, -20px); opacity: 0.55; }
  100% { transform: scale(0.95) translate(-20px, 20px); opacity: 0.35; }
}

/* Hero Centerpiece */
.hero {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.logo-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 680px;
  width: 100%;
}

.logo-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 38px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.logo-card:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-2px);
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.7),
    0 0 60px var(--accent-glow),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Ambient Glow behind the logo card */
.card-glow {
  position: absolute;
  inset: -15px;
  border-radius: 36px;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.3) 0%, rgba(129, 140, 248, 0.15) 50%, transparent 80%);
  filter: blur(25px);
  z-index: -1;
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

.logo-card:hover .card-glow {
  opacity: 1;
}

/* Specular Dynamic Shine Effect */
.card-shine {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  pointer-events: none;
  background: radial-gradient(circle 200px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.18), transparent 80%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.logo-card:hover .card-shine {
  opacity: 1;
}

/* Logo Image */
.logo-img {
  width: 100%;
  max-width: 531px;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

/* Subtitle & Tagline */
.tagline-container {
  margin-top: 32px;
  opacity: 0;
  animation: fadeInTagline 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #e2e8f0;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  margin-bottom: 8px;
}

.tagline-sub {
  font-size: clamp(0.75rem, 1.8vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

@keyframes fadeInTagline {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Site Footer */
.site-footer {
  position: fixed;
  bottom: 24px;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-separator {
  opacity: 0.4;
}

.footer-link-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link-btn:hover, .footer-link-btn:focus-visible {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
  outline: none;
}

/* Modal Backdrop & Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  display: block;
  position: static;
  margin: 0;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 32px;
  color: var(--text-muted);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(56, 189, 248, 0.15);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s var(--transition-smooth);
}

.modal-backdrop.is-open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.modal-header h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.modal-section {
  margin-bottom: 22px;
}

.modal-section h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  font-weight: 600;
}

.entity-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.entity-address {
  font-style: normal;
  line-height: 1.5;
  color: var(--text-muted);
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  width: 70px;
}

.contact-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.badge-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.wko-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.wko-badge:hover {
  color: var(--text-main);
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
}

.badge-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.legal-note {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.legal-note strong {
  color: var(--text-muted);
}

/* Responsiveness */
@media (max-width: 640px) {
  .logo-card {
    padding: 24px 28px;
    border-radius: 22px;
  }
  
  .tagline-container {
    margin-top: 24px;
  }
  
  .tagline {
    letter-spacing: 0.18em;
  }
  
  .modal-dialog {
    padding: 24px 20px;
  }
  
  .site-footer {
    flex-direction: column;
    gap: 8px;
    bottom: 16px;
  }
  
  .footer-separator {
    display: none;
  }
}

/* Reduced Motion preference */
@media (prefers-reduced-motion: reduce) {
  .ambient-glow {
    animation: none;
  }
  .logo-card {
    transition: none;
  }
  .tagline-container {
    animation: none;
    opacity: 1;
  }
}
