:root {
  --background: radial-gradient(circle at 20% 20%, rgba(255, 209, 102, 0.12), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(237, 78, 105, 0.14), transparent 55%),
    radial-gradient(circle at 40% 80%, rgba(0, 140, 255, 0.14), transparent 60%),
    #05021d;
  --text: #c8c8d0;
  --muted: rgba(200, 200, 208, 0.9);
  --accent: #ffd166;
  --accent-2: #ef476f;
  --font-heading: "Great Vibes", cursive;
  --font-body: "Montserrat", sans-serif;
}

body {
  background: var(--background);
  color: #f5f5f5;
  min-height: 100vh;
  font-family: var(--font-body);
}

article,
article h1,
article h2,
article h3,
article p,
article li,
article table th,
article table td,
footer p,
nav a {
  color: #f5f5f5 !important;
}

table th,
table td {
  color: #f7f7f7 !important;
}

.copy-text,
.copy-btn {
  color: #ffffff !important;
}

* {
  color: inherit;
}

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

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

header {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

nav a.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--accent);
}

nav a.brand .logo {
  height: 10.4rem;
  width: auto;
  max-width: 10.4rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem;
  object-fit: contain;
}

nav .nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.75rem;
  cursor: pointer;
}

.nav-toggle-checkbox {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

nav a.active {
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}

@media (max-width: 768px) {
  body {
    color: #c8c8d0 !important;
  }

  * {
    color: #c8c8d0 !important;
  }

  article table {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  article table th {
    background: rgba(255, 209, 102, 0.15) !important;
    color: #ffd166 !important;
  }

  article table td {
    background: rgba(255, 255, 255, 0.05) !important;
  }

  article table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06) !important;
  }

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

  nav .nav-toggle {
    display: block;
  }

  nav {
    position: relative;
  }

  nav ul {
    position: absolute;
    top: 100%;
    right: 1rem;
    background: rgba(5, 2, 29, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    padding: 1rem;
    width: min(240px, 90vw);
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 20;
  }

  nav.open ul,
  #nav-toggle:checked ~ ul {
    display: flex;
  }

  nav ul li {
    margin: 0;
  }

  nav ul li a {
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    display: block;
  }

  nav ul li a.active {
    border-bottom: none;
    background: rgba(255, 209, 102, 0.15);
  }
}

.hero {
  padding: 4rem 2rem;
  border-radius: 1.2rem;
  background: rgba(24, 24, 34, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  text-align: center;
  margin-top: 1rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 46ch;
  margin: 0 auto 1.5rem;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 1rem;
}

.grid > article {
  flex: 1 1 240px;
  max-width: 280px;
}

article {
  padding: 1.4rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card img {
  max-width: 90%;
  max-height: 4.5rem;
  object-fit: contain;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

article img {
  margin-bottom: 1rem;
}

.card img {
  max-width: 92%;
  max-height: 8rem;
  min-height: 5rem;
  object-fit: contain;
}

.copy-cell {
  position: relative;
  padding-right: 2.5rem;
}

.copy-btn {
  position: absolute;
  right: 0.2rem;
  top: 0.3rem;
  border: 1px solid rgba(10, 10, 10, 0.35);
  background: rgba(17, 17, 17, 0.85);
  color: #ffffff;
  width: 1.8rem;
  height: 1.8rem;
  line-height: 1.75rem;
  border-radius: 0.35rem;
  cursor: pointer;
  text-align: center;
  padding: 0;
  font-size: 0.8rem;
}

.copy-btn:hover {
  background: rgba(0, 0, 0, 0.95);
}

.copy-btn:active {
  background: rgba(10, 10, 10, 0.95);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.copy-btn:active {
  background: rgba(255, 255, 255, 0.25);
}

article h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
}

table th,
table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

table th {
  background: rgba(255, 209, 102, 0.1);
  color: var(--accent);
  font-weight: 600;
}

table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

footer {
  padding-top: 2rem;
  padding-bottom: 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #c8c8d0;
}

footer a {
  color: rgba(200, 200, 208, 0.9);
}

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