:root {
  color-scheme: dark;
  /* Glass/Case Brand Colors */
  --glass-blue: #4A9FD8;
  --transparency-cyan: #3ABEF9;
  --ice-blue: #E8F4F8;
  --deep-navy: #1A1F2E;
  --slate: #64748B;
  --white: #FFFFFF;
  --steel-blue: #5B7C99;
  --gold-accent: #F4C430;
  
  /* Derived colors */
  --bg-gradient-start: #1A1F2E;
  --bg-gradient-mid: #0F1730;
  --bg-gradient-end: #070b16;
  --panel: rgba(26, 31, 46, 0.6);
  --line: rgba(74, 159, 216, 0.25);
  --glass-panel-bg: linear-gradient(180deg, rgba(26, 31, 46, 0.8), rgba(26, 31, 46, 0.4));
}

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

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

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, var(--bg-gradient-start), var(--bg-gradient-mid) 50%, var(--bg-gradient-end));
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--transparency-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--ice-blue);
}

p a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--transparency-cyan);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--deep-navy);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 0 0 4px 4px;
  transition: top 0.3s ease;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* Common Animations */
@keyframes shimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes prismGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(74, 159, 216, 0.4)); }
  50% { filter: drop-shadow(0 0 16px rgba(58, 190, 249, 0.8)); }
}

.shimmer {
  animation: shimmer 3s ease-in-out infinite;
}

.prism-glow {
  animation: prismGlow 4s ease-in-out infinite;
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  background: rgba(26, 31, 46, 0.95);
  border-bottom: 1px solid var(--line);
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@supports (backdrop-filter: blur(10px)) {
  nav {
    -webkit-backdrop-filter: saturate(130%) blur(10px);
    backdrop-filter: saturate(130%) blur(10px);
  }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.brand-name {
  font-family: 'Spectral', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.15px;
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  margin: 0;
}

.brand-name .glass {
  color: var(--ice-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(74, 159, 216, 0.18), rgba(58, 190, 249, 0.08));
  border: 1px solid rgba(74, 159, 216, 0.5);
  box-shadow: 0 6px 24px rgba(58, 190, 249, 0.18);
  position: relative;
  overflow: hidden;
}

.brand-name .glass::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.02));
  opacity: 0.9;
  pointer-events: none;
}

.brand-name .divider {
  color: rgba(166, 207, 242, 0.8);
  font-weight: 600;
  margin: 0 0.1em;
  letter-spacing: -0.1em;
  display: inline-flex;
  transform: translateY(-1px);
}

.brand-name .case {
  font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
  color: rgba(164, 188, 211, 0.92);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 3px 12px rgba(10, 22, 38, 0.35);
}

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

.desktop-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.desktop-nav a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.desktop-nav a:hover {
  color: var(--transparency-cyan);
}

/* Mobile responsive navigation */
@media (max-width: 640px) {
  .nav-inner { gap: 1rem; padding: 1rem 1.5rem; }
  .brand { justify-content: center; margin: 0 auto; }
  .nav-inner { justify-content: space-between; }
  .brand-name { font-size: clamp(18px, 5vw, 20px); }
  
  .mobile-menu-button {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 51;
  }
  
  .mobile-menu-button span {
    width: 24px;
    height: 2px;
    background: var(--slate);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }
  
  .mobile-menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .desktop-nav {
    display: none !important;
  }
  
  .mobile-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: #0f172a !important;
    border-right: 1px solid var(--line);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    padding: 80px 32px 32px;
    overflow-y: auto;
  }
  
  .mobile-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 159, 216, 0.06) 0%, transparent 50%, rgba(58, 190, 249, 0.04) 100%);
    pointer-events: none;
  }
  
  .mobile-menu::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, var(--transparency-cyan) 0%, transparent 50%, var(--transparency-cyan) 100%);
    opacity: 0.3;
  }
  
  .mobile-menu.active {
    left: 0;
  }
  
  .mobile-menu-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: none !important;
    text-align: center;
  }
  
  .mobile-menu-title {
    font-family: 'Spectral', serif;
    font-style: italic;
    font-size: 1.75rem;
    color: var(--ice-blue);
    margin-top: 0 !important;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(58, 190, 249, 0.3);
    border: none !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
  
  .mobile-menu-subtitle {
    font-size: 0.875rem;
    color: var(--slate);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  
  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    padding-top: 0 !important;
    border-top: none !important;
  }
  
  .mobile-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 1rem 1.25rem 1rem 2.25rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
  }
  
  .mobile-menu a:hover {
    color: var(--transparency-cyan);
    background: rgba(74, 159, 216, 0.12);
    transform: translateX(8px);
    border-color: rgba(74, 159, 216, 0.3);
    box-shadow: 0 4px 12px rgba(58, 190, 249, 0.2);
  }
  
  .mobile-menu a.active {
    background: transparent;
    color: var(--transparency-cyan);
    border-color: transparent;
    box-shadow: none;
  }

  .mobile-menu a.active::after {
    content: '▶';
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--transparency-cyan);
    opacity: 0.9;
  }
  
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 49;
  }
  
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

@media (min-width: 641px) {
  .mobile-menu-button { display: none !important; }
  .desktop-nav { display: flex !important; }
  .mobile-menu, .mobile-menu-overlay { display: none !important; }
}

/* Footer */
footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand-name {
  font-family: 'Spectral', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
  color: var(--ice-blue);
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.5;
}

.footer-section h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ice-blue);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--ice-blue);
}

.footer-cta {
  background: var(--glass-blue);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
  transition: opacity 0.2s;
}

.footer-cta:hover {
  opacity: 0.9;
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(74, 159, 216, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-legal-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
  font-size: 0.8125rem;
  color: var(--slate);
}

.footer-copyright {
  color: var(--ice-blue);
  font-weight: 500;
}

.footer-license {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 2px 6px;
  background: rgba(74, 159, 216, 0.05);
  border: 1px solid rgba(74, 159, 216, 0.15);
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 0.725rem;
}

.footer-license:hover {
  border-color: var(--transparency-cyan);
  background: rgba(74, 159, 216, 0.1);
}

.footer-license img {
  height: 0.85rem;
  opacity: 0.8;
}

.footer-disclaimer-group {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-disclaimer {
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--slate);
  font-style: normal;
  opacity: 0.85;
  white-space: nowrap;
  display: block;
}

@media (max-width: 1100px) {
  .footer-disclaimer {
    white-space: normal;
  }
}

.footer-disclaimer strong {
  color: var(--ice-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
}

.footer-disclaimer a {
  color: var(--steel-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-disclaimer a:hover {
  color: var(--transparency-cyan);
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-legal-row {
    flex-direction: column;
    gap: 1rem;
  }
}
