/* ==========================================================================
   JUST START - Design System & Base Variables (Modernized)
   ========================================================================== */

:root {
    /* Colors */
    --clr-bg-base: #050505;
    /* Pure deep black */
    --clr-bg-alt: #0a0a0c;
    /* Subtle dark */
    --clr-bg-panel: rgba(20, 20, 25, 0.6);
    /* Glassmorphism panel */
    --clr-bg-panel-dark: rgba(10, 10, 15, 0.8);

    --clr-red-primary: #E10600;
    /* Discipline Red */
    --clr-red-glow: rgba(225, 6, 0, 0.4);
    --clr-red-dark: #B00000;
    --clr-red-hover: #FF1A1A;

    --clr-text-primary: #FFFFFF;
    --clr-text-secondary: #A1A1AA;
    --clr-text-muted: #71717A;

    --clr-green-phase: #10B981;
    --clr-yellow-phase: #F59E0B;
    --clr-energy: #3e0707;

    /* Typography */
    --font-display: 'Inter Tight', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;

    /* Other */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-full: 999px;
    --border-subtle: 1px solid rgba(255, 255, 255, 0.05);
    --border-active: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   CSS Reset & Base
   ========================================================================== */

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

::selection {
    background: rgba(225, 6, 0, 0.4);
    /* Premium Discipline red */
    color: #FFFFFF;
}

::-moz-selection {
    background: rgba(225, 6, 0, 0.4);
    color: #FFFFFF;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--clr-bg-base);
}

body {
    background-color: var(--clr-bg-base);
    color: var(--clr-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    cursor: none;
    /* For custom cursor */
}

/* Custom Glow Cursor */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: width 0.3s, height 0.3s;
}

body:hover .cursor-glow {
    opacity: 1;
}

@media (max-width: 1024px) {
    body {
        cursor: auto;
    }

    .cursor-glow {
        display: none;
    }
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    /* Keep pointer for links even with custom cursor */
}

ul {
    list-style: none;
}

img,
svg {
    max-width: 100%;
    display: block;
}

/* ==========================================================================
   Typography Classes
   ========================================================================== */

.headline-xl {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.headline-lg {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.subheadline {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    color: var(--clr-text-secondary);
    line-height: 1.4;
    max-width: 800px;
}

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

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

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.font-semibold {
    font-weight: 600;
}

.text-gradient {
    background: linear-gradient(90deg, #FFFFFF 0%, #A1A1AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glow-red {
    text-shadow: 0 0 20px rgba(225, 6, 0, 0.4);
}

.text-glow-white {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.whisper {
    display: block;
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.microcopy {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
}

/* Utilities */
.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.mb-2xl {
    margin-bottom: var(--space-2xl);
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

.mt-2xl {
    margin-top: var(--space-2xl);
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.overflow-hidden {
    overflow: hidden;
}

.border-t {
    border-top: 1px solid;
}

.border-white\/5 {
    border-color: rgba(255, 255, 255, 0.05);
}

/* Glassmorphism & Background Effects */
.glass-panel {
    background: var(--clr-bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--border-subtle);
    border-radius: var(--radius-md);
}

.glass-panel-dark {
    background: var(--clr-bg-panel-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--border-subtle);
}

.border-active {
    border: var(--border-active);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.02);
}

.border-red-glow {
    border-color: rgba(225, 6, 0, 0.3);
    box-shadow: 0 0 30px rgba(225, 6, 0, 0.1);
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.bg-glow-red {
    background: rgba(225, 6, 0, 0.15);
}

.bg-glow-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
}

.bg-glow-left {
    top: 30%;
    left: -10%;
    width: 50vw;
    height: 50vw;
}

.bg-glow-right {
    top: 30%;
    right: -10%;
    width: 50vw;
    height: 50vw;
}

.blur-heavy {
    filter: blur(100px);
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-30 {
    opacity: 0.3;
}

.opacity-40 {
    opacity: 0.4;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--space-xl) 0;
}

.bg-contrast {
    background-color: var(--clr-bg-alt);
    border-top: var(--border-subtle);
    border-bottom: var(--border-subtle);
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.items-center {
    align-items: center;
}

@media (min-width: 768px) {
    .grid-2col {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

/* ==========================================================================
   Components -> Buttons (Store Badges)
   ========================================================================== */

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.cta-group.justify-center {
    align-items: center;
}

@media (min-width: 640px) {
    .cta-group {
        flex-direction: row;
    }

    .cta-group.justify-center {
        justify-content: center;
    }
}

.btn-store {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    color: #FFFFFF;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    text-align: left;
    min-width: 180px;
}

.btn-store:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-store-large {
    padding: 0.8rem 1.5rem;
    min-width: 220px;
}

.btn-store svg {
    flex-shrink: 0;
}

.store-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.store-sub {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--clr-text-secondary);
    line-height: 1;
    margin-bottom: 2px;
}

.btn-store-large .store-sub {
    font-size: 0.75rem;
}

.store-main {
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
}

.btn-store-large .store-main {
    font-size: 1.3rem;
}

/* ==========================================================================
   Specific Sections
   ========================================================================== */

/* 1️⃣ Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-microcopy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: var(--space-md);
    color: var(--clr-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.hero-microcopy .dot {
    color: var(--clr-red-primary);
}

.hero-visual {
    margin-top: var(--space-xl);
    position: relative;
    max-width: 400px;
}

.avatar-mockup {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.avatar-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--clr-red-primary);
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.1), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(225, 6, 0, 0.15), inset 0 0 15px rgba(225, 6, 0, 0.1);
}

.pulse-ring {
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(225, 6, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(225, 6, 0, 0);
    }
}

.avatar-ring svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.energy-bar-container.inline {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.energy-fill {
    height: 100%;
    background: var(--clr-red-primary);
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px var(--clr-red-primary);
}

.energy-text {
    font-size: 1rem;
    color: var(--clr-text-primary);
    font-family: var(--font-display);
    font-weight: 800;
}

.coach-message.floating {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--clr-bg-base);
    border: 1px solid var(--border-active);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    font-style: italic;
    color: var(--clr-text-primary);
    max-width: 280px;
    border-left: 3px solid var(--clr-red-primary);
    /* Float animation will be handled by GSAP */
}

@media (max-width: 480px) {
    .coach-message.floating {
        right: 0;
        bottom: -50px;
        width: 100%;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--clr-text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
}

.scroll-indicator .line {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-red-primary);
    transform: translateX(-100%);
    animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* 2️⃣ Problem */
.problem-text {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--clr-text-secondary);
    line-height: 1.3;
    max-width: 900px;
}

/* 3️⃣ Proposal */
.p-md {
    padding: 2.5rem;
}

.comparison-list li {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.comparison-list li:last-child {
    border-bottom: none;
}

.col-negative {
    color: var(--clr-text-muted);
}

.col-positive {
    color: var(--clr-text-primary);
    font-weight: 500;
}

.comparison-list .icon {
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.col-positive .icon {
    background: rgba(225, 6, 0, 0.1);
}

/* 4️⃣ How It Works */
.phases-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 1024px) {
    .phases-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.phase-card {
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    min-height: 420px;
    background: rgba(15, 15, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.phase-card:hover {
    transform: translateY(-10px);
    background: rgba(25, 25, 30, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.phase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    opacity: 0.4;
    transition: opacity 0.3s, height 0.3s;
}

.phase-card:hover::before {
    opacity: 1;
    height: 4px;
}

.phase-1::before { background: var(--clr-green-phase); }
.phase-2::before { background: var(--clr-yellow-phase); }
.phase-3::before { background: var(--clr-red-primary); }

.phase-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.phase-card:hover .phase-icon {
    transform: scale(1.1) rotate(8deg);
}

.phase-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--clr-green-phase); }
.phase-icon.yellow { background: rgba(245, 158, 11, 0.1); color: var(--clr-yellow-phase); }
.phase-icon.red { background: rgba(225, 6, 0, 0.1); color: var(--clr-red-primary); }

.phase-header {
    margin-bottom: 1.25rem;
}

.phase-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.phase-desc {
    color: var(--clr-text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.phase-features {
    padding: 0;
    margin: 0 0 1.5rem 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.phase-features li {
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    transition: color 0.3s;
}

.phase-card:hover .phase-features li {
    color: var(--clr-text-secondary);
}

.phase-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: currentColor;
    opacity: 0.4;
    font-weight: bold;
}

.phase-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.phase-micro {
    display: block;
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
}

/* 5️⃣ Energy System */
.energy-explanation {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--clr-text-secondary);
}

.large-energy-bar {
    width: 100%;
    max-width: 800px;
    height: 48px;
    margin: 0 auto;
    position: relative;
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
}

.large-energy-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--clr-red-dark) 0%, var(--clr-red-primary) 80%, #ff4d4d 100%);
    border-radius: var(--radius-full);
    box-shadow: 0 0 20px rgba(225, 6, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.energy-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg) translateX(-150%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        transform: skewX(-20deg) translateX(150%);
    }
}

.energy-markers {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.energy-markers .marker {
    position: absolute;
    bottom: -35px;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--clr-text-muted);
}

.energy-markers .current-marker {
    color: var(--clr-text-primary);
    background: var(--clr-red-primary);
    padding: 0.2rem 0.8rem;
    border-radius: var(--radius-full);
    bottom: 50%;
    transform: translate(-50%, 50%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    /* Transition handled by GSAP */
}

/* 6️⃣ Coach */
.coach-text {
    font-size: 1.3rem;
    color: var(--clr-text-secondary);
}

.modern-list {
    margin: 1.5rem 0;
}

.modern-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.modern-list .dot {
    font-size: 1.5rem;
    line-height: 0;
}

.coach-message.stern {
    padding: 2.5rem;
    font-size: 1.5rem;
    font-weight: 500;
    font-style: italic;
    position: relative;
}

.coach-message.stern::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-family: var(--font-display);
    font-size: 4rem;
    color: rgba(225, 6, 0, 0.2);
    line-height: 1;
}

/* 8️⃣ Audience */
.audience-box {
    padding: 2.5rem;
    transition: transform 0.3s;
}

.audience-box:hover {
    transform: translateY(-5px);
}

.box-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.for-you .box-title {
    color: var(--clr-text-primary);
}

.not-for-you .box-title {
    color: var(--clr-red-primary);
}

.audience-box ul {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.audience-box li {
    font-size: 1.2rem;
    color: var(--clr-text-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
}

.audience-box .icon {
    font-weight: bold;
}

/* 9️⃣ Final CTA */
.final-cta {
    padding: 10rem 0;
}

.final-microcopy {
    color: var(--clr-text-muted);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #000;
    padding: var(--space-xl) 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: var(--clr-text-secondary);
    font-size: 1rem;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--clr-text-primary);
}

.footer-copyright {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-nav {
        margin-top: 0;
    }

    .footer-copyright {
        margin-top: 0;
    }
}