:root {
  --bg-main: #050814;
  --bg-layer: #0a1030;
  --bg-soft: #12193d;
  --surface: rgba(16, 22, 50, 0.62);
  --surface-strong: rgba(20, 28, 63, 0.82);
  --text-main: #e7ecff;
  --text-soft: #dce4ff;
  --accent: #7ed9ff;
  --accent-alt: #b18cff;
  --line: rgba(150, 170, 255, 0.22);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --radius-lg: 1.2rem;
  --radius-md: 0.9rem;
  --container: min(1300px, calc(100vw - 3rem));
  --header-height: 76px;
}
* {
  box-sizing: border-box;
}
body,
html {
  margin: 0;
  padding: 0;
}
body {
  font-family: Manrope, "Space Grotesk", "Trebuchet MS", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(113, 96, 255, 0.23),
      transparent 34%
    ),
    radial-gradient(
      circle at 82% 9%,
      rgba(89, 187, 255, 0.16),
      transparent 30%
    ),
    linear-gradient(150deg, #03060f 10%, #0a1030 58%, #11092a 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--surface-strong);
  color: var(--text-main);
  border: 1px solid var(--line);
  padding: 0.55rem 0.9rem;
  border-radius: 0.5rem;
  z-index: 999;
}
.cosmos {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.star-layer {
  position: absolute;
  inset: -25%;
  background-repeat: repeat;
  opacity: 0.4;
}
.star-layer-one {
  background-image:
    radial-gradient(
      2px 2px at 18% 24%,
      rgba(255, 255, 255, 0.6),
      transparent 60%
    ),
    radial-gradient(
      2px 2px at 70% 35%,
      rgba(148, 193, 255, 0.8),
      transparent 60%
    ),
    radial-gradient(
      2px 2px at 40% 78%,
      rgba(255, 255, 255, 0.55),
      transparent 60%
    ),
    radial-gradient(
      1px 1px at 84% 74%,
      rgba(187, 156, 255, 0.75),
      transparent 60%
    );
  background-size: 480px 480px;
  will-change: transform;
  animation: drift 40s linear infinite;
}
.star-layer-two {
  background-image:
    radial-gradient(
      1px 1px at 22% 44%,
      rgba(255, 255, 255, 0.7),
      transparent 60%
    ),
    radial-gradient(
      1px 1px at 65% 20%,
      rgba(173, 216, 255, 0.8),
      transparent 60%
    ),
    radial-gradient(
      1px 1px at 48% 64%,
      rgba(255, 255, 255, 0.7),
      transparent 60%
    ),
    radial-gradient(
      1px 1px at 90% 52%,
      rgba(203, 180, 255, 0.8),
      transparent 60%
    );
  background-size: 320px 320px;
  will-change: transform;
  animation: drift 65s linear infinite reverse;
}
.star-layer-three {
  background-image:
    radial-gradient(
      1px 1px at 36% 40%,
      rgba(255, 255, 255, 0.8),
      transparent 60%
    ),
    radial-gradient(
      1px 1px at 58% 72%,
      rgba(198, 214, 255, 0.75),
      transparent 60%
    ),
    radial-gradient(
      1px 1px at 75% 25%,
      rgba(255, 255, 255, 0.65),
      transparent 60%
    );
  background-size: 220px 220px;
  animation: twinkle 6s ease-in-out infinite;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
  background: rgba(5, 8, 20, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.logo {
  text-decoration: none;
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-main);
}
.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.nav-list a {
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.43rem 0.8rem;
  transition: all 260ms ease;
}
.nav-list a.active,
.nav-list a:focus-visible,
.nav-list a:hover {
  color: var(--text-main);
  background: rgba(119, 141, 255, 0.15);
  border-color: rgba(154, 175, 255, 0.35);
}
main {
  flex: 1;
  width: var(--container);
  margin-inline: auto;
  padding: 2rem 0 3rem;
}
.button-section,
.gallery-section,
.hero,
.product-description,
.product-hero,
.support-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero,
.product-hero,
.support-page {
  padding: 2rem;
}
.hero-tag {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Space Grotesk", Manrope, sans-serif;
  line-height: 1.22;
  letter-spacing: 0.01em;
}
h1 {
  font-size: clamp(1.8rem, 4vw, 2.55rem);
}
h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.95rem);
}
h3 {
  font-size: 1.15rem;
}
.projects {
  margin-top: 1.3rem;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 32px rgba(8, 12, 34, 0.5);
  border-color: rgba(161, 181, 255, 0.5);
}
.card-link {
  color: inherit;
  text-decoration: none;
  display: block;
}
.card-body {
  padding: 1rem;
}
.card-body p {
  margin: 0.45rem 0 0.8rem;
  font-size: 1.04rem;
  color: var(--text-soft);
}
.card-cta {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
}
.product-page {
  display: grid;
  gap: 1.2rem;
}
.button-section,
.gallery-section,
.product-description {
  padding: 1.4rem;
}
.gallery-section {
  max-width: 950px;
  width: 100%;
  margin-inline: auto;
}
.product-description {
  max-width: 800px;
  width: 100%;
  margin-inline: auto;
}
.slider {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  width: 100%;
}
.slides {
  display: flex;
  transition: transform 360ms ease;
  width: 100%;
}
.slide {
  margin: 0;
  width: 100%;
  flex: 0 0 100%;
  min-width: 0;
}
.slide img {
  width: 100%;
  height: auto;
  display: block;
}
.slide figcaption {
  padding: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  background: var(--surface-strong);
  text-align: center;
  border-top: 1px solid var(--line);
}
.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(6, 9, 25, 0.78);
  color: var(--text-main);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 5;
  transition: all 220ms ease;
}
.slider-control:focus-visible,
.slider-control:hover {
  border-color: rgba(175, 192, 255, 0.7);
  background: rgba(13, 19, 48, 0.93);
}
.slider-control.prev {
  left: 0.7rem;
}
.slider-control.next {
  right: 0.7rem;
}
.slider-dots {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.45rem;
  justify-content: center;
}
.slider-dot {
  width: 0.58rem;
  height: 0.58rem;
  border: 0;
  border-radius: 50%;
  background: rgba(178, 189, 243, 0.35);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}
.slider-dot[aria-current="true"] {
  background: var(--accent);
  transform: scale(1.2);
}
.product-description p,
.support-page p,
.wallet-list p {
  color: var(--text-soft);
}
.feature-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
}
.feature-list li + li {
  margin-top: 0.45rem;
}
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  max-width: 800px;
  width: 100%;
  margin-inline: auto;
  justify-content: center;
}
.action-button,
.coffee-button {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  border: 1px solid rgba(146, 171, 255, 0.55);
  background: linear-gradient(
    135deg,
    rgba(76, 112, 255, 0.22),
    rgba(127, 86, 255, 0.28)
  );
  padding: 0.72rem 1rem;
  border-radius: 0.7rem;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}
.action-button:focus-visible,
.action-button:hover,
.coffee-button:focus-visible,
.coffee-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 22, 54, 0.45);
  filter: brightness(1.06);
}
.resource-groups {
  display: grid;
  gap: 1.8rem;
  max-width: 800px;
  width: 100%;
  margin-inline: auto;
}
.resource-group h3 {
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-size: 1.25rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4rem;
}
.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.resource-list li {
  border: 1px solid rgba(146, 171, 255, 0.25);
  border-radius: var(--radius-md);
  background: rgba(16, 22, 50, 0.4);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}
.resource-list li:hover {
  transform: translateX(4px);
  border-color: rgba(161, 181, 255, 0.5);
  background: rgba(24, 33, 75, 0.55);
}
.resource-list a {
  display: block;
  padding: 0.8rem 1.1rem;
  text-decoration: none;
  color: #e7ecff;
  font-weight: 500;
  font-size: 1.05rem;
}
.resource-list a::before {
  content: "→";
  color: var(--accent);
  margin-right: 0.6rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.resource-list a:hover::before {
  opacity: 1;
}
.wallets {
  margin-top: 1.5rem;
  max-width: 800px;
  width: 100%;
  margin-inline: auto;
}
.wallet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.wallet-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  padding: 0.85rem 0.95rem;
}
.wallet-list h3 {
  margin-bottom: 0.4rem;
}
.wallet-list code {
  word-break: break-all;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88rem;
  color: #d8f3ff;
}
.support-page p {
  font-size: 1.05rem;
  max-width: 800px;
  margin-inline: auto;
}
.coffee {
  margin-top: 1.2rem;
  max-width: 800px;
  width: 100%;
  margin-inline: auto;
  display: flex;
  justify-content: center;
}
.site-footer {
  width: var(--container);
  margin: 1rem auto 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  display: flex;
  gap: 0.9rem;
  justify-content: space-between;
  flex-wrap: wrap;
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 540ms ease,
    transform 540ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-120px, -90px, 0);
  }
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.28;
  }
  50% {
    opacity: 0.55;
  }
}
@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-header {
    padding-inline: 1rem;
  }
  .site-footer,
  main {
    width: min(1300px, calc(100vw - 1.5rem));
  }
}
@media (max-width: 700px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
  .button-section,
  .gallery-section,
  .hero,
  .product-description,
  .product-hero,
  .support-page {
    padding: 1.2rem;
  }
  .slider-control {
    width: 2.1rem;
    height: 2.1rem;
  }
  .site-footer {
    gap: 0.3rem;
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  ::after,
  ::before {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.wallet-list li {
  display: grid;
  gap: 0.65rem;
}
.wallet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.wallet-row code {
  flex: 1 1 420px;
}
.copy-button {
  border: 1px solid rgba(146, 171, 255, 0.55);
  background: linear-gradient(
    135deg,
    rgba(76, 112, 255, 0.22),
    rgba(127, 86, 255, 0.28)
  );
  color: var(--text-main);
  border-radius: 0.6rem;
  padding: 0.45rem 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}
.copy-button:focus-visible,
.copy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 22, 54, 0.45);
  filter: brightness(1.06);
}
.coffee-qr,
.wallet-qr {
  width: min(220px, 100%);
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.45rem;
}
.coffee {
  margin-top: 1.2rem;
  max-width: 800px;
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.coffee h2 {
  margin: 0;
}
@media (max-width: 700px) {
  .copy-button {
    width: 100%;
  }
}
.project-grid.single-card {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}
.wallet-row code[role="button"] {
  cursor: pointer;
  border: 1px dashed rgba(146, 171, 255, 0.35);
  border-radius: 0.45rem;
  padding: 0.35rem 0.45rem;
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    color 220ms ease;
}
.wallet-row code[role="button"]:focus-visible,
.wallet-row code[role="button"]:hover {
  border-color: rgba(160, 185, 255, 0.7);
  background: rgba(24, 33, 75, 0.55);
  outline: 0;
}
.wallet-row code.copied {
  color: #b8ffd5;
  border-color: rgba(149, 255, 201, 0.75);
}
.wallet-row code.copy-failed {
  color: #ffd4d4;
  border-color: rgba(255, 156, 156, 0.75);
}
.email-copy {
  border: 0;
  background: 0 0;
  color: var(--accent);
  font: inherit;
  padding: 0;
  margin-left: 0.2rem;
  text-decoration: underline;
  cursor: pointer;
}
.email-copy:focus-visible,
.email-copy:hover {
  color: #b9e9ff;
}
.slider:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 768px) {
  .site-header {
    height: auto;
    padding: 0.8rem 1rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  .logo {
    width: 100%;
    text-align: left;
    margin-bottom: 0.2rem;
  }
  .nav-list {
    width: 100%;
    justify-content: center;
  }
  .product-page {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .product-page > * {
    min-width: 0;
  }
  .coffee-qr,
  .wallet-qr {
    margin-inline: auto;
    display: block;
  }
  h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
  h2 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }
  .action-button,
  .coffee-button {
    width: 100%;
    text-align: center;
  }
  .wallet-row {
    flex-direction: column;
    align-items: stretch;
  }
  .wallet-row code {
    flex: 1 1 auto;
    text-align: center;
  }
  .copy-button {
    width: 100%;
  }
  .slide figcaption {
    font-size: 0.85rem;
    padding: 0.75rem;
  }
  .project-grid.single-card {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .hero,
  .product-hero,
  .support-page {
    padding: 1.5rem 1rem;
  }
  main {
    padding-top: 1.5rem;
  }
  .slider-control {
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
  }
  .slider-control.prev {
    left: 0.4rem;
  }
  .slider-control.next {
    right: 0.4rem;
  }
  .resource-list a {
    font-size: 0.95rem;
    padding: 0.7rem 0.9rem;
  }
  .wallet-list li {
    padding: 0.7rem;
  }
  .wallet-list code {
    font-size: 0.75rem;
  }
}
