/*
Theme Name: Neural AI
Theme URI: https://pvch7v8fgple.creght.site
Author: Neural AI Theme
Author URI: https://neural.ai
Description: A dark, futuristic AI waitlist landing page theme with particle animation background, green accent colors, and minimal design. Inspired by the Neural.AI brand identity.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neural-ai
Tags: dark, one-page, landing-page, full-width-template, custom-menu, custom-logo, editor-style
*/

/* ===== CSS Variables ===== */
:root {
    --color-primary: rgba(0, 255, 102, 1);
    --color-primary-glow: rgba(0, 255, 102, 0.3);
    --color-bg: rgba(0, 0, 0, 1);
    --color-bg-card: rgb(9 9 11 / 1);
    --color-bg-card-2: rgb(24 24 27 / 0.5);
    --color-border: rgb(39 39 42 / 1);
    --color-border-light: rgb(255 255 255 / 0.2);
    --color-text-white: rgba(255, 255, 255, 1);
    --color-text-muted: rgb(107 114 128 / 1);
    --color-text-subtle: rgb(156 163 175 / 1);
    --color-text-dark: rgb(82 82 91 / 1);
    --font-sans: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.2s ease;
    --header-height: 72px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: transparent;
    color: var(--color-text-white);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.4;
    min-height: 100vh;
    overflow-x: hidden;
}

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

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

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

ul, ol {
    list-style: none;
}

/* ===== Typography ===== */
h1, .h1 {
    color: var(--color-text-white);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 1em;
    font-size: clamp(32px, 6vw, 60px);
}

h2, .h2 {
    color: var(--color-text-white);
    font-weight: 400;
    line-height: 1.4em;
    font-size: clamp(30px, 4vw, 48px);
}

h3, .h3 {
    color: var(--color-text-white);
    font-weight: 400;
    line-height: 1.1em;
    font-size: clamp(22px, 3vw, 34px);
}

p {
    font-size: 14px;
    line-height: 1.4em;
}

/* ===== Layout ===== */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    background: transparent;
}

.container {
    width: 100%;
    max-width: 896px;
    margin: 0 auto;
    padding: 0 48px;
}

@media (max-width: 1199px) {
    .container {
        max-width: 640px;
        padding: 0 24px;
    }
}

@media (max-width: 809px) {
    .container {
        padding: 0 24px;
    }
}

/* ===== Particle Background ===== */
.site-particle-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    background: transparent;
}

/* ===== Video Background ===== */
.site-video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
}

.site-video-bg__video {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Maintain aspect ratio while covering the full viewport */
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    /* Disable pointer events so it doesn't interfere with page interaction */
    pointer-events: none;
}

/* Dark overlay on top of the video (opacity controlled by Customizer) */
.site-video-bg__overlay {
    position: absolute;
    inset: 0;
    /* background set inline via PHP */
    pointer-events: none;
}

/* ===== Image Background ===== */
.site-image-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
}

.site-image-bg__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.site-image-bg__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.site-particle-bg canvas {
    display: block;
    border: none;
}

/* ===== Header / Navigation ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    padding: 24px 48px;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 809px) {
    .site-header {
        padding: 24px;
    }
}

/* Logo area — left side */
.site-header .site-logo-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.site-header .logo-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header .logo-icon svg {
    width: 32px;
    height: 32px;
}

.site-header .site-title {
    color: var(--color-text-white);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-header .custom-logo {
    height: 36px;
    width: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Site branding (title + description) */
.site-branding-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.site-header .site-description {
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ===== Menu Position Variants ===== */

/* Default: Right - menu pushed to right edge */
.nav-pos-right .site-header .main-navigation {
    margin-left: auto !important;
    position: static;
    left: auto;
    top: auto;
    transform: none;
}

/* Left: menu sits right after the logo area */
.nav-pos-left .site-header .main-navigation {
    margin-left: 32px !important;
    position: static;
    left: auto;
    top: auto;
    transform: none;
}

/* Center: menu absolutely centered in the header */
.nav-pos-center .site-header .main-navigation {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-left: 0 !important;
}

/* Navigation menu base styles */
.site-header .main-navigation {
    display: flex;
    align-items: center;
    z-index: 1;
    padding-top: 4px;
}

.main-navigation ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    color: var(--color-text-white);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.7;
    transition: var(--transition);
    display: block;
    pointer-events: auto;
}

.main-navigation ul li a:hover {
    opacity: 1;
    color: var(--color-primary);
}

/* Sub-menu (dropdown) */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
    min-width: 160px;
    z-index: 10;
}

.main-navigation ul li:hover > ul {
    display: flex;
}

.main-navigation ul ul li a {
    padding: 10px 16px;
    white-space: nowrap;
}


/* ===== Hero Section ===== */
.site-main {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 0 48px;
    position: relative;
    z-index: 10;
}

/* 左对齐变体 */
.hero-section--left {
    justify-content: center;
}

/* 左对齐容器 */
.container--left {
    max-width: 896px;
    margin-left: 0;
    margin-right: auto;
    padding-left: 48px;
    padding-right: 48px;
}

@media (max-width: 1199px) {
    .container--left {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 48px;
        padding-right: 48px;
    }
}

@media (max-width: 809px) {
    .container--left {
        margin-left: 0;
        margin-right: 0;
        padding-left: 24px;
        padding-right: 24px;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* 左对齐内容 */
.hero-content--left {
    align-items: flex-start;
    text-align: left;
}

/* Hero headline */
.hero-headlines {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-headline {
    display: block;
}

.hero-headline.accent {
    color: var(--color-primary);
}

/* Hero description */
.hero-description {
    max-width: 576px;
}

.hero-description p {
    color: var(--color-text-subtle);
    font-size: 20px;
    font-weight: 300;
    line-height: 28px;
}

/* Hero actions */
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 400px;
    width: 100%;
    padding: 12px 48px;
    background-color: var(--color-primary);
    color: rgb(0, 0, 0);
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: 0px 0px 30px 0px var(--color-primary-glow);
    transition: var(--transition);
    font-family: inherit;
    cursor: pointer;
    border: none;
    line-height: 28px;
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0px 0px 45px 0px var(--color-primary-glow);
}

.hero-access-note {
    opacity: 0.8;
}

.hero-access-note p {
    color: var(--color-primary);
    font-size: 12px;
    line-height: 16px;
    text-transform: uppercase;
}

/* Social links */
.hero-social-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 32px;
}

@media (max-width: 809px) {
    .hero-social-links {
        flex-direction: column;
    }
}

.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background-color: rgb(255 255 255 / 0.05);
    border: 1px solid var(--color-border-light);
    color: var(--color-text-white);
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
}

.btn-social:hover {
    background-color: var(--color-text-white);
    color: rgb(0, 0, 0);
}

.btn-social:hover svg {
    fill: rgb(0, 0, 0);
    color: rgb(0, 0, 0);
}

.btn-social svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: currentColor;
    color: var(--color-text-white);
    transition: var(--transition);
}

/* 微信二维码弹窗 */
.wechat-qr-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 200;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.wechat-qr-popup.active {
    display: flex;
}

.wechat-qr-popup__inner {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 32px;
    position: relative;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.wechat-qr-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--color-text-white);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.6;
    transition: var(--transition);
}

.wechat-qr-popup__close:hover {
    opacity: 1;
}

.wechat-qr-popup__title {
    color: var(--color-text-white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.wechat-qr-popup__inner img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Stats Panel ===== */
.stats-panel {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    z-index: 10;
    align-items: flex-end;
}

@media (max-width: 809px) {
    .stats-panel {
        position: relative;
        bottom: auto;
        right: auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
        margin-top: 32px;
        padding: 0 24px;
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

@media (max-width: 809px) {
    .stat-item {
        align-items: center;
    }
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 10px;
    text-transform: uppercase;
    line-height: 1.5;
    text-align: right;
}

.stat-value {
    color: var(--color-text-white);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ===== Waitlist Form / Overlay ===== */
.waitlist-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.waitlist-overlay.active {
    display: flex;
}

.waitlist-modal {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 40px;
    width: 100%;
    max-width: 448px;
    position: absolute;
    left: calc(50% - min(100%, 448px) / 2);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (max-width: 809px) {
    .waitlist-modal {
        left: 16px;
        right: 16px;
        width: calc(100% - 32px);
        padding: 24px;
    }
}

.modal-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-title {
    color: var(--color-text-white);
    font-size: 22px;
    font-weight: 600;
}

.modal-subtitle {
    color: var(--color-text-dark);
    font-size: 14px;
    line-height: 1.5;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--color-text-white);
    cursor: pointer;
    padding: 4px;
    opacity: 0.6;
    transition: var(--transition);
    font-size: 20px;
    line-height: 1;
}

.modal-close:hover {
    opacity: 1;
}

/* Form styles */
.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    color: var(--color-text-white);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-field input,
.form-field textarea {
    background-color: var(--color-bg-card-2);
    border: 1px solid var(--color-border);
    padding: 16px;
    color: var(--color-text-white);
    font-family: inherit;
    font-size: 14px;
    width: 100%;
    outline: none;
    transition: var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--color-primary);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--color-text-dark);
}

.form-submit {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background-color: var(--color-primary);
    color: rgb(0, 0, 0);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    border: none;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
    margin-top: 16px;
}

.btn-submit:hover {
    opacity: 0.9;
}

.btn-submit-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.btn-submit:hover .btn-submit-icon {
    transform: translateX(4px);
}

.form-legal {
    color: var(--color-text-dark);
    font-size: 12px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
}

/* ===== Footer ===== */
.site-footer {
    position: relative;
    z-index: 10;
    padding: 24px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--color-border);
    background: transparent;
}

.site-footer p {
    color: var(--color-text-muted);
    font-size: 12px;
    text-align: center;
}

.site-footer a {
    color: var(--color-text-muted);
    transition: var(--transition);
}

.site-footer a:hover {
    color: var(--color-primary);
}

/* ===== WordPress Admin Bar Offset ===== */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* ===== WordPress Core Styles ===== */
.alignleft {
    float: left;
    margin-right: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ===== Gutenberg Block Editor Styles ===== */
.wp-block-group {
    position: relative;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0px 0px 30px 0px var(--color-primary-glow);
    }
    50% {
        box-shadow: 0px 0px 50px 0px var(--color-primary-glow);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.btn-primary {
    animation: glowPulse 3s ease-in-out infinite;
}

/* ===== Background Music Player ===== */
.bg-music-player {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.bg-music-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgb(255 255 255 / 0.08);
    border: 1px solid var(--color-border-light);
    color: var(--color-text-white);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.bg-music-btn:hover {
    background-color: var(--color-primary);
    color: rgb(0, 0, 0);
    border-color: var(--color-primary);
    box-shadow: 0 0 20px var(--color-primary-glow);
}

.bg-music-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Default: show play icon, hide pause icon */
.bg-music-btn .music-icon--play {
    display: block;
}
.bg-music-btn .music-icon--pause {
    display: none;
}

/* When playing: hide play, show pause */
.bg-music-btn.playing .music-icon--play {
    display: none;
}
.bg-music-btn.playing .music-icon--pause {
    display: block;
}

/* Animate the button when playing */
.bg-music-btn.playing {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary-glow);
}

/* Responsive: on small screens, move up to avoid overlap */
@media (max-width: 809px) {
    .bg-music-player {
        bottom: 80px;
    }
}

