:root {
  --chrome: #3cf0ff;
  --chrome-dim: #1aa7b8;
  --teal: #3db8c4;
  --sunset: #ff9f6e;
  --lime: #d4ff4a;
  --blue: #5b9dff;

  --bg-deep: #020810;
  --bg: #051018;
  --bg-mid: #081c24;
  --bg-elevated: #0e2430;
  --text: #eef4f6;
  --text-muted: #8a9dad;

  --accent: var(--chrome);
  --accent-hover: #9fffff;
  --accent-glow: rgba(60, 240, 255, 0.28);
  --focus-ring: 0 0 0 2px var(--bg-deep), 0 0 0 4px rgba(60, 240, 255, 0.55);

  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(60, 240, 255, 0.22);
  --radius: 18px;
  --radius-sm: 12px;
  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --font-display: "Syne", var(--font-sans);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(60, 240, 255, 0.05);
  --shadow-hover:
    0 32px 80px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(45, 90, 140, 0.18),
    0 0 56px -12px rgba(60, 240, 255, 0.16);
  --gradient-spray-soft: linear-gradient(
    125deg,
    rgba(60, 240, 255, 0.12) 0%,
    rgba(45, 90, 140, 0.12) 42%,
    rgba(61, 184, 196, 0.08) 100%
  );
  --glow-cyan-wash: rgba(60, 240, 255, 0.14);
  --glow-deep-blue-wash: rgba(35, 75, 120, 0.18);
  --glow-sunset-wash: rgba(255, 159, 110, 0.09);
  --glow-lime-wash: rgba(212, 255, 74, 0.05);
  --header-blur: 18px;
  color-scheme: dark;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
}

html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 85% at 5% -5%, var(--glow-deep-blue-wash) 0%, transparent 44%),
    radial-gradient(ellipse 100% 75% at 100% 0%, var(--glow-cyan-wash) 0%, transparent 48%),
    radial-gradient(ellipse 75% 55% at 85% 100%, var(--glow-sunset-wash) 0%, transparent 52%),
    radial-gradient(ellipse 65% 45% at 0% 100%, var(--glow-lime-wash) 0%, transparent 50%),
    linear-gradient(185deg, var(--bg-deep) 0%, var(--bg) 38%, var(--bg-mid) 100%);
  animation: neo-atmosphere 16s ease-in-out infinite alternate;
}

html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(60, 240, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 120, 150, 0.028) 1px, transparent 1px);
  background-size: 52px 52px;
  mix-blend-mode: screen;
  animation: neo-grid-pulse 22s ease-in-out infinite alternate;
}

@keyframes neo-atmosphere {
  0% {
    opacity: 0.78;
    filter: saturate(0.94);
  }
  100% {
    opacity: 1;
    filter: saturate(1.06);
  }
}

@keyframes neo-grid-pulse {
  0% {
    opacity: 0.22;
  }
  100% {
    opacity: 0.48;
  }
}

@keyframes neo-header-edge {
  0% {
    border-bottom-color: rgba(60, 240, 255, 0.14);
  }
  100% {
    border-bottom-color: rgba(61, 184, 196, 0.26);
  }
}

body {
  position: relative;
  z-index: 1;
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.62;
  color: var(--text);
  background: transparent;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(60, 240, 255, 0.28);
  color: var(--bg-deep);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 9999;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

.site-header {
  display: flex;
  align-items: center;
  width: 100%;
  height: 1.125in;
  min-height: 1.125in;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(2, 8, 16, 0.97) 0%, rgba(5, 16, 24, 0.88) 65%, transparent 100%);
  backdrop-filter: blur(var(--header-blur));
  border-bottom: 1px solid rgba(60, 240, 255, 0.14);
  box-shadow: 0 8px 44px rgba(0, 0, 0, 0.55);
  animation: neo-header-edge 12s ease-in-out infinite alternate;
}

.site-header .nav {
  flex: 1;
  width: 100%;
  min-width: 0;
}

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

.nav-start {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header-brand {
  display: flex;
  align-items: center;
}

.site-header .nav-end-slot {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
}

.logo {
  display: inline-flex;
  line-height: 0;
  border-radius: 8px;
  max-width: min(50vw, 19rem);
}

.logo-visual {
  position: relative;
  display: inline-flex;
  height: 1.02in;
  max-height: 1.02in;
}

.logo .logo-visual img {
  display: block;
  height: 1.02in;
  max-height: 1.02in;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 14px rgba(60, 240, 255, 0.14));
}

.nav-links-root {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
}

.nav-trashed-link {
  display: inline-grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.38rem;
  min-height: 2rem;
  padding: 0.35rem 0.68rem 0.35rem 0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(125deg, rgba(14, 32, 44, 0.88) 0%, rgba(4, 12, 18, 0.8) 100%);
  color: #d4e7ee;
  letter-spacing: 0.08em;
}

.nav-trashed-slot {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.16rem 0.34rem;
  border-radius: 999px;
  color: #08131d;
  background: linear-gradient(135deg, rgba(60, 240, 255, 0.88) 0%, rgba(255, 159, 110, 0.72) 100%);
}

.nav-trashed-icon {
  color: #9feef5;
}

.nav-trashed-link.is-active,
.nav-trashed-link[aria-current="page"] {
  border-color: rgba(60, 240, 255, 0.45);
  background: rgba(60, 240, 255, 0.11);
  color: #effbfd;
}

@media (max-width: 960px) {
  .site-header {
    height: auto;
    min-height: 3.15rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .logo-visual,
  .logo .logo-visual img {
    height: clamp(2rem, 12vw, 1.02in);
    max-height: clamp(2rem, 12vw, 1.02in);
  }

  .nav {
    flex-wrap: wrap;
  }

  .site-header .nav-end-slot {
    display: contents;
  }

  .nav-links-root {
    order: 4;
    flex: 0 0 100%;
    justify-content: flex-start;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(60, 240, 255, 0.1);
  }
}

main.site-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 4.5rem;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sunset);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 3.85rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: min(42rem, 100%);
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(60, 240, 255, 0.42);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease;
}

.btn:not(.btn-primary) {
  color: var(--chrome);
  background: rgba(60, 240, 255, 0.06);
}

.btn-primary {
  color: #050210;
  background: linear-gradient(135deg, #5cf8ff 0%, #4a9fe6 36%, #3db8b0 72%, #c4f06a 100%);
  box-shadow: 0 0 32px rgba(60, 240, 255, 0.28);
}

@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-2px);
  }

  .btn:not(.btn-primary):hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
  }
}

.panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(10, 22, 32, 0.98) 0%, var(--bg-elevated) 48%, rgba(4, 10, 16, 0.99) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.85rem;
  box-shadow: var(--shadow);
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 3.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.footer-note {
  opacity: 0.72;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html::before,
  html::after,
  .site-header {
    animation: none;
  }
}
