/* Clarity Page Styles - LLM Optimization Service */
/* codice realizzato da Alessandro Terracciano - per info info@whooho.it */

/* Hero Section */
.clarity-hero {
    background: #000;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.clarity-hero shader-art {
    display: block;
    width: 100%;
    height: 100%;
}

.clarity-hero .hero-content {
    position: relative;
    z-index: 10;
}

.clarity-payoff {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #FFC700, #FF8A00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.clarity-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    max-width: 700px;
}

/* Demo Banner CTA */
.demo-cta-banner {
    padding: 40px 40px;
    background: #f8f9fa;
}

.demo-cta-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 30px 40px;
}

.demo-cta-title {
    font-size: 1.5rem;
    color: #111;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.demo-cta-description {
    font-size: 1rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

.demo-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #111;
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.demo-cta-btn:hover {
    background: #FFC700;
    color: #111;
    transform: translateX(5px);
}

/* Container base */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* LLM Network Diagram Section */
.llm-network-section {
    padding: 100px 40px;
    background: #f8f9fa;
}

.llm-network-diagram {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 800px;
    margin: 80px auto 60px;
}

/* SVG Connections */
.network-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.connection-line {
    stroke: #FFC700;
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 8 4;
    stroke-linecap: round;
    opacity: 0.6;
    animation: dashFlow 1.5s linear infinite;
}

@keyframes dashFlow {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: 12;
    }
}

/* Network Nodes */
.network-node {
    position: absolute;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.network-node:hover {
    transform: scale(1.1);
    z-index: 10;
}

/* Nodo Centrale */
.center-node {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.center-node .node-inner {
    background: #FFC700;
    border: none;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 40px rgba(255, 199, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 60px rgba(255, 199, 0, 0.9);
    }
}

.center-node .node-icon {
    font-size: 3rem;
    color: #111;
    margin-bottom: 10px;
}

.center-node .node-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.center-node .node-status {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.7);
    font-style: italic;
}

/* Nodi LLM */
.llm-node .node-inner {
    background: #fff;
    border: 3px solid #111;
    border-radius: 20px;
    padding: 30px 25px;
    min-width: 180px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.llm-node:hover .node-inner {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.llm-node .node-icon {
    font-size: 2rem;
    color: #111;
    margin-bottom: 12px;
}

.llm-node .node-label {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 12px;
}

/* Score Badges */
.score-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.score-high {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.score-medium {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.score-low {
    background: linear-gradient(135deg, #f44336, #c62828);
}

/* Posizionamento nodi - Layout orizzontale */
/* Centro */
.center-node {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Nodi LLM (Destra) */
.chatgpt-node {
    left: 80%;
    top: 20%;
    transform: translateX(-50%);
}

.claude-node {
    left: 85%;
    top: 35%;
    transform: translateX(-50%);
}

.gemini-node {
    left: 85%;
    top: 50%;
    transform: translateX(-50%);
}

.perplexity-node {
    left: 85%;
    top: 65%;
    transform: translateX(-50%);
}

.grok-node {
    left: 80%;
    top: 80%;
    transform: translateX(-50%);
}

/* Nodi SEO/Audit (Sinistra) */
.google-node {
    left: 20%;
    top: 20%;
    transform: translateX(-50%);
}

.bing-node {
    left: 15%;
    top: 35%;
    transform: translateX(-50%);
}

.backlinks-node {
    left: 15%;
    top: 50%;
    transform: translateX(-50%);
}

.technical-node {
    left: 15%;
    top: 65%;
    transform: translateX(-50%);
}

.content-node {
    left: 20%;
    top: 80%;
    transform: translateX(-50%);
}

/* Stili nodi SEO */
.seo-node .node-inner {
    background: #fff;
    border: 3px solid #4CAF50;
    border-radius: 20px;
    padding: 30px 25px;
    min-width: 180px;
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.2);
}

/* Animazioni float diverse per ciascun nodo */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.llm-node:nth-child(2) {
    animation-delay: 0.5s;
}

.llm-node:nth-child(3) {
    animation-delay: 1s;
}

.llm-node:nth-child(4) {
    animation-delay: 1.5s;
}

.llm-node:nth-child(5) {
    animation-delay: 2s;
}

.llm-node:nth-child(6) {
    animation-delay: 2.5s;
}

/* Score Legend */
.score-legend {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 30px;
    height: 30px;
    border-radius: 6px;
}

.legend-item span {
    font-size: 0.95rem;
    color: #444;
    font-weight: 500;
}

/* Benefits Grid (per sezione strategie) */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 35px 25px;
    transition: all 0.3s ease;
    position: relative;
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: rgba(255, 199, 0, 0.3);
}

.benefit-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FFC700, #FF8A00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 15px;
}

.benefit-card h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin: 0;
}

/* Carousel Card Consigli */
.tips-carousel {
    display: flex;
    animation: scroll-left 50s linear infinite;
    will-change: transform;
}

.tips-carousel:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.tip-card {
    flex-shrink: 0;
    min-width: 280px !important;
    margin-right: 20px !important;
    padding: 25px 20px !important;
    border: 2px solid #111 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
    border-color: #FFC700 !important;
}

/* Infografica Clarity Minimal */
.clarity-infographic {
    display: grid;
    gap: 40px;
    align-items: start;
    position: relative;
    z-index: 1;
    /* LAYOUT VERTICALE PER TUTTI I VIEWPORT */
    grid-template-columns: 1fr;
    grid-template-areas:
        "center"
        "seo"
        "llm";
}

/* Mobile First: Layout Verticale */
@media (max-width: 991px) {
    .clarity-infographic {
        grid-template-columns: 1fr;
        grid-template-areas:
            "center"
            "seo"
            "llm";
    }
    
    .clarity-center-box {
        grid-area: center;
    }
    
    .clarity-seo-section {
        grid-area: seo;
    }
    
    .clarity-llm-section {
        grid-area: llm;
    }
}

/* Desktop: Layout Orizzontale */
@media (min-width: 1200px) {
    .clarity-infographic {
        grid-template-columns: 1fr 1.5fr 1fr;
        grid-template-areas: "seo center llm";
        gap: 50px;
    }
    
    .clarity-center-box {
        grid-area: center;
    }
    
    .clarity-seo-section {
        grid-area: seo;
    }
    
    .clarity-llm-section {
        grid-area: llm;
    }
}

/* Box Centrale */
.clarity-center-box {
    background: linear-gradient(135deg, #FFC700, #FF8A00);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 50px rgba(255, 199, 0, 0.25);
    border: 3px solid #111;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.clarity-center-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(255, 199, 0, 0.35);
}

/* Mini Cards */
.clarity-mini-card {
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.clarity-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* Hero Section */
    .clarity-hero {
        min-height: 80vh;
    }
    
    .clarity-hero .hero-content {
        padding-top: 150px;
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .clarity-payoff {
        font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
        margin-bottom: 20px !important;
    }
    
    .clarity-description {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }
    
    /* Intro Section - Two Column to Single */
    .clarity-intro-section {
        padding: 60px 20px !important;
    }
    
    .intro-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .stats-column {
        order: 1;
    }
    
    .content-column {
        order: 2;
    }
    
    /* Stats Card Adjustments */
    .stats-column > div {
        padding: 40px 30px !important;
    }
    
    .stats-column [style*="position: absolute"] {
        position: static !important;
        margin-bottom: 20px;
    }
    
    /* Demo CTA */
    .demo-cta-content {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .demo-cta-banner {
        padding: 30px 20px;
    }
    
    /* Sections Padding */
    .llm-network-section,
    .tips-carousel-section {
        padding: 60px 20px !important;
    }
    
    /* 3 Fasi Grid */
    .clarity-phases {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        margin: 30px auto 0 !important;
    }
    
    /* Tips Carousel */
    .tip-card {
        min-width: 250px !important;
    }
    
    /* Benefits Grid */
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .score-legend {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    /* Hero Mobile */
    .clarity-hero {
        min-height: 70vh;
    }
    
    .clarity-hero .hero-content {
        padding-top: 120px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .page-title {
        font-size: 2.5rem !important;
    }
    
    .clarity-payoff {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
    }
    
    .clarity-description {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    
    /* Intro Section Mobile */
    .clarity-intro-section {
        padding: 40px 15px !important;
    }
    
    .intro-grid {
        gap: 30px !important;
    }
    
    .stats-column > div {
        padding: 30px 20px !important;
    }
    
    .stats-column [style*="font-size: 5rem"] {
        font-size: 3.5rem !important;
    }
    
    /* Sections */
    .llm-network-section,
    .tips-carousel-section {
        padding: 40px 15px !important;
    }
    
    /* LLM Logos */
    [style*="display: flex"][style*="gap: 25px"] img {
        width: 50px !important;
        height: 50px !important;
    }
    
    /* 3 Fasi */
    .clarity-phases {
        gap: 20px !important;
    }
    
    .clarity-phases h4 {
        font-size: 1.1rem !important;
    }
    
    .clarity-phases p {
        font-size: 0.9rem !important;
    }
    
    /* Tips Cards */
    .tip-card {
        min-width: 220px !important;
        padding: 20px 15px !important;
    }
    
    .tip-card h3 {
        font-size: 1.05rem !important;
    }
    
    .tip-card p {
        font-size: 0.9rem !important;
    }
}


