:root {
    --arc-cyan: #00D9FF;
    --tech-blue: #0EA5E9;
    --pulse-purple: #8B5CF6;
    --accent-gold: #F59E0B;
    --hud-green: #10B981;
    --void-dark: #0F172A;
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --glass-blur: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--void-dark);
    color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* Boot Sequence */
#boot-sequence {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
}

.boot-text {
    color: var(--hud-green);
    font-size: 1.2rem;
    margin: 1rem 0;
    letter-spacing: 2px;
}

.boot-progress {
    width: 300px;
    height: 4px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 2rem 0;
}

.boot-progress-bar {
    height: 100%;
    background: var(--hud-green);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--hud-green);
}

.boot-check {
    color: var(--hud-green);
    margin: 0.5rem 0;
    opacity: 0;
}

/* HUD Overlay */
.hud-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
    font-family: 'Courier New', monospace;
}

.hud-corner {
    position: absolute;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.hud-top-left {
    top: 1rem;
    left: 1rem;
    color: var(--hud-green);
}

.hud-top-right {
    top: 1rem;
    right: 1rem;
    color: var(--arc-cyan);
}

.hud-bottom-left {
    bottom: 1rem;
    left: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--hud-green);
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 5px var(--hud-green); }
    50% { opacity: 0.5; box-shadow: 0 0 15px var(--hud-green); }
}

/* Scanner Lines */
.scanner-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--arc-cyan), transparent);
    opacity: 0.3;
    animation: scan 3s infinite;
}

.scanner-top {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
}

.scanner-bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    animation-delay: 1.5s;
}

.scanner-left {
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    animation: scanVertical 3s infinite;
}

.scanner-right {
    right: 0;
    top: 0;
    width: 2px;
    height: 100%;
    animation: scanVertical 3s infinite;
    animation-delay: 1.5s;
}

@keyframes scan {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

@keyframes scanVertical {
    0%, 100% { transform: translateY(-100%); }
    50% { transform: translateY(100%); }
}

/* Tech Gradient Background */
.tech-gradient {
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
    position: relative;
}

/* Glassmorphism */
.glass-tech {
    background: var(--glass-blur);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-tech-strong {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 217, 255, 0.3);
}

/* Glow Effects */
.glow-cyan {
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.glow-cyan-strong {
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.8), 0 0 80px rgba(0, 217, 255, 0.4);
}

.glow-purple {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.text-glow-cyan {
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.8);
}

/* Module Cards */
.module-card {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.6);
}

.module-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--arc-cyan), var(--pulse-purple));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-card:hover::before {
    opacity: 1;
}

/* Hexagon Grid */
.hexagon {
    width: 120px;
    height: 138px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--glass-blur);
    backdrop-filter: blur(20px);
    border: 2px solid var(--arc-cyan);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hexagon:hover {
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.8);
    transform: scale(1.1);
}

.hexagon-pulse {
    animation: hexPulse 3s infinite;
}

@keyframes hexPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 217, 255, 0.8);
    }
}

/* Progress Bar */
.progress-tech {
    background: rgba(0, 217, 255, 0.1);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-tech-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--arc-cyan), var(--tech-blue));
    box-shadow: 0 0 10px var(--arc-cyan);
    transition: width 1s ease;
}

/* Scan Line Effect */
.scan-line {
    position: relative;
    overflow: hidden;
}

.scan-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.3), transparent);
    animation: scanLine 2s infinite;
}

@keyframes scanLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Form Tech Styles */
.input-tech {
    background: var(--glass-blur);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.input-tech:focus {
    outline: none;
    border-color: var(--arc-cyan);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
    animation: borderBlink 1s infinite;
}

@keyframes borderBlink {
    0%, 100% { border-color: var(--arc-cyan); }
    50% { border-color: rgba(0, 217, 255, 0.3); }
}

.input-tech::placeholder {
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

/* Button Tech */
.btn-tech {
    background: linear-gradient(135deg, var(--arc-cyan), var(--tech-blue));
    border: none;
    color: var(--void-dark);
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-tech:hover {
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.8);
    transform: translateY(-2px);
}

.btn-tech::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-tech:active::before {
    width: 300px;
    height: 300px;
}

/* Isometric Grid */
.isometric-grid {
    background-image:
        linear-gradient(to right, rgba(0, 217, 255, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 217, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* 3D Canvas Container */
.canvas-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Particles Container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Convergence Logo */
.convergence-logo {
    font-size: 4rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--arc-cyan), var(--pulse-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.8));
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hud-corner {
        font-size: 0.6rem;
    }

    .hexagon {
        width: 80px;
        height: 92px;
    }

    .convergence-logo {
        font-size: 2rem;
    }

    .boot-text {
        font-size: 0.9rem;
    }
}

/* Hide scrollbar but keep functionality */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--void-dark);
}

body::-webkit-scrollbar-thumb {
    background: var(--arc-cyan);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--tech-blue);
}

/* Hero Section - Vertical Layout */
.hero-section {
    min-height: 100vh;
    height: 100vh;
    width: 100%;
    position: relative;
}

.hero-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 50vh;
    z-index: 1;
    pointer-events: all;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.hero-content * {
    pointer-events: auto;
}

.hero-title {
    position: absolute;
    top: 15vh;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    text-align: center;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    z-index: 20;
}

.hero-description {
    position: absolute;
    bottom: 25vh;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    text-align: center;
    font-size: 1.5rem;
    color: #E2E8F0;
    line-height: 1.6;
}

.hero-tagline {
    position: absolute;
    bottom: 15vh;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    text-align: center;
    font-size: 1.125rem;
    color: #94A3B8;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

.hero-cta {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

/* Mobile Responsive Hero */
@media (max-width: 768px) {
    .hero-canvas {
        height: 40vh;
    }

    .hero-title {
        top: 10vh;
        font-size: 2rem;
    }

    .hero-description {
        bottom: 28vh;
        font-size: 1rem;
    }

    .hero-tagline {
        bottom: 18vh;
        font-size: 0.875rem;
    }

    .hero-cta {
        bottom: 8vh;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.25rem;
    }
}

/* ========================================
   JARVIS HUD STYLES
   ======================================== */

/* Background Canvas */
#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    z-index: 0;
}

/* HUD Container */
.hud-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* HUD Top Bar */
.hud-top {
    position: absolute;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--arc-cyan);
    z-index: 100;
}

/* HUD Corners */
.hud-corner {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--arc-cyan);
    opacity: 0.6;
    line-height: 1.4;
    z-index: 100;
}

.hud-corner.top-left {
    top: 60px;
    left: 20px;
}

.hud-corner.top-right {
    top: 60px;
    right: 20px;
    text-align: right;
}

.hud-corner.bottom-left {
    bottom: 60px;
    left: 20px;
}

.hud-corner.bottom-right {
    bottom: 60px;
    right: 20px;
    text-align: right;
}

/* Hero Center Content */
.hero-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    text-align: center;
    z-index: 50;
}

/* Logo Container */
.logo-container {
    margin-bottom: 20px;
}

.logo-text {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--arc-cyan) 0%, #A78BFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1em;
    filter: drop-shadow(0 0 40px rgba(0, 217, 255, 0.5));
}

/* Scan Line */
.scan-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--arc-cyan), transparent);
    animation: scan 2s ease-in-out infinite;
    margin: 10px 0;
}

@keyframes scan {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(0.5);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Scanlines Overlay */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 217, 255, 0.03) 0px,
        transparent 1px,
        transparent 2px,
        rgba(0, 217, 255, 0.03) 3px
    );
    pointer-events: none;
    opacity: 0.5;
    z-index: 1;
}

/* SVG Particles */
.particle {
    fill: none;
    stroke-width: 3;
    filter: drop-shadow(0 0 10px currentColor);
}

.particle.security {
    stroke: var(--arc-cyan);
}

.particle.automation {
    stroke: #A78BFA;
}

.particle.backup {
    stroke: var(--accent-gold);
}

.connection-line {
    stroke: var(--arc-cyan);
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* Service Labels */
.label {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 10px;
    border: 2px solid currentColor;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.label:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.label.cyan {
    color: var(--arc-cyan);
}

.label.purple {
    color: #A78BFA;
}

.label.gold {
    color: var(--accent-gold);
}

/* Claim Text */
.claim {
    font-size: 2.5rem;
    font-weight: 600;
    color: #E2E8F0;
    text-align: center;
    margin: 40px auto 20px;
    line-height: 1.4;
    max-width: 900px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--arc-cyan) 0%, #A78BFA 50%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subclaim {
    font-size: 1.125rem;
    color: #94A3B8;
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

/* CTA Button */
.cta-button {
    position: relative;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--void-dark);
    background: linear-gradient(135deg, var(--arc-cyan), var(--pulse-purple));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.6);
}

.button-scan {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: button-scan 2s ease-in-out infinite;
}

@keyframes button-scan {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Pulse Animation */
.pulse-green {
    color: var(--hud-green);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Mobile Responsive - HUD */
@media (max-width: 768px) {
    .hud-corner {
        display: none;
    }

    .hud-top {
        font-size: 0.75rem;
        padding: 0 20px;
    }

    .logo-text {
        font-size: 2.5rem;
    }

    #convergence-svg {
        width: 400px;
        height: 150px;
    }

    .claim {
        font-size: 1.5rem;
    }

    .subclaim {
        font-size: 0.875rem;
    }

    .label {
        font-size: 0.75rem;
        padding: 6px 12px;
        margin: 5px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.875rem;
    }
}

/* Tablet - HUD */
@media (min-width: 769px) and (max-width: 1024px) {
    .logo-text {
        font-size: 3rem;
    }

    .claim {
        font-size: 2rem;
    }
}

/* ========================================
   LOGO TOMICL.AI TIPOGRAFICO
   ======================================== */

.logo-tomicl-ai {
    font-size: 1.75rem;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    background: linear-gradient(
        90deg,
        #00D9FF 0%,      /* To - Cyan (Tommaso) */
        #00D9FF 25%,
        #8B5CF6 25%,     /* Mi - Purple (Michele) */
        #8B5CF6 50%,
        #F59E0B 50%,     /* Cl - Gold (Claudio) */
        #F59E0B 75%,
        #FFFFFF 75%,     /* AI - White (Artificial Intelligence) */
        #FFFFFF 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.5));
    transition: all 0.3s ease;
}

.logo-tomicl-ai:hover {
    filter: drop-shadow(0 0 30px rgba(0, 217, 255, 0.8));
    transform: scale(1.02);
}

/* Linea luminosa sotto il logo */
.logo-tomicl-ai::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00D9FF, #8B5CF6, #F59E0B, #FFF);
    opacity: 0.6;
    animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% {
        opacity: 0.4;
        box-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.8);
    }
}

/* Variante piccola per navbar */
.logo-tomicl-ai-small {
    font-size: 1.5rem;
}

/* Variante grande per hero */
.logo-tomicl-ai-large {
    font-size: 3rem;
}

/* Responsive logo */
@media (max-width: 768px) {
    .logo-tomicl-ai {
        font-size: 1.25rem;
    }

    .logo-tomicl-ai-large {
        font-size: 2rem;
    }

    .logo-tomicl-ai::after {
        bottom: -4px;
        height: 1px;
    }
}

/* Spotlight effect on individual letters */
.logo-letter {
    display: inline-block;
    transition: all 0.2s ease;
}

.logo-letter:hover {
    transform: translateY(-2px);
}

/* Color hints per ogni lettera (opzionale, per accessibilità) */
.logo-to {
    color: #00D9FF;
}

.logo-mi {
    color: #8B5CF6;
}

.logo-cl {
    color: #F59E0B;
}

.logo-ai {
    color: #FFFFFF;
}
