/* ============================================
   PIXY CORPORATE WEBSITE - STYLES
   Modern, Professional, Dark/Light Mode
   ============================================ */

:root {
    /* Brand Colors */
    --brand-pink: #f205e2;
    --brand-pink-light: #ff4df0;
    --brand-purple: #9333ea;

    /* Light Mode (High Contrast) */
    --bg-primary: #ffffff;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --shadow-color: rgba(0, 0, 0, 0.06);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 80px;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="light"] body {
    background: #ffffff;
    color: #0f172a;
}

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(20, 20, 30, 1) 0%, #000000 100%);
    z-index: -2;
}

[data-theme="light"] .bg-gradient {
    opacity: 1;
    background:
        radial-gradient(circle at 20% 20%, rgba(242, 5, 226, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.03) 0%, transparent 60%);
}


.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* Mouse Spotlight Effect (controlled by JS) */
/* Mouse Spotlight (Moved to Hardware Accelerated Version) */
.mouse-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    /* Increased size */
    height: 600px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, rgba(79, 70, 229, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    /* Changed from overlay for better visibility on dark */
    transform: translate(-50%, -50%) translate3d(var(--x, -100%), var(--y, -100%), 0);
    will-change: transform;
    transition: opacity 0.5s ease;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 120px 24px 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 20, 0.95);
    /* Default Dark */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

[data-theme="light"] .nav {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
}

/* Navigation Content & Layout */
.nav-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;

    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 20px 24px;
    /* Add vertical breathing room */
}

.nav-logo {
    height: 32px;
    width: auto;
}

/* Ensure links are vertically centered */
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--brand-pink);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Logo */
.logo-container {
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease;
}

.logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 30px rgba(242, 5, 226, 0.2));
    animation: logoFloat 3s ease-in-out infinite;
}

/* Dual Logo System - Show/hide based on theme */
/* logo-light = white text logo (for dark backgrounds) */
/* Logo Switching Logic */
.logo-light,
.nav-logo-light,
.footer-logo-light {
    display: none;
}

.logo-dark,
.nav-logo-dark,
.footer-logo-dark {
    display: block;
}

/* Dark Mode: Show Light Logo (White text) */
[data-theme="dark"] .logo-light,
[data-theme="dark"] .nav-logo-light,
[data-theme="dark"] .footer-logo-light {
    display: block;
}

[data-theme="dark"] .logo-dark,
[data-theme="dark"] .nav-logo-dark,
[data-theme="dark"] .footer-logo-dark {
    display: none;
}

/* Light Mode: Show Dark Logo (Black text) */
[data-theme="light"] .logo-light,
[data-theme="light"] .nav-logo-light,
[data-theme="light"] .footer-logo-light {
    display: none;
}

[data-theme="light"] .logo-dark,
[data-theme="light"] .nav-logo-dark,
[data-theme="light"] .footer-logo-dark {
    display: block;
}

/* Nav and Footer logos */
.nav-logo,
.footer-logo {
    height: 32px;
    width: auto;
}

.footer-logo {
    height: 40px;
    margin-bottom: 16px;
    opacity: 0.9;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    max-width: 800px;
    margin-bottom: 64px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-purple));
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(242, 5, 226, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(242, 5, 226, 0.3);
    }

    50% {
        box-shadow: 0 4px 30px rgba(242, 5, 226, 0.5);
    }
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}

h1 .gradient-text {
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 960px;
    margin-bottom: 64px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* Feature styles replaced by glass-card in components.css */

/* Newsletter Section */
.newsletter {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    max-width: 600px;
    width: 100%;
    margin-bottom: 64px;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.newsletter h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.newsletter p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Newsletter styles updated to use glass-card and neon-input */

/* Buttons */
/* Button styles replaced by btn-neon in components.css */

/* CTA Section */
.cta {
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: #05050a;
    /* Very dark for Dark Mode */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 80px 0 32px;
    margin-top: 80px;
}

[data-theme="light"] .footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    grid-column: span 1;
}

.footer-logo {
    height: 40px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

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

.footer-links a:hover {
    color: var(--brand-pink);
}

.footer-contact p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 84px;
    /* 24px (bottom) + 48px (btn height) + 12px (gap) */
    right: 24px;
    /* Aligned with theme-toggle */
    width: 48px;
    /* Match theme-toggle width */
    height: 48px;
    /* Match theme-toggle height */
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 900;
    box-shadow: 0 4px 12px var(--shadow-color);
    color: var(--brand-pink);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--brand-pink);
    color: #ffffff;
    border-color: var(--brand-pink);
    box-shadow: 0 0 20px rgba(242, 5, 226, 0.4);
    transform: translateY(-5px);
}

/* Legal Pages Styles */
.legal-page {
    min-height: 100vh;
}

.legal-header {
    padding: 100px 24px 40px;
    text-align: center;
    background: linear-gradient(180deg, rgba(242, 5, 226, 0.05) 0%, transparent 100%);
}

.legal-header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.legal-header .updated {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.legal-content h2 {
    color: var(--brand-pink);
    font-size: 1.5rem;
    margin: 48px 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.legal-content h2:first-of-type {
    border-top: none;
    margin-top: 0;
}

.legal-content h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 32px 0 12px;
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content strong {
    color: var(--text-primary);
}

.legal-content a {
    color: var(--brand-pink);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-toc {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
}

.legal-toc h4 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 1rem;
}

.legal-toc ol {
    padding-left: 20px;
}

.legal-toc a {
    color: var(--text-secondary);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 40px;
    font-size: 0.9rem;
}

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

/* ============================================
   SPACE HERO REVAMP (GSAP)
   ============================================ */
.hero-space {
    display: flex;
    flex-direction: row;
    /* Back to row for initial separation */
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    padding: 100px 5% 0;
    /* Add horizontal padding */
    position: relative;
    overflow: visible;
    /* Allow astronaut to go outside bounds */
    text-align: left;
    /* Left align text */
}

.hero-content-left {
    z-index: 10;
    position: relative;
    max-width: 50%;
    /* Limit text width */
    flex: 1;
}

.hero-visual-right {
    position: absolute;
    top: 50%;
    right: -10%;
    /* Start off-center to the right */
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    width: 60%;
    /* Occupy right side */
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.astronaut-hero {
    width: 1310px;
    /* Increased by another 40% per user request */
    max-width: 85vw;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
    opacity: 1;
    /* Fully visible */
    transform-origin: center;
}

@media (max-width: 900px) {
    .hero-space {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-content-left {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-visual-right {
        position: relative;
        right: auto;
        width: 100%;
        opacity: 0.5;
    }

    .astronaut-hero {
        width: 100%;
        max-width: 637px;
        /* Increased by another 40% */
        opacity: 0.5;
    }

    .hero-content-left h1,
    .hero-content-left p {
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    }

    body {
        background: white;
        color: black;
    }

    .legal-content {
        max-width: 100%;
    }

    .footer {
        display: none;
    }
}

/* =========================================
   THE PIXY FLOW (Step Cards)
   Ultramodern "How to Start" Section
   ========================================= */
.steps-flow-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .steps-flow-container {
        grid-template-columns: 1fr;
    }
}

.step-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px 32px;
    border-radius: 24px;
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    z-index: 1;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: rgba(242, 5, 226, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(242, 5, 226, 0.05);
}

/* Giant Watermark Number */
.step-card::before {
    content: attr(data-step);
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    z-index: -1;
    transition: all 0.4s ease;
    font-family: 'Inter', sans-serif;
    pointer-events: none;
}

.step-card:hover::before {
    transform: scale(1.1) translateX(-10px);
    color: rgba(242, 5, 226, 0.05);
}

/* Icon Container */
.step-icon-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(242, 5, 226, 0.15), transparent 70%);
    border-radius: 50%;
    margin-bottom: 24px;
    color: var(--primary);
    transition: all 0.4s ease;
}

.step-card:hover .step-icon-wrapper {
    transform: scale(1.1);
    background: radial-gradient(circle at center, rgba(242, 5, 226, 0.25), transparent 70%);
    color: #fff;
    filter: drop-shadow(0 0 8px rgba(242, 5, 226, 0.6));
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #fff, #a5a5a5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =========================================
   STANDARD SCROLL ANIMATIONS
   (Site-wide Uniformity)
   ========================================= */
.fade-in-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.fade-in-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Staggered delays for children if needed in future */
.step-card:nth-child(1) {
    transition-delay: 0.0s;
}

.step-card:nth-child(2) {
    transition-delay: 0.1s;
}

.step-card:nth-child(3) {
    transition-delay: 0.2s;
}

/* LIGHT MODE FIXES FOR STEPS (PIXY FLOW) */
[data-theme="light"] .step-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08),
        0 0 15px rgba(242, 5, 226, 0.05) inset;
    border-color: rgba(242, 5, 226, 0.2);
}

[data-theme="light"] .step-title {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--text-primary);
}

[data-theme="light"] .step-icon-wrapper {
    background: rgba(242, 5, 226, 0.08);
    /* Light pink bg */
    color: var(--brand-pink);
    border: 1px solid rgba(242, 5, 226, 0.1);
}

[data-theme="light"] .step-card:hover .step-icon-wrapper {
    background: var(--brand-pink);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(242, 5, 226, 0.3);
}

[data-theme="light"] .step-card::before {
    color: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .step-card:hover::before {
    color: rgba(242, 5, 226, 0.05);
}