/* -------------------------------------------------------------
   UpSpire - CSS Premium Style Sheets
   Core Design System and Section-Slider Layout
------------------------------------------------------------- */

/* Custom Properties / Tokens */
:root {
    --bg-color: #101010;
    --accent-color: #F47A20;
    --accent-glow: rgba(244, 122, 32, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #8e8e93;
    --text-tertiary: #48484a;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, monospace;
    --transition-duration: 0.85s;
    --transition-ease: cubic-bezier(0.76, 0, 0.24, 1); /* Premium Cinematic Curve */
}

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

html {
    scroll-behavior: auto; /* Disabled manual scroll-behavior since we hijack it */
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow: hidden; /* Hide horizontal and vertical scrollbars entirely */
    height: 100%;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Below content (z-index 2), above nothing */
    pointer-events: none;
}

/* Global Header styling */
.global-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 10%;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through to canvas or sections, except links */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    pointer-events: auto; /* Re-enable clicks */
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.coming-soon-badge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1.25rem;
    background: rgba(244, 122, 32, 0.06); /* Premium soft orange tint */
    border: 1px solid rgba(244, 122, 32, 0.35); /* Glowing accent orange border */
    border-radius: 100px;
    backdrop-filter: blur(10px);
    pointer-events: auto;
    box-shadow: 0 0 15px rgba(244, 122, 32, 0.08);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
    animation: badge-glow 2s infinite ease-in-out;
}

.badge-text {
    font-family: var(--font-mono);
    font-size: 0.75rem; /* Larger font size */
    font-weight: 600; /* Bold */
    letter-spacing: 0.12em;
    color: var(--text-primary); /* Bright white */
}

@keyframes badge-glow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.25); }
}

/* Slider System */
.slider-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: row;
    transform: translateX(0);
    transition: transform var(--transition-duration) var(--transition-ease);
    will-change: transform;
    z-index: 2; /* Content sits above canvas */
}

.slide-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 10%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Content Transitions & Layout */
.section-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
}

.content-wrapper {
    max-width: 920px;
    opacity: 0;
    transform: translateX(60px) scale(0.98);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.2s;
    will-change: opacity, transform;
}

/* When slide becomes active, animate its contents */
.slide-section.active .content-wrapper {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Typography styles */
.headline {
    font-size: clamp(2rem, 4.5vw, 4.2rem);
    font-weight: 300; /* Light, elegant typography baseline */
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.headline .highlight {
    color: var(--accent-color);
    font-weight: 700; /* Bold highlights (balanced thickness) */
    position: relative;
}

.highlight-white {
    color: var(--text-primary);
    font-weight: 500;
}

.subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 620px;
    margin-top: 1.75rem;
    letter-spacing: -0.01em;
}

.description {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-weight: 300;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 720px;
    margin-top: 1.5rem;
    letter-spacing: -0.01em;
}

.large-statement {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    margin-top: 1.25rem;
    border-left: 2px solid var(--accent-color);
    padding-left: 1.25rem;
}

/* Buttons / CTAs */
.cta-container {
    margin-top: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-primary);
    border: 1px solid var(--accent-color);
    box-shadow: 0 4px 20px rgba(244, 122, 32, 0.25);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

/* SECTION 4 SPECIFIC: AEO & GEO Blocks */
.eo-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
    width: 100%;
}

.eo-block {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.eo-block:hover {
    border-color: rgba(244, 122, 32, 0.3);
    background: rgba(244, 122, 32, 0.02);
    transform: translateY(-5px);
}

.eo-block h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.eo-block p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Right Side Vertical Navigation */
/* Bottom Horizontal Page Navigation */
.page-nav {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: auto;
}

.page-nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
}

.nav-item {
    position: relative;
    cursor: pointer;
}

.nav-item button {
    background: none;
    border: none;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: color 0.4s ease;
    outline: none;
}

.nav-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0.4;
    transition: opacity 0.4s ease, color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-line {
    width: 16px;
    height: 1px;
    background-color: var(--text-tertiary);
    transition: width 0.4s ease, background-color 0.4s ease, height 0.4s ease;
}

/* Hover and Active navigation states */
.nav-item:hover button {
    color: var(--text-secondary);
}

.nav-item:hover .nav-num {
    opacity: 0.8;
    transform: translateY(-2px);
}

.nav-item:hover .nav-line {
    width: 24px;
    background-color: var(--text-secondary);
}

.nav-item.active button {
    color: var(--accent-color);
}

.nav-item.active .nav-num {
    opacity: 1;
    color: var(--accent-color);
    transform: translateY(-2px);
}

.nav-item.active .nav-line {
    width: 32px;
    height: 1.5px;
    background-color: var(--accent-color);
}

/* Intro Features Grid */
.intro-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    width: 100%;
}

.feature-item {
    display: flex;
    gap: 1rem;
}

.feature-num {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-top: 0.15rem;
}

.feature-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.feature-content p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Interactive Contact Dialog Box */
.contact-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 16, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.contact-dialog-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.contact-dialog-box {
    background-color: #161616;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 3rem;
    width: 100%;
    max-width: 540px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.contact-dialog-overlay.active .contact-dialog-box {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.close-btn:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.contact-dialog-box h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.contact-dialog-box p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.04);
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* -------------------------------------------------------------
   RESPONSIVENESS / MEDIA QUERIES (Mobile Refresh)
------------------------------------------------------------- */
@media (max-width: 1024px) {
    .global-header {
        padding: 2rem 5%;
    }
    
    .slide-section {
        padding: 0 8%;
    }

    .page-nav {
        bottom: 2rem;
    }

    .intro-features {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .global-header {
        padding: 1.5rem 5%;
    }

    .slide-section {
        padding: 0 6%;
    }

    .page-nav {
        bottom: 1.75rem;
    }
    
    .page-nav ul {
        gap: 1.75rem;
    }
    
    .eo-blocks {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .eo-block {
        padding: 1.2rem;
    }
    
    .eo-block h3 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

    .eo-block p {
        font-size: 0.8rem;
        line-height: 1.45;
    }
    
    .contact-dialog-box {
        padding: 1.75rem;
        max-width: 92%;
    }

    .intro-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 1.75rem;
        padding-top: 1.25rem;
    }

    .feature-item {
        gap: 0.5rem;
        align-items: flex-start;
    }

    .feature-content h3 {
        font-size: 0.95rem;
        margin-bottom: 0;
    }

    .feature-content p {
        display: none; /* Hide description on mobile for extreme minimalist breathing layout */
    }
}

@media (max-width: 480px) {
    .global-header {
        padding: 1.25rem 1.25rem;
    }

    .coming-soon-badge {
        padding: 0.45rem 0.85rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .badge-text {
        font-size: 0.65rem;
    }

    .slide-section {
        padding: 0 1.25rem;
    }

    .headline {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .subtitle, .description {
        font-size: 0.82rem;
        line-height: 1.5;
        margin-top: 0.85rem;
        max-width: 100%;
    }

    .large-statement {
        font-size: 0.9rem;
        margin-top: 0.85rem;
    }

    .cta-container {
        margin-top: 1.25rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }

    .page-nav {
        bottom: 1.25rem;
    }

    .page-nav ul {
        gap: 1.25rem;
    }

    .nav-num {
        font-size: 0.65rem;
    }

    .nav-line {
        width: 10px;
    }

    .nav-item:hover .nav-line {
        width: 16px;
    }

    .nav-item.active .nav-line {
        width: 24px;
    }
}
