/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #666666;
    --accent-cyan: #00F0FF;
    --accent-green: #2ED573;
    --border-color: #222222;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    --font-secondary: 'Poppins', -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Improve font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    /* Supporto safe-area per iPhone X+ */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    /* Prevent layout shift */
    min-height: 100vh;
    /* Improve scrolling performance */
    will-change: scroll-position;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    padding: 24px 0;
    /* Safe area per iPhone X+ */
    padding-top: max(24px, env(safe-area-inset-top));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
}

/* Logo animation on page load */
@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoLineDraw {
    0% {
        transform: scaleX(0);
        transform-origin: left;
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: scaleX(1);
        transform-origin: left;
        opacity: 1;
    }
}

.logo-text {
    font-family: var(--font-secondary);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #00F0FF 0%, #2ED573 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1;
    position: relative;
}

.logo:hover .logo-text {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 16px rgba(0, 240, 255, 0.5));
}

.logo-line {
    width: 140px;
    height: 3px;
    background: linear-gradient(90deg, #00F0FF 0%, #2ED573 100%);
    display: block;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoLineDraw 1s cubic-bezier(0.33, 1, 0.68, 1) forwards;
    animation-delay: 0.5s;
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0;
}

.footer-logo-modern .logo-text {
    font-size: 28px;
}

.footer-logo-modern .logo-line {
    width: 120px;
    height: 3px;
    opacity: 0.75;
}

.footer-logo-modern .logo:hover .logo-text {
    transform: scale(1.05);
    filter: drop-shadow(0 3px 12px rgba(0, 240, 255, 0.4));
}

.nav {
    display: flex;
    gap: 48px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-cyan);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-link:active {
    transform: translateY(0);
}

.nav-link:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 4px;
    border-radius: 4px;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px;
    border: 1px solid var(--accent-cyan);
    border-radius: 30px;
    color: var(--accent-cyan);
    background: transparent;
}

.nav-cta::before {
    display: none;
}

.nav-cta:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 240, 255, 0.3);
}

.nav-cta:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.2);
}

.nav-cta:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 4px;
    border-radius: 30px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
}

.hero-canvas canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 160px 40px 80px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 80px;
    align-items: center;
}

.hero-number {
    font-family: var(--font-secondary);
    font-size: 200px;
    font-weight: 800;
    color: rgba(0, 240, 255, 0.08);
    line-height: 1;
    letter-spacing: -10px;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.hero-main {
    max-width: 900px;
}

.hero-title {
    margin-bottom: 32px;
    position: relative;
}

.title-word {
    display: block;
    font-family: var(--font-secondary);
    font-size: clamp(64px, 12vw, 120px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -4px;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(50px);
    animation: wordReveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.word-1 {
    animation-delay: 0.1s;
}

.word-2 {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.3s;
}

.word-3 {
    animation-delay: 0.5s;
}

.word-4 {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.7s;
}

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-line {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), transparent);
    margin: 32px 0;
    opacity: 0;
    animation: lineReveal 1s ease 1s forwards;
}

@keyframes lineReveal {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 120px;
        opacity: 1;
    }
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 28px);
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: -0.5px;
    max-width: 600px;
    opacity: 0;
    animation: fadeIn 1s ease 0.9s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Enhanced Scroll Animations */
.step-modern,
.service-modern,
.result-modern,
.audience-modern,
.section-header-custom {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-modern.visible,
.service-modern.visible,
.result-modern.visible,
.audience-modern.visible,
.section-header-custom.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section animations */
section:not(.hero) {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

section.section-visible {
    opacity: 1;
}

/* Translation transition */
[data-translate].translate-fade-out {
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

[data-translate].translate-fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-translate] {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .step-modern,
    .service-modern,
    .result-modern,
    .audience-modern,
    .section-header-custom,
    section:not(.hero) {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: flex-end;
}

.stat-item {
    text-align: right;
}

.stat-number {
    font-family: var(--font-secondary);
    font-size: 64px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -2px;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: transparent;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 50px;
    border: 2px solid var(--accent-cyan);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent-cyan);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: var(--bg-primary);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 240, 255, 0.25);
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.2);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 4px;
    border-radius: 50px;
}

/* Section Styles */
section {
    padding: 120px 0;
    position: relative;
}

.section-number {
    position: absolute;
    left: 40px;
    top: 120px;
    font-family: var(--font-secondary);
    font-size: 180px;
    font-weight: 800;
    color: rgba(0, 240, 255, 0.05);
    line-height: 1;
    letter-spacing: -8px;
    z-index: 0;
    pointer-events: none;
}

.section-header-custom {
    margin-bottom: 100px;
    max-width: 800px;
}

.section-title-large {
    font-family: var(--font-secondary);
    font-size: clamp(56px, 8vw, 96px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -3px;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.section-intro {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: -0.3px;
}

/* How It Works */
.how-it-works {
    background: var(--bg-secondary);
    position: relative;
}

.process-visual {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
}

.process-line-container {
    position: sticky;
    top: 150px;
    height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.process-line-svg {
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.process-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: pathDraw 3s ease forwards;
}

@keyframes pathDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 120px;
    padding: 40px 0;
}

.step-modern {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-modern.visible {
    opacity: 1;
    transform: translateX(0);
}

.step-node-modern {
    position: sticky;
    top: 200px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-inner {
    width: 16px;
    height: 16px;
    background: var(--accent-cyan);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
    transition: all 0.4s ease;
}

.node-ripple {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    opacity: 0.3;
    animation: ripple 3s ease-in-out infinite;
}

@keyframes ripple {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.step-modern:hover .node-inner {
    width: 20px;
    height: 20px;
    background: var(--accent-green);
    box-shadow: 0 0 40px rgba(46, 213, 115, 0.8);
}

.step-modern[data-step="2"] .node-inner {
    background: var(--accent-green);
    box-shadow: 0 0 30px rgba(46, 213, 115, 0.6);
}

.step-modern[data-step="2"]:hover .node-inner {
    background: var(--accent-cyan);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.8);
}

.step-content-modern {
    padding-top: 20px;
}

.step-number-modern {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0.6;
}

.step-title-modern {
    font-family: var(--font-secondary);
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1.1;
}

.step-text-modern {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
    max-width: 600px;
}

/* Services */
.services {
    position: relative;
}

.services-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 32px;
    max-width: 1300px;
    margin: 0 auto;
}

.service-modern {
    padding: 60px 50px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
}

.service-modern.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.03), rgba(46, 213, 115, 0.03));
    opacity: 0;
    transition: opacity 0.6s ease;
}

.service-modern:hover::before {
    opacity: 1;
}

.service-number-large {
    position: absolute;
    top: 40px;
    right: 40px;
    font-family: var(--font-secondary);
    font-size: 120px;
    font-weight: 800;
    color: rgba(0, 240, 255, 0.08);
    line-height: 1;
    letter-spacing: -4px;
    transition: all 0.4s ease;
}

.service-modern:hover .service-number-large {
    color: rgba(0, 240, 255, 0.15);
    transform: scale(1.1);
}

.service-modern:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
}

.service-modern:nth-child(2) {
    grid-column: 3;
    grid-row: 1 / 3;
}

.service-modern:nth-child(3) {
    grid-column: 1;
    grid-row: 2 / 4;
}

.service-modern:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

.service-modern:nth-child(5) {
    grid-column: 2 / 4;
    grid-row: 3;
}

.service-title-modern {
    font-family: var(--font-secondary);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.service-text-modern {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.service-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-modern:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.15);
}

.service-modern:active {
    transform: translateY(-6px) scale(1.01);
}

.service-modern:hover .service-line {
    width: 100%;
}

.service-modern:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 4px;
    border-radius: 20px;
}

/* For Who */
.for-who {
    background: var(--bg-secondary);
    position: relative;
}

.audience-slider {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.audience-slider-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.audience-modern {
    padding: 60px 50px;
    background: var(--bg-tertiary);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.audience-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(0, 240, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.audience-modern.active::before,
.audience-modern:hover::before {
    opacity: 1;
}

.audience-marker {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    border: 2px solid var(--border-color);
    transition: all 0.4s ease;
}

.audience-modern.active .audience-marker,
.audience-modern:hover .audience-marker {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
    transform: scale(1.3);
}

.audience-modern[data-audience="2"].active .audience-marker,
.audience-modern[data-audience="2"]:hover .audience-marker {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

.audience-modern.active,
.audience-modern:hover {
    border-color: rgba(0, 240, 255, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 240, 255, 0.2);
}

.audience-title-modern {
    font-family: var(--font-secondary);
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    position: relative;
    z-index: 1;
}

.audience-text-modern {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.audience-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.audience-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.audience-btn.active,
.audience-btn:hover {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

/* Results */
.results {
    position: relative;
}

.results-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.result-modern {
    padding: 50px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
}

.result-modern.visible {
    opacity: 1;
    transform: translateY(0);
}

.result-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(46, 213, 115, 0.05));
    opacity: 0;
    transition: opacity 0.6s ease;
}

.result-modern:hover::before {
    opacity: 1;
}

.result-modern:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.2);
}

.result-visual {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.result-circle {
    position: relative;
    width: 180px;
    height: 180px;
}

.result-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.chart-progress {
    stroke-dasharray: 251;
    stroke-dashoffset: 251;
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-modern.visible .chart-progress {
    stroke-dashoffset: 0;
}

.result-modern[data-result="1"] .chart-progress {
    stroke-dashoffset: 50; /* 80% */
}

.result-modern[data-result="2"] .chart-progress {
    stroke-dashoffset: 0; /* 100% */
}

.result-modern[data-result="3"] .chart-progress {
    stroke-dashoffset: 100; /* 60% */
}

.result-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-secondary);
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.result-content {
    position: relative;
    z-index: 1;
}

.result-category {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.result-title-modern {
    font-family: var(--font-secondary);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.result-text-modern {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 140px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.cta-title-large {
    font-family: var(--font-secondary);
    font-size: clamp(48px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.cta-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-weight: 300;
}

/* Contact */
.contact {
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contact-info-modern {
    position: sticky;
    top: 150px;
}

.contact-intro-modern {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 48px;
    letter-spacing: -0.3px;
}

.contact-detail-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-label-modern {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-value-modern {
    font-size: 24px;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-value-modern:hover {
    color: var(--accent-green);
}

.contact-form-modern {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group-modern label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-group-modern input,
.form-group-modern textarea {
    padding: 18px 24px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    font-weight: 400;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
}

.form-group-modern input:focus,
.form-group-modern textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.1);
    background: var(--bg-tertiary);
}

.form-group-modern textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.form-error {
    font-size: 13px;
    color: #ff4444;
    display: none;
    margin-top: 4px;
}

.form-error.show {
    display: block;
}

.btn-submit {
    align-self: flex-start;
    margin-top: 8px;
    min-height: 44px;
    min-width: 120px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.form-success {
    padding: 20px;
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid var(--accent-green);
    border-radius: 12px;
    color: var(--accent-green);
    font-size: 16px;
    text-align: center;
    font-weight: 500;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

/* Form Loading State */
.btn-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    right: 24px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 60px 40px;
    padding-bottom: max(60px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo-modern .logo {
    display: inline-block;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.footer-text-modern {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-number {
        display: none;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: flex-start;
        gap: 40px;
    }

    .process-visual {
        grid-template-columns: 80px 1fr;
        gap: 60px;
    }

    .services-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .service-modern:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }

    .results-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-info-modern {
        position: static;
    }
}

@media (max-width: 768px) {
    .container,
    .header-inner {
        padding: 0 24px;
    }

    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 40px 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        transition: left 0.3s ease;
        gap: 32px;
    }

    .nav.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .header {
        padding: 20px 0;
        padding-top: max(20px, env(safe-area-inset-top));
    }

    .nav {
        top: calc(80px + env(safe-area-inset-top));
        height: calc(100vh - 80px - env(safe-area-inset-top));
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        padding-bottom: max(40px, env(safe-area-inset-bottom));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
    }

    .nav-link {
        font-size: 18px;
        padding: 18px 20px;
        min-height: 56px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.02);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
    }

    .nav-link:active {
        background: rgba(255, 255, 255, 0.05);
        transform: scale(0.98);
    }

    .nav-cta {
        margin-top: 12px;
        text-align: center;
        justify-content: center;
    }

    .hero {
        min-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }

    .hero-content-wrapper {
        padding: calc(140px + env(safe-area-inset-top)) 24px 60px;
        padding-bottom: max(60px, env(safe-area-inset-bottom));
        gap: 48px;
    }

    .hero-title {
        margin-bottom: 24px;
    }

    .title-word {
        line-height: 1.1;
        letter-spacing: -3px;
        margin-bottom: 4px;
    }

    .hero-subtitle {
        font-size: clamp(18px, 4vw, 24px);
        line-height: 1.7;
        margin-bottom: 40px;
        max-width: 100%;
    }

    .hero-line {
        margin: 24px 0;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 32px;
        width: 100%;
    }

    .stat-item {
        text-align: left;
        flex: 1;
        min-width: 120px;
    }

    .stat-number {
        font-size: clamp(40px, 8vw, 56px);
    }

    .stat-label {
        font-size: 11px;
        margin-top: 4px;
    }

    .section-number {
        left: 24px;
        font-size: 120px;
    }

    .process-visual {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .process-line-container {
        display: none;
    }

    .step-modern {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .step-node-modern {
        position: static;
        justify-self: center;
    }

    .steps-container {
        gap: 80px;
    }

    .services-mosaic,
    .results-showcase {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-modern,
    .result-modern {
        padding: 36px 28px;
        transition: transform 0.2s ease;
    }

    .service-modern:active,
    .result-modern:active {
        transform: scale(0.98);
    }

    .audience-slider-track {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .audience-modern {
        padding: 36px 28px;
    }

    .section-title-large {
        font-size: clamp(44px, 9vw, 64px);
        line-height: 1.15;
        margin-bottom: 24px;
    }

    .section-intro {
        font-size: clamp(16px, 4vw, 20px);
        line-height: 1.7;
    }

    section {
        padding: 70px 0;
    }

    .steps-container {
        gap: 50px;
    }

    .step-modern {
        padding: 36px 28px;
    }

    .step-text-modern {
        font-size: 16px;
        line-height: 1.7;
    }

    .service-text-modern,
    .result-text-modern,
    .audience-text-modern {
        font-size: 15px;
        line-height: 1.7;
    }

    .contact-grid {
        gap: 40px;
    }

    .contact-info-modern {
        font-size: 16px;
        line-height: 1.7;
    }

    .form-group-modern input,
    .form-group-modern textarea {
        font-size: 16px;
        padding: 16px 20px;
        min-height: 52px;
    }

    .form-group-modern textarea {
        min-height: 140px;
    }

    .footer-content-modern {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container,
    .header-inner {
        padding: 0 20px;
    }

    .header {
        padding: 16px 0;
        padding-top: max(16px, env(safe-area-inset-top));
    }

    .section-number {
        font-size: 80px;
        left: 20px;
        opacity: 0.25;
    }

    .service-modern,
    .result-modern,
    .audience-modern {
        padding: 28px 20px;
    }

    .step-title-modern {
        font-size: 28px;
        line-height: 1.2;
    }

    .service-title-modern {
        font-size: 22px;
        line-height: 1.3;
    }

    .audience-title-modern {
        font-size: 26px;
        line-height: 1.2;
    }

    .hero-content-wrapper {
        padding: calc(120px + env(safe-area-inset-top)) 20px 50px;
        padding-bottom: max(50px, env(safe-area-inset-bottom));
        gap: 40px;
    }

    .hero-title {
        margin-bottom: 20px;
    }

    .hero-title .title-word {
        font-size: clamp(36px, 14vw, 72px);
        letter-spacing: -2px;
        line-height: 1.05;
        margin-bottom: 2px;
    }

    .hero-subtitle {
        font-size: clamp(16px, 4.5vw, 20px);
        line-height: 1.8;
        margin-bottom: 36px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: clamp(36px, 9vw, 48px);
    }

    .btn-primary {
        padding: 18px 28px;
        font-size: 16px;
        min-height: 52px;
        width: 100%;
        justify-content: center;
        letter-spacing: 0.5px;
    }

    .nav {
        padding: 50px 20px 30px;
        padding-bottom: max(30px, env(safe-area-inset-bottom));
        gap: 6px;
    }

    .nav-link {
        font-size: 17px;
        padding: 20px 18px;
        min-height: 60px;
    }

    section {
        padding: 60px 0;
        padding-top: max(60px, env(safe-area-inset-top));
        padding-bottom: max(60px, env(safe-area-inset-bottom));
    }

    .section-title-large {
        font-size: clamp(40px, 10vw, 56px);
        line-height: 1.1;
        margin-bottom: 20px;
    }

    .section-intro {
        font-size: clamp(15px, 4vw, 18px);
        line-height: 1.7;
    }

    .logo-text {
        font-size: 28px;
    }
    
    .logo-line {
        width: 120px;
        height: 3px;
    }
    
    .footer-logo-modern .logo-text {
        font-size: 24px;
    }
    
    .footer-logo-modern .logo-line {
        width: 100px;
        height: 3px;
    }

    .footer {
        padding: 40px 20px;
        padding-bottom: max(40px, env(safe-area-inset-bottom));
    }
    
    .cookie-banner {
        padding: 20px 24px;
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .cookie-text {
        font-size: 13px;
        width: 100%;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 14px 24px;
        min-height: 48px;
    }

    /* Ottimizza canvas per mobile */
    .hero-canvas {
        opacity: 0.5;
    }

    /* Riduci animazioni su mobile per performance */
    @media (prefers-reduced-motion: no-preference) {
        .title-word,
        .hero-subtitle,
        .hero-line,
        .btn-primary {
            animation-duration: 0.8s;
        }
    }

    /* Disabilita animazioni se l'utente preferisce movimento ridotto */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Cookie Consent Banner - Elegant Design */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.98), rgba(26, 26, 26, 0.98));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    padding: 24px 40px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 10000;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cookie-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    font-weight: 400;
}

.cookie-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-primary);
    letter-spacing: 0.3px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
}

.cookie-accept {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
    color: var(--bg-primary);
    box-shadow: 0 4px 16px rgba(0, 240, 255, 0.3);
}

.cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 240, 255, 0.4);
    filter: brightness(1.1);
}

.cookie-accept:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 240, 255, 0.3);
}

.cookie-decline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-decline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.cookie-decline:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.03);
}

.cookie-btn:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
    border-radius: 8px;
}

/* Back to Top Button - Elegant Design */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
    border: none;
    border-radius: 50%;
    color: var(--bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
    overflow: hidden;
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.back-to-top:hover::before {
    opacity: 1;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.5);
}

.back-to-top:active {
    transform: translateY(-4px) scale(1.02);
}

.back-to-top:focus-visible {
    outline: 3px solid var(--accent-green);
    outline-offset: 4px;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.back-to-top:hover svg {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 30px;
        right: 30px;
        width: 52px;
        height: 52px;
    }
    
    .back-to-top svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 24px;
    padding: 4px;
    background: var(--bg-tertiary);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lang-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-primary);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 32px;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
    color: var(--bg-primary);
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.3);
    transform: scale(1.05);
}

.lang-btn:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .lang-selector {
        margin-left: 16px;
        gap: 6px;
        padding: 3px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-height: 28px;
    }
}