/* Polipics Presentation-Grade Landing Page v2 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    /* Brand Colors from partner_theme.css */
    --color-1: #433bdb;
    --color-2: #830fea;
    --color-4: #e51f7e;
    --color-8: #ff9d00;
    --primary-gradient: linear-gradient(135deg, var(--color-1) 0%, var(--color-4) 50%, var(--color-8) 100%);

    /* Design System */
    --bg-light: #ffffff;
    --bg-alt: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;

    /* iOS Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-blur: saturate(180%) blur(20px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: var(--text-main);
    background: var(--bg-light);
    scroll-behavior: smooth;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    /* Tighter line height for all headings */
}

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

/* Background - Subtle Brand Mesh */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-image:
        radial-gradient(at 0% 0%, rgba(67, 59, 219, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(229, 31, 126, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(131, 15, 234, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(255, 157, 0, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation - iOS Glass */
.nav-v2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    /*background: var(--glass-bg);*/
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.btn-login {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 32px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50px;
    /*background: rgba(255, 255, 255, 0.05);*/
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    /* Specular Edge Highlights */
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.03),
        inset 0 1px 1px rgba(255, 255, 255, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-text {
    position: relative;
    z-index: 5;
    letter-spacing: 0.2px;
}

.liquid-glass-flare {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.2) 25%,
            transparent 50%);
    filter: url(#liquid-glass-refraction) blur(2px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
    transform: translate(-15%, -15%);
    transition: opacity 0.5s ease;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.btn-login:hover .liquid-glass-flare {
    opacity: 0.7;
    animation: liquid-flux 5s infinite ease-in-out;
}

@keyframes liquid-flux {
    0% {
        transform: translate(-15%, -15%) scale(1);
        rotate: 0deg;
    }

    50% {
        transform: translate(5%, -5%) scale(1.1);
        rotate: 180deg;
    }

    100% {
        transform: translate(-15%, -15%) scale(1);
        rotate: 360deg;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 0 40px;
    text-align: center;
    position: relative;
    /* Container for absolute background visual */
    overflow: hidden;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.25;
    /* Increased to prevent character cutoff */
    letter-spacing: -2px;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.1em;
    /* Extra space for descenders (g, j, y) */
}

.hero-kicker {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--color-1);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    padding-bottom: 0.15em;
    /* Specific fix for g/y descender cutoff */
    margin-bottom: -0.15em;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

.hero p strong {
    color: var(--color-4);
    /* Brand Pink */
    font-weight: 600;
}

.highlight {
    color: var(--color-4);
    font-weight: 600;
    background: linear-gradient(120deg, rgba(229, 31, 126, 0.1) 0%, rgba(229, 31, 126, 0.1) 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.3em;
    background-position: 0 88%;
}

/* Integrated Background Visual */
.hero-bg-visual {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-60%) rotate(-5deg);
    width: 70%;
    max-width: 1200px;
    z-index: 1;
    opacity: 0.20;
    /* Increased opacity for visibility */
    pointer-events: none;
    /*filter: blur(2px) saturate(1.1);*/
    /* Reduced blur so it's sharp but merged */
    mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
}

.hero-bg-visual img {
    width: 100%;
    height: auto;
    filter: blur(2px) saturate(1.2);
}

/* Sections */
section {
    padding: 100px 0;
    background: radial-gradient(circle at 10% 10%, rgba(67, 59, 219, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(229, 31, 126, 0.05) 0%, transparent 40%);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    /* Gradient Style */
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    /* Required for gradient text alignment in some browsers */
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Cards - Sharp & Clean */
.card-v2 {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s;
}

.card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--color-4);
}

.card-v2 h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: var(--color-1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-4);
    /* Accent Pink */
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.card-v2:hover .card-icon {
    transform: scale(1.1);
}

.card-v2 p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Side-by-side title/icon utility */
.card-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-title-group .card-icon {
    font-size: 2rem;
    margin-bottom: 0;
}

.card-title-group h3 {
    margin-bottom: 0;
}

/* Impact Section */
.impact-subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-muted);
    font-size: 1.15rem;
    display: block;
    margin-top: -10px;
    /* Adjusted to prevent overlap */
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Impact Cards */
.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s;
}

.stat-value-box {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.stat-item h2 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin: 0;
    transition: color 0.3s ease;
}

/* Spectrum Strategy: Individual Brand Accents */
.stat-item:nth-child(1) h2 {
    color: var(--color-1);
}

/* Blue */
.stat-item:nth-child(2) h2 {
    color: var(--color-2);
}

/* Purple */
.stat-item:nth-child(3) h2 {
    color: var(--color-4);
}

/* Pink */
.stat-item:nth-child(4) h2 {
    color: var(--color-8);
}

/* Orange */

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 800;
    margin-left: 2px;
}

/* Suffix follows the number color */
.stat-item:nth-child(1) .stat-suffix {
    color: var(--color-1);
}

.stat-item:nth-child(2) .stat-suffix {
    color: var(--color-2);
}

.stat-item:nth-child(3) .stat-suffix {
    color: var(--color-4);
}

.stat-item:nth-child(4) .stat-suffix {
    color: var(--color-8);
}

.stat-item p {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-top: 10px;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
}

/* Hover border matches the accent color */
.stat-item:nth-child(1):hover {
    border-color: var(--color-1);
}

.stat-item:nth-child(2):hover {
    border-color: var(--color-2);
}

.stat-item:nth-child(3):hover {
    border-color: var(--color-4);
}

.stat-item:nth-child(4):hover {
    border-color: var(--color-8);
}

/* Footer */
footer {
    padding: 100px 0 50px;
    background: #0f172a;
    color: white;
}

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

.footer-company {
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.footer-contact p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Ensure no blue/underline for auto-detected phone on some browsers */
.footer-contact p a,
.footer-contact p {
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border-bottom: none !important;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

@media (max-width: 1024px) {

    .grid-2,
    .grid-4,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-4,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .impact-subtitle {
        margin-top: 0;
        font-size: 1rem;
    }

    .hero-bg-visual {
        width: 130%;
        /* Make it much larger on mobile */
        right: -15%;
        opacity: 0.15;
        top: 60%;
    }
}