/* ═══════════════════════════════════════════
   ZalAI Website — styles.css
   Modern dark theme with purple/violet accents
   ═══════════════════════════════════════════ */

:root {
  --bg: #0a0a14;
  --bg-card: #111120;
  --bg-elevated: #1a1a2e;
  --border: #2a2a45;
  --text: #e4e4f0;
  --text-dim: #9ca3af;
  --text-muted: #6b7280;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --accent-glow: rgba(124, 58, 237, 0.3);
  --green: #22c55e;
  --red: #ef4444;
  --orange: #f97316;
  --blue: #6366f1;
  --cyan: #22d3ee;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ═══════════ NAVIGATION ═══════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(42, 42, 69, 0.5);
  transition: all 0.3s;
}

#nav.scrolled { background: rgba(10, 10, 20, 0.95); }

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img {
  width: 36px; height: 36px; border-radius: 8px;
  object-fit: contain;
}
.logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.logo-text { font-weight: 700; font-size: 18px; color: #fff; }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-dim);
  transition: color 0.2s; text-decoration: none;
}
.nav-links a:hover { color: #fff; }

.nav-cta {
  background: var(--accent); color: #fff; border: none;
  padding: 8px 20px; border-radius: 20px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all 0.2s;
}
.nav-cta:hover { background: #6d28d9; transform: translateY(-1px); }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 0 60px; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}

.orb {
  position: absolute; border-radius: 50%; filter: blur(100px);
  animation: float 20s infinite ease-in-out;
}
.orb-1 { width: 600px; height: 600px; background: rgba(124, 58, 237, 0.15); top: -100px; left: -200px; }
.orb-2 { width: 500px; height: 500px; background: rgba(99, 102, 241, 0.1); bottom: -100px; right: -150px; animation-delay: -7s; }
.orb-3 { width: 300px; height: 300px; background: rgba(14, 165, 233, 0.08); top: 50%; left: 50%; animation-delay: -14s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124, 58, 237, 0.15); border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 6px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 500; color: var(--accent-light);
}

.hero-badge-free {
  background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.badge-star {
  font-size: 10px; color: #4ade80;
  animation: starPulse 3s ease-in-out infinite;
}

@keyframes starPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.2); } }
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
  font-size: clamp(40px, 6vw, 72px); font-weight: 800;
  line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #7c3aed, #a78bfa, #22d3ee);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px; color: var(--text-dim); line-height: 1.7;
  max-width: 500px; margin-bottom: 32px;
}

.hero-buttons { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 12px;
  font-weight: 600; font-size: 15px; transition: all 0.3s; cursor: pointer;
  text-decoration: none; border: none;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover {
  background: #6d28d9; transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
  color: #fff;
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-light); }

.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 28px; font-weight: 800; color: #fff; }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-sep { width: 1px; height: 40px; background: var(--border); }

/* Phone Mockup */
.hero-phone-wrap {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}

.phone-mockup { position: relative; }

.phone-frame {
  width: 300px; height: 620px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 40px;
  padding: 12px;
  display: flex; flex-direction: column; align-items: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}

.phone-notch {
  width: 80px; height: 8px; background: var(--bg);
  border-radius: 4px; margin-bottom: 8px;
}

.phone-screen {
  flex: 1; width: 100%; border-radius: 20px;
  background: var(--bg); overflow: hidden;
  position: relative;
}

.phone-home {
  width: 60px; height: 4px; background: var(--border);
  border-radius: 2px; margin-top: 8px;
}

.phone-glow {
  position: absolute; inset: -40px; border-radius: 60px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
  z-index: -1; opacity: 0.5;
  animation: glowPulse 4s infinite ease-in-out;
}
@keyframes glowPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.6; } }

/* Phone screen content */
.ps-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.ps-title { font-size: 18px; font-weight: 700; color: #fff; }
.ps-status { font-size: 10px; color: var(--green); display: flex; align-items: center; gap: 4px; }
.ps-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

.ps-tabs {
  display: flex; gap: 8px; padding: 8px 12px;
}
.ps-tab {
  padding: 5px 14px; border-radius: 14px; font-size: 11px; font-weight: 600;
  background: transparent; color: var(--text-muted); border: 1px solid var(--border);
}
.ps-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.ps-chat {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid rgba(42,42,69,0.3);
  transition: background 0.2s;
}
.ps-chat:hover { background: rgba(124, 58, 237, 0.05); }

.ps-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff; flex-shrink: 0;
  position: relative;
}
.ps-online {
  position: absolute; bottom: 0; right: 0;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--bg);
}
.ps-chat-info { flex: 1; min-width: 0; }
.ps-chat-name { font-size: 13px; font-weight: 600; color: #fff; }
.ps-chat-msg { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-chat-time { font-size: 10px; color: var(--text-muted); flex-shrink: 0; }
.ps-badge {
  min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

.ps-navbar {
  display: flex; justify-content: space-around; align-items: center;
  padding: 8px 0; border-top: 1px solid var(--border);
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--bg);
}
.ps-nav-item { font-size: 9px; color: var(--text-muted); text-align: center; }
.ps-nav-item.active { color: var(--accent); }

/* Phone screen transitions */
.phone-screen { transition: opacity 0.15s ease; }

/* Clickable chats */
.ps-chat-clickable { cursor: pointer; }
.ps-chat-clickable:active { background: rgba(124, 58, 237, 0.12); }

/* Chat View Header */
.ps-chat-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.ps-back {
  font-size: 22px; color: var(--accent-light); cursor: pointer;
  padding: 0 4px; font-weight: 300;
  transition: transform 0.2s;
}
.ps-back:hover { transform: translateX(-2px); }
.ps-avatar-sm {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px; color: #fff; flex-shrink: 0;
}
.ps-chat-header-name { font-size: 13px; font-weight: 700; color: #fff; }
.ps-chat-header-status { font-size: 9px; color: var(--green); }

/* Messages Area */
.ps-messages {
  flex: 1; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
  height: calc(100% - 90px); scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.ps-messages::-webkit-scrollbar { width: 2px; }
.ps-messages::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.3); border-radius: 1px; }

.ps-msg {
  max-width: 82%; padding: 8px 12px; border-radius: 14px;
  font-size: 12px; line-height: 1.5; animation: msgSlide 0.3s ease;
}
@keyframes msgSlide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.ps-msg-me {
  align-self: flex-end; background: var(--accent); color: #fff;
  border-bottom-right-radius: 4px;
}
.ps-msg-them {
  align-self: flex-start; background: var(--bg-elevated); color: var(--text);
  border-bottom-left-radius: 4px;
}
.ps-msg-author { font-size: 10px; font-weight: 700; color: var(--accent-light); margin-bottom: 2px; }
.ps-msg-text { word-break: break-word; }
.ps-msg-time { font-size: 9px; color: rgba(255,255,255,0.5); text-align: right; margin-top: 4px; }
.ps-msg-them .ps-msg-time { color: var(--text-muted); }

.ps-msg-sos { background: rgba(239,68,68,0.2); border: 1px solid rgba(239,68,68,0.4); }
.ps-msg-sos .ps-msg-text { color: #ef4444; font-weight: 700; }

.ps-msg-cipher { background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3); }
.ps-msg-cipher .ps-msg-text { font-family: monospace; color: var(--accent-light); font-size: 11px; }

.ps-msg-appear { animation: msgAppear 0.4s ease; }
@keyframes msgAppear { from { opacity: 0; transform: translateY(12px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Typing Indicator */
.ps-typing { padding: 10px 16px; }
.ps-typing-dots { display: flex; gap: 4px; align-items: center; }
.ps-typing-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted); animation: typing 1.4s infinite ease-in-out;
}
.ps-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ps-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Input Bar */
.ps-input-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-top: 1px solid var(--border);
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--bg);
}
.ps-input-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-elevated); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer;
}
.ps-input-field {
  flex: 1; padding: 7px 14px; border-radius: 18px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted);
}
.ps-input-send {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer;
}

/* ═══════════ LANGUAGE SWITCHER ═══════════ */
.lang-switcher {
  display: flex; gap: 4px; margin-right: 12px;
}
.lang-btn {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); padding: 4px 10px; border-radius: 8px;
  font-size: 11px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; font-family: var(--font);
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent-light); }
.lang-btn.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* ═══════════ SECTIONS ═══════════ */
.section { padding: 100px 0; position: relative; }
.section-dark { background: var(--bg-card); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  background: rgba(124, 58, 237, 0.15); border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 4px 14px; border-radius: 16px;
  font-size: 12px; font-weight: 600; color: var(--accent-light);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 48px); font-weight: 800;
  line-height: 1.15; margin-bottom: 16px;
}
.section-header p {
  font-size: 18px; color: var(--text-dim); max-width: 600px; margin: 0 auto;
}

/* ═══════════ FEATURES GRID ═══════════ */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: all 0.3s; cursor: default;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.1);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.feature-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin-bottom: 16px; }

.pro-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 1;
}

.feature-more {
  background: none; border: none; color: var(--accent-light);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: color 0.2s; padding: 0;
}
.feature-more:hover { color: #fff; }

/* ═══════════ SECURITY ═══════════ */
.security-showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: start;
}

.encrypt-demo {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.encrypt-label {
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.encrypt-text {
  font-size: 15px; padding: 16px; border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.05); border: 1px solid rgba(124, 58, 237, 0.2);
  font-family: 'Inter', monospace; line-height: 1.5;
}
.cipher-text {
  color: var(--accent-light); word-break: break-all;
  font-size: 13px;
}
.encrypt-arrow {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 20px 0;
}
.encrypt-key {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--accent-light); font-weight: 600;
  background: rgba(124, 58, 237, 0.1); padding: 6px 14px;
  border-radius: 12px;
}

.security-features { display: flex; flex-direction: column; gap: 24px; }
.sec-feat {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.03);
  border: 1px solid rgba(124, 58, 237, 0.08);
  transition: all 0.3s;
}
.sec-feat:hover {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
}
.sec-icon { font-size: 24px; flex-shrink: 0; }
.sec-feat h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.sec-feat p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* ═══════════ MESH ═══════════ */
.mesh-demo {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px;
  align-items: center;
}
.mesh-visual {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3/2; position: relative;
}
#meshCanvas { width: 100%; height: 100%; display: block; }

.mesh-info { display: flex; flex-direction: column; gap: 20px; }
.mesh-feat {
  display: flex; gap: 16px; align-items: flex-start;
}
.mesh-icon { font-size: 28px; flex-shrink: 0; }
.mesh-feat h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.mesh-feat p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* ═══════════ AI ═══════════ */
.ai-showcase {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px;
  align-items: start;
}
.ai-chat-column {
  display: flex; flex-direction: column; gap: 20px;
}
.ai-chat-label {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--accent); margin-bottom: -4px;
}
.ai-chat {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.ai-msg { display: flex; gap: 10px; }
.ai-msg-user { justify-content: flex-end; }
.ai-msg-user .ai-bubble { background: var(--accent); color: #fff; }
.ai-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.ai-bubble {
  max-width: 85%; padding: 12px 16px; border-radius: 16px;
  background: var(--bg-elevated); font-size: 13px; line-height: 1.6;
}

.ai-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ai-feat {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.03); border: 1px solid rgba(124, 58, 237, 0.08);
}
.ai-feat span { font-size: 20px; }
.ai-feat strong { font-size: 13px; color: #fff; }
.ai-feat div { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

/* ═══════════ DRAWING ═══════════ */
.drawing-demo { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.draw-phones {
  display: flex; align-items: flex-start; gap: 32px;
  justify-content: center;
}
.draw-phone {
  background: var(--bg-card); border: 2px solid var(--border);
  border-radius: 24px; overflow: hidden; width: 280px;
}
.draw-phone-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; background: var(--bg);
}
.draw-user { font-size: 14px; font-weight: 700; color: #fff; }
.draw-live { font-size: 11px; color: var(--red); font-weight: 700; animation: pulse 1s infinite; }

.draw-toolbar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px; border-top: 1px solid var(--border); background: var(--bg);
}
.draw-tool {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-muted); background: var(--bg-elevated);
}
.draw-tool.active { background: var(--accent); color: #fff; }
.draw-color { width: 20px; height: 20px; border-radius: 50%; }

.draw-sync {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding-top: 80px;
}
.sync-line { width: 1px; height: 40px; background: var(--accent); opacity: 0.4; }
.sync-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; animation: pulse 1.5s infinite;
}

.draw-status {
  font-size: 14px; font-weight: 600; color: var(--orange);
  min-height: 24px; text-align: center;
}

/* ═══════════ MODULES ═══════════ */
.modules-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.module-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: all 0.3s; position: relative;
}
.module-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
}
.module-icon { font-size: 32px; margin-bottom: 12px; }
.module-card h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.module-card p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.module-premium { border-color: rgba(234, 179, 8, 0.3); }
.premium-badge {
  position: absolute; top: 16px; right: 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000; font-size: 10px; font-weight: 800;
  padding: 2px 8px; border-radius: 6px;
}
.free-badge {
  position: absolute; top: 16px; right: 16px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff; font-size: 10px; font-weight: 800;
  padding: 2px 8px; border-radius: 6px;
}

/* Clickable module cards with arrow */
.module-card-clickable { cursor: pointer; }
.module-card-clickable:hover { border-color: rgba(34, 197, 94, 0.5); box-shadow: 0 4px 20px rgba(34, 197, 94, 0.1); }
.module-arrow {
  position: absolute; bottom: 16px; right: 16px;
  font-size: 18px; color: var(--text-muted);
  transition: all 0.3s;
}
.module-card-clickable:hover .module-arrow { color: #22c55e; transform: translateX(4px); }

/* ═══════════ THEMES ═══════════ */
.themes-showcase { overflow-x: auto; padding: 20px 0; }
.themes-scroll {
  display: flex; gap: 12px; min-width: max-content;
  padding: 0 20px; justify-content: center; flex-wrap: wrap;
}
.theme-chip {
  padding: 12px 24px; border-radius: 24px;
  background: var(--bg); border: 2px solid var(--tc, var(--border));
  color: var(--tc, var(--text)); font-size: 13px; font-weight: 600;
  white-space: nowrap; transition: all 0.3s; cursor: default;
}
.theme-chip:hover { transform: scale(1.05); box-shadow: 0 0 20px color-mix(in srgb, var(--tc) 30%, transparent); }

/* ═══════════ PRIORITY MESSAGES ═══════════ */
.priority-demo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
}
.priority-phone {
  background: var(--bg-card); border: 2px solid var(--border);
  border-radius: 32px; padding: 20px 16px;
  max-width: 340px; margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.priority-screen {
  display: flex; flex-direction: column; gap: 12px;
}
.pri-msg {
  padding: 12px 16px; border-radius: 16px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  transition: all 0.4s; position: relative;
  animation: priSlideIn 0.5s ease backwards;
}
.pri-msg:nth-child(1) { animation-delay: 0.1s; }
.pri-msg:nth-child(2) { animation-delay: 0.3s; }
.pri-msg:nth-child(3) { animation-delay: 0.5s; }
.pri-msg:nth-child(4) { animation-delay: 0.7s; }

@keyframes priSlideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

.pri-msg-badge {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.05em; margin-bottom: 4px;
}
.pri-msg-text { font-size: 13px; line-height: 1.5; color: var(--text); }
.pri-msg-time { font-size: 10px; color: var(--text-muted); text-align: right; margin-top: 4px; }

.pri-msg-normal { border-left: 3px solid var(--text-muted); }

.pri-msg-urgent {
  border: 1px solid rgba(239,68,68,0.5);
  border-left: 3px solid #ef4444;
  background: rgba(239,68,68,0.08);
  animation: priSlideIn 0.5s ease backwards, urgentPulse 2s ease-in-out infinite;
}
.pri-msg-urgent .pri-msg-badge { color: #ef4444; }

@keyframes urgentPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  50% { box-shadow: 0 0 20px 4px rgba(239,68,68,0.2); }
}

.pri-msg-important {
  border: 1px solid rgba(249,115,22,0.5);
  border-left: 3px solid var(--orange);
  background: rgba(249,115,22,0.06);
}
.pri-msg-important .pri-msg-badge { color: var(--orange); }

.pri-msg-whisper {
  border: 1px solid rgba(168,85,247,0.4);
  border-left: 3px solid #a855f7;
  background: rgba(168,85,247,0.06);
}
.pri-msg-whisper .pri-msg-badge { color: #a855f7; }
.pri-msg-whisper .pri-msg-text { font-style: italic; }
.pri-msg-blurred { filter: blur(5px); transition: filter 0.3s; cursor: pointer; user-select: none; }
.pri-msg-blurred:hover { filter: blur(0); }

.priority-info { display: flex; flex-direction: column; gap: 20px; }

.pri-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: rgba(0,0,0,0.15);
  transition: all 0.3s;
}
.pri-card:hover { transform: translateY(-2px); }
.pri-card-icon { font-size: 28px; flex-shrink: 0; }
.pri-card h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.pri-card p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

.pri-card-urgent { border-left: 3px solid #ef4444; }
.pri-card-urgent:hover { background: rgba(239,68,68,0.05); border-color: rgba(239,68,68,0.3); }
.pri-card-important { border-left: 3px solid var(--orange); }
.pri-card-important:hover { background: rgba(249,115,22,0.05); border-color: rgba(249,115,22,0.3); }
.pri-card-whisper { border-left: 3px solid #a855f7; }
.pri-card-whisper:hover { background: rgba(168,85,247,0.05); border-color: rgba(168,85,247,0.3); }

/* ═══════════ SECRET VAULT ═══════════ */
.vault-showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
}
.vault-animation {
  display: flex; justify-content: center; align-items: center;
}
.vault-phone {
  background: var(--bg); border: 2px solid var(--border);
  border-radius: 32px; padding: 20px 16px;
  width: 320px; min-height: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  overflow: hidden; position: relative;
}
.vault-screen {
  display: flex; flex-direction: column; gap: 0;
  min-height: 360px; position: relative;
}

/* Vault internal elements (rendered by JS) */
.vault-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 12px;
}
.vault-header-title { font-size: 15px; font-weight: 700; color: #fff; }
.vault-lock-icon { font-size: 20px; }

.vault-password-prompt {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; padding: 40px 0;
  text-align: center;
}
.vault-lock-big { font-size: 48px; animation: vaultBounce 2s infinite; }
@keyframes vaultBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.vault-prompt-text { font-size: 13px; color: var(--text-dim); }
.vault-dots {
  display: flex; gap: 10px; justify-content: center; padding: 8px 0;
}
.vault-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--border); transition: all 0.3s;
}
.vault-dot.filled { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }

.vault-unlocked-label {
  text-align: center; font-size: 12px; font-weight: 700;
  color: var(--green); margin-bottom: 12px;
  animation: fadeIn 0.4s;
}
.vault-hidden-chat {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 12px;
  background: rgba(124,58,237,0.06); border: 1px solid rgba(124,58,237,0.2);
  margin-bottom: 8px; animation: vaultChatReveal 0.4s ease backwards;
}
.vault-hidden-chat:nth-child(2) { animation-delay: 0.15s; }
.vault-hidden-chat:nth-child(3) { animation-delay: 0.3s; }
.vault-hidden-chat:nth-child(4) { animation-delay: 0.45s; }

@keyframes vaultChatReveal {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.vault-chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff; flex-shrink: 0;
}
.vault-chat-name { font-size: 13px; font-weight: 600; color: #fff; }
.vault-chat-msg { font-size: 11px; color: var(--text-muted); }
.vault-key-icon {
  margin-left: auto; font-size: 16px; color: #f59e0b;
}

.vault-features { display: flex; flex-direction: column; gap: 24px; }
.vault-feat {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius-sm);
  background: rgba(124,58,237,0.03); border: 1px solid rgba(124,58,237,0.08);
  transition: all 0.3s;
}
.vault-feat:hover {
  background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.2);
}
.vault-feat-icon { font-size: 24px; flex-shrink: 0; }
.vault-feat h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.vault-feat p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* ═══════════ KEY GENERATION DEMO ═══════════ */
.keygen-demo {
  margin-top: 24px; padding: 24px;
  background: rgba(124,58,237,0.04); border: 1px solid rgba(124,58,237,0.15);
  border-radius: var(--radius);
}
.keygen-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.keygen-icon { font-size: 20px; }
.keygen-title { font-size: 14px; font-weight: 700; color: #fff; }

.keygen-progress {
  height: 6px; background: var(--border); border-radius: 3px;
  overflow: hidden; margin-bottom: 12px;
}
.keygen-bar {
  height: 100%; width: 0%; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transition: width 0.3s ease;
}

.keygen-status {
  font-size: 12px; color: var(--accent-light); font-weight: 600;
  margin-bottom: 12px; min-height: 18px;
}
.keygen-output {
  display: flex; flex-direction: column; gap: 6px;
}
.keygen-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px; border-radius: 6px;
  background: rgba(0,0,0,0.2);
}
.keygen-label {
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em; flex-shrink: 0;
}
.keygen-val {
  font-size: 11px; color: var(--cyan); font-family: 'Courier New', monospace;
  text-align: right; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; max-width: 70%;
}

/* ═══════════ DOWNLOAD ═══════════ */
.download-content { text-align: center; max-width: 700px; margin: 0 auto; }
.download-content h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 16px; }
.download-content p { font-size: 18px; color: var(--text-dim); margin-bottom: 32px; }

.download-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.download-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 32px; border-radius: 16px;
  background: var(--bg); border: 2px solid var(--border);
  color: #fff; text-decoration: none; transition: all 0.3s;
}
.download-btn:hover { border-color: var(--accent); transform: translateY(-2px); color: #fff; }
.download-btn small { font-size: 11px; color: var(--text-muted); display: block; }
.download-btn strong { font-size: 16px; display: block; }
.download-btn.disabled { opacity: 0.5; pointer-events: none; }
.download-btn.android { border-color: var(--green); }
.download-btn.android:hover { box-shadow: 0 8px 32px rgba(34, 197, 94, 0.2); }

.download-note {
  margin-top: 24px; font-size: 13px; color: var(--text-muted);
}

/* ═══════════ FOOTER ═══════════ */
footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 14px; color: var(--text-dim); margin-top: 12px; }
.footer-links h5 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-links a { display: block; font-size: 13px; color: var(--text-dim); padding: 4px 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 12px; color: var(--text-muted); }

/* ═══════════ MODAL ═══════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none; justify-content: center; align-items: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.3s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  max-width: 700px; width: 100%; max-height: 85vh;
  overflow-y: auto; position: relative;
  animation: slideUp 0.3s;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text); width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.modal-icon { font-size: 48px; margin-bottom: 16px; }
.modal h2 { font-size: 24px; font-weight: 800; margin-bottom: 20px; }
.modal-body { font-size: 15px; color: var(--text-dim); line-height: 1.8; margin-bottom: 24px; }
.modal-body h4 { color: #fff; font-size: 16px; margin: 16px 0 8px; }
.modal-body ul { padding-left: 20px; margin: 8px 0; }
.modal-body li { margin: 6px 0; }

.modal-tech {
  background: rgba(124, 58, 237, 0.05); border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--radius-sm); padding: 20px;
  font-size: 13px; color: var(--accent-light); font-family: monospace;
  line-height: 1.8;
}
.modal-tech summary {
  cursor: pointer; font-weight: 700; color: var(--accent);
  font-family: var(--font); margin-bottom: 8px;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 1; }
  .hero-phone-wrap { order: 0; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .security-showcase { grid-template-columns: 1fr; }
  .mesh-demo { grid-template-columns: 1fr; }
  .ai-showcase { grid-template-columns: 1fr; }
  .priority-demo { grid-template-columns: 1fr; }
  .vault-showcase { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); padding: 24px;
    border-bottom: 1px solid var(--border);
  }
  .lang-switcher { margin-right: 8px; }
  .lang-btn { padding: 3px 7px; font-size: 10px; }

  .features-grid { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .draw-phones { flex-direction: column; align-items: center; }
  .draw-sync { flex-direction: row; padding: 0; }
  .sync-line { width: 40px; height: 1px; }
  .phone-frame { width: 260px; height: 540px; }
  .ai-features { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }

  .download-buttons { gap: 10px; }
  .download-btn { padding: 12px 18px; }
  .download-btn strong { font-size: 13px; }
  .download-btn small { font-size: 10px; }
}

@media (max-width: 480px) {
  .phone-frame { width: 240px; height: 500px; }
  .draw-phone { width: 240px; }
  .hero h1 { font-size: 36px; }
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ═══════════ SECURITY FAQ ═══════════ */
.security-faq {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(124, 58, 237, 0.2);
}

.faq-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: rgba(124, 58, 237, 0.4);
}

.faq-q {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.faq-q:hover {
  background: rgba(124, 58, 237, 0.08);
}

.faq-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.faq-q span:nth-child(2) {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.faq-arrow {
  font-size: 12px;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary, rgba(255, 255, 255, 0.7));
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 20px 16px 52px;
}

@media (max-width: 768px) {
  .faq-title { font-size: 20px; }
  .faq-q span:nth-child(2) { font-size: 14px; }
  .faq-a { font-size: 13px; }
  .faq-item.open .faq-a { padding-left: 20px; }
}

/* ═══════════ SECURITY COMPARISON ═══════════ */
.compare-chart {
  max-width: 800px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-bar-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.compare-label {
  min-width: 130px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.compare-rank {
  font-size: 18px;
  width: 28px;
  text-align: center;
  color: var(--text-dim);
}

.compare-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.compare-track {
  flex: 1;
  height: 40px;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.compare-fill {
  height: 100%;
  width: var(--w);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 14px;
  animation: barGrow 1.2s ease-out forwards;
  transform-origin: left;
}

@keyframes barGrow {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

.compare-fill-zalai {
  background: linear-gradient(90deg, var(--accent) 0%, #a78bfa 60%, #22d3ee 100%);
  box-shadow: 0 0 20px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}

.compare-fill-other {
  background: linear-gradient(90deg, #2a2a45 0%, #3a3a55 100%);
}

.compare-score {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.compare-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

/* Report toggle button */
.report-toggle-wrap {
  text-align: center;
  margin: 0 0 40px;
}

.report-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 40px;
  color: var(--accent-light);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font);
}

.report-toggle-btn:hover {
  background: rgba(124, 58, 237, 0.15);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-2px);
}

.report-toggle-btn.active {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--accent-light);
}

/* Detailed report table */
.report-detail {
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease;
  opacity: 0;
  margin-bottom: 0;
}

.report-detail.open {
  max-height: none;
  overflow: visible;
  opacity: 1;
  margin-bottom: 40px;
}

.report-table {
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.report-header {
  display: grid;
  grid-template-columns: 2.2fr repeat(6, 1fr);
  background: var(--bg-elevated);
  border-bottom: 2px solid var(--border);
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  position: sticky;
  top: 64px;
  z-index: 10;
}

.report-row {
  display: grid;
  grid-template-columns: 2.2fr repeat(6, 1fr);
  padding: 10px 16px;
  border-bottom: 1px solid rgba(42, 42, 69, 0.5);
  align-items: center;
  transition: background 0.2s;
}

.report-row:hover {
  background: rgba(124, 58, 237, 0.05);
}

.report-row-exclusive {
  background: rgba(124, 58, 237, 0.06);
}

.report-row-exclusive:hover {
  background: rgba(124, 58, 237, 0.12);
}

.report-row-total {
  background: var(--bg-elevated);
  border-bottom: none;
  padding: 16px;
}

.report-col {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

.report-col-cat {
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.report-header .report-col:first-child {
  text-align: left;
}

/* Mini bars inside report */
.mini-bar {
  height: 22px;
  width: var(--mw);
  min-width: 24px;
  max-width: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: width 0.8s ease;
}

.mini-bar span {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.mini-bar-dim {
  background: linear-gradient(90deg, #2a2a45 0%, #3a3a55 100%);
}

.mini-bar-zero {
  width: 24px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.mini-bar-zero span {
  color: var(--red);
  font-weight: 600;
}

/* Tooltip for mini-bar scores */
.mini-bar[data-tip] {
  position: relative;
  cursor: pointer;
}

.mini-bar[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 12, 30, 0.95);
  color: #e2e0ff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
  width: max-content;
  max-width: 220px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 0 1px rgba(124, 58, 237, 0.3);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
  text-shadow: none;
}

.mini-bar[data-tip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(15, 12, 30, 0.95);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}

.mini-bar[data-tip]:hover::after,
.mini-bar[data-tip]:hover::before,
.mini-bar[data-tip].tip-active::after,
.mini-bar[data-tip].tip-active::before {
  opacity: 1;
  visibility: visible;
}

/* Flip tooltip down when near top */
@media (max-width: 768px) {
  .mini-bar[data-tip]::after {
    bottom: auto;
    top: calc(100% + 8px);
    max-width: 180px;
    font-size: 10px;
    padding: 6px 10px;
  }
  .mini-bar[data-tip]::before {
    bottom: auto;
    top: calc(100% + 2px);
    border-top-color: transparent;
    border-bottom-color: rgba(15, 12, 30, 0.95);
  }
}

.total-zalai {
  color: var(--accent-light);
  font-size: 18px;
}

.report-row-total strong {
  color: var(--text-dim);
  font-size: 14px;
}

@media (max-width: 768px) {
  .report-header,
  .report-row {
    grid-template-columns: 1.5fr repeat(6, 1fr);
    padding: 8px 8px;
  }
  .report-col-cat { font-size: 11px; }
  .report-col { font-size: 11px; }
  .mini-bar { height: 18px; min-width: 18px; }
  .mini-bar span { font-size: 9px; }
  .report-toggle-btn { font-size: 13px; padding: 12px 20px; }
}

@media (max-width: 480px) {
  .report-header,
  .report-row {
    grid-template-columns: 1.2fr repeat(6, 1fr);
    gap: 2px;
    padding: 6px 4px;
  }
  .report-col-cat { font-size: 10px; }
  .mini-bar span { font-size: 8px; }
}

/* Exclusive features grid */
.compare-exclusive {
  margin-top: 20px;
}

.compare-exclusive h3 {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 40px;
}

.exclusive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.exclusive-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exclusive-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.exclusive-icon {
  font-size: 36px;
  line-height: 1;
}

.exclusive-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.exclusive-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
}

.exclusive-level {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent-light);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

@media (max-width: 1024px) {
  .exclusive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .exclusive-grid { grid-template-columns: 1fr; }
  .compare-label { min-width: 100px; }
  .compare-name { font-size: 13px; }
  .compare-score { font-size: 12px; }
  .compare-exclusive h3 { font-size: 18px; }
}

/* ═══════════ BETA FLOATING BADGE ═══════════ */
.beta-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  cursor: pointer;
}

.beta-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent-light);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
}

.beta-pill:hover {
  background: rgba(124, 58, 237, 0.35);
  box-shadow: 0 4px 30px rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
}

.beta-icon {
  font-size: 14px;
}

.beta-label {
  font-family: 'Inter', sans-serif;
}

.beta-popup {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 300px;
  background: rgba(15, 12, 30, 0.96);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(124, 58, 237, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  text-align: center;
}

.beta-float.open .beta-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.beta-float.open .beta-pill {
  background: rgba(124, 58, 237, 0.4);
  border-color: rgba(124, 58, 237, 0.6);
}

.beta-popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.beta-popup-emoji {
  font-size: 36px;
  margin-bottom: 12px;
}

.beta-popup h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #a78bfa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.beta-popup p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.beta-popup-team {
  font-size: 11px;
  color: var(--text-muted, #555);
  font-style: italic;
  opacity: 0.7;
}

@media (max-width: 480px) {
  .beta-float { bottom: 16px; right: 16px; }
  .beta-popup { width: 260px; padding: 20px; }
  .beta-pill { padding: 6px 12px; font-size: 11px; }
}

/* ═══════════ EMOTION RADAR SECTION ═══════════ */
.radar-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.radar-demo-area {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

.radar-compass {
  width: 260px;
  height: 260px;
  position: relative;
  filter: drop-shadow(0 0 40px rgba(124,58,237,0.25));
}

.radar-svg {
  width: 100%;
  height: 100%;
}

.radar-center-dot {
  animation: radarPulse 2s ease-in-out infinite;
}

@keyframes radarPulse {
  0%, 100% { r: 6; opacity: 1; }
  50% { r: 9; opacity: 0.7; }
}

.radar-finger {
  transition: cx 0.6s ease, cy 0.6s ease, fill 0.3s ease;
}

.radar-line {
  transition: x2 0.6s ease, y2 0.6s ease, stroke 0.3s ease;
}

/* Bubble demo */
.radar-bubble-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.radar-bubble {
  position: relative;
  background: var(--bg-elevated);
  border-radius: 18px;
  padding: 14px 18px 8px;
  max-width: 300px;
  min-width: 240px;
  overflow: visible;
}

.radar-bubble-text {
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.radar-bubble-time {
  color: var(--text-muted);
  font-size: 11px;
  text-align: right;
  margin-top: 4px;
}

.radar-bubble canvas {
  position: absolute;
  top: -4px;
  left: -4px;
  pointer-events: none;
}

.radar-intensity-label {
  font-size: 18px;
  font-weight: 700;
  color: #FF6B35;
  transition: color 0.3s ease;
  text-align: center;
}

/* Screenshots */
.radar-screenshots {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.radar-screenshot {
  text-align: center;
}

.radar-screenshot img {
  width: 240px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.radar-screenshot img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(124,58,237,0.3);
}

.radar-screenshot-label {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

/* Feature cards */
.radar-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 900px;
}

.radar-feat {
  display: flex;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: border-color 0.3s ease;
}

.radar-feat:hover {
  border-color: var(--accent);
}

.radar-feat-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.radar-feat strong {
  color: var(--text);
  font-size: 15px;
}

.radar-feat div {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .radar-demo-area { flex-direction: column; gap: 32px; }
  .radar-compass { width: 200px; height: 200px; }
  .radar-screenshot img { width: 180px; }
}
