:root {
  --bg-main: #050608;
  --bg-card: #121219;
  --text-main: #e5e5e5;
  --text-muted: #a0a0a0;
  --gold: #ffb606;
  --gold-deep: #b28228;
  --radius: 14px;
  --max-width: 100%;
  --fast: 200ms ease-out;
}

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

/* Custom Text Selection */
::selection {
  background: var(--gold);
  color: var(--bg-main);
}
::-moz-selection {
  background: var(--gold);
  color: var(--bg-main);
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  /* Adjust padding to match header height so links land correctly, accounting for increased header size */
  scroll-padding-top: 5rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Themed Scrollbar for Chrome/Brave/Safari */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-deep);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 99999;
  background: var(--gold);
  color: var(--bg-main);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}
.skip-link:focus { left: 1rem; }

html::-webkit-scrollbar {
  width: 6px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #181818 0, #050608 45%, #000 100%);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Film Grain Overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Interaction States */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Custom Magnetic Cursor */
.cursor-follower {
  width: 20px;
  height: 20px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1), height 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease;
  box-shadow: 0 0 20px var(--gold);
  display: none;
  will-change: transform;
  transform: translate3d(-50%, -50%, 0);
}

.cursor-follower.expanding {
  width: 60px;
  height: 60px;
  background: #fff; /* Brighten on interaction */
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: var(--bg-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.8s cubic-bezier(0.2, 1, 0.2, 1), visibility 0.8s;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader-brand-mark {
  width: 60px;
  height: 60px;
}

#binary-rain-canvas {
  position: absolute;
  inset: 0;
  z-index: -1; /* Behind other loader content */
  opacity: 0.2; /* Subtle */
}

.loader-terminal {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  color: var(--gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: 280px;
  height: 120px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0.8;
}

.progress-container {
  width: 280px;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  box-shadow: 0 0 20px var(--gold);
  transition: width 0.3s ease;
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0; width: 0%; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  z-index: 1001;
  transition: width 0.1s ease-out;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% calc(10% + (var(--scroll-y) * 0.1)), rgba(255, 182, 6, 0.08) 0, transparent 50%),
    radial-gradient(circle at 100% calc(90% - (var(--scroll-y) * 0.1)), rgba(178, 130, 40, 0.1) 0, transparent 55%);
  transition: background 0.1s linear;
  mix-blend-mode: screen;
  z-index: -2;
}

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

main {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 5vw;
}

header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(0px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: padding 0.4s cubic-bezier(0.2, 1, 0.2, 1), background 0.4s ease, backdrop-filter 0.4s ease, border 0.4s ease;
}

header.scrolled {
  background: rgba(5, 6, 8, 0.95);
  border-bottom: 1px solid rgba(255, 182, 6, 0.15);
}

@supports (backdrop-filter: blur(1px)) {
  header.scrolled {
    backdrop-filter: blur(20px);
    background: rgba(5, 6, 8, 0.85);
  }
}

.nav-inner {
  width: 100%;
  padding: 2rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: padding 0.4s ease;
}

header.scrolled .nav-inner {
  padding: 1rem 5vw;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--gold) 0, var(--gold-deep) 40%, #050608 70%);
  box-shadow: 0 0 14px rgba(255, 182, 6, 0.8);
  animation: pulse-gold 3s infinite;
}

@keyframes pulse-gold {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

nav ul {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  font-size: 0.9rem;
}

nav a {
  position: relative;
  color: var(--text-muted);
  padding: 0.2rem 0;
  display: inline-block;
  transition: transform 0.3s ease, color var(--fast);
  will-change: transform;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  box-shadow: 0 0 10px rgba(255, 182, 6, 0.7);
  transition: width var(--fast);
}

nav a.active {
  color: var(--text-main);
}

nav a.active::after,
nav a:hover::after,
nav a:focus-visible::after { width: 100%; }

/* HERO */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.6fr 1fr; /* Rigid ratio prevents UI shifting */
  gap: 4rem;
  align-items: center;
  align-content: center;
  border-bottom: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(19, 19, 24, 0.9);
  border: 1px solid rgba(255, 182, 6, 0.4);
  box-shadow: 0 0 10px rgba(255, 182, 6, 0.4);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(255, 182, 6, 0.9);
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw + 1rem, 4.2rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

#hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  position: relative;
  z-index: 5;
  margin-bottom: 0.5rem;
}

.typewriter-wrapper {
  display: flex;
  align-items: center;
  min-height: 1.2em; /* Locked height prevents text below from jumping up/down */
  width: 100%;
  overflow: hidden;  /* Prevents the text from "crushing" the focus box */
  white-space: nowrap;
  font-size: 0.7em;  /* Slightly smaller secondary line for better hierarchy */
}

.hero h1 .gold-text,
.hero h1 .char {
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(255, 182, 6, 0.3);
}

#typewriter-text {
  display: inline;
  min-height: 1.1em;
  vertical-align: bottom;
  transition: transform 0.1s ease;
  color: var(--text-main);
  white-space: nowrap;
}

.glitch {
  animation: glitch-anim 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
  color: var(--text-main);
  text-shadow: 0.05em 0 0 rgba(255, 182, 6, 0.75),
              -0.025em -0.05em 0 rgba(178, 130, 40, 0.75),
              0.025em 0.05em 0 rgba(255, 255, 255, 0.5);
}

@keyframes glitch-anim {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background-color: var(--gold);
  margin-left: 2px;
  vertical-align: middle;
  position: relative;
  z-index: 10;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  from, to { background-color: transparent; }
  50% { background-color: var(--gold); }
}

.hero-subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero p {
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}



.btn-primary,
.btn-ghost {
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition:
    background-color var(--fast),
    color var(--fast),
    border-color var(--fast),
    box-shadow var(--fast),
    transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: -50%; left: -60%; width: 20%; height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(30deg);
  transition: none;
}

.btn-primary:hover::after {
  left: 120%;
  transition: all 600ms cubic-bezier(0.2, 1, 0.2, 1);
}

.btn-primary {
  background: radial-gradient(circle at 20% 0, #ffe29e 0, var(--gold) 30%, var(--gold-deep) 75%);
  color: #050608;
  box-shadow:
    0 0 20px rgba(255, 182, 6, 0.7),
    0 0 50px rgba(255, 182, 6, 0.3);
  font-weight: 600;
}

.btn-primary:hover {
  will-change: transform;
  box-shadow:
    0 0 26px rgba(255, 182, 6, 0.9),
    0 0 70px rgba(255, 182, 6, 0.6);
  transform: translateY(-3px) scale(1.02);
}

.btn-ghost {
  background: rgba(8, 8, 12, 0.9);
  border-color: rgba(255, 182, 6, 0.3);
  color: var(--text-main);
}

.btn-ghost:hover {
  will-change: transform;
  background: rgba(19, 19, 24, 1);
  border-color: rgba(255, 182, 6, 0.7);
  box-shadow: 0 0 16px rgba(255, 182, 6, 0.4);
  transform: translateY(-2px);
}

.hero-highlight {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 182, 6, 0.25);
  background: radial-gradient(circle at 0 0, rgba(255, 182, 6, 0.18) 0, rgba(5, 6, 8, 0.96) 45%);
  position: relative;
  overflow: hidden;
  padding: 2.5rem 2rem;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.9);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CRT Scanline Overlay */
.hero-highlight::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%,
    rgba(0, 0, 0, 0.15) 50%
  ),
  linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 255, 0, 0.03));
  background-size: 100% 3px, 3px 100%;
  z-index: 1;
  opacity: 0.6;
}

.hero-highlight h2 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.chip-row {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 8, 12, 0.9);
  color: var(--text-muted);
  font-size: 0.75rem;
}

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

/* Overrides for specific section heights/layouts */
#about {
  min-height: 200vh; /* Keeps space for timeline scroll */
  justify-content: flex-start;
  padding-top: 15vh;
}

.timeline-container {

  position: relative;
  margin-top: 6rem;
  padding-left: 3rem;
  max-width: 700px;
}

.timeline-line {
  position: absolute;
  left: 0.5rem;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
}

.timeline-line-inner {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 0%;
  background: var(--gold);
  box-shadow: 0 0 15px var(--gold);
  transition: height 0.1s ease-out;
}

.timeline-item {
  position: relative;
  margin-bottom: 8rem;
}

.timeline-dot {
  position: absolute;
  left: -3rem; top: 0.4rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--bg-main);
  z-index: 2;
}


section + section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title h2 {
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-bar {
  height: 1px;
  width: 40px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), transparent);
  box-shadow: 0 0 10px rgba(255, 182, 6, 0.8);
}

.section-kicker {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

/* WHAT'S NEW SECTION */
.new-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.5rem;
  align-items: start;
}

.updates-list {
  list-style: none;
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.updates-list li {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.4;
}

.update-date {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  margin-right: 0.6rem;
  letter-spacing: 0.05em;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #08080c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none; /* Keep custom cursor visible until iframe is activated */
}

.video-container iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none; /* Initially disable pointer events to allow parent card tilt */
  z-index: 2;
}

.video-container.loaded iframe {
  opacity: 1;
}

.video-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.video-loader .spinner {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 182, 6, 0.1);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.video-card:hover {
  box-shadow: 
    0 22px 40px rgba(0, 0, 0, 0.95),
    0 0 30px rgba(255, 182, 6, 0.2);
}

.card {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.02) 0, rgba(13, 13, 18, 0.98) 55%);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 2rem;
  box-shadow:
    0 18px 26px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 182, 6, 0.06);
  position: relative;
  overflow: hidden;
  contain: layout style paint;
  transition:
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  font-size: 0.85rem;
  color: var(--text-muted);
  will-change: transform;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 182, 6, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  border-color: rgba(255, 182, 6, 0.7);
  box-shadow:
    0 22px 34px rgba(0, 0, 0, 0.95),
    0 0 20px rgba(255, 182, 6, 0.5);
  transform: translateY(-2px);
}

.card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--text-main);
}

.card-links {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.link-inline {
  font-size: 0.8rem;
  color: var(--gold);
}

/* Staggered Character Animation */
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(105%);
  clip-path: inset(0 0 100% 0);
  transition: 
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
    opacity 0.4s ease,
    clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.visible .char {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0 0 0 0);
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: start;
}

.contact-form {
  background: rgba(8, 8, 12, 0.98);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem;
  box-shadow: 0 18px 24px rgba(0, 0, 0, 0.85);
  font-size: 0.85rem;
}

.field { margin-bottom: 0.7rem; }

.field label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 5, 8, 0.96);
  padding: 0.8rem 1rem;
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  transition:
    border-color var(--fast),
    box-shadow var(--fast),
    background-color var(--fast);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(255, 182, 6, 0.7);
  box-shadow: 0 0 12px rgba(255, 182, 6, 0.5);
  background: rgba(7, 7, 11, 0.98);
}

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

.contact-links {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.contact-links a { color: var(--gold); }

footer {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 2rem 5vw;
  scroll-snap-align: end;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ANIMATION CLASSES */
.reveal {
  opacity: 0;
  transform: perspective(1200px) rotateX(15deg) translateY(100px) scale(0.8) translateZ(0);
  filter: url(#liquid-deform) blur(20px);
  transition:
    opacity 1.2s cubic-bezier(0.2, 1, 0.2, 1), 
    transform 1.4s cubic-bezier(0.2, 1, 0.2, 1),
    filter 1.2s ease-out;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transform: none !important;
    filter: none !important;
    transition: opacity 0.4s ease !important;
  }
}

.reveal.visible {
  opacity: 1;
  transform: perspective(1200px) rotateX(0deg) translateY(0) scale(1);
  filter: url(#liquid-deform) blur(0px);
}

/* Staggered Children Animation */
.reveal.visible > * {
  animation: content-rise 1s cubic-bezier(0.2, 1, 0.2, 1) both;
}

@keyframes content-rise {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.legal-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
}

/* MODAL STYLES */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.2, 1, 0.2, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  color: var(--gold); font-size: 2rem;
  line-height: 1; z-index: 10;
}

.legal-body p { margin-bottom: 0.5rem; line-height: 1.6; }

.legal-body a {
  color: var(--gold);
  transition: color var(--fast), text-decoration var(--fast);
}

.legal-body a:hover {
  color: var(--gold-deep);
  text-decoration: underline;
}

.lang-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 182, 6, 0.3);
  color: var(--text-muted);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.65rem;
  cursor: pointer;
  transition: all var(--fast);
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lang-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255, 182, 6, 0.05);
}

.legal-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Language content visibility */
[data-lang="en"] .lang-de,
[data-lang="de"] .lang-en {
  display: none;
}

/* SYSTEM STATUS WIDGET */
.system-status {
  display: flex;
  gap: 0.8rem;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}
.status-separator { color: rgba(255, 182, 6, 0.3); }

/* TOAST SYSTEM */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10005;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-notification {
  background: rgba(18, 18, 25, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gold-deep);
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: translateX(120%);
  transition: transform 0.5s cubic-bezier(0.2, 1, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.toast-notification.toast-error {
  border-color: var(--text-muted); /* Muted border for errors */
}

.toast-notification.toast-success {
  border-color: var(--gold-deep); /* Gold border for success */
}



.toast-notification.active { transform: translateX(0); }

.toast-notification:nth-child(2) { transition-delay: 0.1s; }
.toast-notification:nth-child(3) { transition-delay: 0.2s; }
.toast-notification:nth-child(4) { transition-delay: 0.3s; }

.toast-content { display: flex; align-items: center; gap: 0.8rem; }

.toast-dot {
  width: 6px; height: 6px; background: var(--gold);
  border-radius: 50%; box-shadow: 0 0 10px var(--gold);
}

.toast-dot-success {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
.toast-dot-error {
  background: var(--text-muted);
}

#email-copy-link {
  cursor: copy;
  transition: color var(--fast);
}

@media (max-width: 840px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-highlight { order: -1; }
  .new-content-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .nav-inner { padding-inline: 1rem; }
  main { padding-inline: 1rem; }
}

@media (max-width: 560px) {
  .nav-inner {
    flex-direction: row;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
  }
  .brand { flex-shrink: 0; }
  nav {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }
  nav::-webkit-scrollbar { display: none; }
  nav ul { flex-wrap: nowrap; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}