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

:root {
  color-scheme: dark;
  --bg: #0b0f17;
  --surface: #141a24;
  --surface-elevated: #1c2433;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.15);
  --pastel-lavender: #c4b5fd;
  --pastel-mint: #6ee7b7;
  --pastel-sky: #7dd3fc;
  --pastel-rose: #fda4af;
  --gradient-brand: linear-gradient(135deg, var(--pastel-lavender), var(--pastel-sky));
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(196, 181, 253, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(125, 211, 252, 0.06), transparent);
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

main {
  flex: 1;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(11, 15, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.brand-name {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.5rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
}

body[data-page="home"] .nav-links a[data-nav="home"],
body[data-page="zuzgaming"] .nav-links a[data-nav="zuzgaming"],
body[data-page="products"] .nav-links a[data-nav="products"],
body[data-page="contact"] .nav-links a[data-nav="contact"] {
  color: var(--text);
  background: rgba(196, 181, 253, 0.12);
}

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  object-fit: cover;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 720px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--pastel-mint);
  flex-shrink: 0;
}

/* Sections */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-alt {
  background: var(--surface);
  max-width: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-alt > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section > p {
  color: var(--muted);
  max-width: 640px;
}

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

.card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.15s;
}

.card:hover {
  border-color: rgba(196, 181, 253, 0.35);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-icon--lavender {
  background: rgba(196, 181, 253, 0.15);
  color: var(--pastel-lavender);
}

.card-icon--mint {
  background: rgba(110, 231, 183, 0.15);
  color: var(--pastel-mint);
}

.card-icon--sky {
  background: rgba(125, 211, 252, 0.15);
  color: var(--pastel-sky);
}

.card-icon--rose {
  background: rgba(253, 164, 175, 0.15);
  color: var(--pastel-rose);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Page hero (inner pages) */
.page-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Products */
.product-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.product-logo {
  width: 128px;
  height: 128px;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.product-body h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.product-body p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-soon svg {
  width: 18px;
  height: 18px;
}

.helper-text {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* YouTube */
.youtube-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.featured-video {
  max-width: var(--max-width);
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.featured-video h2 {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.video-card {
  display: block;
  width: 100%;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  padding: 0;
}

.video-card:hover,
.video-card.is-active {
  border-color: rgba(196, 181, 253, 0.4);
  transform: translateY(-2px);
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.video-card-body {
  padding: 1rem;
  background: var(--surface-elevated);
  color: var(--text);
}

.video-card-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.35rem;
  color: var(--text);
  -webkit-text-fill-color: currentColor;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-body time {
  font-size: 0.8rem;
  color: var(--muted);
  -webkit-text-fill-color: currentColor;
}

.loading-state,
.error-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
}

.error-state a {
  color: var(--pastel-sky);
}

/* Contact */
.contact-layout {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.contact-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: border-color 0.2s;
}

.contact-email:hover {
  border-color: rgba(125, 211, 252, 0.4);
}

.contact-email svg {
  width: 22px;
  height: 22px;
  color: var(--pastel-sky);
}

.contact-form {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(196, 181, 253, 0.5);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-actions {
  margin-top: 1.5rem;
}

.form-message {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-message.is-visible {
  display: block;
}

.form-message--success {
  background: rgba(110, 231, 183, 0.12);
  border: 1px solid rgba(110, 231, 183, 0.3);
  color: var(--pastel-mint);
}

.form-message--error {
  background: rgba(253, 164, 175, 0.12);
  border: 1px solid rgba(253, 164, 175, 0.3);
  color: var(--pastel-rose);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #0b0f17;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  border-color: rgba(196, 181, 253, 0.4);
}

.btn-youtube {
  background: rgba(253, 164, 175, 0.15);
  color: var(--pastel-rose);
  border: 1px solid rgba(253, 164, 175, 0.3);
}

.btn-youtube:hover:not(:disabled) {
  background: rgba(253, 164, 175, 0.25);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--pastel-sky);
}

/* 404 */
.error-page {
  text-align: center;
  padding: 6rem 1.5rem;
}

.error-page h1 {
  font-size: 4rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-toggle svg {
    width: 22px;
    height: 22px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(11, 15, 23, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav {
    position: relative;
    flex-wrap: wrap;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
  }

  .product-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .product-logo {
    margin: 0 auto;
  }

  .product-actions {
    justify-content: center;
  }

  .hero-logo {
    width: 96px;
    height: 96px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 0.95rem;
  }

  .trust-strip {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}
