/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #e91e63;
    --accent-purple: #9c27b0;
    --text-gray: #666666;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-cta {
    padding: 10px 24px;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color) !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 40px 80px;
    position: relative;
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

.hero-title-container {
    margin-bottom: 60px;
}

.static-text-above {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.rotating-text-wrapper {
    height: 80px;
    overflow: hidden;
    display: inline-block;
    position: relative;
}

.rotating-text {
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.rotating-word {
    font-size: 64px;
    font-weight: 700;
    line-height: 80px;
    letter-spacing: -1px;
    white-space: nowrap;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    animation: fadeIn 2s ease 1s both;
}

.scroll-indicator span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background-color: var(--primary-color);
    animation: scrollLine 2s ease infinite;
}

/* Section Styles */
.section {
    padding: 120px 40px;
}

.section-header {
    margin-bottom: 60px;
}

.section-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 16px;
    font-weight: 600;
}

.section h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
}

/* Testimonials Ticker */
.testimonials-ticker {
    background-color: #e91e63;
    padding: 20px 0;
    overflow: hidden;
    position: relative;
}

.ticker-wrapper {
    width: 100%;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: scroll-ticker 40s linear infinite;
}

.ticker-quote {
    font-size: 18px;
    color: #ffffff;
    font-style: italic;
    padding: 0 20px;
}

.ticker-separator {
    color: #ffffff;
    font-size: 18px;
    padding: 0 20px;
}

@keyframes scroll-ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause on hover */
.ticker-content:hover {
    animation-play-state: paused;
}

/* Case Studies Section */
.case-studies {
    background-color: #ffffff;
    padding: 120px 40px;
}

.case-studies .section-header {
    text-align: center;
    margin-bottom: 80px;
}

.case-studies h2 {
    font-size: 56px;
    color: var(--primary-color);
}

.case-studies-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.case-study-card {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.case-study-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.case-study-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.case-study-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-gray);
}

/* About Section */
.about {
    background-color: var(--light-gray);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.large-text {
    font-size: 24px;
    line-height: 1.6;
    color: var(--primary-color);
}

.about-text p {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Benefits Scroll Section - Pinned/Fixed Effect */
.benefits-scroll {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1b3d 50%, #1a1a1a 100%);
    color: #ffffff;
}

/* Fixed wrapper stays in place while user scrolls */
.fixed-content-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.benefits-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
}

/* Spacer creates scroll distance (8 steps × 70vh each = 560vh total, 30% less than before) */
.scroll-spacer {
    height: 560vh;
    pointer-events: none;
}

/* Each scroll step */
.scroll-step {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 900px;
    text-align: center;
    opacity: 0;
    transition: opacity 1.5s ease, transform 1.5s ease;
    pointer-events: none;
}

.scroll-step.active {
    opacity: 1;
    pointer-events: auto;
}

/* Steps with header have different layout - header at top */
.scroll-step.with-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    top: 20%;
    transform: translate(-50%, 0);
}

/* Header-only step (step 3) */
#step-header-only {
    top: 20%;
    transform: translate(-50%, 0);
}

/* Centered text for problem/solution */
.centered-text {
    font-size: 36px;
    line-height: 1.6;
    color: #ffffff;
    padding: 0 40px;
}

/* Static header styling */
.benefits-static-header {
    font-size: 36px;
    color: #e91e63;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

/* Benefit display container */
.benefit-display {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    min-height: 300px;
    width: 100%;
}

.benefit-text-large {
    font-size: 56px;
    font-weight: 700;
    color: #ffffff;
    position: relative;
    z-index: 2;
    margin: 0;
}

/* Benefit animations - keep existing styles */
.connection-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    height: 300px;
    z-index: 1;
}

.scroll-step.active .connect-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLine 0.6s ease forwards;
}

.scroll-step.active .line1 { animation: drawLine 1.2s ease forwards 0.3s; }
.scroll-step.active .line2 { animation: drawLine 1.2s ease forwards 0.6s; }
.scroll-step.active .line3 { animation: drawLine 1.2s ease forwards 0.9s; }
.scroll-step.active .line4 { animation: drawLine 1.2s ease forwards 1.2s; }
.scroll-step.active .line5 { animation: drawLine 1.2s ease forwards 1.5s; }
.scroll-step.active .line6 { animation: drawLine 1.2s ease forwards 1.8s; }

.connect-line {
    stroke: #e91e63;
    stroke-width: 2;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* Shards animation */
.shard-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 200px;
    z-index: 1;
}

.shard {
    position: absolute;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.3), rgba(156, 39, 176, 0.3));
    opacity: 0;
}

.shard1 {
    width: 150px;
    height: 150px;
    top: 25px;
    left: 20%;
    clip-path: polygon(0 0, 100% 30%, 70% 100%);
}

.shard2 {
    width: 120px;
    height: 120px;
    top: 40px;
    right: 20%;
    clip-path: polygon(30% 0, 100% 0, 100% 70%);
}

.shard3 {
    width: 100px;
    height: 100px;
    bottom: 30px;
    left: 30%;
    clip-path: polygon(0 30%, 70% 0, 100% 100%);
}

.shard4 {
    width: 130px;
    height: 130px;
    bottom: 20px;
    right: 30%;
    clip-path: polygon(0 0, 100% 40%, 60% 100%);
}

.scroll-step.active .shard1 { animation: slideInShard 1.4s ease forwards 0.3s; }
.scroll-step.active .shard2 { animation: slideInShard 1.4s ease forwards 0.6s; }
.scroll-step.active .shard3 { animation: slideInShard 1.4s ease forwards 0.9s; }
.scroll-step.active .shard4 { animation: slideInShard 1.4s ease forwards 1.2s; }

@keyframes slideInShard {
    from {
        opacity: 0;
        transform: translate(var(--tx, -50px), var(--ty, -50px)) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

.shard1 { --tx: -100px; --ty: -100px; }
.shard2 { --tx: 100px; --ty: -100px; }
.shard3 { --tx: -100px; --ty: 100px; }
.shard4 { --tx: 100px; --ty: 100px; }

/* Shield animation */
.shield-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 180px;
    z-index: 1;
}

.shield-outline {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
}

.scroll-step.active .shield-outline {
    animation: drawShield 2.2s ease forwards;
}

@keyframes drawShield {
    to { stroke-dashoffset: 0; }
}

/* Blur to focus */
.blur-focus {
    filter: blur(15px);
}

.scroll-step.active .blur-focus {
    animation: focusIn 2s ease forwards;
}

@keyframes focusIn {
    to { filter: blur(0px); }
}

/* Benefits List - removing old styles */
.benefits-list {
    display: none;
}

.benefit-item {
    display: none;
}

/* Benefits Header old styles - removing */
.benefits-header {
    display: none;
}

/* Insights Section */
.insights {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1b3d 50%, #1a1a1a 100%);
    color: #ffffff;
    padding: 120px 40px;
}

.insights .section-header {
    text-align: center;
    margin-bottom: 80px;
}

.insights h2 {
    color: #ffffff;
    font-size: 56px;
}

.insight-quote {
    max-width: 900px;
    margin: 0 auto 80px;
    text-align: center;
}

.insight-quote p {
    font-size: 28px;
    line-height: 1.6;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}

.insight-quote p::before {
    content: '"';
    font-size: 80px;
    color: #e91e63;
    position: absolute;
    left: -40px;
    top: -20px;
    font-family: Georgia, serif;
}

.audience-label {
    text-align: center;
    margin-bottom: 50px;
}

.audience-label p {
    font-size: 20px;
    font-weight: 600;
    color: #e91e63;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto 80px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(233, 30, 99, 0.1);
    border-radius: 8px;
    border: 2px solid rgba(233, 30, 99, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #e91e63;
    background: rgba(233, 30, 99, 0.15);
}

.stat-number {
    font-size: 72px;
    font-weight: 700;
    color: #e91e63;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.stat-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.insight-sources {
    max-width: 900px;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.insight-sources p {
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.service-number {
    font-size: 14px;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.6;
}

/* Why Us Section */
.why-us {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.why-us .section-label {
    color: var(--secondary-color);
    opacity: 0.6;
}

.why-us h2 {
    color: var(--secondary-color);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-top: 60px;
}

.why-item h3 {
    font-size: 20px;
    margin-bottom: 16px;
    font-weight: 600;
}

.why-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.contact-content {
    max-width: 700px;
}

.contact h2 {
    margin-bottom: 24px;
}

.contact p {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-info {
    margin-top: 40px;
}

.contact-link {
    font-size: 28px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Footer */
.footer {
    background-color: var(--light-gray);
    padding: 60px 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p,
.footer-right p {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 10px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.5;
    }
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 16px 20px;
    }

    .nav-menu {
        gap: 20px;
        font-size: 12px;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .rotating-text-wrapper {
        height: 60px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rotating-text {
        width: 100%;
    }

    .rotating-word {
        font-size: 40px;
        line-height: 60px;
        height: 60px;
        width: 100%;
    }

    .static-text-above {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .testimonial-quote {
        font-size: 24px;
    }

    .testimonials-wrapper {
        min-height: 150px;
    }

    .comparison-table {
        grid-template-columns: 1fr;
    }

    .ascolta-column {
        border-right: none;
        border-bottom: 2px solid #333;
    }

    .comparison-header {
        font-size: 28px;
        padding: 30px 20px;
    }

    .comparison-item {
        padding: 25px 20px;
        font-size: 18px;
    }

    .comparison-row {
        min-height: 100px;
    }

    .item-icon {
        width: 28px;
        height: 28px;
    }

    .benefits-scroll {
        padding: 100px 20px;
        min-height: 150vh;
    }

    .problem-statement p,
    .solution-statement p {
        font-size: 22px;
    }

    .fade-container {
        min-height: 200px;
        margin-bottom: 60px;
    }

    .benefits-header h2 {
        font-size: 32px;
    }

    .benefit-text {
        font-size: 36px;
    }

    .connection-svg {
        max-width: 90%;
        height: 200px;
    }

    .shield-svg {
        width: 100px;
        height: 120px;
    }

    .benefit-item {
        margin: 100px 0;
    }

    .testimonials-ticker {
        padding: 15px 0;
    }

    .ticker-quote {
        font-size: 16px;
    }

    .ticker-separator {
        font-size: 16px;
    }

    .case-studies {
        padding: 80px 20px;
    }

    .case-studies h2 {
        font-size: 40px;
    }

    .case-studies-list {
        gap: 60px;
    }

    .case-study-content h3 {
        font-size: 24px;
    }

    .case-study-content p {
        font-size: 16px;
    }

    .insights {
        padding: 80px 20px;
    }

    .insights h2 {
        font-size: 40px;
    }

    .insight-quote p {
        font-size: 20px;
    }

    .insight-quote p::before {
        font-size: 50px;
        left: -20px;
        top: -10px;
    }

    .audience-label p {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stat-number {
        font-size: 56px;
    }

    .stat-label {
        font-size: 20px;
    }

    .insight-sources p {
        font-size: 10px;
    }

    .section {
        padding: 80px 20px;
    }

    .section h2 {
        font-size: 36px;
    }

    .large-text {
        font-size: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .contact-link {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 14px;
    }

    .nav-menu {
        display: none;
    }

    .rotating-text-wrapper {
        height: 50px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rotating-text {
        width: 100%;
    }

    .rotating-word {
        font-size: 32px;
        line-height: 50px;
        height: 50px;
        width: 100%;
    }

    .static-text-above {
        font-size: 28px;
    }

    .testimonial-quote {
        font-size: 20px;
    }

    .testimonial-slide {
        padding: 0 20px;
    }

    .comparison-header {
        font-size: 24px;
        padding: 25px 15px;
    }

    .comparison-item {
        padding: 20px 15px;
        font-size: 16px;
        gap: 15px;
    }

    .item-icon {
        width: 24px;
        height: 24px;
    }

    .insights h2 {
        font-size: 32px;
    }

    .insight-quote p {
        font-size: 18px;
        padding: 0 10px;
    }

    .insight-quote p::before {
        font-size: 40px;
        left: -10px;
    }

    .stat-number {
        font-size: 48px;
    }

    .stat-card {
        padding: 30px 15px;
    }

    .section h2 {
        font-size: 28px;
    }
}