/* ==========================================================================
   WEBSITE.CSS - Stili Premium e Animati per SaaS Landing Page
   ========================================================================== */

/* ── Base & Global Animations ─────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body.website-body {
    background-color: #0F172A; /* Base scura per far risaltare il glow, ma con sezioni chiare */
    color: var(--text-primary, #0F172A);
    font-family: var(--font-family, 'Inter', sans-serif);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Keyframes */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(13, 148, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Reveal on Scroll utility ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ── Navigation ───────────────────────────────────────────────────────── */
.web-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.web-header.scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 10px 30px rgba(15,23,42,0.05);
}

.web-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.web-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.web-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #0F172A;
}

.web-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0D9488, #14B8A6, #0EA5E9);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(13,148,136,0.4);
}

.web-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.web-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.web-menu a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.web-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0D9488;
    transition: width 0.3s ease;
}

.web-menu a:hover {
    color: #0D9488;
}

.web-menu a:hover::after {
    width: 100%;
}

.web-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-web-outline {
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,0.15);
    color: #0F172A;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}
.btn-web-outline:hover {
    background: #F8FAFC;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15,23,42,0.05);
}

.btn-web-primary {
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0D9488, #14B8A6);
    background-size: 200% auto;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(13,148,136,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-web-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13,148,136,0.4);
    animation: pulse-glow 1.5s infinite;
}

/* ── Hero Section ─────────────────────────────────────────────────────── */
.hero-wrapper {
    position: relative;
    background-color: #F8FAFC;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 180px 0 140px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 1) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #0D9488;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(13,148,136,0.2);
    box-shadow: 0 4px 15px rgba(13,148,136,0.1);
}
.hero-pill svg { color: #F59E0B; }

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0F172A;
    margin: 0 0 1.5rem;
    letter-spacing: -0.03em;
}

.hero-title span {
    background: linear-gradient(135deg, #0D9488, #3B82F6, #8B5CF6);
    background-size: 200% auto;
    animation: gradientShift 5s linear infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: #475569;
    max-width: 650px;
    margin: 0 auto 3.5rem;
    line-height: 1.6;
}

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

.btn-web-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

/* ── Dashboard Preview ────────────────────────────────────────────────── */
.preview-section {
    padding: 0 0 120px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    position: relative;
    margin-top: -80px;
    z-index: 10;
}

.preview-container {
    max-width: 1050px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(15,23,42,0.3);
    border: 1px solid rgba(255,255,255,0.8);
    transform: perspective(1000px) rotateX(2deg) translateY(0);
    transition: transform 0.5s ease;
}

.preview-container:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-10px);
}

/* ── Features Section ─────────────────────────────────────────────────── */
.features-section {
    padding: 120px 0;
    background: #F8FAFC;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.2rem;
    color: #64748B;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background: #FFFFFF;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(15,23,42,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Glow effect hover su card */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(13,148,136,0.06), transparent 40%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    box-shadow: 0 20px 40px -10px rgba(15,23,42,0.1);
    transform: translateY(-8px);
    border-color: rgba(13,148,136,0.2);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(13,148,136,0.1), rgba(20,184,166,0.1));
    color: #0D9488;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease, background 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #0D9488, #14B8A6);
    color: white;
    box-shadow: 0 10px 20px rgba(13,148,136,0.2);
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #475569;
    line-height: 1.7;
    margin: 0;
    font-size: 1.05rem;
}

/* ── Pricing Section ──────────────────────────────────────────────────── */
.pricing-section {
    padding: 120px 0;
    background: #0F172A;
    color: white;
    position: relative;
    overflow: hidden;
}

.pricing-bg-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.pricing-section .section-header h2 { color: white; }
.pricing-section .section-header p { color: #94A3B8; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    max-width: 480px;
    margin: 0 auto;
    background: rgba(30,41,59,0.7);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 3.5rem 3rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(20,184,166,0.5);
    box-shadow: 0 30px 60px -12px rgba(13,148,136,0.2);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0D9488, #3B82F6);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(13,148,136,0.4);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pricing-price {
    font-size: 4.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.25rem;
}

.pricing-price span {
    font-size: 1.25rem;
    color: #94A3B8;
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0 3rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pricing-features li {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: #E2E8F0;
    font-size: 1.1rem;
}

.pricing-features li svg {
    color: #14B8A6;
    flex-shrink: 0;
    background: rgba(20,184,166,0.1);
    border-radius: 50%;
    padding: 4px;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.web-footer {
    background: #0B1120;
    color: #94A3B8;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.footer-desc {
    max-width: 350px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.footer-col h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul a {
    color: #94A3B8;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-col ul a:hover {
    color: #14B8A6;
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .web-menu { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.8rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta a { width: 100%; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .pricing-card { padding: 2.5rem 1.5rem; }
}
