:root {
  --primary: #00A3FF;
  --primary-hover: #0088D1;
  --bg-deep: #03143F;
  --bg-gradient: linear-gradient(135deg, #03143F 0%, #0047AB 100%);
  --surface: #FFFFFF;
  --text: #111827;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-serif: 'Playfair Display', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: var(--font-sans); }
body { background: var(--bg-deep); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; scroll-behavior: smooth; }
.hidden { display: none !important; }

/* Toast */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; }
.toast { background: #111827; color: white; padding: 12px 20px; border-radius: 8px; margin-bottom: 10px; font-size: 14px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

/* Premium Background */
.landing-container { position: relative; background: var(--bg-gradient); overflow: hidden; }
.premium-background { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 0; pointer-events: none; }
.shape { position: absolute; opacity: 0.5; filter: blur(100px); border-radius: 50%; }
.shape-triangle { width: 600px; height: 600px; background: #00A3FF; top: -200px; right: -100px; }
.shape-circle { width: 500px; height: 500px; background: #002244; bottom: -200px; left: -100px; }

/* Premium Navigation */
.premium-nav { position: relative; z-index: 100; border-bottom: 1px solid rgba(255,255,255,0.1); background: rgba(3, 20, 63, 0.4); backdrop-filter: blur(10px); }
.nav-content { max-width: 1300px; margin: 0 auto; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 16px; }
.logo h2 { font-size: 28px; font-weight: 800; color: white; letter-spacing: -0.5px; }
.logo-divider { color: rgba(255,255,255,0.3); font-size: 20px; font-weight: 300; }
.logo-tagline { color: #E5E7EB; font-size: 14px; font-weight: 500; letter-spacing: 0.5px; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { color: #E5E7EB; text-decoration: none; font-size: 14px; font-weight: 600; transition: color 0.2s; }
.nav-link:hover { color: white; }
.btn-outline { border: 1px solid rgba(255,255,255,0.3); color: white; padding: 10px 20px; border-radius: 4px; text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: 1px; transition: 0.2s; }
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }
.btn-nav-login { background: transparent; color: white; border: none; font-size: 14px; font-weight: 700; letter-spacing: 1px; cursor: pointer; transition: 0.2s; }
.btn-nav-login:hover { color: var(--primary); }

/* Hero Section */
.hero { position: relative; z-index: 10; max-width: 1300px; margin: 0 auto; padding: 120px 24px 80px; color: white; text-align: center; }
.hero-text { max-width: 800px; margin: 0 auto; }
.hero-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 3px; color: var(--primary); margin-bottom: 24px; text-transform: uppercase; }
.hero h1 { font-family: var(--font-serif); font-size: 4.5rem; line-height: 1.1; margin-bottom: 24px; font-weight: 800; color: white; }
.hero-desc { font-size: 1.25rem; line-height: 1.6; color: #E5E7EB; margin-bottom: 40px; }
.hero-action-bar { display: flex; gap: 20px; justify-content: center; }
.btn-action-primary { background: var(--primary); color: white; border: none; padding: 16px 40px; border-radius: 6px; font-weight: 800; font-size: 15px; letter-spacing: 1px; cursor: pointer; transition: 0.2s; }
.btn-action-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,163,255,0.3); }
.btn-secondary-large { padding: 16px 40px; background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; font-size: 15px; font-weight: 700; text-decoration: none; transition: 0.2s; display: inline-flex; align-items: center; justify-content: center; }
.btn-secondary-large:hover { background: rgba(255,255,255,0.15); }

/* Features Section (Why Audivis) */
.features-section { background: rgba(3, 20, 63, 0.8); padding: 100px 24px; position: relative; z-index: 10; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 3rem; font-family: var(--font-serif); margin-bottom: 16px; font-weight: 800; }
.feature-grid { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.feature-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); padding: 40px; border-radius: 12px; transition: 0.3s; color: white; }
.feature-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.06); }
.feature-icon { width: 48px; height: 48px; color: var(--primary); margin-bottom: 24px; }
.feature-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.feature-card p { color: #9CA3AF; line-height: 1.6; font-size: 15px; }

/* Bento Box Suite Section */
.bento-section { background: #F9FAFB; padding: 100px 24px; position: relative; z-index: 10; border-top-left-radius: 40px; border-top-right-radius: 40px; }
.bento-grid { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bento-box { border-radius: 24px; padding: 40px; position: relative; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.bento-box:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.bento-large { grid-column: span 2; }

/* Bento Styles */
.bg-dark { background: var(--bg-deep); color: white; }
.bg-blue { background: var(--primary); color: white; }
.bg-light { background: white; color: var(--text); border: 1px solid #E5E7EB; }

.bento-icon { width: 48px; height: 48px; margin-bottom: 24px; }
.bento-box h3 { font-size: 28px; font-weight: 800; margin-bottom: 16px; font-family: var(--font-serif); }
.bento-box p { font-size: 16px; opacity: 0.9; line-height: 1.6; }

/* Dashboard Tools Grid */
.tools-grid-premium { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.tool-card-premium { background: white; padding: 40px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); border: 1px solid #F3F4F6; transition: 0.3s; display: block; }
.tool-card-premium:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-color: var(--primary); }
.tool-icon-wrapper { width: 64px; height: 64px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.tool-icon-wrapper svg { width: 32px; height: 32px; }
.tool-card-premium h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; color: var(--bg-deep); }
.tool-card-premium p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

/* Dashboard Styles */
.dashboard-container { min-height: 100vh; background: var(--bg-deep); }
.dashboard-container .main-content { max-width: 1300px; margin: 80px auto; padding: 0 24px; }

/* Floating Telegram-Style Chatbot */
.chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 10000; font-family: var(--font-sans); }
.chat-toggle { width: 60px; height: 60px; background: #0088cc; /* Telegram blue */ color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 20px rgba(0, 136, 204, 0.4); cursor: pointer; transition: transform 0.2s; }
.chat-toggle:hover { transform: scale(1.1); }
.chat-toggle svg { width: 32px; height: 32px; fill: white; }
.chat-window { position: absolute; bottom: 80px; right: 0; width: 350px; background: white; border-radius: 16px; box-shadow: 0 15px 35px rgba(0,0,0,0.2); overflow: hidden; display: flex; flex-direction: column; transform-origin: bottom right; animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.chat-header { background: #0088cc; color: white; padding: 20px; display: flex; justify-content: space-between; align-items: center; }
.chat-header h4 { font-size: 16px; font-weight: 700; }
.btn-close-chat { background: transparent; border: none; color: white; font-size: 24px; cursor: pointer; }
.chat-body { height: 350px; background: #E5DDD5; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.chat-message { max-width: 80%; padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.chat-message.bot { background: white; color: var(--text); border-bottom-left-radius: 0; align-self: flex-start; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.chat-message.user { background: #E1FFC7; color: var(--text); border-bottom-right-radius: 0; align-self: flex-end; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.chat-footer { padding: 16px; background: #F0F0F0; display: flex; gap: 12px; align-items: center; }
.chat-footer input { flex: 1; padding: 12px 16px; border: none; border-radius: 20px; outline: none; font-size: 14px; }
.chat-footer button { background: #0088cc; color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-footer button svg { width: 18px; height: 18px; }

@keyframes scaleIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Auth Modal Overlay */
.auth-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-modal-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(3, 20, 63, 0.9); backdrop-filter: blur(10px); }
.auth-modal-content { position: relative; background: var(--surface); padding: 48px; border-radius: 16px; width: 100%; max-width: 460px; z-index: 100000; box-shadow: 0 25px 50px rgba(0,0,0,0.5); }
.btn-close { position: absolute; top: 24px; right: 24px; background: transparent; border: none; cursor: pointer; color: #9CA3AF; transition: 0.2s; }
.btn-close:hover { color: var(--text); }
.btn-close svg { width: 24px; height: 24px; }

/* Auth Form Elements */
.tabs { display: flex; background: #F3F4F6; padding: 6px; border-radius: 8px; margin-bottom: 32px; }
.tab { flex: 1; padding: 12px; border: none; background: transparent; cursor: pointer; border-radius: 6px; font-size: 14px; font-weight: 700; color: var(--text-muted); transition: 0.2s; }
.tab.active { background: white; color: var(--text); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 24px; text-align: left; }
.form-group label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--bg-deep); }
.form-group input { width: 100%; padding: 14px 16px; border: 1px solid #D1D5DB; border-radius: 8px; font-size: 15px; background: #F9FAFB; transition: 0.2s; }
.form-group input:focus { outline: none; border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(0, 163, 255, 0.15); }
.btn-primary { width: 100%; padding: 16px; background: var(--primary); color: white; border: none; border-radius: 8px; font-size: 16px; font-weight: 800; cursor: pointer; transition: 0.2s; margin-top: 8px; letter-spacing: 0.5px; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0, 163, 255, 0.3); }

/* Animations */
.slide-in-up { animation: slideInUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes slideInUp { from { opacity: 0; transform: translateY(40px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 900px) {
  .hero h1 { font-size: 3rem; }
  .hero-action-bar { flex-direction: column; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-large { grid-column: span 1; }
}
