/* CSS Reset & Variables (Light Mode Pivot) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Light/Clean/Professional */
    --bg-main: #f8fafc;
    --bg-alt: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-soft: #e2e8f0;

    /* System Accents */
    --accent-indigo: #4f46e5;
    --accent-teal: #0d9488;
    --accent-purple: #9333ea;
    --accent-orange: #ea580c;

    /* Platform Brands */
    --brand-google: #4285F4;
    --brand-meta: #0668E1;
    --brand-tiktok: #000000;
    --brand-tiktok-cyan: #25F4EE;
    --brand-tiktok-red: #FE2C55;

    /* Shadows & Frosts */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --frost-bg: rgba(255, 255, 255, 0.85);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
.logo,
.badge {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Background Mesh Textures */
.light-bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 0.02) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 0.02) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 0.02) 0, transparent 50%);
    background-color: var(--bg-main);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

.text-indigo {
    color: var(--accent-indigo);
}

.text-teal {
    color: var(--accent-teal);
}

.text-purple {
    color: var(--accent-purple);
}

.text-google {
    color: var(--brand-google);
}

.text-meta {
    color: var(--brand-meta);
}

.text-tiktok {
    color: var(--brand-tiktok);
}

.text-muted {
    color: var(--text-muted);
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-md {
    font-size: 1.1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 4rem;
}

.pt-4 {
    padding-top: 2rem;
}

.p-3 {
    padding: 1.5rem;
}

.p-4 {
    padding: 2rem;
}

.max-w-800 {
    max-width: 800px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.bg-light-alt {
    background-color: var(--bg-alt);
}

.bg-white {
    background-color: #ffffff;
}

.bg-gray {
    background-color: #f1f5f9;
}

.border-top {
    border-top: 1px solid var(--border-soft);
}

/* Glass & Shadows */
.frost-glass {
    background: var(--frost-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.frost-card {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    overflow: hidden;
}

.card-shadow {
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-shadow:hover {
    box-shadow: var(--shadow-hover);
}

/* Buttons & Badges */
.badge {
    display: inline-block;
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.badge-primary {
    background: rgba(79, 70, 229, 0.1);
    color: var(--accent-indigo);
}

.badge-secondary {
    background: rgba(147, 51, 234, 0.1);
    color: var(--accent-purple);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-indigo);
    color: #ffffff;
    border: 1px solid var(--accent-indigo);
}

.btn-primary:hover {
    background-color: #4338ca;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-soft);
}

.btn-outline:hover {
    background-color: var(--bg-main);
    border-color: var(--text-muted);
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    z-index: 100;
    border-bottom: 1px solid var(--border-soft);
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.accent-tag {
    font-size: 0.75rem;
    background: var(--text-dark);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin-left: auto;
    margin-right: 3rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

/* User Profile Navbar */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-left: 2rem;
    border-left: 1px solid var(--border-soft);
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
}

.profile-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Sections */
.section {
    padding: 6rem 0;
    min-height: auto;
}

.section-title {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-dark);
    line-height: 1.1;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* Hero */
.hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.05;
    margin: 1rem 0;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.workflow-diagram {
    padding: 3rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.wf-step,
.wf-core {
    background: #ffffff;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-family: 'Outfit';
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
    text-align: center;
    width: 100%;
}

.wf-core {
    background: var(--text-dark);
    color: #ffffff;
    border: none;
    font-size: 1.2rem;
}

.wf-arrow {
    font-size: 2rem;
    color: var(--text-muted);
    line-height: 0.5;
}

.wf-results {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.asset-pill {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.asset-pill.google {
    background: var(--brand-google);
}

.asset-pill.meta {
    background: var(--brand-meta);
}

.asset-pill.tiktok {
    background: var(--brand-tiktok);
}


/* Il Processo (Steps) */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    padding: 2.5rem;
    position: relative;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--border-soft);
    font-family: 'Outfit';
    margin-bottom: 1rem;
    line-height: 1;
}

.highlight-border-indigo {
    border: 2px solid var(--accent-indigo);
}

/* MCP Diagram */
.mcp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mcp-feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.mcp-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.mcp-feature .icon {
    font-size: 1.8rem;
    line-height: 1;
}

.mcp-feature strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.2rem;
}

.mcp-diagrap-flow {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.mcp-visual {
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
}

.node {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    margin: 0.5rem 0;
    font-family: monospace;
}

.node.ai-node {
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid var(--accent-teal);
    color: var(--accent-teal);
}

.node.platform-node {
    color: white;
}

.node.action-node {
    background: var(--text-dark);
    color: white;
    border: 1px solid var(--border-soft);
}

.google-bg {
    background: var(--brand-google);
    border: none;
}

.connector {
    font-family: monospace;
}

/* Platforms specifically */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.platform-card {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
}

.border-google {
    border-top: 4px solid var(--brand-google);
}

.border-meta {
    border-top: 4px solid var(--brand-meta);
}

.border-tiktok {
    border-top: 4px solid var(--brand-tiktok);
}

.platform-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.platform-header h3 {
    font-size: 1.8rem;
}

.platform-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 800;
    color: white;
    font-size: 1.2rem;
}

.border-google .platform-icon {
    background: var(--brand-google);
}

.border-meta .platform-icon {
    background: var(--brand-meta);
}

.border-tiktok .platform-icon {
    background: var(--brand-tiktok);
}

.platform-desc {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.platform-features {
    list-style: none;
    flex-grow: 1;
}

.platform-features li {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.platform-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.5rem;
}

.border-google .platform-features li::before {
    color: var(--brand-google);
}

.border-meta .platform-features li::before {
    color: var(--brand-meta);
}

.border-tiktok .platform-features li::before {
    color: var(--brand-tiktok);
}


/* Video Workflow Valentina */
.val-steps-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v-step {
    text-align: center;
    flex: 1;
    padding: 1rem;
}

.v-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    font-family: monospace;
}

.v-divider {
    font-size: 2rem;
    color: var(--border-soft);
}

.highlight-step {
    background: rgba(147, 51, 234, 0.05);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 8px;
}

/* Customer Journey (Una Giornata Tipo) */
.journey-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.journey-step {
    display: flex;
    flex-direction: row;
    position: relative;
    padding: 0;
    overflow: visible;
}

.step-time {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    font-weight: 800;
    color: white;
    font-family: 'Outfit', sans-serif;
    border-radius: 12px 0 0 12px;
}

.bg-indigo {
    background: var(--accent-indigo);
}

.bg-meta {
    background: var(--brand-meta);
}

.bg-google {
    background: var(--brand-google);
}

.journey-content {
    padding: 2rem;
    flex: 1;
}

/* Telegram Mockup */
.telegram-mock {
    background: #eef2f5;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.95rem;
    border: 1px solid var(--border-soft);
}

.tg-message {
    padding: 1rem 1.2rem;
    border-radius: 16px;
    max-width: 85%;
    line-height: 1.5;
}

.tg-message strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.tg-message.bot {
    align-self: flex-start;
    background: #ffffff;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tg-message.user {
    align-self: flex-end;
    background: #e1ffc7;
    border-bottom-right-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.video-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.video-asset-card {
    border-radius: 12px;
    overflow: hidden;
}

.video-mockup {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border-soft);
}

.highlight-border-purple {
    border: 2px solid var(--accent-purple);
    border-bottom: none;
    background: #faf5ff;
}

.video-placeholder-container {
    text-align: center;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 50%;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    padding-left: 5px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.play-btn:hover {
    transform: scale(1.1);
}

/* References Grid */
.refs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.ref-item {
    display: flex;
    padding: 2rem;
    gap: 1.5rem;
    border-radius: 12px;
    background: #ffffff;
    text-decoration: none;
    align-items: flex-start;
}

.highlight-hover:hover {
    transform: translateY(-3px);
}

.ref-icon-wrapper {
    font-size: 2.5rem;
    line-height: 1;
}

.ref-content h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.ref-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.ref-pill {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ref-pill.teal {
    background: rgba(13, 148, 136, 0.1);
    color: var(--accent-teal);
}

.ref-pill.google {
    background: rgba(66, 133, 244, 0.1);
    color: var(--brand-google);
}

.ref-pill.meta {
    background: rgba(6, 104, 225, 0.1);
    color: var(--brand-meta);
}

.ref-pill.orange {
    background: rgba(234, 88, 12, 0.1);
    color: var(--accent-orange);
}

.ref-pill.indigo {
    background: rgba(79, 70, 229, 0.1);
    color: var(--accent-indigo);
}

.ref-pill.tiktok {
    background: rgba(0, 0, 0, 0.05);
    color: var(--brand-tiktok);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 1000px) {

    .hero-grid,
    .mcp-layout,
    .refs-grid {
        grid-template-columns: 1fr;
    }

    .process-steps,
    .platforms-grid,
    .video-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 6rem;
        text-align: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

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

    .val-steps-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .v-divider {
        display: none;
    }
}