/* ============================================================
   MioPlus – Landing Page (index.html) Styles
   Version: 1  |  Increment ?v= in index.html when changed
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #1a56db;
  --primary-dark: #1141a8;
  --primary-light: #e8f0fe;
  --secondary: #be123c;
  --accent: #0ea5e9;
  --gold: #f59e0b;
  --dark: #0f172a;
  --dark2: #1e293b;
  --text: #334155;
  --text-light: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --bg: #f8fafc;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }

/* NAVBAR */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 5%; display: flex; align-items: center; justify-content: space-between; height: 72px; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(226,232,240,0.8); transition: all 0.3s; }
nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.nav-logo img { height: 36px; }
.nav-logo-dark { display: none; }
.nav-logo-white { display: block; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.92rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: flex; gap: 0.75rem; align-items: center; }
.btn-outline { padding: 0.5rem 1.25rem; border: 2px solid var(--primary); color: var(--primary); border-radius: 8px; font-weight: 600; font-size: 0.9rem; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-primary { padding: 0.5rem 1.5rem; background: var(--primary); color: var(--white); border: none; border-radius: 8px; font-weight: 600; font-size: 0.9rem; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,86,219,0.35); }

/* HERO */
.hero { min-height: 100vh; background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 40%, #1a56db 75%, #0ea5e9 100%); display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 72px; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-orb1 { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(14,165,233,0.25) 0%, transparent 70%); top: -100px; right: -100px; animation: float 8s ease-in-out infinite; }
.hero-orb2 { position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 70%); bottom: -50px; left: 10%; animation: float 10s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-30px); } }

.hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 5rem 5%; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); color: #93c5fd; padding: 0.4rem 1rem; border-radius: 100px; font-size: 0.82rem; font-weight: 600; margin-bottom: 1.5rem; backdrop-filter: blur(10px); }
.hero-badge i { color: var(--gold); }
.hero-title { font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 900; color: white; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-title span { background: linear-gradient(135deg, #f59e0b, #fbbf24); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 2.5rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-hero-primary { padding: 0.9rem 2rem; background: var(--gold); color: var(--dark); border: none; border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; transition: all 0.2s; display: flex; align-items: center; gap: 0.5rem; }
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,0.4); }
.btn-hero-ghost { padding: 0.9rem 2rem; background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.25); border-radius: 10px; font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none; transition: all 0.2s; display: flex; align-items: center; gap: 0.5rem; backdrop-filter: blur(10px); }
.btn-hero-ghost:hover { background: rgba(255,255,255,0.18); }
.hero-stats { display: flex; gap: 2rem; margin-top: 3rem; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 1.8rem; font-weight: 800; color: white; }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 0.2rem; }

/* Hero Dashboard Preview */
.hero-visual { position: relative; }
.hero-card { background: rgba(255,255,255,0.08); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; padding: 1.5rem; animation: slideUp 0.8s ease-out; }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.hero-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.hero-card-title { color: white; font-weight: 700; font-size: 1rem; }
.hero-card-badge { background: rgba(16,185,129,0.2); color: #34d399; font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 100px; border: 1px solid rgba(16,185,129,0.3); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1.25rem; }
.mini-stat { background: rgba(255,255,255,0.06); border-radius: 10px; padding: 0.9rem; border: 1px solid rgba(255,255,255,0.08); }
.mini-stat-val { color: white; font-size: 1.1rem; font-weight: 700; }
.mini-stat-lbl { color: rgba(255,255,255,0.5); font-size: 0.7rem; margin-top: 0.2rem; }
.mini-stat-up { color: #34d399; font-size: 0.7rem; font-weight: 600; }
.mini-chart { height: 80px; display: flex; align-items: flex-end; gap: 4px; padding: 0.5rem 0; }
.bar-item { flex: 1; border-radius: 4px 4px 0 0; transition: opacity 0.2s; }
.bar-item:hover { opacity: 0.8; }
.module-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.pill { padding: 0.3rem 0.8rem; border-radius: 100px; font-size: 0.72rem; font-weight: 600; display: flex; align-items: center; gap: 0.3rem; }
.pill-blue   { background: rgba(26,86,219,0.3);  color: #93c5fd; border: 1px solid rgba(26,86,219,0.4); }
.pill-green  { background: rgba(16,185,129,0.3); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.4); }
.pill-orange { background: rgba(245,158,11,0.3); color: #fcd34d; border: 1px solid rgba(245,158,11,0.4); }
.pill-red    { background: rgba(239,68,68,0.3);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.4); }
.pill-purple { background: rgba(139,92,246,0.3); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.4); }

/* MODULES SECTION */
.section { padding: 6rem 5%; }
.section-center { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.section-badge { display: inline-block; background: var(--primary-light); color: var(--primary); padding: 0.35rem 1rem; border-radius: 100px; font-size: 0.8rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: 0.5px; text-transform: uppercase; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; color: var(--dark); line-height: 1.2; margin-bottom: 1rem; }
.section-desc { font-size: 1.05rem; color: var(--text-light); line-height: 1.7; }

.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.module-card { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 2rem; transition: all 0.3s; position: relative; overflow: hidden; cursor: pointer; }
.module-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 20px 20px 0 0; background: var(--module-color, var(--primary)); }
.module-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.1); border-color: transparent; }
.module-icon-wrap { width: 60px; height: 60px; border-radius: 16px; background: var(--module-bg, #e8f0fe); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 1.5rem; }
.module-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.module-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; margin-bottom: 1.5rem; }
.module-features { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.module-features li { font-size: 0.85rem; color: var(--text); display: flex; align-items: center; gap: 0.5rem; }
.module-features li::before { content: '✓'; color: var(--module-color, var(--primary)); font-weight: 700; flex-shrink: 0; }
.module-tag { position: absolute; top: 1.5rem; right: 1.5rem; background: var(--module-light, #e8f0fe); color: var(--module-color, var(--primary)); font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 100px; }

/* FEATURES */
.features-section { background: linear-gradient(135deg, #f8fafc 0%, #e8f0fe 100%); }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: 1200px; margin: 0 auto; }
.features-list { display: flex; flex-direction: column; gap: 1.5rem; }
.feature-item { display: flex; gap: 1.25rem; padding: 1.5rem; background: var(--white); border-radius: 16px; border: 1px solid var(--border); transition: all 0.2s; }
.feature-item:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateX(4px); }
.feature-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.feature-item h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.3rem; }
.feature-item p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }
.features-visual { position: relative; }
.dashboard-mockup { background: var(--dark); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 100px rgba(15,23,42,0.25); }
.mockup-topbar { background: #1e293b; padding: 0.75rem 1rem; display: flex; align-items: center; gap: 0.4rem; }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-body { padding: 1.5rem; }
.mockup-row { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; }
.mockup-stat { flex: 1; background: #1e293b; border-radius: 10px; padding: 1rem; }
.mockup-stat-val { font-size: 1.2rem; font-weight: 700; color: white; }
.mockup-stat-lbl { font-size: 0.65rem; color: #64748b; margin-top: 0.2rem; }
.mockup-chart { background: #1e293b; border-radius: 10px; padding: 1rem; margin-bottom: 0.75rem; }
.mockup-chart-bars { display: flex; gap: 6px; align-items: flex-end; height: 80px; margin-top: 0.75rem; }
.mockup-bar { flex: 1; border-radius: 4px 4px 0 0; }
.mockup-table { background: #1e293b; border-radius: 10px; padding: 1rem; }
.mockup-row-item { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid #334155; }
.mockup-row-item:last-child { border: none; }
.mockup-dot2 { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 0.4rem; }

/* STATS */
.stats-section { background: linear-gradient(135deg, #0f172a 0%, #1a56db 100%); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: 1200px; margin: 0 auto; text-align: center; }
.stat-item { padding: 2rem; }
.stat-number { font-size: 3rem; font-weight: 900; color: white; line-height: 1; }
.stat-number span { font-size: 1.5rem; }
.stat-label { color: rgba(255,255,255,0.65); margin-top: 0.5rem; font-size: 0.95rem; }
.stat-icon { font-size: 2rem; margin-bottom: 0.75rem; opacity: 0.8; }

/* TESTIMONIALS */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.testimonial-card { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 2rem; transition: all 0.2s; }
.testimonial-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); transform: translateY(-4px); }
.testimonial-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-text { font-size: 0.95rem; color: var(--text); line-height: 1.7; font-style: italic; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; color: white; }
.author-name { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.author-agency { font-size: 0.8rem; color: var(--text-light); }

/* CTA */
.cta-section { background: linear-gradient(135deg, #1a56db 0%, #0ea5e9 100%); text-align: center; padding: 6rem 5%; }
.cta-title { font-size: clamp(2rem, 3vw, 3rem); font-weight: 900; color: white; margin-bottom: 1rem; }
.cta-desc { font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 2.5rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-cta-white { padding: 1rem 2.5rem; background: white; color: var(--primary); border: none; border-radius: 12px; font-weight: 700; font-size: 1.05rem; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.btn-cta-ghost { padding: 1rem 2.5rem; background: transparent; color: white; border: 2px solid rgba(255,255,255,0.5); border-radius: 12px; font-weight: 600; font-size: 1.05rem; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.btn-cta-ghost:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* FOOTER */
footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 4rem 5% 2rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-top: 1rem; color: rgba(255,255,255,0.5); }
.footer-col h4 { color: white; font-weight: 700; margin-bottom: 1.25rem; font-size: 0.95rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.85rem; }
.footer-social { display: flex; gap: 0.75rem; }
.social-btn { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); font-size: 0.9rem; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.social-btn:hover { background: var(--primary); border-color: var(--primary); color: white; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .features-visual { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .hero-stats { flex-direction: column; gap: 1rem; }
}
