/* ============================================
   GLOBAL APPLE-STYLE THEME SYSTEM
============================================ */
:root {
    /* BRAND PALETTE (Extracted from User Assets) */
    --trix-primary: #00D06C;
    /* Vibrant Green (Logo) */
    --trix-secondary: #00E676;
    /* Lighter Green */
    --trix-dark: #111116;
    /* Deep Black-Blue */
    --trix-black: #050507;
    /* True Dark */
    --trix-surface: #1C1C22;
    /* Cards/Sections */
    --trix-white: #ffffff;

    /* SYSTEM UTILS */
    --safe-top: env(safe-area-inset-top, 20px);
    --safe-bottom: env(safe-area-inset-bottom, 20px);
}

body {
    background: radial-gradient(circle at 50% 0%, #1A1A24 0%, #000000 100%);
    background-attachment: fixed;
    /* Parallax feel */
    color: var(--trix-white);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   HERO SECTION (Apple-Style Modern)
============================================ */
.trix-hero {
    /* Full Screen & Responsive */
    /* Full Screen & Responsive (Force Breakout) */
    min-height: 100vh;
    min-height: 100dvh;
    /* Allow width to be controlled by parent or align-full */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    /* Background handled by Body now for continuity */
    background: transparent;

    position: relative;
    overflow: hidden;

    /* Safe Areas for Mobile Notches */
    padding-top: max(120px, var(--safe-top));
    padding-bottom: max(40px, var(--safe-bottom));
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
}

/* Background Ambient Glow (Spotlight) */
.trix-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140vw;
    height: 140vh;
    background:
        radial-gradient(circle at center, rgba(8, 240, 129, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   BRAND - TRIXPLUS (Premium Typography)
============================================ */
.trix-brand {
    /* Inherit Global Font Stack */
    /* Responsive Fluid Typography */
    font-size: clamp(3.5rem, 12vw, 12rem);
    font-weight: 800;

    /* Tighter tracking for modern look */
    letter-spacing: -0.05em;
    line-height: 1.1;

    display: flex;
    flex-wrap: wrap;
    /* Safe wrap on very small screens */
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;

    /* 3D Context */
    perspective: 1200px;
}

.trix-part {
    color: var(--trix-white);
    display: inline-block;
    opacity: 1;
    /* Handled by GSAP, default visible */
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.plus-part {
    display: inline-flex;
    transform-style: preserve-3d;
}

.plus-letter {
    display: inline-block;
    color: var(--trix-white);
    transform-style: preserve-3d;
    opacity: 0;
    /* Will turn Green via JS */
}

.plus-letter.active {
    color: var(--trix-primary);
    /* Add subtle glow to the active color */
    text-shadow: 0 0 40px rgba(0, 208, 108, 0.6);
}

/* ============================================
   TAGLINE (Modern Subtext)
============================================ */
.trix-tagline {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    max-width: 90%;
    letter-spacing: -0.01em;
}

/* ============================================
   CURSOR GLOW
============================================ */
.cursor-glow {
    position: fixed;
    width: 600px;
    /* Larger, softer glow */
    height: 600px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
            rgba(8, 240, 129, 0.08) 0%,
            transparent 60%);
    filter: blur(80px);
    /* Verify browser support or use backdrop-filter */
}

/* ============================================
   SECTIONS & UTILS
============================================ */
.trix-section {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
}

.gsap-fade-up,
.gsap-stagger-item,
.gsap-hero-text,
.gsap-hero-img {
    opacity: 0;
    transform: translateY(30px);
}

/* ============================================
   MOBILE (Responsive adjustments)
============================================ */
@media (max-width: 768px) {
    .trix-hero {
        padding-top: 100px;
        /* More space for header on mobile */
    }

    .trix-brand {
        flex-direction: column;
        /* Stack on mobile if needed, or keep row */
        flex-direction: row;
        /* Keep row for brand logic */
    }

    .cursor-glow {
        display: none;
    }
}

/* ============================================
   REDUCED MOTION
============================================ */
/* Reduced Motion handled by JS defaults */