/* ==========================================================================
   UpperCut Digital - Design Tokens & Core Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@400;500;600;700;800&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600;1,700&display=swap');
:root {
    /* Color Palette - Exact 1:1 Figma Match */
    --bg-primary: #000000;
    --bg-surface: #0D0D0D;
    --bg-card: #121215;
    --bg-card-hover: #18181C;
    --bg-glass: rgba(16, 16, 18, 0.85);
    --bg-glass-card: rgba(20, 20, 24, 0.75);
    --yellow-primary: #FFD600;
    --yellow-light: #FFE432;
    --yellow-hover: #E5C000;
    --yellow-glow: rgba(255, 214, 0, 0.35);
    --yellow-glow-ambient: rgba(255, 214, 0, 0.24);
    --yellow-glow-subtle: rgba(255, 214, 0, 0.12);
    --yellow-glow-card: rgba(255, 214, 0, 0.16);
    --yellow-glow-intense: rgba(255, 214, 0, 0.40);
    --yellow-glow-gold: rgba(255, 200, 0, 0.28);
    --yellow-gradient: linear-gradient(135deg, #FFD600 0%, #FFA800 100%);
    --purple-cta: #6355FF;
    --purple-hover: #5244E6;
    --purple-glow: rgba(99, 85, 255, 0.45);
    --purple-glow-cta: rgba(99, 85, 255, 0.55);
    --purple-glow-button: 0 4px 25px rgba(99, 85, 255, 0.55), 0 0 10px rgba(99, 85, 255, 0.35);
    --purple-gradient: linear-gradient(135deg, #766AFF 0%, #6262FF 100%);
    --status-green: #00E599;
    --status-green-glow: rgba(0, 229, 153, 0.6);
    --green-glow-pulse: 0 0 8px #00E599, 0 0 16px rgba(0, 229, 153, 0.8);
    --text-white: #FFFFFF;
    --text-primary: #FFFFFF;
    --text-secondary: #C0C0C8;
    --text-muted: #888890;
    --text-dark: #0A0A0C;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-card: rgba(255, 255, 255, 0.12);
    --border-yellow: rgba(255, 214, 0, 0.4);
    --border-active: #FFD600;
    /* Typography */
    --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-cta: 'Alexandria', 'Montserrat', sans-serif;
    /* Spacing & Layout */
    --container-max: 1520px;
    --container-wide: 1680px;
    --container-hero: 1920px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    width: 100%;
    max-width: 100%;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    width: 100%;
    max-width: 100%;
    position: relative;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* Scroll Progress Indicator (Dynamic Yellow Top Line on scroll) */

.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3.5px;
    background: linear-gradient(90deg, #FFD600 0%, #FFA800 60%, #FFE866 100%);
    box-shadow: 0 0 14px rgba(255, 214, 0, 0.85), 0 0 4px #FFD600;
    z-index: 999999;
    transform-origin: 0 50%;
    transform: scaleX(0);
    will-change: transform;
    pointer-events: none;
    transition: transform 0.05s linear;
}

@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: scroll()) {
        @keyframes scroll-grow-progress {
            from {
                transform: scaleX(0);
            }
            to {
                transform: scaleX(1);
            }
        }
        .scroll-progress-bar {
            animation: scroll-grow-progress auto linear;
            animation-timeline: scroll();
            transition: none;
        }
    }
}

/* Background Grid Overlay */

.bg-grid-overlay {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   Responsive Section-Anchored Ambient Glow System (Exact 1:1 Figma Match)
   ========================================================================== */

.section-ambient-glow {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
    background: radial-gradient(ellipse at center, rgba(255, 214, 0, 0.22) 0%, rgba(255, 214, 0, 0.08) 45%, rgba(255, 214, 0, 0) 72%);
    filter: blur(100px);
    -webkit-filter: blur(100px);
    width: min(880px, 90vw);
    height: min(420px, 50vh);
}

/* Position Modifiers */

.glow-hero-right {
    top: -60px;
    right: -240px;
    width: min(920px, 95vw);
    height: min(480px, 60vh);
    background: radial-gradient(ellipse at center, rgba(255, 214, 0, 0.32) 0%, rgba(255, 214, 0, 0.12) 42%, rgba(255, 214, 0, 0) 70%);
    filter: blur(120px);
    -webkit-filter: blur(120px);
}

.glow-top-left {
    top: -60px;
    left: -260px;
}

.glow-top-right {
    top: -60px;
    right: -260px;
}

.glow-center-left {
    top: 30%;
    left: -280px;
}

.glow-center-right {
    top: 30%;
    right: -280px;
}

.glow-bottom-left {
    bottom: -80px;
    left: -240px;
}

.glow-bottom-right {
    bottom: -80px;
    right: -240px;
}

.glow-center-large {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translate3d(0, 0, 0);
    width: min(1100px, 95vw);
    height: min(550px, 65vh);
    background: radial-gradient(circle, rgba(255, 214, 0, 0.22) 0%, rgba(255, 214, 0, 0.08) 45%, rgba(255, 214, 0, 0) 75%);
    filter: blur(110px);
    -webkit-filter: blur(110px);
}

/* Tablet & Mobile Glow Adjustments */

@media (max-width: 1024px) {
    .section-ambient-glow {
        width: min(650px, 90vw);
        height: min(350px, 45vh);
        filter: blur(80px);
        -webkit-filter: blur(80px);
        opacity: 0.85;
    }
    .glow-top-left {
        left: -140px;
    }
    .glow-top-right {
        right: -140px;
    }
    .glow-center-left {
        left: -160px;
    }
    .glow-center-right {
        right: -160px;
    }
    .glow-bottom-left {
        left: -140px;
    }
    .glow-bottom-right {
        right: -140px;
    }
}

@media (max-width: 768px) {
    .section-ambient-glow {
        width: min(450px, 95vw);
        height: min(260px, 35vh);
        filter: blur(60px);
        -webkit-filter: blur(60px);
        opacity: 0.8;
    }
    .glow-hero-right {
        top: -40px;
        right: -80px;
        filter: blur(65px);
    }
    .glow-top-left {
        left: -70px;
        top: -30px;
    }
    .glow-top-right {
        right: -70px;
        top: -30px;
    }
    .glow-center-left {
        left: -80px;
    }
    .glow-center-right {
        right: -80px;
    }
    .glow-bottom-left {
        left: -70px;
        bottom: -40px;
    }
    .glow-bottom-right {
        right: -70px;
        bottom: -40px;
    }
}

/* Legacy global wrapper for seamless backward compatibility */

.ambient-glow-wrapper {
    display: none;
}

/* Container & Layout Utilities */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    position: relative;
    z-index: 1;
}

.container-wide {
    width: 100%;
    max-width: var(--container-wide);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    position: relative;
    z-index: 1;
}

/* Typography Helpers */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.section-title-large {
    font-size: clamp(2.5rem, 4.5vw, 3.75rem);
    /* ~60px */
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.15;
}

.section-subtitle {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    /* ~18px */
    color: var(--text-secondary);
    text-align: center;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    margin-bottom: 50px;
}

.text-yellow {
    color: var(--yellow-primary);
}

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

/* Links & Buttons */

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button {
    font-family: var(--font-cta);
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

/* Primary CTA Button (Purple with glowing green dot) */

.btn-growth-cta {
    background: var(--purple-gradient);
    color: #FFFFFF;
    font-family: var(--font-cta);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 25px var(--purple-glow-cta), 0 0 10px rgba(99, 85, 255, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.btn-growth-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(99, 85, 255, 0.75), 0 0 15px rgba(99, 85, 255, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    filter: brightness(1.08);
}

.btn-growth-cta:active {
    transform: translateY(0);
}

/* Live green status pulse indicator */

.pulse-dot {
    width: 9px;
    height: 9px;
    background-color: var(--status-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--status-green), 0 0 16px var(--status-green);
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--status-green);
    animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Secondary Button (Outline / Glass) */

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    font-family: var(--font-cta);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    gap: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Badge Base Component */

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.badge-pill.badge-yellow-accent {
    border-color: rgba(255, 214, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 214, 0, 0.12);
}