/* ============================================
   PHOEBUSS - Design System
   Aesthetic: Industrial Futurism / Dark Luxury
   ============================================ */

/* Design Tokens */
:root {
    /* Color Story - Dark Obsidian with Electric Accents */
    --color-bg-deep: #050508;
    --color-bg-mid: #0a0a0f;
    --color-primary: #ffffff;
    --color-accent-1: #6366f1;
    /* Electric Indigo */
    --color-accent-2: #8b5cf6;
    /* Violet */
    --color-accent-3: #06b6d4;
    /* Cyan */
    --color-text-muted: rgba(255, 255, 255, 0.4);

    /* Typography */
    --font-display: 'Syncopate', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;

    /* Spacing Rhythm - Golden Ratio Based */
    --space-xs: 0.618rem;
    --space-sm: 1rem;
    --space-md: 1.618rem;
    --space-lg: 2.618rem;
    --space-xl: 4.236rem;
    --space-xxl: 6.854rem;

    /* Motion */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    background: var(--color-bg-deep);
    font-family: var(--font-body);
    color: var(--color-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 3D Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Noise Overlay - Adds Industrial Texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* Hero Section */
.hero {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-lg);
}

.content-wrapper {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Brand Name - Distinctive Typography */
.brand-name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: center;
    gap: 0.02em;
    text-shadow:
        0 0 60px rgba(99, 102, 241, 0.3),
        0 0 120px rgba(139, 92, 246, 0.2);
}

/* Letter Animation */
.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(100px) rotateX(-90deg);
    animation: letterReveal 1.2s var(--ease-out-expo) forwards;
    animation-delay: calc(var(--delay) * 0.1s + 0.3s);
    background: linear-gradient(135deg,
            var(--color-primary) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes letterReveal {
    0% {
        opacity: 0;
        transform: translateY(100px) rotateX(-90deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

/* Powered By Section */
.powered-by {
    font-family: var(--font-body);
    font-size: clamp(0.875rem, 2vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) forwards;
    animation-delay: 1.5s;
}

.powered-text {
    color: var(--color-text-muted);
}

.pnxns-text {
    font-weight: 500;
    background: linear-gradient(135deg,
            var(--color-accent-1) 0%,
            var(--color-accent-2) 50%,
            var(--color-accent-3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gradient Orb Glow Behind Text */
.content-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80vw;
    height: 80vh;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center,
            rgba(99, 102, 241, 0.08) 0%,
            rgba(139, 92, 246, 0.04) 30%,
            transparent 70%);
    pointer-events: none;
    z-index: -1;
    filter: blur(60px);
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .brand-name {
        letter-spacing: 0.15em;
        flex-wrap: wrap;
    }

    .powered-by {
        flex-direction: column;
        gap: var(--space-xs);
    }
}

/* Selection Styling */
::selection {
    background: var(--color-accent-1);
    color: var(--color-primary);
}

/* Focus States for Accessibility */
:focus-visible {
    outline: 2px solid var(--color-accent-1);
    outline-offset: 4px;
}