/* ============================================
   FLEET MANAGER - MAIN STYLESHEET
   ============================================ */

/* CSS VARIABLES */
:root {
  --navy-900: #0b1a2b;
  --navy-800: #122a45;
  --navy-700: #1e3a8a;
  --navy-600: #2563eb;
  --cyan-500: #35c4ff;
  --cyan-400: #5df0ff;
  --cyan-300: #a5f3fc;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --section-padding: clamp(60px, 10vw, 120px);
  --container-width: min(1200px, 92vw);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 40px rgba(53, 196, 255, 0.3);
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--gray-800); background: var(--white); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* UTILITIES */
.container { width: var(--container-width); margin: 0 auto; }
.section { padding: var(--section-padding) 0; }
.section--dark { background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); color: var(--white); }
.section--light { background: var(--gray-50); }
.text-gradient { background: linear-gradient(135deg, var(--cyan-500), var(--cyan-400)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-center { text-align: center; }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.heading-xl { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; }
.heading-lg { font-size: clamp(2rem, 4vw, 3rem); }
.heading-md { font-size: clamp(1.5rem, 3vw, 2rem); }
.subheading { font-size: clamp(1rem, 1.5vw, 1.25rem); color: var(--gray-500); font-weight: 400; line-height: 1.7; }
.section--dark .subheading { color: var(--gray-300); }
.label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan-500); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; font-size: 1rem; font-weight: 600; border-radius: var(--radius-full); transition: all var(--transition-base); }
.btn--primary { background: linear-gradient(135deg, var(--cyan-500), var(--navy-600)); color: var(--white); box-shadow: 0 4px 14px rgba(53, 196, 255, 0.4); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(53, 196, 255, 0.5); }
.btn--secondary { background: rgba(255, 255, 255, 0.1); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); }
.btn--secondary:hover { background: rgba(255, 255, 255, 0.2); }
.btn--outline { background: transparent; color: var(--navy-700); border: 2px solid var(--navy-700); }
.btn--outline:hover { background: var(--navy-700); color: var(--white); }

/* NAVBAR */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 0; transition: all var(--transition-base); }
.navbar.scrolled { background: rgba(11, 26, 43, 0.95); backdrop-filter: blur(20px); padding: 12px 0; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; }
.navbar__logo { display: flex; align-items: center; gap: 12px; }
.navbar__logo svg, .navbar__logo img { height: 40px; width: auto; }
.navbar__logo img { object-fit: contain; }
.navbar__logo-text { font-size: 1.25rem; font-weight: 800; color: var(--white); letter-spacing: 0.5px; }
.navbar__links { display: flex; align-items: center; gap: 32px; }
.navbar__link { color: rgba(255, 255, 255, 0.8); font-weight: 500; font-size: 0.95rem; transition: color var(--transition-fast); }
.navbar__link:hover { color: var(--white); }
.navbar__cta { display: flex; align-items: center; gap: 16px; }
.navbar__menu-btn { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.navbar__menu-btn span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; }
@media (max-width: 968px) {
  .navbar__links, .navbar__cta .btn--secondary { display: none; }
  .navbar__menu-btn { display: flex; }
}

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, var(--navy-900), var(--navy-800), var(--navy-700)); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg::before { content: ''; position: absolute; top: -50%; right: -20%; width: 80%; height: 150%; background: radial-gradient(ellipse, rgba(53, 196, 255, 0.15), transparent 60%); animation: pulse 8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }
.hero__waves { position: absolute; bottom: 0; left: 0; right: 0; height: 150px; overflow: hidden; }
.hero__wave { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; background-repeat: repeat-x; animation: wave 20s linear infinite; }
.hero__wave--1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='rgba(53,196,255,0.1)' d='M0,60 C300,100 600,20 900,60 C1200,100 1200,100 1200,100 L1200,120 L0,120 Z'/%3E%3C/svg%3E"); background-size: 1200px 120px; opacity: 0.6; }
.hero__wave--2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='rgba(93,240,255,0.08)' d='M0,40 C400,80 800,0 1200,40 L1200,120 L0,120 Z'/%3E%3C/svg%3E"); background-size: 1200px 120px; animation-duration: 15s; animation-direction: reverse; opacity: 0.4; }
@keyframes wave { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.hero__content { position: relative; z-index: 10; max-width: 720px; padding: 120px 0 80px; }
.hero__label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(53, 196, 255, 0.1); border: 1px solid rgba(53, 196, 255, 0.3); border-radius: var(--radius-full); margin-bottom: 24px; }
.hero__label-dot { width: 8px; height: 8px; background: var(--cyan-500); border-radius: 50%; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero__title { color: var(--white); margin-bottom: 24px; }
.hero__subtitle { font-size: clamp(1.125rem, 2vw, 1.375rem); color: var(--gray-300); margin-bottom: 40px; max-width: 600px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
.hero__stats { display: flex; gap: 48px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.1); align-items: flex-end; }
.hero__stat { display: flex; flex-direction: column; justify-content: flex-end; }
.hero__stat-value { font-size: 2rem; font-weight: 800; color: var(--white); line-height: 1; }
.hero__stat-label { font-size: 0.875rem; color: var(--gray-400); margin-top: 8px; }
.hero__stat--icon .hero__stat-value { font-size: 1.75rem; margin-bottom: 2px; }
@media (max-width: 640px) { .hero__stats { gap: 24px; flex-wrap: wrap; } .hero__stat-value { font-size: 1.5rem; } }

/* SOCIAL PROOF */
.social-proof { padding: 40px 0; background: var(--white); border-bottom: 1px solid var(--gray-200); }
.social-proof__inner { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.social-proof__item { display: flex; align-items: center; gap: 12px; }
.social-proof__icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--gray-100); border-radius: var(--radius-md); color: var(--navy-700); }
.social-proof__value { font-size: 1.25rem; font-weight: 700; color: var(--navy-900); }
.social-proof__label { font-size: 0.875rem; color: var(--gray-500); }

/* FEATURES */
.features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 64px; }
.feature-card { padding: 32px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); transition: all var(--transition-base); }
.feature-card:hover { border-color: var(--cyan-500); box-shadow: var(--shadow-xl), var(--shadow-glow); transform: translateY(-4px); }
.feature-card__icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(53, 196, 255, 0.1), rgba(37, 99, 235, 0.1)); border-radius: var(--radius-md); margin-bottom: 20px; font-size: 1.75rem; }
.feature-card__title { font-size: 1.25rem; font-weight: 700; color: var(--navy-900); margin-bottom: 12px; }
.feature-card__desc { font-size: 0.95rem; color: var(--gray-600); line-height: 1.6; }

/* HOW IT WORKS */
.how-it-works__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; position: relative; }
.how-it-works__steps::before { content: ''; position: absolute; top: 40px; left: calc(16.67% + 40px); right: calc(16.67% + 40px); height: 2px; background: linear-gradient(90deg, var(--cyan-500), var(--navy-600)); }
@media (max-width: 768px) { .how-it-works__steps { grid-template-columns: 1fr; } .how-it-works__steps::before { display: none; } }
.step { text-align: center; position: relative; z-index: 1; }
.step__number { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; background: var(--white); border: 3px solid var(--cyan-500); border-radius: 50%; font-size: 1.75rem; font-weight: 800; color: var(--navy-700); box-shadow: var(--shadow-lg); }
.step__title { font-size: 1.25rem; font-weight: 700; color: var(--navy-900); margin-bottom: 12px; }
.step__desc { font-size: 0.95rem; color: var(--gray-600); max-width: 280px; margin: 0 auto; }

/* PRICING */
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
@media (max-width: 968px) { .pricing__grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; } }
.pricing-card { padding: 32px; background: var(--white); border: 2px solid var(--gray-200); border-radius: var(--radius-xl); transition: all var(--transition-base); }
.pricing-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.pricing-card--featured { border-color: var(--cyan-500); position: relative; box-shadow: var(--shadow-glow); }
.pricing-card--featured::before { content: 'Più Popolare'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 16px; background: linear-gradient(135deg, var(--cyan-500), var(--navy-600)); color: var(--white); font-size: 0.75rem; font-weight: 600; border-radius: var(--radius-full); }
.pricing-card__name { font-size: 1.25rem; font-weight: 700; color: var(--navy-900); margin-bottom: 8px; }
.pricing-card__price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.pricing-card__amount { font-size: 3rem; font-weight: 800; color: var(--navy-900); line-height: 1; }
.pricing-card__period { font-size: 0.95rem; color: var(--gray-500); }
.pricing-card__features { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 32px; }
.pricing-card__feature { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; color: var(--gray-700); }
.pricing-card__cta { width: 100%; }

/* FAQ */
.faq__grid { max-width: 800px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item__question { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 24px 0; font-size: 1.1rem; font-weight: 600; color: var(--navy-900); text-align: left; }
.faq-item__question:hover { color: var(--cyan-500); }
.faq-item__icon { width: 24px; height: 24px; color: var(--gray-400); transition: transform var(--transition-fast); }
.faq-item.active .faq-item__icon { transform: rotate(45deg); }
.faq-item__answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-base); }
.faq-item.active .faq-item__answer { max-height: 500px; }
.faq-item__answer-inner { padding-bottom: 24px; font-size: 0.95rem; color: var(--gray-600); line-height: 1.7; }

/* FOOTER */
.footer { padding: 64px 0 32px; background: var(--navy-900); color: var(--white); }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
@media (max-width: 968px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer__top { grid-template-columns: 1fr; } }
.footer__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__logo svg, .footer__logo img { height: 40px; }
.footer__logo img { width: auto; object-fit: contain; }
.footer__logo-text { font-size: 1.25rem; font-weight: 800; }
.footer__desc { font-size: 0.9rem; color: var(--gray-400); margin-bottom: 24px; }
.footer__column h4 { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 20px; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__link { font-size: 0.9rem; color: var(--gray-400); transition: color var(--transition-fast); }
.footer__link:hover { color: var(--cyan-500); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; flex-wrap: wrap; gap: 16px; }
.footer__copyright { font-size: 0.875rem; color: var(--gray-500); }

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-left { opacity: 0; transform: translateX(-60px); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(60px); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* HERO PREMIUM */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__image-bg { position: absolute; inset: 0; z-index: 0; }
.hero__image-bg img { width: 100%; height: 100%; object-fit: cover; animation: kenBurns 25s ease-in-out infinite alternate; }
@keyframes kenBurns { 0% { transform: scale(1) translate(0, 0); } 100% { transform: scale(1.1) translate(-2%, -1%); } }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(11, 26, 43, 0.92) 0%, rgba(18, 42, 69, 0.85) 50%, rgba(30, 58, 138, 0.8) 100%); z-index: 1; }
.hero__content { position: relative; z-index: 10; }
.hero__title .word { display: inline-block; opacity: 0; transform: translateY(30px); animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero__title .word:nth-child(1) { animation-delay: 0.1s; }
.hero__title .word:nth-child(2) { animation-delay: 0.15s; }
.hero__title .word:nth-child(3) { animation-delay: 0.2s; }
.hero__title .word:nth-child(4) { animation-delay: 0.25s; }
.hero__title .word:nth-child(5) { animation-delay: 0.3s; }
.hero__title .word:nth-child(6) { animation-delay: 0.35s; }
.hero__title .word:nth-child(7) { animation-delay: 0.4s; }
.hero__title .word:nth-child(8) { animation-delay: 0.45s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* SCROLL PROGRESS */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--cyan-500), var(--cyan-400)); z-index: 9999; transform-origin: left; transform: scaleX(0); }

/* SECTION DIVIDERS */
.section-divider { height: 120px; margin-top: -1px; }
.section-divider--wave { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23f8fafc' d='M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,64C960,75,1056,85,1152,80C1248,75,1344,53,1392,42.7L1440,32L1440,120L1392,120C1344,120,1248,120,1152,120C1056,120,960,120,864,120C768,120,672,120,576,120C480,120,384,120,288,120C192,120,96,120,48,120L0,120Z'/%3E%3C/svg%3E") no-repeat bottom; background-size: cover; }
.section-divider--wave-dark { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%230b1a2b' d='M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,64C960,75,1056,85,1152,80C1248,75,1344,53,1392,42.7L1440,32L1440,120L1392,120C1344,120,1248,120,1152,120C1056,120,960,120,864,120C768,120,672,120,576,120C480,120,384,120,288,120C192,120,96,120,48,120L0,120Z'/%3E%3C/svg%3E") no-repeat bottom; background-size: cover; }

/* PREMIUM CARDS */
.feature-card { position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--cyan-500), var(--navy-600)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { transform: translateY(-8px) rotateX(2deg); box-shadow: 0 25px 50px -12px rgba(53, 196, 255, 0.25); }
.feature-card__icon { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.feature-card:hover .feature-card__icon { transform: scale(1.1) rotate(-5deg); }

/* ICON STYLES */
.icon { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.icon--lg { width: 32px; height: 32px; }
.icon--xl { width: 48px; height: 48px; }

/* COUNTER ANIMATION */
.counter { display: inline-block; }
.counter[data-target] { font-variant-numeric: tabular-nums; }

/* BUTTON EFFECTS */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(255, 255, 255, 0.2); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.6s ease, height 0.6s ease; }
.btn:active::after { width: 300px; height: 300px; }
.btn--primary { background-size: 200% 200%; animation: gradientShift 3s ease infinite; }
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* MOBILE APP SECTION */
.mobile-app { padding: 100px 0; position: relative; overflow: hidden; }
.mobile-app__content { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 968px) { .mobile-app__content { grid-template-columns: 1fr; gap: 48px; } }
.mobile-app__phone { position: relative; perspective: 1000px; }
.mobile-app__image { max-width: 320px; margin: 0 auto; border-radius: 32px; box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5), 0 30px 60px -30px rgba(53, 196, 255, 0.3); animation: floatPhone 6s ease-in-out infinite; transform-style: preserve-3d; }
@keyframes floatPhone { 0%, 100% { transform: translateY(0) rotateY(-5deg) rotateX(5deg); } 50% { transform: translateY(-20px) rotateY(5deg) rotateX(-5deg); } }
.mobile-app__glow { position: absolute; top: 50%; left: 50%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(53, 196, 255, 0.3) 0%, transparent 70%); transform: translate(-50%, -50%); filter: blur(40px); z-index: -1; animation: pulseGlow 4s ease-in-out infinite; }
@keyframes pulseGlow { 0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); } }
.mobile-app__features { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.app-feature { display: flex; align-items: flex-start; gap: 16px; padding: 20px 24px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; transition: all 0.3s ease; }
.app-feature:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(53, 196, 255, 0.3); transform: translateX(8px); }
.app-feature__icon { flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(53, 196, 255, 0.2), rgba(37, 99, 235, 0.2)); border-radius: 12px; color: var(--cyan-400); }
.app-feature__text h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.app-feature__text p { font-size: 0.875rem; color: var(--gray-400); line-height: 1.5; }

/* PRICING PREMIUM */
.pricing-card { transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.pricing-card:hover { transform: translateY(-12px) scale(1.02); }
.pricing-card--featured { transform: scale(1.05); }
.pricing-card--featured:hover { transform: translateY(-12px) scale(1.07); }

/* STATS COUNTER */
.stat-value { display: inline-flex; overflow: hidden; }
.stat-digit { display: inline-block; animation: countUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* GLASSMORPHISM ENHANCED */
.glass { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); }

/* GRADIENT MESH BG */
.gradient-mesh { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.gradient-mesh__blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: blobMove 20s ease-in-out infinite; }
.gradient-mesh__blob--1 { top: -20%; right: -10%; width: 60%; height: 60%; background: rgba(53, 196, 255, 0.15); }
.gradient-mesh__blob--2 { bottom: -20%; left: -10%; width: 50%; height: 50%; background: rgba(37, 99, 235, 0.1); animation-delay: -10s; animation-direction: reverse; }
@keyframes blobMove { 0%, 100% { transform: translate(0, 0) scale(1); } 25% { transform: translate(5%, 5%) scale(1.1); } 50% { transform: translate(-5%, 10%) scale(0.95); } 75% { transform: translate(10%, -5%) scale(1.05); } }

/* SMOOTH SECTION TRANSITIONS */
.section { position: relative; }
.section + .section { margin-top: -1px; }

/* HARDWARE 3D SHOWCASE */
.hardware-showcase { position: relative; perspective: 1500px; padding: 40px; }
.hardware-showcase__scene { position: relative; width: 100%; max-width: 420px; margin: 0 auto; transform-style: preserve-3d; }
.hardware-showcase__device { position: relative; animation: float3D 8s ease-in-out infinite; transform-style: preserve-3d; cursor: grab; }
.hardware-showcase__device:active { cursor: grabbing; }
.hardware-showcase__device img { width: 100%; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.3)) drop-shadow(0 10px 20px rgba(53, 196, 255, 0.2)); transition: filter 0.3s ease; }
.hardware-showcase__device:hover img { filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.4)) drop-shadow(0 15px 30px rgba(53, 196, 255, 0.4)); }

@keyframes float3D {
  0%, 100% { transform: translateY(0) rotateY(-15deg) rotateX(5deg); }
  25% { transform: translateY(-15px) rotateY(-5deg) rotateX(8deg); }
  50% { transform: translateY(-10px) rotateY(15deg) rotateX(3deg); }
  75% { transform: translateY(-20px) rotateY(5deg) rotateX(10deg); }
}

.hardware-showcase__glow { position: absolute; top: 50%; left: 50%; width: 350px; height: 350px; background: radial-gradient(circle, rgba(53, 196, 255, 0.25) 0%, rgba(37, 99, 235, 0.1) 40%, transparent 70%); transform: translate(-50%, -50%); filter: blur(30px); z-index: -1; animation: glowPulse 4s ease-in-out infinite; }
@keyframes glowPulse { 0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } }

.hardware-showcase__ring { position: absolute; top: 50%; left: 50%; border: 2px solid rgba(53, 196, 255, 0.3); border-radius: 50%; transform: translate(-50%, -50%) rotateX(75deg); animation: ringRotate 20s linear infinite; }
.hardware-showcase__ring--1 { width: 300px; height: 300px; }
.hardware-showcase__ring--2 { width: 380px; height: 380px; animation-duration: 25s; animation-direction: reverse; border-color: rgba(37, 99, 235, 0.2); }
.hardware-showcase__ring--3 { width: 460px; height: 460px; animation-duration: 30s; border-style: dashed; border-color: rgba(53, 196, 255, 0.15); }
@keyframes ringRotate { from { transform: translate(-50%, -50%) rotateX(75deg) rotateZ(0deg); } to { transform: translate(-50%, -50%) rotateX(75deg) rotateZ(360deg); } }

.hardware-showcase__particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hardware-showcase__particle { position: absolute; width: 4px; height: 4px; background: var(--cyan-500); border-radius: 50%; opacity: 0; animation: particleFloat 6s ease-in-out infinite; }
.hardware-showcase__particle:nth-child(1) { left: 20%; animation-delay: 0s; }
.hardware-showcase__particle:nth-child(2) { left: 40%; animation-delay: 1s; }
.hardware-showcase__particle:nth-child(3) { left: 60%; animation-delay: 2s; }
.hardware-showcase__particle:nth-child(4) { left: 80%; animation-delay: 3s; }
.hardware-showcase__particle:nth-child(5) { left: 30%; animation-delay: 4s; }
.hardware-showcase__particle:nth-child(6) { left: 70%; animation-delay: 5s; }
@keyframes particleFloat { 0% { bottom: 0; opacity: 0; transform: scale(0); } 10% { opacity: 1; transform: scale(1); } 90% { opacity: 1; transform: scale(1); } 100% { bottom: 100%; opacity: 0; transform: scale(0); } }

/* HARDWARE SPECS CARDS */
.hardware-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.hardware-spec { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,250,252,0.9)); border: 1px solid rgba(53, 196, 255, 0.1); border-radius: 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden; }
.hardware-spec::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--cyan-500), var(--navy-600)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.hardware-spec:hover::before { transform: scaleX(1); }
.hardware-spec:hover { transform: translateY(-6px) translateX(4px); box-shadow: 0 12px 32px rgba(53, 196, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08); border-color: rgba(53, 196, 255, 0.3); }
.hardware-spec__icon { flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--cyan-500), var(--navy-600)); border-radius: 12px; color: white; box-shadow: 0 4px 12px rgba(53, 196, 255, 0.3); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hardware-spec:hover .hardware-spec__icon { transform: scale(1.1) rotate(-5deg); box-shadow: 0 6px 16px rgba(53, 196, 255, 0.4); }
.hardware-spec__text { font-size: 0.9rem; font-weight: 600; color: var(--navy-900); }
.hardware-spec__sub { font-size: 0.75rem; font-weight: 400; color: var(--gray-500); margin-top: 2px; }

/* HARDWARE STATS BAR */
.hardware-stats { display: flex; gap: 32px; margin-top: 40px; padding: 24px; background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); border-radius: 16px; justify-content: center; }
.hardware-stat { text-align: center; }
.hardware-stat__value { font-size: 1.75rem; font-weight: 800; color: var(--cyan-500); }
.hardware-stat__label { font-size: 0.8rem; color: var(--gray-400); margin-top: 4px; }

/* CHAT WIDGET (Fleet Manager) */
.fm-chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--cyan-500), var(--navy-700));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25), 0 0 30px rgba(53,196,255,0.45);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.fm-chat-launcher:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 40px rgba(0,0,0,0.3), 0 0 38px rgba(53,196,255,0.55); }
.fm-chat-launcher.hidden { display: none; }

.fm-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1200;
  width: min(92vw, 380px);
  max-height: min(75vh, 640px);
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: opacity var(--transition-base), transform var(--transition-base);
}
.fm-chat-widget.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.fm-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--white);
  border-radius: 20px 20px 0 0;
}
.fm-chat-header__avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fm-chat-header__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 0%;
  transform: scale(1);
  image-rendering: auto;
}
.fm-chat-header__text .title { font-size: 1rem; font-weight: 700; }
.fm-chat-header__text .subtitle { font-size: 0.8rem; color: rgba(255,255,255,0.75); }
.fm-chat-close {
  margin-left: auto;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background var(--transition-fast);
}
.fm-chat-close:hover { background: rgba(255,255,255,0.2); }

.fm-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fm-chat-message { display: flex; }
.fm-chat-message.user { justify-content: flex-end; }
.fm-chat-message.assistant { justify-content: flex-start; }
.fm-chat-message .bubble {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}
.fm-chat-message.user .bubble {
  background: linear-gradient(135deg, var(--cyan-500), var(--navy-600));
  color: var(--white);
}
.fm-chat-message.assistant .bubble {
  background: var(--white);
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
}
.fm-chat-message.assistant.thinking .bubble.typing { background: var(--white); border: 1px solid var(--gray-200); }
.fm-chat-message.assistant.thinking .bubble.typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 2px;
  background: var(--gray-500);
  border-radius: 50%;
  animation: fm-typing 1s infinite;
}
.fm-chat-message.assistant.thinking .bubble.typing span:nth-child(2) { animation-delay: 0.15s; }
.fm-chat-message.assistant.thinking .bubble.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes fm-typing {
  0% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
  100% { opacity: 0.3; transform: translateY(0); }
}

.fm-chat-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}
.fm-chat-input input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  font-size: 0.95rem;
  outline: none;
  transition: border var(--transition-fast), box-shadow var(--transition-fast);
}
.fm-chat-input input:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(53,196,255,0.18);
}
.fm-chat-input button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cyan-500), var(--navy-700));
  color: var(--white);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.fm-chat-input button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.fm-chat-input button:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }

.fm-chat-footer {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-align: center;
}

.fm-chat-proactive {
  position: fixed;
  right: 24px;
  bottom: 120px;
  width: min(88vw, 320px);
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.22);
  border: 1px solid var(--gray-200);
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 12px 12px 12px;
  z-index: 1300;
  animation: fm-proactive-in var(--transition-base) ease forwards;
}
.fm-chat-proactive .avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.fm-chat-proactive .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 0%;
  transform: scale(1);
}
.fm-chat-proactive .text { flex: 1; }
.fm-chat-proactive .title { font-weight: 700; margin-bottom: 2px; color: var(--gray-900); }
.fm-chat-proactive .msg { font-size: 0.9rem; color: var(--gray-700); line-height: 1.3; margin-bottom: 6px; }
.fm-chat-proactive .open {
  border: none;
  background: linear-gradient(135deg, var(--cyan-500), var(--navy-700));
  color: var(--white);
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 600;
  cursor: pointer;
}
.fm-chat-proactive .close {
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

@keyframes fm-proactive-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .fm-chat-widget { right: 12px; left: 12px; width: auto; }
  .fm-chat-launcher { right: 16px; bottom: 16px; }
  .fm-chat-proactive { right: 12px; left: 12px; width: auto; bottom: 110px; }
}

/* COOKIE CONSENT BANNER */
.fm-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 12px;
  max-height: 90vh;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.fm-cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
}
.fm-cookie-container {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  border: 1px solid var(--gray-200);
  padding: 24px;
}
.fm-cookie-container--settings {
  padding: 0;
}
.fm-cookie-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.fm-cookie-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--cyan-500), var(--navy-700));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.fm-cookie-text {
  flex: 1;
  min-width: 200px;
}
.fm-cookie-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fm-cookie-text h3 svg { color: var(--cyan-500); }
.fm-cookie-text p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.fm-cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.fm-cookie-btn {
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid transparent;
}
.fm-cookie-btn--settings {
  background: transparent;
  border-color: var(--gray-300);
  color: var(--gray-700);
}
.fm-cookie-btn--settings:hover { background: var(--gray-100); }
.fm-cookie-btn--necessary {
  background: transparent;
  border-color: var(--cyan-500);
  color: var(--cyan-600);
}
.fm-cookie-btn--necessary:hover { background: rgba(53,196,255,0.08); }
.fm-cookie-btn--accept {
  background: linear-gradient(135deg, var(--cyan-500), var(--navy-600));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(53,196,255,0.35);
}
.fm-cookie-btn--accept:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(53,196,255,0.45); }
.fm-cookie-btn--save {
  background: var(--navy-700);
  color: var(--white);
}
.fm-cookie-btn--save:hover { background: var(--navy-800); }

/* Cookie Settings Panel */
.fm-cookie-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
}
.fm-cookie-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 10px;
}
.fm-cookie-header h3 svg { color: var(--cyan-500); }
.fm-cookie-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-100);
  border-radius: 10px;
  font-size: 1.5rem;
  color: var(--gray-500);
  cursor: pointer;
  transition: background 0.2s;
}
.fm-cookie-close:hover { background: var(--gray-200); }
.fm-cookie-options {
  padding: 16px 24px;
}
.fm-cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  transition: background 0.2s;
  cursor: pointer;
}
.fm-cookie-option:first-child { background: var(--gray-50); cursor: default; }
.fm-cookie-option:hover:not(:first-child) { background: var(--gray-50); }
.fm-cookie-toggle {
  width: 48px;
  height: 26px;
  background: var(--gray-300);
  border-radius: 13px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}
.fm-cookie-toggle--on { background: var(--cyan-500); }
.fm-cookie-toggle-knob {
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: left 0.2s;
}
.fm-cookie-toggle--on .fm-cookie-toggle-knob { left: 25px; }
.fm-cookie-option-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fm-cookie-badge {
  padding: 2px 8px;
  background: var(--gray-200);
  color: var(--gray-600);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 20px;
}
.fm-cookie-option-text p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.fm-cookie-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--gray-200);
}
.fm-cookie-footer .fm-cookie-actions {
  justify-content: center;
}
.fm-cookie-privacy {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: 16px;
}
.fm-cookie-privacy a {
  color: var(--cyan-600);
  font-weight: 600;
}
.fm-cookie-privacy a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .fm-cookie-content { flex-direction: column; text-align: center; }
  .fm-cookie-actions { width: 100%; justify-content: center; }
  .fm-cookie-btn { flex: 1; justify-content: center; min-width: 100px; }
  .fm-cookie-option { flex-direction: column; align-items: center; text-align: center; }
}
