/*
Theme Name: BetaPixels
Theme URI: https://betapixels.com
Author: BetaPixels
Author URI: https://betapixels.com
Description: Thème WordPress BetaPixels — landing page moderne en mode sombre, personnalisable depuis l'administration WordPress.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: betapixels
Tags: one-column, custom-menu, dark, landing-page
*/

/* =============================================
   CSS Custom Properties
   ============================================= */

:root {
  --radius: 1rem;
  --background: oklch(0.13 0.02 285);
  --foreground: oklch(0.98 0.01 295);
  --card: oklch(0.16 0.025 285);
  --card-foreground: oklch(0.98 0.01 295);
  --popover: oklch(0.16 0.025 285);
  --popover-foreground: oklch(0.98 0.01 295);
  --primary: oklch(0.68 0.28 350);
  --primary-foreground: oklch(0.98 0.01 295);
  --secondary: oklch(0.22 0.04 290);
  --secondary-foreground: oklch(0.98 0.01 295);
  --muted: oklch(0.22 0.04 290);
  --muted-foreground: oklch(0.7 0.04 295);
  --accent: oklch(0.65 0.27 305);
  --accent-foreground: oklch(0.98 0.01 295);
  --destructive: oklch(0.62 0.25 27);
  --destructive-foreground: oklch(0.98 0.01 295);
  --border: oklch(1 0 0 / 8%);
  --input: oklch(1 0 0 / 12%);
  --ring: oklch(0.68 0.28 350);

  --pink: oklch(0.68 0.28 350);
  --pink-glow: oklch(0.78 0.22 345);
  --purple: oklch(0.65 0.27 305);
  --green: oklch(0.78 0.22 150);

  --gradient-brand: linear-gradient(135deg, oklch(0.68 0.28 350) 0%, oklch(0.65 0.27 305) 100%);
  --gradient-text: linear-gradient(135deg, oklch(0.98 0.01 295) 0%, oklch(0.78 0.22 345) 60%, oklch(0.65 0.27 305) 100%);
  --shadow-glow-pink: 0 20px 80px -10px oklch(0.68 0.28 350 / 0.45);
  --shadow-glow-purple: 0 20px 80px -10px oklch(0.65 0.27 305 / 0.4);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

/* =============================================
   Base Styles
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  border-color: var(--border);
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, oklch(0.65 0.27 305 / 0.25), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 20%, oklch(0.68 0.28 350 / 0.18), transparent 60%),
    radial-gradient(circle at 1px 1px, oklch(1 0 0 / 0.04) 1px, transparent 0);
  background-size: auto, auto, 32px 32px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

p {
  margin: 0;
}

/* =============================================
   Custom Utility Classes
   ============================================= */

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-brand-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-brand-gradient {
  background: var(--gradient-brand);
}

.shadow-glow-pink {
  box-shadow: var(--shadow-glow-pink);
}

.shadow-glow-purple {
  box-shadow: var(--shadow-glow-purple);
}

/* =============================================
   Marquee Animation
   ============================================= */

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 40s linear infinite;
}

/* =============================================
   Navigation (sans dépendre uniquement de Tailwind)
   ============================================= */

.betapixels-primary-desktop {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .betapixels-primary-desktop {
    display: flex;
  }
}

.betapixels-primary-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

#mobile-menu-toggle {
  display: grid;
}

#mobile-menu {
  display: none;
}

#mobile-menu.is-open {
  display: block;
}

.header-cta-desktop {
  display: none;
}

@media (min-width: 768px) {
  #mobile-menu-toggle {
    display: none !important;
  }

  #mobile-menu {
    display: none !important;
  }

  .header-cta-desktop {
    display: inline-flex;
  }
}

.hidden {
  display: none !important;
}

/* =============================================
   FOUC Prevention
   ============================================= */

html:not(.tw-ready) body {
  visibility: hidden;
}

html.tw-ready body {
  visibility: visible;
}
