/* Fonts loaded via <link> in HTML for better performance */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: rgb(168, 113, 255);
    --secondary: #8b5cf6;
    --accent: #818cf8;
    --bg-dark: #0a0a0a;
    --bg-card: rgba(30, 30, 46, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--secondary);
  color: var(--text-primary);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

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

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

html {
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0a0a0a;
  color: #fff;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow: auto;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

/* Navigation */
.nav {
  position: fixed;
  width: 100%;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 0;
  padding: calc(1rem + env(safe-area-inset-top)) 0 1rem 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: rgb(168, 113, 255);
  font-weight: 800;
}
.logo-img
{
    height: 50px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.logo-img:hover {
    transform: scale(1.05) rotate(3deg);
    filter: drop-shadow(0 0 8px rgba(168, 113, 255, 0.4));
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {/* Fonts loaded via <link> in HTML for better performance */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: rgb(168, 113, 255);
  --secondary: #8b5cf6;
  --accent: #818cf8;
  --bg-dark: #0a0a0a;
  --bg-card: rgba(30, 30, 46, 0.7);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--secondary);
  color: var(--text-primary);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

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

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

html {
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow: auto;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

/* Navigation */
.nav {
  position: fixed;
  width: 100%;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 0;
  padding: calc(1rem + env(safe-area-inset-top)) 0 1rem 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 50px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.logo-img:hover {
  transform: scale(1.05) rotate(3deg);
  filter: drop-shadow(0 0 8px rgba(168, 113, 255, 0.4));
}

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

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 1rem;
  position: relative;
  overflow: hidden;
  font-weight: 500;
  border-radius: 8px;
}

.nav-links a:hover {
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.1);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a.active {
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.08);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-links a.kofi-link {
  background: rgba(255, 94, 91, 0.16);
  border: 1px solid rgba(255, 94, 91, 0.6);
  color: #ffd8d7;
}

.nav-links a.kofi-link:hover {
  background: rgba(255, 94, 91, 0.28);
  color: #fff;
}

/* Hero */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ab4cee' fill-opacity='0.4'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  padding-top: 100px;
}

.hero-content {
  max-width: 1000px;
  animation: sketch 1s ease-in-out;
  display: flex;
  align-items: center;
  gap: 5rem;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(20, 24, 44, 0.76), rgba(24, 16, 40, 0.7));
  border: 1px solid rgba(138, 157, 255, 0.24);
  border-radius: 28px;
  padding: clamp(1.2rem, 2.8vw, 2rem);
  box-shadow: 0 20px 48px rgba(5, 8, 20, 0.45);
}

.hero-content > div:first-child {
  flex-shrink: 0;
}

.hero-avatar-wrap {
  border-radius: 24px;
  padding: 0.8rem;
  background: linear-gradient(165deg, rgba(129, 140, 248, 0.2), rgba(236, 72, 153, 0.16));
  border: 1px solid rgba(160, 175, 255, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-content img.head-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.hero-content img.head-icon:hover {
  transform: scale(1.05);
}

.hero-content > div:last-child {
  flex: 1;
}

.hero-copy {
  max-width: 620px;
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 0.35rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #bfc7ff;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
}

.hero-copy h1 {
  margin-bottom: 0.5rem;
}

.hero-inline-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.hero-inline-link:hover {
  opacity: 1;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.hero-bio {
  max-width: 60ch;
  margin-bottom: 1.5rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.landing-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.landing-page #main {
  flex: 1;
  display: flex;
}

.landing-page .hero {
  flex: 1;
  min-height: 0;
  padding-top: 112px;
  padding-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.landing-page .hero .container {
  width: 100%;
  display: flex;
  align-items: center;
}

.landing-page .hero-content {
  width: 100%;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.landing-page .hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

/* Buttons */
.cta-button {
  background: linear-gradient(140deg, #d96a63 0%, #c94f67 100%);
  border-color: rgba(255, 226, 226, 0.3);
  box-shadow: 0 14px 32px rgba(201, 79, 103, 0.24), inset 0 -2px 0 rgba(0, 0, 0, 0.18);
  background: linear-gradient(140deg, #8d62ff 0%, #6b7dff 100%);
  color: #fff;
  padding: 0.8rem 1.25rem;
  box-shadow: 0 18px 38px rgba(201, 79, 103, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: -130%;
  left: -45%;
  width: 32%;
  height: 360%;
  transform: rotate(18deg);
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  transition: transform 0.6s ease;
}

.cta-button::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 18px 42px rgba(99, 102, 241, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-button:hover::before {
  transform: translateX(380%) rotate(18deg);
}

.cta-button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.cta-button:active {
  transform: translateY(-1px) scale(0.99);
}

.cta-primary {
  background: linear-gradient(140deg, #7d6bff 0%, #4f70ff 100%);
}

.cta-kofi {
  background: linear-gradient(140deg, #ff695e 0%, #ff3f63 100%);
  border-color: rgba(255, 220, 220, 0.45);
  box-shadow: 0 14px 34px rgba(255, 78, 99, 0.32), 0 0 0 0 rgba(255, 78, 99, 0.35);
  animation: ctaPulse 3.5s ease-in-out infinite;
}

.cta-kofi:hover {
  box-shadow: 0 18px 40px rgba(255, 78, 99, 0.48), 0 0 0 10px rgba(255, 78, 99, 0.12);
}

@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 14px 34px rgba(255, 78, 99, 0.36), 0 0 0 0 rgba(255, 78, 99, 0.38);
  }
  50% {
    box-shadow: 0 14px 34px rgba(255, 78, 99, 0.42), 0 0 0 6px rgba(255, 78, 99, 0.15);
  }
}

/* Footer */
.footer {
  padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom)) 0;
  text-align: center;
  background: rgba(10, 10, 10, 0.9);
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(10px);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  font-size: 1.5em;
  color: rgb(168, 113, 255);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
  z-index: -1;
}

.social-links a:hover::before {
  opacity: 1;
}

.social-links a:hover {
  color: rgb(168, 113, 255);
  transform: translateY(-3px) scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 12px rgba(168, 113, 255, 0.6));
}

.social-links a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 50%;
}

.social-links a i {
  position: relative;
  z-index: 1;
}

.ko-fi {
  font-size: 1.2em;
  transition: transform 0.3s;
  -webkit-text-stroke: 2px black;
  color: rgb(168, 113, 255);
}

.ko-fi:hover {
  color: rgb(168, 113, 255);
}

.ko-fi::after {
  content: '\f004';
  font-weight: 900;
  font-size: 15px;
  color: #FF5E5B;
  position: absolute;
  margin: 15px 0 0 -27px;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 8px;
}

.menu-toggle.open span {
  background: var(--text-primary);
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-logo {
  display: block;
  margin-bottom: 2rem;
  width: 50px;
}

.mobile-menu-logo img {
  width: 100%;
  height: auto;
}

@media (min-width: 769px) {
  .mobile-menu-logo {
    display: none;
  }
}

/* Animations */
@keyframes sketch {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive */
@media (max-width: 768px) {
  body.menu-open {
    overflow: hidden;
  }

  .menu-toggle {
    display: flex;
    transform: scale(1.5);
  }

  .nav-links {
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    width: 100%;
    height: 100vh;
    z-index: 1000;
    margin: 0;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    overflow-y: auto;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    animation: fadeIn 0.3s ease-in-out;
  }

  .nav-links li {
    padding: 0;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.5s ease-in-out forwards;
    width: 100%;
  }

  .nav-links a {
    font-size: 1.5rem;
    display: inline-block;
    width: 100%;
    position: relative;
  }

  .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { animation-delay: 0.2s; }
  .nav-links.active li:nth-child(3) { animation-delay: 0.3s; }
  .nav-links.active li:nth-child(4) { animation-delay: 0.4s; }
  .nav-links.active li:nth-child(5) { animation-delay: 0.5s; }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 0;
    border-radius: 20px;
    padding: 1.25rem;
  }

  .hero-content img.head-icon {
    width: 200px;
    height: 200px;
  }

  .hero-cta-group {
    justify-content: center;
    width: 100%;
  }

  .hero-cta-group .cta-button {
    width: auto;
    min-width: 150px;
    padding: 0.72rem 1rem;
    font-size: 0.88rem;
  }

  .landing-page {
    min-height: 100svh;
  }

  .landing-page .hero {
    padding-top: 96px;
    padding-bottom: 1rem;
    align-items: flex-start;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .social-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Preference tweaks */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .cta-kofi {
    animation: none !important;
  }

  .social-links a:hover {
    transform: scale(1.05);
  }
}

:root {
  color-scheme: dark light;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #000000;
  }
}

@media (hover: none) and (pointer: coarse) {
  .nav-links a {
    padding: 0.75rem 1.25rem;
  }

  .cta-button {
    padding: 0.9rem 1.3rem;
  }
}

@media (max-height: 820px) and (max-width: 1300px) {
  .hero {
    min-height: 65vh;
  }
}
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 1rem;
  position: relative;
  overflow: hidden;
  font-weight: 500;
  border-radius: 8px;
}

.nav-links a:hover {
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.1);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a.active {
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.08);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-links a.kofi-link {
  background: rgba(255, 94, 91, 0.16);
  border: 1px solid rgba(255, 94, 91, 0.6);
  color: #ffd8d7;
}

.nav-links a.kofi-link:hover {
  background: rgba(255, 94, 91, 0.28);
  color: #fff;
}

/* Hero Section */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--background);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ab4cee' fill-opacity='0.4'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  padding-top: 100px;
}


.hero-content {
    max-width: 1000px;
    animation: sketch 1s ease-in-out;
    display: flex;
    align-items: center;
    gap: 5rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(20, 24, 44, 0.76), rgba(24, 16, 40, 0.7));
    border: 1px solid rgba(154, 171, 255, 0.34);
    border-radius: 28px;
    padding: clamp(1.2rem, 2.8vw, 2rem);
    box-shadow:
      0 30px 100px rgba(0, 0, 0, 0.55),
      0 0 60px rgba(129, 86, 232, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    isolation: isolate;
  }

  .hero-content::before {
    content: '';
    position: absolute;
    inset: -120px;
    z-index: -1;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(129, 86, 232, 0.18), transparent 70%);
    filter: blur(28px);
    opacity: 1;
    pointer-events: none;
  }

  .hero-content::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(109, 127, 255, 0.08);
    pointer-events: none;
  }
  
  .hero-content > div:first-child {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
  }
  
  .hero-content img.head-icon {
    width: 200px;
    height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
  }

  .hero-avatar-wrap {
    border-radius: 24px;
    padding: 0.8rem;
    background: linear-gradient(165deg, rgba(129, 140, 248, 0.2), rgba(236, 72, 153, 0.16));
    border: 1px solid rgba(160, 175, 255, 0.3);
    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.4),
      0 0 20px rgba(168, 113, 255, 0.2),
      inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
  
  .hero-content img.head-icon:hover {
    transform: scale(1.05);
  }
  
  .hero-content > div:last-child {
    flex: 1;
    position: relative;
    z-index: 1;
  }

.hero-copy {
  max-width: 620px;
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 0.35rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #bfc7ff;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
}

.hero-bio {
  max-width: 60ch;
  margin-bottom: 0.55rem;
}

.hero-bio-context {
  color: rgba(255, 255, 255, 0.82);
}

.hero-bio-detail {
  margin-bottom: 1.5rem;
}

.hero-copy h1 {
  margin-bottom: 0.75rem;
}
  

.hero-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.icon {
  font-size: 2rem;
  text-shadow: 0 0 10px rgba(155, 135, 245, 0.5);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.landing-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.landing-page #main {
  flex: 1;
  display: flex;
}

.landing-page .hero {
  flex: 1;
  min-height: 0;
  padding-top: 112px;
  padding-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.landing-page .hero .container {
  width: 100%;
  display: flex;
  align-items: center;
}

.landing-page .hero-content {
  width: 100%;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.landing-page .hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.landing-page .hero p {
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  background: linear-gradient(140deg, #8d62ff 0%, #6b7dff 100%);
  color: #fff;
  padding: 0.8rem 1.25rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(99, 102, 241, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
  font-family: 'Inter', sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: -130%;
  left: -45%;
  width: 32%;
  height: 360%;
  transform: rotate(18deg);
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  transition: transform 0.6s ease;
}

.cta-button::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 18px 42px rgba(99, 102, 241, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-button:hover::before {
  transform: translateX(380%) rotate(18deg);
}

.cta-button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.cta-button:active {
  transform: translateY(-1px) scale(0.99);
}

.cta-primary {
  background: linear-gradient(140deg, #7d6bff 0%, #4f70ff 100%);
}

.cta-secondary {
  background: linear-gradient(140deg, #2d3248 0%, #3e4b72 100%);
  border-color: rgba(139, 159, 255, 0.45);
  color: #eef1ff;
}

.cta-kofi {
  background: linear-gradient(140deg, #c56f68 0%, #b45d6d 100%);
  border-color: rgba(255, 229, 229, 0.24);
  box-shadow: 0 12px 28px rgba(180, 93, 109, 0.18), inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.cta-kofi:hover {
  box-shadow: 0 16px 34px rgba(180, 93, 109, 0.24), inset 0 -2px 0 rgba(0, 0, 0, 0.16);
}

/* Projects Section */
.projects {
  padding: 5rem 0;
  background: #0a0a0a;
}
.support{
  padding: 5rem 0;
  background: #1a1a2e;
}

/* Docs Section */
#docs {
  background: #15152e;
}

/* Setup Section */
.setup {
  padding: 5rem 0;
  background: #0a0a0a;
}

.setup-content {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.setup h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-light);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.setup-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.hardware-preview-card {
  max-width: 760px;
  margin: 0 auto;
}

.kofi-spotlight {
  margin: 1.75rem 0 0.5rem;
  border-color: rgba(255, 94, 91, 0.55);
  box-shadow: 0 18px 40px rgba(255, 94, 91, 0.16);
}

.kofi-spotlight::before {
  background: #ff5e5b;
  transform: scaleX(1);
}

.hardware-page-main {
  padding-top: 105px;
}

/* Tabs in single box */
.tabs-box {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.tabs-header {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding: 0.5rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  position: relative;
  bottom: -2px;
  overflow: hidden;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.05);
}

.tab-btn.active {
  color: var(--primary-light);
  border-bottom-color: transparent;
}

.tab-btn.active::after,
.tab-btn:hover::after {
  transform: translateX(0);
}

.tab-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.tabs-content {
  padding: 2rem 1.5rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

.panel-intro {
  max-width: 840px;
  margin: 0 auto 0.95rem;
  text-align: left;
  color: var(--text-secondary);
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.setup-hero-card {
  padding: 1.25rem;
  margin: 0.5rem 0 1rem;
  text-align: left;
  background: linear-gradient(140deg, rgba(28, 31, 52, 0.92), rgba(34, 20, 52, 0.9));
  border-color: rgba(129, 140, 248, 0.45);
}

.setup-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.setup-card {
  padding: 1.1rem;
  text-align: left;
}

.setup-core-card {
  margin-bottom: 0.7rem;
}

.setup-hero-card h3,
.setup-card h3 {
  color: var(--primary-light);
  margin-bottom: 0.7rem;
}

.hardware-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(207, 212, 255, 0.7);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.22);
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  margin-bottom: 0.45rem;
}

.setup-hero-card .panel-intro,
.setup-card .panel-intro {
  max-width: none;
  margin: 0 0 0.9rem;
}

.quick-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 auto 1rem;
}

.quick-spec-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #e7e9ff;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.4);
}

.specs-disclosure {
  margin-top: 0.75rem;
}

.setup-hero-card .specs-disclosure summary,
.setup-card .specs-disclosure summary {
  margin: 0;
}

.specs-disclosure summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  color: var(--primary-light);
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  width: auto;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  text-decoration-color: rgba(168, 174, 255, 0.7);
}

.specs-disclosure summary::-webkit-details-marker {
  display: none;
}

.specs-disclosure summary::before {
  content: "";
}

.specs-disclosure[open] summary::before {
  content: "";
}

.specs-disclosure .device-specs,
.specs-disclosure .steam-hardware-nested {
  margin-top: 0.9rem;
}

.hardware-page-main .tabs-header {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.hardware-page-main .tab-btn {
  border-radius: 8px;
}

.hardware-page-main .device-specs {
  gap: 0.85rem;
}

.hardware-page-main .spec-item {
  text-align: left;
  align-items: flex-start;
  border-left: 0;
  border-top: 3px solid transparent;
  padding-left: 0.75rem;
}

.hardware-page-main .spec-item:hover {
  transform: translateY(-2px);
  border-top-color: var(--accent);
  border-left-color: transparent;
}

.gear-showcase {
  margin-top: 0.7rem;
}

.gear-showcase h3 {
  color: var(--primary-light);
  margin-bottom: 0.6rem;
}

.gear-showcase .panel-intro {
  opacity: 0.9;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.showcase-card {
  padding: 1rem;
  text-align: left;
}

.showcase-card h4 {
  color: var(--text-primary);
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
}

.showcase-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.showcase-meta {
  margin-top: 0.55rem !important;
  color: #c6cbff !important;
  font-size: 0.85rem;
}

.showcase-card .specs-disclosure {
  margin-top: 0.7rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.photo-card {
  padding: 1.25rem;
  text-align: left;
}

.photo-card h3 {
  color: var(--primary-light);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Device card visual retained for inner panels if needed */
.device-card {
  padding: 1.25rem;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
  position: relative;
  overflow: hidden;
}

.device-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

.device-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
}

.device-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-light);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid var(--primary);
  border-radius: 12px;
  color: var(--primary-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.device-card.considering {
  opacity: 0.85;
}

.device-card.considering:hover {
  opacity: 1;
}

.device-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background: rgba(99, 102, 241, 0.05);
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  align-items: center;
  border-left: 3px solid transparent;
  padding-left: 15px;
}

.spec-item:hover {
  background: rgba(99, 102, 241, 0.1);
  border-left-color: var(--accent);
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .spec-item:hover {
    transform: none;
  }
}

.spec-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.spec-value {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Steam Hardware Sub-tabs */
.steam-hardware-nested {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.steam-subtabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.5rem;
  background: rgba(99, 102, 241, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.steam-subtab-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.steam-subtab-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--accent);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.steam-subtab-btn:hover {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.steam-subtab-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.steam-subtab-btn.active {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.15);
}

.steam-subtab-btn.active::before {
  transform: translateX(-50%) scaleX(1);
}

.steam-subtab-panel {
  display: none;
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.steam-subtab-panel.active {
  display: block;
}

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

/* Steam Section */
.steam {
  padding: 6rem 0;
  background: #0a0a0a;
  position: relative;
  margin: 3rem 0;
}

.steam::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #66c0f4;
}

.steam::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #66c0f4;
}

.steam-content {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.steam h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #66c0f4;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.steam-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.steam-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.steam-card {
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(102, 192, 244, 0.15);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(102, 192, 244, 0.3);
  background: rgba(15, 15, 35, 0.8);
  backdrop-filter: blur(10px);
}

.steam-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #66c0f4;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.steam-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(102, 192, 244, 0.25);
  border-color: #66c0f4;
}

.steam-card:hover::before {
  transform: scaleX(1);
}

.steam-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #66c0f4;
  filter: drop-shadow(0 0 10px rgba(102, 192, 244, 0.3));
}

.steam-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.steam-value {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: rgba(102, 192, 244, 0.05);
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  word-break: break-all;
}

.steam-code {
  font-weight: 600;
  color: #66c0f4;
  user-select: all;
}

.steam-card .cta-button {
  display: inline-block;
  width: auto;
  margin-top: 0.5rem;
}

.projects h2, .support h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-light);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
  border-color: var(--primary);
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 31, 44, 0.9);
  opacity: 0;
  transition: opacity 0.3s;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* About Section */
.about {
  color: #fff;
  padding: 5rem 0;
  position: relative;
  background-color: var(--background);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ab4cee' fill-opacity='0.4'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
}

.about-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--ochre);
  text-shadow: 0 0 10px rgba(155, 135, 245, 0.5);
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
  backdrop-filter: blur(10px);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.25);
  border-color: var(--primary);
}

.value-card h3 {
  color: var(--primary-light);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

/* Footer */
.footer {
  padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom)) 0;
  text-align: center;
  background: rgba(10, 10, 10, 0.9);
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(10px);
}

/* Utility Classes */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
}

/* Animations */
@keyframes sketch {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2.5rem; }
  .hero-cta-group {
    justify-content: center;
    width: 100%;
  }
  .hero-cta-group .cta-button {
    width: auto;
    min-width: 150px;
    padding: 0.72rem 1rem;
    font-size: 0.88rem;
  }
  .landing-page {
    min-height: 100svh;
  }
  .landing-page .hero {
    padding-top: 96px;
    padding-bottom: 1rem;
    align-items: flex-start;
  }
  .values { grid-template-columns: 1fr; }
  .device-specs { grid-template-columns: 1fr; }
  .device-icon { font-size: 1.75rem; }
  .device-header h3 { font-size: 1.3rem; }
  .setup h2 { font-size: 2rem; }
  .steam-info-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .steam-card { padding: 2rem 1.5rem; }
  .steam h2 { font-size: 2rem; }
  .steam-value { font-size: 0.95rem; }
  .setup-intro { font-size: 1rem; }
  .spec-item { gap: 0.25rem; }
  .spec-value { text-align: left; }
  .tabs-header { flex-wrap: wrap; }
  .tab-btn { padding: 0.65rem 1.25rem; font-size: 0.85rem; }
  .tabs-content { padding: 1.5rem 1rem; }
  .setup-secondary-grid { grid-template-columns: 1fr; }
  .panel-intro { text-align: center; }
  .setup-hero-card .panel-intro,
  .setup-card .panel-intro { text-align: left; }
  .showcase-grid { grid-template-columns: 1fr; }
  .quick-specs { justify-content: flex-start; }
  .setup-hero-card .specs-disclosure summary,
  .setup-card .specs-disclosure summary { margin: 0; }
  .photo-grid { grid-template-columns: 1fr; }
}

/* Prefer reduced motion: disable animations/transitions */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .cta-kofi {
    animation: none !important;
  }
}

/* Dark mode + OLED-friendly tweaks */
:root { color-scheme: dark light; }
@media (prefers-color-scheme: dark) {
  body { background: #000000; }
  .glass { background: rgba(30, 30, 46, 0.6); }
}

/* Steam Deck / handheld comfort: coarse pointer, no hover */
@media (hover: none) and (pointer: coarse) {
  .nav-links a { padding: 0.75rem 1.25rem; }
  .cta-button { padding: 0.9rem 1.3rem; }
}

/* 800p displays: slightly reduce hero height */
@media (max-height: 820px) and (max-width: 1300px) {
  .hero { min-height: 65vh; }
}

/* Hamburger Menu (CSS updates) */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 30px;
    height: 24px;
  }
  
  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--ochre);
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  /* Animation for Hamburger Menu */
  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* Mobile Navigation (updated styles) */
  .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
  }
  
  @media (max-width: 768px) {
    .menu-toggle {
      display: flex;
      transform: scale(1.5);
    }
  
    .nav-links {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 100%;
      right: 0;
      background: rgba(15, 18, 25, 0.9);
      width: 100%;
      border-top: 1px solid rgba(155, 135, 245, 0.1);
      z-index: 1000;
    }
  
    .nav-links.active {
      display: flex;
    }
  
    .nav-links li {
      padding: 1rem;
      text-align: center;
    }
  }
  /* Hamburger Menu (CSS updates) */
.menu-toggle {
    display: none; /* Hidden by default */
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    z-index: 1001; /* Ensure it's clickable above other content */
  }
  
  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--ochre);
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  /* Animation for Hamburger Menu */
  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* Mobile Navigation (updated styles) */
  .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
  }
  
  @media (max-width: 768px) {
    .menu-toggle {
      display: flex; /* Show hamburger on mobile */
    }
  
    .nav-links {
      display: none; /* Hide navigation links on mobile */
      flex-direction: column;
      position: absolute;
      top: 100%;
      right: 0;
      background: rgba(10, 10, 10, 0.95);
      backdrop-filter: blur(10px);
      width: 100%;
      border-top: 1px solid rgba(99, 102, 241, 0.2);
      z-index: 1000;
    }
  
    .nav-links.active {
      display: flex; /* Show navigation when active */
    }
  
    .nav-links li {
      padding: 1rem;
      text-align: center;
    }
  }

  @media (max-width: 768px) {
    .hero-content {
      flex-direction: column;
      text-align: center;
      padding: 2rem 0;
      gap: 0;
      border-radius: 20px;
      padding: 1.25rem;
    }
  
    .hero-content img.head-icon {
      width: 200px;
      height: 200px;
    }
  }
    
  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .social-links {
    display: flex;
    gap: 1.5rem;
  }
  
  .social-links a {
    font-size: 1.5em;
    color: rgb(168, 113, 255);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
  }
  
  .social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    z-index: -1;
  }
  
  .social-links a:hover::before {
    opacity: 1;
  }
  
  .social-links a:hover {
    color: rgb(168, 113, 255);
  transform: translateY(-3px) scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 12px rgba(168, 113, 255, 0.6));
}

.social-links a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 50%;
}

@media (prefers-reduced-motion: reduce) {
  .social-links a:hover {
    transform: scale(1.05);
  }
}

.social-links a i {
  position: relative;
  z-index: 1;
}

/* Ko-fi icon styling */
.ko-fi {
  font-size: 1.2em;
  transition: transform 0.3s;
  -webkit-text-stroke: 2px black;
  color: rgb(168, 113, 255);
}
.ko-fi:hover {
  color: rgb(168, 113, 255);
}
.ko-fi::after {
  content: '\f004';
  font-weight: 900;
  font-size: 15px;
  color: #FF5E5B;
  position: absolute;
  margin: 15px 0 0 -27px;
}


  @media (max-width: 768px) {
    .footer-content {
      flex-direction: column;
      text-align: center;
      justify-content: center;
    }
    
    .social-links {
      justify-content: center;
      flex-wrap: wrap;
    }
  }
/* Mobile Navigation Styles */
@media (max-width: 768px) {
  /* Prevent scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }

  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 1001;
  }

    /* Logo styles */
    .mobile-menu-logo {
      width: 50px;
    }
  
    .mobile-menu-logo img {
      width: 100%;
    }

    @media (max-width: 768px) {
      .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        height: 100vh;
        z-index: 1000;
        margin: 0;
        padding: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        overflow-y: auto;
      }
    
      .nav-links.active {
        display: flex;
        animation: fadeIn 0.3s ease-in-out;
      }
    
      .nav-links li {
        padding: 0rem;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        animation: slideIn 0.5s ease-in-out forwards;
        width: 100%;
      }
    
      .nav-links a {
        font-size: 1.5rem;
        display: inline-block;
        width: 100%;
        position: relative;
      }
    }

  /* Active link styles */
  .nav-links a.active {
    color: var(--ochre);
  }

  /* Click effect */
  .nav-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(155, 135, 245, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
  }

  .nav-links a:active::before {
    width: 100%;
    height: 100%;
    border-radius: 4px;
  }

  /* Stagger the animation for each list item */
  .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { animation-delay: 0.2s; }
  .nav-links.active li:nth-child(3) { animation-delay: 0.3s; }
  .nav-links.active li:nth-child(4) { animation-delay: 0.4s; }
  .nav-links.active li:nth-child(5) { animation-delay: 0.5s; }
}

/* Animation keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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


/* Ensure the hamburger menu stays visible */
.menu-toggle span {
  background: #ffffff;
  transition: all 0.3s ease;
}

/* Update hamburger animation for better visibility on full screen */
.menu-toggle.open span {
  background: var(--text-primary);
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
/* Mobile Logo */
.mobile-menu-logo {
  display: block;  /* Ensure it is displayed on mobile */
  margin-bottom: 2rem;
}

.mobile-menu-logo img {
  width: 180px;
  height: auto;
}

/* Hide mobile logo on desktop */
@media (min-width: 769px) {
  .mobile-menu-logo {
    display: none;  /* Hide on larger screens */
  }
}

/* Show mobile logo on mobile */
@media (max-width: 768px) {
  .mobile-menu-logo {
    display: block;  /* Show only on mobile */
  }
}

    /* Base styles for desktop */
    .links-aff {
      display: flex; /* Horizontal layout */
      justify-content: center; /* Center content horizontally */
      align-items: center; /* Align items vertically */
      gap: 20px; /* Space between items */
      flex-wrap: wrap; /* Allow wrapping on smaller screens */
      margin: 20px auto; /* Center the section */
  }

  .links-aff img {
      height: 40px; /* Standard image height */
      width: auto; /* Maintain aspect ratio */
      transition: transform 0.3s ease; /* Smooth hover effect */
  }

  .link-aff {
      display: flex;
      align-items: center;
      justify-content: center;
  }

  /* Hover effect */
  .links-aff img:hover {
      transform: scale(1.1); /* Slightly enlarge on hover */
  }

  /* Responsive Design for Mobile */
  @media (max-width: 768px) {
      .links-aff {
          flex-direction: column; /* Stack links vertically */
          gap: 15px; /* Smaller gap */
      }

      .links-aff img {
          height: 40px; /* Smaller images for mobile */
      }
  }

  @media (max-width: 480px) {
      .links-aff {
          gap: 10px; /* Further reduce spacing */
      }

      .links-aff img {
          height: 35px; /* Smaller images for very small screens */
      }
  }

.affiliate-boxes {
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin: 2rem 0;
  flex-wrap: nowrap;
}

.affiliate-box {
  flex: 1 1 0;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  background: var(--bg-card);
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
  will-change: transform;
}

.affiliate-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.affiliate-box:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .affiliate-box:hover {
    transform: none;
  }
}

.affiliate-box:hover::before {
  transform: scaleX(1);
}

.affiliate-box h3 {
  color: var(--primary-light);
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  position: relative;
  display: inline-block;
  font-weight: 700;
}

.affiliate-box p {
  margin-bottom: 1.8rem;
  flex-grow: 1;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}

.support p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}

.affiliate-link {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: rgb(168, 113, 255);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  border: none;
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
  font-family: 'Inter', sans-serif;
}

.affiliate-link:hover {
  background: rgb(140, 85, 220);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

@media (max-width: 768px) {
  .affiliate-boxes {
    flex-wrap: wrap;
  }
  
  .affiliate-box {
    flex: 1 1 100%;
    margin-bottom: 1.5rem;
  }
}

/* Contact Us Section */
.contact {
  padding: 5rem 0;
  background: rgba(10, 10, 10, 0.5);
  text-align: center;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-light);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input, .contact textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  background: var(--bg-card);
  color: #fff;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.contact input:focus, .contact textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.contact button {
  background: rgb(168, 113, 255);
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.contact button:hover {
  background: rgb(140, 85, 220);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

/* Scroll Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

section {
  opacity: 0;
}

section.animate-on-scroll {
  opacity: 1;
}

/* Menu toggle button normalization */
.menu-toggle {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Mobile menu animation overrides */
@media (max-width: 768px) {
  .nav-links {
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Global background override */
:root {
  --site-bg: #09070d;
  --site-bg-deep: #05030a;
  --site-grid-major: rgba(151, 111, 255, 0.08);
  --site-grid-minor: rgba(151, 111, 255, 0.04);
  --site-glow: rgba(129, 86, 232, 0.28);
  --site-vignette: rgba(3, 2, 7, 0.76);
}

body {
  position: relative;
  background-color: var(--site-bg);
  background-image:
    radial-gradient(circle at 50% 10%, rgba(151, 111, 255, 0.1), transparent 18%),
    linear-gradient(var(--site-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--site-grid-major) 1px, transparent 1px),
    linear-gradient(var(--site-grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--site-grid-minor) 1px, transparent 1px),
    radial-gradient(circle at 50% 14%, var(--site-glow), transparent 34%),
    radial-gradient(circle at 50% 0%, rgba(56, 33, 109, 0.32), transparent 48%),
    radial-gradient(circle at 50% 50%, transparent 0%, transparent 58%, var(--site-vignette) 100%),
    linear-gradient(180deg, var(--site-bg) 0%, var(--site-bg-deep) 100%);
  background-size: 100% 100%, 166px 166px, 166px 166px, 16px 16px, 16px 16px, auto, auto, auto, auto;
  background-attachment: fixed;
  background-position: center top, center top, center top, center top, center top, center top, center top, center center, center center;
}

/* Support page */
.support-page {
  min-height: 100dvh;
}

.support-main {
  min-height: 100dvh;
  display: flex;
}

.support-shell {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) 0 2rem;
}

.support-shell-inner {
  width: 100%;
}

.support-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 460px);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  padding: clamp(1.3rem, 3vw, 2rem);
  border-radius: 30px;
  border: 1px solid rgba(154, 171, 255, 0.28);
  background: linear-gradient(145deg, rgba(17, 17, 28, 0.9), rgba(25, 20, 40, 0.84));
  box-shadow:
    0 34px 120px rgba(0, 0, 0, 0.58),
    0 0 70px rgba(129, 86, 232, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  isolation: isolate;
}

.support-card::before {
  content: '';
  position: absolute;
  inset: -120px;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(129, 86, 232, 0.16), transparent 68%);
  filter: blur(32px);
  pointer-events: none;
}

.support-copy,
.support-panel {
  position: relative;
  z-index: 1;
}

.support-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.support-back-link,
.support-text-link {
  color: #d6d0ef;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.support-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  opacity: 0.82;
}

.support-back-link::before {
  content: '<';
  font-size: 0.88rem;
}

.support-back-link:hover,
.support-text-link:hover {
  color: #ffffff;
}

.support-copy h1 {
  max-width: 11ch;
  margin-bottom: 0.85rem;
  font-size: clamp(2.45rem, 5vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.support-intro {
  max-width: 58ch;
  color: #b7b1cd;
  font-size: 1rem;
  line-height: 1.75;
}

.support-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.support-flow-step {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(138, 157, 255, 0.16);
  background: rgba(255, 255, 255, 0.025);
}

.support-flow-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(151, 111, 255, 0.32);
  background: rgba(88, 71, 150, 0.22);
  color: #ece7ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.support-flow-step strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #f4f1ff;
}

.support-flow-step p,
.support-panel-subtitle,
.support-status {
  color: #a8a1c2;
}

.support-flow-step p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.support-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.support-panel-title {
  color: #f7f4ff;
  font-size: 1.1rem;
  font-weight: 700;
}

.support-panel-subtitle {
  margin-top: 0.2rem;
  font-size: 0.9rem;
}

.support-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.support-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(138, 157, 255, 0.16);
  background: rgba(255, 255, 255, 0.025);
  color: #f7f4ff;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.support-amount:hover,
.support-amount:focus-visible,
.support-amount.is-selected {
  transform: translateY(-2px);
  border-color: rgba(151, 111, 255, 0.44);
  background: rgba(111, 89, 185, 0.18);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2), 0 0 26px rgba(129, 86, 232, 0.12);
}

.support-amount:focus-visible,
.support-custom-input:focus-visible,
.support-message-input:focus-visible,
.support-text-link:focus-visible,
.support-back-link:focus-visible {
  outline: 2px solid rgba(151, 111, 255, 0.7);
  outline-offset: 4px;
}

.support-amount-value {
  font-size: 1.15rem;
  font-weight: 700;
}

.support-amount-copy {
  color: #aea7ca;
  font-size: 0.82rem;
}

.support-custom-label,
.support-message-label {
  color: #dcd7ef;
  font-size: 0.88rem;
  font-weight: 600;
}

.support-custom-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(138, 157, 255, 0.16);
  background: rgba(8, 8, 15, 0.36);
}

.support-currency {
  color: #d8d2ee;
  font-weight: 700;
}

.support-custom-input,
.support-message-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
}

.support-custom-input::-webkit-outer-spin-button,
.support-custom-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.support-custom-input {
  appearance: textfield;
}

.support-custom-input::placeholder,
.support-message-input::placeholder {
  color: #7f779d;
}

.support-message-input {
  min-height: 104px;
  resize: vertical;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(138, 157, 255, 0.16);
  background: rgba(8, 8, 15, 0.36);
}

.support-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(138, 157, 255, 0.14);
  background: rgba(255, 255, 255, 0.025);
  color: #bdb6d5;
}

.support-summary strong {
  color: #fff;
  font-size: 1.15rem;
}

.support-submit {
  width: 100%;
}

.support-status {
  min-height: 3.4em;
  font-size: 0.88rem;
  line-height: 1.6;
}

.support-status code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
}

.support-status[data-state='success'] {
  color: #d5ffc7;
}

.support-status[data-state='warning'] {
  color: #ffd9be;
}

.support-status[data-state='error'] {
  color: #ffd0d7;
}

.support-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .support-card {
    grid-template-columns: 1fr;
  }

  .support-copy h1 {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .support-shell {
    padding-top: 1.5rem;
  }

  .support-card {
    border-radius: 22px;
    padding: 1rem;
  }

  .support-flow,
  .support-amount-grid {
    grid-template-columns: 1fr;
  }

  .support-secondary-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
