@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700&family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Libre+Bodoni:ital,wght@0,400..700;1,400..700&display=swap');

:root {
    --navy: #000000;            /* Deep dark space-navy */
    --accent: #305CDE;          /* Electric royal blue */
    --accent-dark: #1F47B6;     /* Deep blue for hover states */
    --accent-light: #6F8FE9;    /* Bright light blue for highlights/glow */
    --accent-glow: rgba(48, 92, 222, 0.08); /* Glow backdrops */
    
    --bg-main: #fafbfe;         /* Soft light gray with a touch of blue */
    --bg-card: rgba(255, 255, 255, 0.7); /* Translucent frosted glass card */
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-accent: #eef4ff;       /* Accent background for highlight panels */
    
    --text-primary: #000000;    /* Slate-900 equivalent but navy-tinted */
    --text-secondary: #222222;  /* Readable medium slate-gray */
    --text-muted: #555555;      /* Slate-500 */
    
    --border-color: rgba(48, 92, 222, 0.08);
    --border-color-hover: rgba(48, 92, 222, 0.2);
    --border-glass: rgba(255, 255, 255, 0.4);
    
    --max-width: 100%;
    
    --radius-xl: 32px;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-pill: 9999px;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', var(--font-sans);
    
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: clamp(14px, 0.22vw + 14.5px, 20px);
    line-height: 1.6;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(48, 92, 222, 0.15);
    border-radius: var(--radius-pill);
    border: 3px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 80px);
}

/* Floating Glass Navbar */
.header-wrap {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: none;
}

.navbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(var(--max-width) - 48px, 100% - 32px);
    margin: 0 auto;
    padding: 8px 12px 8px 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    box-shadow: 
        0 1px 2px rgba(14, 23, 44, 0.02),
        0 8px 32px rgba(14, 23, 44, 0.04);
    pointer-events: auto;
    transition: var(--transition-smooth);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--navy);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.brand span {
    font-family: "Bodoni 72 Smallcaps", "Bodoni 72", "Bodoni MT", "Bodoni Moda", "Libre Bodoni", serif;
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #000000;
    transition: var(--transition-smooth);
}

.brand:hover span {
    color: var(--accent);
}

.brand img {
    height: 38px;
    width: 38px;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    padding: 6px;
    box-shadow: 
        0 0 0 1px rgba(48, 92, 222, 0.05),
        0 4px 12px rgba(48, 92, 222, 0.08),
        0 0 0 4px rgba(48, 92, 222, 0.03);
    transition: var(--transition-smooth);
}

.brand:hover img {
    transform: scale(1.06);
    box-shadow: 
        0 0 0 1px rgba(48, 92, 222, 0.08),
        0 6px 16px rgba(48, 92, 222, 0.12),
        0 0 0 6px rgba(48, 92, 222, 0.05);
}

.nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 
        0 4px 12px rgba(48, 92, 222, 0.15),
        0 1px 2px rgba(48, 92, 222, 0.1);
}

.btn-primary:hover {
    background: var(--accent-dark);
    box-shadow: 
        0 6px 20px rgba(48, 92, 222, 0.25),
        0 1px 3px rgba(48, 92, 222, 0.15);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color-hover);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: white;
    border-color: var(--accent-light);
    transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 18px;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--navy);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Mobile Dropdown Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(14, 23, 44, 0.08);
    padding: 16px;
    flex-direction: column;
    gap: 12px;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu a {
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
}

.mobile-menu a:hover {
    background: rgba(48, 92, 222, 0.05);
    color: var(--accent);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100svh;
    height: 100dvh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* overflow: hidden rimosso per permettere al 3D di sforare senza tagli netti */
    padding-top: 80px;
}

/* Glow Orb behind Hero */
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(111, 143, 233, 0.15) 0%, rgba(48, 92, 222, 0.02) 60%, rgba(255,255,255,0) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

/* Canvas container for 3D Globe */
.hero-canvas-container {
    position: absolute;
    top: 25vh; /* Spostiamo fisicamente il canvas verso il basso */
    left: 0;
    width: 100%;
    height: 100vh; /* Il canvas terminerà a 125vh, sbordando nella sezione successiva */
    z-index: 2;
    pointer-events: none; /* Evita che blocchi i click sulla sezione sottostante */
}

.hero-canvas-container canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 820px;
    text-align: center;
    padding: 0 24px;
    pointer-events: none; /* Let clicks pass through to interactive 3D Globe */
    transform: translateY(-8vh);
}

/* Allow interaction on CTAs */
.hero-content a {
    pointer-events: auto;
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(40px, 6.5vw, 76px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--navy);
    margin-bottom: 24px;
}

h1 span {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 19px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* Sections */
.section {
    position: relative;
    padding: 120px 0;
    z-index: 10;
}

.section-alt {
    background-color: rgba(48, 92, 222, 0.02);
}

.section-header-block {
    max-width: 800px;
    margin-bottom: 60px;
}

.eyebrow {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--navy);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================================
   Feature Grid — Modal.com Style
   Layout: 2-column grid, visual area + open text below
   No cards, no borders — free floating like modal.com
============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
}

.feature-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    overflow: visible;
    box-shadow: none;
    cursor: default;
}

.feature-card:hover {
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

/* === Visual Area — standalone rounded block === */
.feature-canvas-wrap {
    width: 100%;
    aspect-ratio: 1.5;
    height: auto;
    background:
        radial-gradient(ellipse 60% 70% at 50% 80%,
            rgba(48, 92, 222, 0.45) 0%,
            rgba(48, 92, 222, 0.10) 55%,
            transparent 100%),
        linear-gradient(160deg, #121212 0%, #080808 40%, #000000 100%);
    position: relative;
    overflow: hidden;
    border-bottom: none;
    flex-shrink: 0;
    border-radius: 16px;
    /* Subtle ambient glow around the visual block */
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05),
        0 8px 32px rgba(0, 0, 0, 0.18);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.feature-card:hover .feature-canvas-wrap {
    box-shadow:
        0 0 0 1px rgba(111, 143, 233, 0.15),
        0 12px 40px rgba(0, 0, 0, 0.24),
        0 0 48px rgba(48, 92, 222, 0.08);
    transform: translateY(-2px);
}

/* Subtle inner noise texture overlay */
.feature-canvas-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

/* Bottom ambient glow on hover */
.feature-canvas-wrap::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 120px;
    background: radial-gradient(ellipse at center, rgba(48, 92, 222, 0.18) 0%, transparent 70%);
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
}

.feature-card:hover .feature-canvas-wrap::after {
    opacity: 1;
}

.feature-canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 2;
}

/* === Text Area — completely open, no box === */
.feature-card-content {
    padding: 22px 4px 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feature-card .card-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    opacity: 0.75;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 500;
    color: var(--navy);
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 420px;
}

/* Methodology / Platform Grid */
.methodology-block {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 60px;
    align-items: start;
}

.methodology-copy {
    position: sticky;
    top: 100px;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

#methodology {
    background: 
        radial-gradient(circle at 80% 30%, rgba(48, 92, 222, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-main) 0%, rgba(48, 92, 222, 0.02) 50%, var(--bg-main) 100%);
}

.methodology-item {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--transition-smooth);
}

.methodology-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.methodology-icon {
    width: 24px;
    height: 24px;
    color: var(--navy);
    opacity: 0.85;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.methodology-item h3 {
    font-family: var(--font-heading);
    font-size: 1.1875rem;
    font-weight: 500;
    color: var(--navy);
    margin: 0;
    letter-spacing: -0.015em;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.methodology-item p {
    font-size: 0.906rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Micro-animations on hover */
.methodology-item:hover .methodology-icon {
    transform: scale(1.12);
    color: var(--accent);
    opacity: 1;
}

.methodology-item:hover h3 {
    color: var(--accent);
}

/* Case Studies Section */
.case-studies-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 24px;
}

.case-studies-header .section-header-block {
    margin-bottom: 0;
}

.case-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

/* Bento Grid Layout (Ispirato a modal.com) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    transition: var(--transition-smooth);
}

.bento-card {
    position: relative;
    min-height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid transparent;
    box-shadow: inset 0 0 0 1px var(--border-color);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Forzo il layer compositing per evitare sub-pixel rendering bugs su Safari/Chrome */
    transform: translateZ(0);
}

.bento-card:hover {
    border-color: transparent;
    transform: translateY(-6px) translateZ(0);
    box-shadow: inset 0 0 0 1px var(--accent-light), 0 20px 40px rgba(48, 92, 222, 0.08);
    background: var(--bg-card-hover);
}

/* Bento Spans */
@media (min-width: 1025px) {
    .bento-card.span-2 {
        grid-column: span 2;
    }
    .bento-card.span-3 {
        grid-column: span 3;
    }
}

/* Metric Card variant - gradient, huge numbers */
.bento-card.card-metric {
    background: linear-gradient(135deg, rgba(238, 244, 255, 0.85) 0%, rgba(219, 234, 254, 0.95) 100%);
    border: 1px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(48, 92, 222, 0.15);
    justify-content: flex-end; /* Spinge il contenuto in basso come in modal.com */
}

.bento-card.card-metric:hover {
    background: linear-gradient(135deg, rgba(238, 244, 255, 0.95) 0%, rgba(191, 219, 254, 0.98) 100%);
    border-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(48, 92, 222, 0.3), 0 20px 40px rgba(48, 92, 222, 0.08);
}

/* Canvas backgrounds per bento-cards */
.case-card-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.85;
    transition: var(--transition-smooth);
    border-radius: inherit;
}

.bento-card:hover .case-card-canvas {
    opacity: 1;
    transform: scale(1.03);
}

/* Gradient overlay per Detail Cards (per leggibilità testo sopra canvas) */
.bento-card.card-detail::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 25%, rgba(250,251,254,0.6) 55%, rgba(250,251,254,0.98) 85%);
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
}

.bento-card.card-metric::after {
    /* Glow radiale sulle metric cards */
    content: '';
    position: absolute;
    inset: 1px;
    background: radial-gradient(circle at 70% 30%, rgba(111, 143, 233, 0.15) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
}

/* Bento Card contents */
.bento-card-header {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.bento-card-footer {
    position: relative;
    z-index: 3;
    width: 100%;
    margin-top: auto;
}

/* Metrics styles */
.metric-value {
    font-family: var(--font-heading);
    font-size: clamp(44px, 4.5vw, 64px);
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    position: relative;
    z-index: 3;
}

.metric-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.3;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 3;
}

/* Detail Card custom typography */
.bento-card.card-detail h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.bento-card.card-detail p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Tag categoria */
.case-tag {
    font-family: var(--font-heading);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 12px;
    display: inline-block;
    background: rgba(48, 92, 222, 0.05);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(48, 92, 222, 0.06);
}

/* Bento Link / Bottone interattivo */
.bento-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-pill);
    background: rgba(48, 92, 222, 0.05);
    border: 1px solid rgba(48, 92, 222, 0.08);
    color: var(--accent);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 3;
}

.bento-card:hover .bento-link {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: scale(1.05);
}

.bento-link-arrow {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    transition: transform var(--transition-fast);
}

.bento-card:hover .bento-link-arrow {
    transform: translate(1px, -1px);
}

/* Interactive CTA Card variant */
.bento-card.card-cta {
    background: var(--bg-main);
    border: 1px dashed rgba(48, 92, 222, 0.25);
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.bento-card.card-cta:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.9);
}

.bento-card.card-cta h3 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: -0.015em;
}

.bento-card.card-cta p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.bento-card.card-cta .btn {
    font-size: 0.8125rem;
    padding: 10px 20px;
}

/* Exclusive Accordion / Governance */
.governance-block {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.accordion-group {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--navy);
    list-style: none;
    cursor: pointer;
    user-select: none;
}

/* Hide default disclosure arrow */
.accordion-item summary::-webkit-details-marker {
    display: none;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--text-secondary);
    border-radius: 2px;
}

/* Horizontal line */
.accordion-icon::before {
    width: 14px;
    height: 2px;
}

/* Vertical line */
.accordion-icon::after {
    width: 2px;
    height: 14px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item[open] .accordion-icon::after {
    transform: rotate(90deg);
}

.accordion-item[open] .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 0 24px 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.governance-stage {
    position: relative;
    height: 380px;
    background: radial-gradient(circle at center, rgba(48, 92, 222, 0.03) 0%, rgba(255,255,255,0) 70%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.governance-stage canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* CTA Finale Section */
.cta-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

#cta .container {
    max-width: 1280px;
}

.cta-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-content {
    max-width: 720px;
}

.cta-content h2 {
    color: var(--navy);
    font-size: clamp(28px, 3.5vw, 44px);
    margin-bottom: 20px;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.cta-globe-wrap {
    position: relative;
    height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-globe-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
    max-width: 100%;
}

/* Footer styling */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    background-color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--navy);
    text-decoration: none;
}

.footer-logo span {
    font-family: "Bodoni 72 Smallcaps", "Bodoni 72", "Bodoni MT", "Bodoni Moda", "Libre Bodoni", serif;
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #000000;
    transition: var(--transition-smooth);
}

.footer-logo:hover span {
    color: var(--accent);
}

.footer-logo img {
    height: 38px;
    width: 38px;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    padding: 6px;
    box-shadow: 
        0 0 0 1px rgba(48, 92, 222, 0.05),
        0 4px 10px rgba(48, 92, 222, 0.06),
        0 0 0 3px rgba(48, 92, 222, 0.02);
    transition: var(--transition-smooth);
}

.footer-logo:hover img {
    transform: scale(1.06);
    box-shadow: 
        0 0 0 1px rgba(48, 92, 222, 0.08),
        0 6px 14px rgba(48, 92, 222, 0.08),
        0 0 0 5px rgba(48, 92, 222, 0.04);
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 240px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-socials a:hover {
    color: var(--accent);
}

/* Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}



/* ROI Calculator Styles */
.roi-calculator-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition-smooth);
    width: 100%;
    max-width: 640px;
    margin-left: auto;
    box-shadow: 0 10px 30px rgba(48, 92, 222, 0.03);
}

.roi-calculator-card:hover {
    border-color: var(--accent-light);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(48, 92, 222, 0.08);
    background: var(--bg-card-hover);
}

.roi-calculator-card h3 {
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.roi-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 28px;
}

.roi-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.roi-input-group {
    display: flex;
    flex-direction: column;
}

.roi-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.roi-label-row label {
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
}

.roi-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    background: var(--bg-accent);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.roi-slider-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Custom range inputs */
.roi-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--accent) var(--value-percent, 0%), rgba(48, 92, 222, 0.08) var(--value-percent, 0%));
    border-radius: var(--radius-pill);
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(48, 92, 222, 0.3);
    transition: var(--transition-fast);
}

.roi-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--accent-dark);
    box-shadow: 0 2px 10px rgba(48, 92, 222, 0.5);
}

.roi-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(48, 92, 222, 0.3);
    transition: var(--transition-fast);
}

.roi-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    background: var(--accent-dark);
    box-shadow: 0 2px 10px rgba(48, 92, 222, 0.5);
}

.roi-slider::-moz-range-track {
    background: transparent;
    border: none;
}

.roi-results {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 16px;
    margin-top: 28px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.roi-result-item {
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.roi-result-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.roi-result-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--navy);
    font-family: var(--font-heading);
    line-height: 1.2;
}

.roi-result-value.highlight {
    color: var(--accent);
}

.roi-result-value small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

.roi-result-sub {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ============================================================
   RESPONSIVE SYSTEM — Mobile-first, comprehensive breakpoints
   Breakpoints: 1024px (tablet), 768px (mobile), 480px (small), 360px (tiny)
   ============================================================ */

/* ── TABLET (≤ 1024px) ── */
@media (max-width: 1024px) {
    /* Section spacing */
    .section {
        padding: 80px 0;
    }

    /* Feature grid: keep 2 cols on tablet */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 24px;
    }

    .features-grid .feature-card {
        grid-column: span 1 !important;
    }

    /* Methodology */
    .methodology-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .methodology-copy {
        position: static;
        max-width: 580px;
    }

    .methodology-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    /* Case Studies Header */
    .case-studies-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    /* Bento grid: 2 cols on tablet, force spans to fill correctly */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card.span-2 {
        grid-column: span 2;
    }

    .bento-card.span-3 {
        grid-column: span 2;
    }

    .bento-card {
        min-height: 320px;
        padding: 28px;
    }

    /* Governance */
    .governance-block {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .governance-stage {
        height: 300px;
    }

    /* CTA layout */
    .cta-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .cta-content {
        max-width: 100%;
    }

    .roi-calculator-card {
        margin: 0 auto;
        max-width: 100%;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

/* ── MOBILE (≤ 768px) ── */
@media (max-width: 768px) {
    /* Navbar */
    .navbar {
        padding: 8px 14px;
    }

    .nav-menu,
    .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Hamburger → X animation */
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Hero */
    .hero-section {
        min-height: 100svh;
        padding-top: 100px;
        padding-bottom: 40px;
        height: auto;
    }

    .hero-content {
        transform: translateY(-4vh);
        padding: 0 16px;
        max-width: 100%;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Section spacing */
    .section {
        padding: 64px 0;
    }


    .section-header-block {
        margin-bottom: 40px;
    }

    /* Feature grid: single column */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .features-grid .feature-card {
        grid-column: span 1 !important;
    }

    /* Methodology */
    .methodology-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .methodology-item h3 {
        font-size: 17px;
    }

    /* Bento grid: single column */
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bento-card.span-2,
    .bento-card.span-3 {
        grid-column: span 1;
    }

    .bento-card {
        min-height: 280px;
        padding: 24px;
    }

    .metric-value {
        font-size: 52px;
    }

    /* Governance */
    .governance-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .governance-stage {
        height: 260px;
    }

    .accordion-item summary {
        padding: 20px 0;
        font-size: 16px;
    }

    /* CTA section */
    .cta-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: left;
    }

    .roi-calculator-card {
        max-width: 100%;
        margin: 0;
    }

    .roi-results {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    /* Footer */
    .footer {
        padding: 60px 0 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 40px;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }
}

/* ── SMALL MOBILE (≤ 480px) ── */
@media (max-width: 480px) {
    /* Navbar tighter */
    .header-wrap {
        top: 12px;
    }

    .navbar {
        padding: 8px 12px;
    }

    .brand span {
        font-size: 14px;
    }

    /* Hero */
    .hero-content {
        transform: none;
        padding: 0 12px;
    }

    /* Section padding */
    .section {
        padding: 52px 0;
    }

    .feature-card h3 {
        font-size: 20px;
    }

    /* Bento */
    .bento-card {
        min-height: 240px;
        padding: 20px;
    }

    .metric-value {
        font-size: 44px;
    }

    /* ROI Calculator */
    .roi-calculator-card {
        padding: 22px 18px;
    }

    .roi-results {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .roi-result-value {
        font-size: 20px;
    }

    /* Methodology */
    .methodology-block {
        gap: 32px;
    }

    /* Governance stage */
    .governance-stage {
        height: 220px;
    }

    /* Footer */
    .footer-brand p {
        max-width: 100%;
    }
}

/* ── TINY MOBILE (≤ 360px) ── */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    h1 {
        font-size: clamp(32px, 9vw, 44px);
    }

    h2 {
        font-size: clamp(24px, 7vw, 34px);
    }

    .hero-cta .btn {
        max-width: 100%;
        font-size: 13px;
        padding: 10px 16px;
    }

    .btn {
        padding: 9px 16px;
        font-size: 13px;
    }

    .bento-card {
        padding: 18px;
    }

    .metric-value {
        font-size: 40px;
    }

    .roi-calculator-card {
        padding: 18px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, ::before, ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: scroll !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
        animation: none !important;
    }
}

/* ── TOUCH & POINTER OPTIMIZATIONS ── */
/* Prevent iOS tap highlight */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Ensure images are always contained */
img {
    max-width: 100%;
    height: auto;
}

/* Touch devices: disable hover transforms that can feel sticky */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover .feature-canvas-wrap {
        transform: none;
        box-shadow:
            0 0 0 1px rgba(255,255,255,0.05),
            0 8px 32px rgba(0, 0, 0, 0.18);
    }

    .bento-card:hover {
        transform: none;
    }

    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }

    .roi-calculator-card:hover {
        transform: none;
    }
}

/* Prevent horizontal scroll on all pages */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ─────────────────────────────────────────────
   LANGUAGE SWITCHER DROPDOWN
───────────────────────────────────────────── */
.lang-dropdown {
    position: relative;
    display: inline-block;
}
.lang-dropdown-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 10px 20px; /* Match Book a call */
    font-size: 0.875rem; /* Match Book a call */
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    line-height: 1;
    min-width: 135px; /* Ensure uniform size */
}
.lang-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--border-color-hover);
    box-shadow: 0 4px 12px rgba(48, 92, 222, 0.08);
}
.lang-dropdown-btn .globe-icon {
    display: none; /* globe removed — flags only */
}
.lang-dropdown-btn .flag-img {
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
    display: block;
    width: 22px;
    height: 15px;
}
.lang-dropdown-btn .chevron-icon {
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-left: auto; /* Push chevron to the right */
}
.lang-dropdown.active .lang-dropdown-btn .chevron-icon {
    transform: rotate(180deg);
}

/* ── Dropdown menu — smooth open/close via opacity + transform ── */
.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 0;
    width: 100%; /* Exact same width as the button */
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill); /* Match button perfectly */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 0; /* Remove internal padding */
    overflow: hidden; /* Clip inner item to the pill radius */
    z-index: 1000;
    /* Hidden state — visibility keeps it out of tab order too */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear 0.22s;
    transform-origin: top center;
}
/* Visible state */
.lang-dropdown.active .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear 0s;
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px; /* Match Book a call */
    font-size: 0.875rem; /* Match Book a call */
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
    cursor: pointer;
}
.lang-dropdown-item:hover {
    background: rgba(48, 92, 222, 0.06);
    color: var(--accent);
}
.lang-dropdown-item .flag-img {
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
    display: block;
    width: 22px;
    height: 15px;
    flex-shrink: 0;
}