/*
Theme Name: Sphra 2026 - V2
Theme URI: https://sphra.com
Author: Sphra Team
Author URI: https://sphra.com
Description: The digital nervous system for business growth. Unifying strategy, sales, and data. Version 2 with improved responsiveness.
Version: 2.5.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, dark, responsive-layout, custom-menu, featured-images, full-width-template
Text Domain: sphra
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent-cyan: hsl(180, 100%, 50%);
    --accent-vibrant: hsl(190, 100%, 55%);
    --accent-glow: hsla(180, 100%, 50%, 0.4);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --glass-surface: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --font-size-hero: clamp(1.8rem, 5vw, 3.2rem);
    --font-size-h2: clamp(1.8rem, 4vw, 2.8rem);
    --font-size-body: clamp(0.95rem, 1.1vw, 1.15rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    max-width: 100vw;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Custom Cursor - Refined */
#custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease-out, background 0.2s;
}

#cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Background Systems - Premium Depth */
.grid-container {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: -2;
    opacity: 0.8;
}

.noise-overlay {
    position: fixed;
    inset: 0;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 999;
}

.vignette {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.9) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Navigation - OS Bar Style */
header {
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: none;
}

.logo-icon {
    width: 22px;
    height: 22px;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--accent-cyan);
}

/* Hero Section - The Nucleus of the OS */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    position: relative;
    z-index: 1;
    padding-top: 10rem;
}

.hero-bg-asset {
    position: absolute;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    opacity: 0.1;
    z-index: -1;
    filter: blur(60px);
    animation: pulse 10s ease-in-out infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(0.9) rotate(0deg);
        opacity: 0.05;
    }

    to {
        transform: scale(1.1) rotate(15deg);
        opacity: 0.15;
    }
}

.pre-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pre-title::before,
.pre-title::after {
    content: '';
    width: 40px;
    height: 1px;
    background: rgba(0, 229, 255, 0.3);
    flex-shrink: 0;
}

h1 {
    font-family: var(--font-heading);
    font-size: var(--font-size-hero);
    line-height: 0.95;
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

h1 .gradient {
    color: #fff;
    background: linear-gradient(to bottom, #fff 40%, rgba(255, 255, 255, 0.3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: var(--font-size-body);
    max-width: 650px;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.7;
}

.hero-actions {
    margin-bottom: 7rem;
}

.btn-primary {
    position: relative;
    padding: 18px 48px;
    background: #ffffff !important;
    color: #000000 !important;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: none;
    z-index: 5;
}

.btn-primary:hover {
    background: var(--accent-cyan);
    color: #000000;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px var(--accent-glow);
}

.btn-login {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Marquee Section */
.marquee-section {
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.marquee {
    display: flex;
    width: 100%;
}

.marquee-content {
    display: flex;
    gap: 4rem;
    animation: scroll 30s linear infinite;
    padding: 0 2rem;
}

.integration-logo {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0.4;
    transition: var(--transition-smooth);
}

.integration-logo:hover {
    opacity: 1;
    color: var(--accent-cyan);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Pillar Cards - OS Module Style */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.pillar-card {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.pillar-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-cyan);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pillar-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-cyan);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.num {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 2.5rem;
    display: block;
    opacity: 0.5;
}

.pillar-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.pillar-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Engine Visual Section */
.engine-visual {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.step-card {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    transition: var(--transition-smooth);
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-vibrant);
    transform: translateY(-5px);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0, 229, 255, 0.1);
    position: absolute;
    top: 1.5rem;
    right: 2rem;
}

.step-card h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Typography & Layout Spacing */
section {
    padding: 8rem 5%;
    max-width: 100vw;
    overflow-x: hidden;
}

.section-head {
    margin-bottom: 3rem;
}

.section-head p {
    margin-top: 1.5rem;
    margin-bottom: 3rem;
    max-width: 600px;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    display: block;
}

h2 {
    font-family: var(--font-heading);
    font-size: var(--font-size-h2);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

/* Philosophy section specific */
#philosophy h2 {
    line-height: 1.5 !important;
    letter-spacing: 0.02em;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.testimonial-card {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.7;
    opacity: 0.9;
}

.author {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.author .name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-cyan);
}

.author .title {
    font-size: 0.75rem;
    opacity: 0.5;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Styling */
footer {
    padding: 4rem 5%;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* Responsive Design - Tablet */
@media (max-width: 1200px) {
    .pillar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .engine-visual {
        grid-template-columns: 1fr;
    }

    section {
        padding: 6rem 4%;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {

    /* Disable custom cursor on mobile */
    * {
        cursor: auto !important;
    }

    #custom-cursor,
    #cursor-glow {
        display: none;
    }

    /* Header adjustments */
    header {
        height: 60px;
        padding: 0 1.5rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo-icon {
        width: 18px;
        height: 18px;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .btn-login {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    /* Hero section */
    .hero {
        padding: 0 1.5rem;
        padding-top: 8rem;
        min-height: 90vh;
    }

    .pre-title {
        font-size: 0.65rem;
        letter-spacing: 0.2em;
        margin-bottom: 1.5rem;
    }

    .pre-title::before,
    .pre-title::after {
        width: 20px;
    }

    h1 {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1;
        margin-bottom: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .btn-primary {
        padding: 14px 32px;
        font-size: 0.8rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Sections */
    section {
        padding: 4rem 1.5rem;
    }

    h2 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin-bottom: 1.5rem;
    }

    .section-tag {
        font-size: 0.65rem;
    }

    /* Grids */
    .pillar-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .pillar-card {
        padding: 2rem 1.5rem;
    }

    .pillar-card h3 {
        font-size: 1.25rem;
    }

    .pillar-card p {
        font-size: 0.9rem;
    }

    .engine-visual {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .step-card {
        padding: 2rem 1.5rem;
    }

    .step-num {
        font-size: 2rem;
        top: 1rem;
        right: 1rem;
    }

    .step-card h4 {
        font-size: 1.25rem;
    }

    .step-card p {
        font-size: 0.9rem;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .quote {
        font-size: 1rem;
    }

    /* Footer */
    footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 3rem 1.5rem;
        font-size: 0.7rem;
    }

    /* Marquee */
    .marquee-section {
        padding: 1.5rem 0;
    }

    .integration-logo {
        font-size: 0.7rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .btn-primary {
        padding: 12px 24px;
        font-size: 0.75rem;
    }
}