/* NULL CLUB — 3D company site */

:root {
  --bg: #0a0a0c;
  --surface: #12121a;
  --text: #e8e8ed;
  --text-muted: #a3a3bc;
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.15);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.nav a[aria-current="page"],
.footer-nav a[aria-current="page"] {
  color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 6rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-dim);
}

/* Products */
.products {
  position: relative;
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  margin: 0 0 1rem;
  color: var(--text);
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 3rem;
  font-size: 1rem;
  line-height: 1.6;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.product-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 2rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.product-card:hover {
  transform: translateY(-6px) rotateX(2deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-card--clickable {
  cursor: pointer;
}

.product-card-visual {
  height: 140px;
  background: var(--accent-dim);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.product-card-visual--soon {
  background: linear-gradient(135deg, var(--surface) 0%, var(--accent-dim) 100%);
}

.product-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.product-card h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.product-card h3 a:hover {
  color: var(--accent);
}

.product-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.product-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}

.product-link:hover {
  opacity: 0.85;
}

.product-link--disabled {
  color: var(--text-muted);
  pointer-events: none;
}

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.product-card-coming .product-link--disabled {
  pointer-events: auto;
  cursor: default;
}

/* Footer */
.footer {
  padding: 2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--glass-border);
  background: var(--surface);
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

/* Page (privacy/support) */
.page {
  min-height: 100vh;
  padding-top: 4rem;
}

.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.page-content h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  margin: 0 0 1rem;
}

.page-content p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

/* App detail page (e.g. Saidu) */
.app-page .page-content {
  max-width: 680px;
}

.back-link {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent);
}

.app-header {
  margin-bottom: 2.5rem;
}

.app-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.app-tagline {
  font-size: 1.1rem;
  color: var(--accent);
  margin: 0 0 1rem;
}

.app-intro {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

.app-page .cta {
  margin-bottom: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cta-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.cta-ghost:hover {
  box-shadow: none;
  background: var(--accent-dim);
}

.visual-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin: 0 0 2rem;
}

.visual-card {
  min-height: 120px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  background: linear-gradient(145deg, rgba(0, 212, 170, 0.12), rgba(255, 255, 255, 0.03));
}

.visual-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.visual-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.app-section {
  margin-bottom: 2.5rem;
}

.app-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.app-section ul {
  color: var(--text-muted);
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.app-section ul li {
  margin-bottom: 0.35rem;
}

.game-list li {
  margin-bottom: 0.6rem;
}

.app-section p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.about {
  padding: 4rem 1.5rem 5rem;
  max-width: 900px;
  margin: 0 auto;
}

.about-inner {
  background: var(--glass);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  padding: 2.5rem 2rem;
}

.about-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin: 0 0 1rem;
  color: var(--text);
}

.about-text {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 54rem;
  margin: 0 0 1rem;
}

.about-text:last-of-type {
  margin-bottom: 0;
}

.about-text a {
  color: var(--accent);
  text-decoration: none;
}

.about-text a:hover {
  text-decoration: underline;
}

.app-intro-secondary {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.app-outro {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.app-outro a {
  color: var(--accent);
  text-decoration: none;
}

.app-outro a:hover {
  text-decoration: underline;
}

/* Privacy section on app page */
.privacy-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--glass-border);
}

.privacy-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
  margin: 0 0 1rem;
}

.privacy-section h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

.privacy-section p,
.privacy-section ul {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.privacy-section ul {
  padding-left: 1.25rem;
}

.privacy-section a {
  color: var(--accent);
  text-decoration: none;
}

.privacy-section a:hover {
  text-decoration: underline;
}

.privacy-updated {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent);
}

.privacy-index {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.privacy-index li {
  margin-bottom: 1rem;
  padding-left: 0;
}

.privacy-index a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.privacy-index a:hover {
  text-decoration: underline;
}

/* Support page */
.support-app-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.support-app-list li {
  margin-bottom: 0.75rem;
  padding-left: 0;
}

.support-app-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.support-app-list a:hover {
  text-decoration: underline;
}

.support-contact {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.support-contact h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

.support-email {
  margin: 0.5rem 0;
}

.support-email a {
  color: var(--accent);
  text-decoration: none;
}

.support-email a:hover {
  text-decoration: underline;
}

.support-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.faq-list {
  margin-top: 1.5rem;
}

.faq-item {
  border-top: 1px solid var(--glass-border);
  padding: 1rem 0;
}

.faq-item h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
}

.roadmap {
  margin: 1.5rem 0 2rem;
  padding: 1.1rem;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass);
}

.roadmap h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.roadmap ul {
  margin: 0;
  padding-left: 1.1rem;
}

.roadmap li {
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.waitlist-card {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  background: var(--glass);
}

.waitlist-card:hover {
  border-color: var(--accent);
}

.mobile-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: none;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(10, 10, 12, 0.9);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-sticky-cta .cta {
  width: 100%;
  text-align: center;
}

/* App page deep links (Library, Privacy) */
.app-deeplinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.deeplink-card {
  display: block;
  padding: 1.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.deeplink-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim);
}

.deeplink-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--accent);
}

.deeplink-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Exercise library section */
.library-section {
  margin-bottom: 2.5rem;
}

.library-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.library-intro {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.library-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.library-toc a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.library-toc a:hover {
  text-decoration: underline;
}

.exercise-group {
  margin-bottom: 1.5rem;
}

.exercise-group h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--glass-border);
}

.exercise-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.25rem 1rem;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.exercise-list li {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exercise-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--accent-dim);
  flex-shrink: 0;
}

/* Lightbox for exercise previews */
.exercise-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.exercise-lightbox-inner {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.exercise-lightbox-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 600px) {
  .nav {
    gap: 1rem;
  }
  .product-cards {
    grid-template-columns: 1fr;
  }
  .exercise-list {
    grid-template-columns: 1fr;
  }
  .mobile-sticky-cta {
    display: block;
  }
  .app-page .page-content {
    padding-bottom: 6rem;
  }
}
